* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.4;
    padding: 0 16px;
}

.game-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 20px;
    position: relative;
}

/* Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fermi-logo {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-title {
    font-size: 0.9375rem;
    width: 150px;
    font-weight: 400;
}

.icon-button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: 'Press Start 2P', monospace;
    color: #333;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #dadfe1;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

button#stats-btn {
    padding-right: 10px;
}

/* Question Container */
.question-container {
    position: relative;
    margin-bottom: 20px;
}

.question-box {
    position: relative;
    z-index: 5;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    background: white;
}

.question-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.question-image-container {
    display: none!important; /* Hidden on small screens */
}

.question-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
    display: block;
}

.question-text-container {
    flex: 1;
}

.question-text {
    font-size: 0.9375rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.question-category {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.2s;
}

.question-category:hover {
    color: #333;
}

.question-category .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

/* Question meta row (shown after game ends) */
.question-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-top: -12px;
    font-size: 0.8rem;
}

.question-meta .meta-item {
    color: #333;
    height: 64px;
    text-align: center;
    background: #fff;
    min-width: 112px;
    padding: 26px 12px 16px 0;
    border-width: 2px 0px 2px 2px;
    border-style: solid;
    border-color: #e9ecef;
    border-radius: 0 16px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
}

.streak-emoji { 
    display: inline-block; 
    line-height: 1; 
    transform: translateY(-2.5px); 
}
.streak-count { 
    display: inline-block; 
    line-height: 1; 
}

/* avg-tries-inline removed */

.source-btn {
    background: white;
    border: 2px solid #e9ecef;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    border-radius: 0 0 16px 16px;
    color: #333;
    cursor: pointer;
    width: 100%;
    padding: 21px 6px 12px;
    height: 64px;
    margin-left: -12px;
    z-index: 4;
}

.source-btn .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

/* Questions List */
.questions-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 16px 0;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

.question-item:hover {
    background-color: #e9ecef;
}

.question-item.completed {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.question-item.completed.won {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.question-item.completed.lost {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.question-item.current {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.question-info {
    flex: 1;
}

.question-date {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
}

.question-text-small {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.3;
}

.question-status {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.question-status.completed {
    background-color: #28a745;
    color: white;
}

.question-status.won {
    background-color: #28a745;
    color: white;
}

.question-status.lost {
    background-color: #dc3545;
    color: white;
}

.question-status.current {
    background-color: #17a2b8;
    color: white;
}

.question-status.available {
    background-color: #6c757d;
    color: white;
}

/* Guess Counter */
.guess-counter {
    text-align: center;
    margin-bottom: 19px;
    font-size: 0.8rem;
    color: #333;
}

.strategy-link {
    display: none;
    background: white;
    border: 2px solid #e9ecef;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.82rem;
    padding: 18.75px;
    width: 100%;
    border-radius: 15px;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

.strategy-link .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

/* Hint Container */

.hint-container {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Hint accordion trigger (mobile) */
.hint-link {
    display: none;
    background: transparent;
    border: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.82rem;
    padding: 18.75px;
    width: 100%;
    color: #333;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.hint-link .arrow {
    display: inline-block;
    transform: rotate(90deg);
}

/* Game Result */
.game-result {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.85rem;
}

.result-emoji {
    display: none;
}

/* New Game Section */
.new-game-section {
    margin-top: 20px;
    text-align: center;
    gap: 10px;
}

.new-game-btn-inline {
    width: 100%;
    height: 54px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.new-game-btn-inline:hover {
    background-color: #2e86c1;
}

/* Share Button */
.share-btn {
    background-color: white;
    color: #333333;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-btn:hover {
    background-color: #fbfbfb;
}

.new-game-section .share-btn {
    height: 54px;
    font-size: 0.8rem;
    margin-top: 0;
    border-radius: 15px;
    border: 2px solid #eaecef;
}

/* Guesses Container */
.guesses-container {
    margin-bottom: 20px;
    position: relative;
    z-index: 6; /* ensure tooltips above .question-box (z-index:5) */
}

.guess-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 5px;
}

.guess-field {
    flex: 1;
    background-color: #f6f6f6;
    color: #333;
    padding: 17.5px 15px;
    border-radius: 13px;
    font-size: 0.835rem;
    text-align: center;
    border: none;
    font-family: 'Press Start 2P', monospace;
    line-height: normal;
    max-height: 48px;
}

.guess-field.empty {
    color: #b3b3b3;
    font-size: 0.8rem;
}

.feedback-button {
    width: 100px;
    height: 48px;
    border-radius: 13px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    transition: transform 0.2s;
}

.feedback-button.hidden {
    display: none;
}


.feedback-button {
    position: relative;
}

/* Custom tooltip for feedback buttons */
.feedback-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12.5px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
    line-height: 1.4;
}

.feedback-button::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

.feedback-button:hover::after,
.feedback-button:hover::before {
    opacity: 1;
}

/* Programmatically show tooltip without hover (for tutorial) */
.feedback-button.show-tooltip::after,
.feedback-button.show-tooltip::before {
    opacity: 1;
}

.feedback-button.high {
    background-color: #fe4c4c;
    color: white;
}

.feedback-button.low {
    background-color: #fe4c4c;
    color: white;
}

.feedback-button.close {
    background-color: #ffad00;
    color: white;
}

.feedback-button.correct {
    background-color: #27ae60;
    color: white;
    font-size: 0.8rem;
}

/* Input Section */
.input-section {
    margin-top: 20px;
}

.calibration-options {
    margin-bottom: 10px;
    font-size: 0.7rem;
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.modal-content p.calibration-note {
    font-size: 0.7rem;
    margin: 16px 0 8px;
}

.modal-content p.calibration-description {
    font-size: 0.625rem;
}

.calibration-chart-wrapper {
    overflow-x: auto;
}

#calibration-chart {
    display: block;
}

.chart-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    pointer-events: none;
    display: none;
    z-index: 1000;
    white-space: nowrap;
}

.input-row {
    display: flex;
    align-items: center;
}

.input-container {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    flex: 1;
    border: 2px solid #eaecf0;
}

#guess-input {
    flex: none;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    outline: none;
    width: 100%;
    padding: 19.5px 15px 14.5px 15px;
    border-radius: 13px 13px 0 0;
}

#guess-input::placeholder {
    color: #999;
}

#confidence-input {
    margin: 0;
    height: 36px;
    width: 71px;
    padding: 0;
    background: none;
    border: 0;
    color: #333;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    outline: none;
    text-align: center;
    display: none;
    border-radius: 10px;
    -webkit-padding-end: 0px;
    padding-inline-start: 0;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 12px 12px;
    gap: 10px;
}

.quick-buttons {
    display: flex;
    gap: 6px;
}

.quick-btn {
    background: #e9ecef;
    border: 2px solid #eaecf0;
    border-radius: 10px;
    padding: 8px 8px;
    color: #333;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
}

.quick-btn:hover {
    background: #dfe3e6;
}

.action-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confidence-wrapper {
    position: relative;
    border: 2px solid #eaecf0;
    border-radius: 12px;
    padding: 0 8px;
}

.confidence-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.675rem;
    width: 100px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
    line-height: 1.4;
    text-align: center;
}

.confidence-wrapper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(51, 51, 51, 0.95) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

.confidence-wrapper.show-tooltip::after,
.confidence-wrapper.show-tooltip::before {
    opacity: 1;
}

#confidence-button {
    margin: 0;
    height: 36px;
    width: 71px;
    padding: 0;
    background: none;
    border: 0;
    color: #333;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    display: none;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
}

#confidence-button::after {
    content: '>';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.6rem;
    pointer-events: none;
}

.confidence-menu {
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 213px;
    background: #fff;
    border: 1px solid #eaecef;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    z-index: 1000;
}

.confidence-menu.open {
    display: flex;
}

.confidence-menu button {
    padding: 14px 24px 14px 34px;
    background: none;
    border: none;
    color: #333;
    font-size: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.confidence-menu button:not(:last-child) {
    border-bottom: 1px solid #eaecef;
}

.confidence-menu button.selected::after {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.submit-btn {
    width: 110px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: #2e86c1;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

.submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #f0f0f0;
    margin: 5vh auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 400;
}

.modal-content p {
    margin-bottom: 12px;
    line-height: 1.4;
    color: #555;
    font-size: 0.8rem;
}

/* Accordion inside Source modal */
.accordion {
    text-align: left;
    max-height: calc(90vh - 220px);
    overflow-y: auto;
    margin: 16px 0;
}

.accordion-item {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

#acc-initial-item {
    margin-bottom: 0;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: #fff;
    color: #333;
    border: none;
    padding: 14px 16px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    line-height: 1.4;
}

.accordion-panel {
    padding: 2px 16px 10px;
    display: none;
}

.accordion-item.open .accordion-panel {
    display: block;
}

.acc-arrow {
    display: inline-block;
    transform: rotate(90deg);
}

.new-game-btn, .close-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.new-game-btn:hover, .close-btn:hover {
    background-color: #2e86c1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
    margin: 8px 0;
}

.stats-grid-accordion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 8px 0 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Guess Distribution */
.guess-distribution {
    margin: 8px 0 12px;
}

.guess-distribution h3 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dist-label {
    font-size: 0.7rem;
    color: #333;
    min-width: 15px;
}

.dist-bar-container {
    flex: 1;
    height: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.dist-bar {
    height: 100%;
    background-color: #3498db;
    border-radius: 10px;
    transition: width 0.3s ease;
    min-width: 20px;
}

.dist-count {
    font-size: 0.7rem;
    color: #333;
    min-width: 20px;
    text-align: right;
}

/* Comments section */
.comments-section {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    flex-direction: column;
    border-radius: 18px;
}

.comments-section.open {
    display: flex;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
}

.comments-header h2 {
    font-size: 0.9375rem;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.comment {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
}

.comment-text {
    display: block;
}

.comment-meta {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.7rem;
}

.comments-input {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comments-input textarea {
    flex: 1;
    resize: none;
    min-height: 54px;
    background: none;
    border: 2px solid #eaecf0;
    border-radius: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 18.5px 15px;
    outline: none;
    line-height: 1.4;
}

/* Large screens (>768px) - Show images side by side */
@media (min-width: 769px) {
    .question-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .question-image-container {
        display: block !important; /* Override JavaScript hide for large screens */
        flex-shrink: 0;
    }
    
    .question-image {
        width: 100px;
        height: 100px;
    }
    body {
        background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 1%) 0px, rgb(0 0 0 / 1%) 1px, transparent 2px, transparent 4px), linear-gradient(to bottom, rgb(16 163 127 / 5%) 0px, rgb(90 97 255 / 5%) 120px, rgb(232 240 242 / 37%) 200px, rgb(251 251 251) 290px, #f5f5f5 100%);
        min-height: 100vh;   /* fallback */
        min-height: 100dvh;
    }
    .game-container {
        box-shadow: 0 0px 5px #8579790f;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        background: #fff;
    }
    body {
        background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 1%) 0px, rgb(0 0 0 / 1%) 1px, transparent 2px, transparent 4px), linear-gradient(to bottom, rgb(16 163 127 / 5%) 0px, rgb(90 97 255 / 5%) 120px, rgb(0 204 255 / 2%) 200px, rgba(255, 255, 255, 0.95) 290px, #ffffff 100%);
        padding: 0px 18px;
    }
    body.no-scroll {
    overflow: hidden;
    }
    .icon-button {
        background: #f4f8fa;
    }
    .comments-header .icon-button {
        background: transparent;
    }
    .game-header {
        padding: 18px 0;
    }
    .game-container {
        padding: 0;
        border-radius: 18px;
        padding-bottom: 134px; /* space for fixed input/new game area */
        background: transparent;
    }
    .question-container {
        margin-bottom: 12px;
    }
    .question-box {
        border-radius: 16px;
        padding: 20px;
    }
    .input-section,
    .new-game-section {
        position: fixed;
        width: min(500px, calc(100% - 36px));
        bottom: calc(0px + env(safe-area-inset-bottom));
        z-index: 900;
        padding-top: 18px;
        padding-bottom: 18px;
        margin-top: 0;
        background: white;
    }
    .feedback-button::after {
        width: 98px;
        white-space: normal;
    }
    .guesses-container {
        margin-bottom: 0px;
    }
    .guess-counter,
    .hint-container {
        margin-bottom: 18px;
    }
    .hint-container {
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 15px;
        overflow: hidden;
    }
    .game-result {
        border: 2px solid #e8ecee;
        border-radius: 16px;
        padding: 8.5px 18.5px;
        background: white;
        margin-bottom: 18px;
        font-size: 0.8rem;
    }
    .result-container {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .result-emoji {
        display: block;
        font-size: 2.125rem;
        padding: 0 8px;
        height: 58px;
    }
    .result-text {
        padding: 10px 0;
    }
    /* On mobile, hide inline hint text and show the button */
    #hint-text {
        display: none;
    }
    .hint-label {
        display: none;
    }
    .hint-link {
        display: inline;
    }
    .hint-container.open #hint-text {
        display: block;
        padding: 14px;
        font-size: 0.78rem;
        border-top: 2px solid #e9ecef;
        background: white;
    }
    .hint-container.open .hint-link .arrow {
        transform: rotate(270deg);
    }
    /* On mobile, hide the streak label and show strategy link */
    #current-streak-display {
        display: none;
    }
    .strategy-link {
        display: inline;
    }
    .question-meta .meta-item {
        padding: 25.75px 12px 16px 0;
        font-size: 0.78rem;
        height: 63px;
        font-family: 'Press Start 2P', monospace;
    }
    .source-btn {
        font-size: 0.78rem;
        height: 63px;
    }
    .confidence-wrapper {
        padding-left: 0;
    }
    #confidence-button {
        width: 70px;
    }
    .comments-section {
        position: fixed;
        left: 0;
        bottom: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
}

/* Animation for new guesses
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guess-row {
    animation: slideIn 0.3s ease-out;
}
    */

/* Shake animation for wrong guesses */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}
