body {
    font-family: 'Ubuntu', sans-serif;
    background-image: url('images/background.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-width: fit-content;
    width: 100vw;
    margin:auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.container {
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    position: relative;
    z-index: 2;
}
.guesses-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.guesses{
    margin:auto;
}
/* Grid Layout - Updated for proper alignment */
.grid-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    justify-content: center;
    /* max-width: 1320px; */
}
.header-row {
    display: grid;
    grid-template-columns: 
    180px  /* Pal */
    110px  /* Affinity 1 */
    110px  /* Affinity 2 */
    110px  /* Tier */
    110px  /* Stage */
    110px  /* Class 1 */
    110px  /* Class 2 */
    110px  /* Color(s) */
    200px; /* Habitat */
/* Total of 9 columns now */
    gap: 25px;
    width: 100%;
    margin: 5px auto;
    align-items: center;
}
.guess-row {
    display: grid;
    grid-template-columns: 
    180px  /* Pal */
    110px  /* Affinity 1 */
    110px  /* Affinity 2 */
    110px  /* Tier */
    110px  /* Stage */
    110px  /* Class 1 */
    110px  /* Class 2 */
    110px  /* Color(s) */
    200px; /* Habitat */
/* Total of 9 columns now */
    gap: 25px;
    width: 100%;
    margin: 5px auto;
    align-items: center;
}
.guess-row .cell {
    /* Keep the same font properties as header */
    font-weight: 400;
    /* But adjust the size */
    font-size: 20px; /* or whatever size fits well */
}
.header-row .cell {
    border-radius: 80px;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 22px;
    background-color: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.658);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1;
}
/* Cells */
.cell {
    padding: 8px;
    text-align: center;
    border-radius: 80px;
    color: rgb(0, 0, 0);
    overflow: hidden;
    font-size: 22px;
    border: 4px solid rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    will-change: transform;
    background-color: white;
    width: 100%; /* Let grid control width */
}

.cell * {
    opacity: 0;
    will-change: opacity;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell.animating * {
    opacity: 1;
    transition: opacity 0s 0.5s;
}

.cell.animating {
    animation: flipInCell 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.pal-cell {
    justify-content: flex-start;
}

.pal-cell img {
    transition: opacity 0s 0.5s;
}

.pal-icon {
    width: 60px;
    height: 50px;
    object-fit: cover;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0;
    position: relative;
    margin: 20px 0;
    z-index: 1001;
    border: 3px solid #00182e;
    border-radius: 25px;
    background: white;
    height: 45px;
    overflow: visible;
    align-items: stretch;
    width: 300px;
}

#pal-input {
    padding: 0 20px;
    width: 250px;
    border: none;
    font-size: 16px;
    background: transparent;
    height: 100%;
    outline: none;
    border-radius: 25px 0 0 25px;
}

#submit {
    padding: 0;
    background: #4AA7FF;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 23px 23px 0;
    margin-right: -1px;
}

#submit:hover {
    background: #3590e3;
}

/* Result Colors */
.correct {
    background-color: #60d664 !important;
}

.partial {
    background-color: #FFD93D !important;
}

.incorrect {
    background-color: #e93a3a !important;
}

/* Suggestions Dropdown */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: rgb(255, 255, 255);
    border: 4px solid #000000;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1002;
}

.suggestion {
    padding: 8px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion:hover {
    background: #f0f0f0;
}

.suggestion.selected {
    background-color: #4AA7FF;
    color: white;
}

/* Modal */
.modal {
    display: none;
    width: 300px;
    margin: 20px auto;
    background-color: #763bd3dc;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    color: white;
    font-family: monospace;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}
.pal-result {
    margin: 20px 0;
    padding: 20px;
    background-color: #320550;
    border-radius: 5px;
}

#pal-name {
    font-size: 20px;
    margin: 10px 0;
    color: white;
}

.tries {
    color: #ffd700;
    margin: 10px 0;
}

#countdown {
    font-size: 24px;
    color: #4ef2fd;
    margin: 10px 0;
}

/* Share section styling */
.share-section {
    margin: 20px auto;
    text-align: center;
    background-color: #320550;
    padding: 15px;
    border-radius: 8px;
    color: white;
    width: 90%;
    max-width: 300px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.share-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: opacity 0.2s;
}

.copy-button {
    background-color: #4a4a4a;
}

.twitter-button {
    background-color: #1DA1F2;
}
#victory-pal-icon {
    width: 178px;
    height: 178px;
    object-fit: contain;
    margin: 10px auto;
    display: block;
}

.modal-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Work Icons */
.work-icon {
    width: 24px;
    height: 24px;
    margin: 0 2px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8)) 
            brightness(1.2) 
            contrast(1.2);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 2px;
    flex-shrink: 0;
}

.work-icon:hover {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) 
            brightness(1.3) 
            contrast(1.3);
    background-color: rgba(0, 0, 0, 0.7);
}
/* Hints Styling */
.hints-box {
    background-color: rgb(152, 75, 253);
    border-radius: 200px;
    padding: 20px;
    margin: 0px auto;
    width: 80%;
    max-width: 400px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.hints-box.expanded {
    border-radius: 200px;
    min-height: 140px; /* Increased from 120px */
    padding: 25px 20px; /* Added vertical padding */
}

.hint-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    height: 40px;
}

.hint-item {
    position: relative;
    text-align: center;
}

.hint-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    color: white;
}

.hint-icon:hover {
    transform: scale(1.1);
}

.hint-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.hint-icon:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}

.hint-content {
    display: none;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 90%;
    margin: 80px auto 20px;
    transform: translateY(20px);
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}

.hint-content.show {
    display: block;
}

.hint-icon.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint-icon.active {
    color: #ffd700;
}

/* Header and Title */
header {
    text-align: center;
    position: relative;
    padding: 10px 0;
    margin-bottom: 40px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 48px;
    color: white;
    margin-top: -16px;
    margin-bottom: 5px;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Streak Styling */
.streak-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin: 20px auto;
}

.streak-icon img {
    position: absolute;
    width: 125%;
    height: 125%;
    object-fit: contain;
}

.streak-inactive {
    display: block;
}

.streak-active {
    display: none;
}

.streak-number {
    position: relative;
    z-index: 2;
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-top: 12px;
}

.streak-icon.active-streak .streak-inactive {
    display: none;
}

.streak-icon.active-streak .streak-active {
    display: block;
}

.streak-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.streak-icon:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}

/* Game Menu */
.game-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1004;
    min-width: 200px;
}
.game-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin: 4px 0;
}

.menu-item:hover {
    background-color: #4AA7FF;
    color: white;
}

/* Color Indicators */
.color-indicators {
    background-color: rgba(159, 159, 226, 0.678);
    border: 3px solid #000;
    border-radius: 10px;
    padding: 15px;
    margin: 10px auto;
    width: 300px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.indicator-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.indicator-title {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 20px;
}

.indicators-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.indicator-box {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-radius: 5px;
}

.indicator-label {
    font-family: monospace;
    font-size: 14px;
    color: #000;
}

.indicator-box.correct {
    background-color: #60d664;
}

.indicator-box.partial {
    background-color: #FFD93D;
}

.indicator-box.incorrect {
    background-color: #e93a3a;
}

.close-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    font-weight: bold;
}

.close-button:hover {
    color: #666;
}

/* Animations */
@keyframes flipInCell {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4AA7FF;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #3590e3;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4AA7FF rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-top: 20px;
    color: white;
    box-sizing: border-box;
}

.social-links {
    margin-bottom: 10px;
}

.social-link {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 0.8;
}
.cell {
    width: 100%;
    height: 45px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 80px;
    overflow: hidden; /* Prevent text overflow */
    font-size: 16px; /* Default font size */
}

/* Type-specific cell sizes */
.header-row .cell:nth-child(1), .guess-row .cell:nth-child(1) { /* Pal */
    width: 180px;
    min-width: 180px;
}

.header-row .cell:nth-child(2), .guess-row .cell:nth-child(2), /* Type 1 */
.header-row .cell:nth-child(3), .guess-row .cell:nth-child(3), /* Type 2 */
.header-row .cell:nth-child(4), .guess-row .cell:nth-child(4), /* Rideable */
.header-row .cell:nth-child(5), .guess-row .cell:nth-child(5), /* Habitat */
.header-row .cell:nth-child(6), .guess-row .cell:nth-child(6) { /* Color(s) */
    font-weight: 400;
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    width: 110px;
    min-width: 110px;
}
.guess-row .cell:nth-child(8) {
    height: 60px;
    line-height: 45px;
    padding: 0 8px;
    font-size: 19px !important; /* Force base size */
}

/* Text scaling */
.cell {
    font-size: clamp(10px, 16px, 16px); /* Min size, preferred size, max size */
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* For cells with multiple values (like colors) */
.cell[data-multiple="true"] {
    font-size: clamp(8px, 14px, 14px);
    line-height: 1.2;
    padding: 4px 8px;
}

/* Ensure content stays centered */
.cell > * {
    max-width: 100%;
    text-align: center;
}

/* Special handling for work icons */
.cell:last-child {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.work-icon {
    flex-shrink: 0;
}
.result-grid {
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 10px 0;
}

.yesterday-pal {
    color: white;
}

#yesterday-pal-name {
    color: #37f046; /* This is the same green as your correct answers */
    font-weight: bold;
}
.help-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.help-button:hover {
    opacity: 0.8;
}

.how-to-play-modal {
    display: none;
    position: absolute;
    z-index: 1002;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 295%; /* Increased from 90% */
    max-width: 1800px; /* Increased from 600px */
}

.how-to-play-content {
    background-color: #3e1a5f;
    margin: 0 auto;
    padding: 20px 30px; /* Added more horizontal padding */
    border: 2px solid #45d2fd;
    border-radius: 10px;
    color: white;
    font-family: monospace;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-how-to-play {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-how-to-play:hover {
    color: #fff;
}

.how-to-play-text {
    margin-top: 20px;
    text-align: left; /* Add this line */
    font-size: 16px; /* Base font size for all text */
}

.green-text { color: #60d664; }
.yellow-text { color: #FFD93D; } /* Changed from orange-text */
.red-text { color: #e93a3a; }

.how-to-play-text h3 {
    color: #ffd700;
    margin-top: 20px;
}

.how-to-play-text ul {
    list-style-type: none;
    padding-left: 20px;
}

.how-to-play-text li {
    margin: 10px 0;
}
.icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    position: relative;
    z-index: 2; /* Ensure icons are above other elements */
}

.help-button {
    position: relative;
    font-size: 24px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.streak-icon {
    margin: 0;
}
.help-button[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.help-button:hover[data-tooltip]:before {
    visibility: visible;
    opacity: 1;
}
.menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
}

.menu-container.show {
    display: block;
}
.next-mode-suggestion {
    margin-top: 15px;
    padding: 10px;
    font-size: 16px;
    color: white;
}

.next-mode-suggestion a {
    color: #4AA7FF;
    text-decoration: none;
    font-weight: bold;
}

.next-mode-suggestion a:hover {
    text-decoration: underline;
}
.info-modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.info-modal-content {
    background-color: #3e1a5f;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #45d2fd;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    color: white;
}

.info-modal-content h2 {
    color: #ffd700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-modal-content h2:first-child {
    margin-top: 0;
}

.info-modal-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.close-info {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-info:hover {
    color: white;
}

.copy-email {
    cursor: pointer;
    color: #4AA7FF;
    text-decoration: underline;
    display: inline-block;
}

.copy-email:hover {
    color: #3590e3;
}

.coffee-link {
    color: #4AA7FF;
    text-decoration: none;
}

.coffee-link:hover {
    text-decoration: underline;
    color: #3590e3;
}
.how-to-play-content h2 {
    text-align: center;
    margin: 0 0 20px 0;
    padding-right: 30px; /* This accounts for the X button */
    color: #ffd700;
}
.play-again-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.play-again-button:hover {
    background-color: #45a049;
}
.game-menu-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }
  
  .menu-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(116, 116, 223);
    border: 2px solid rgb(255, 255, 255); /* Add this line */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
  }
  
  .menu-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
  }
  
  .menu-button i {
    font-size: 24px;
    color: #ffffff;
  }
  .menu-button::before {
    content: attr(title);
    position: fixed; /* Change from absolute to fixed */
    bottom: auto; /* Remove bottom */
    top: calc(100% + 10px); /* Position below the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9999; /* Use a very high z-index */
}
  
  .menu-button:hover::before {
    opacity: 1;
    visibility: visible;
  }
  /* Add these CSS rules */
.cell[data-comparison]::after {
    content: "";
    display: inline-block;
    margin-left: 5px;
    font-weight: 900;
    color: #000; /* Pure black */
    font-family: Arial, sans-serif;
}

.cell[data-comparison="higher"]::after {
    content: "↑";
}

.cell[data-comparison="lower"]::after {
    content: "↓";
}
.cell[data-comparison] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell[data-comparison]::after {
    margin-left: 4px;
    font-size: 14px; /* Match cell font size */
}
.game-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    padding: 10px;
}
.cell {
    background: linear-gradient(45deg, 
        rgba(200,200,210,0.9) 0%, 
        rgb(116, 116, 223) 50%, 
        rgba(180,180,190,0.9) 100%
    );
    border: 2px solid rgba(100, 120, 102, 0.5);
    box-shadow: 
        0 8px 15px rgba(0,0,0,0.2),
        inset -5px -5px 10px rgba(255,255,255,0.3),
        inset 5px 5px 10px rgba(0,0,0,0.1);
    
    /* Ensure content remains in normal flow */
    position: relative;
    z-index: 0;
}

.cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at top left, 
        rgba(255,255,255,0.4) 0%, 
        transparent 50%
    );
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at bottom right, 
        rgba(0,0,0,0.2) 0%, 
        transparent 50%
    );
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.cell:hover {
    transform: scale(1.02);
    box-shadow: 
        0 12px 20px rgba(0,0,0,0.25),
        inset -7px -7px 15px rgba(255,255,255,0.4),
        inset 7px 7px 15px rgba(0,0,0,0.15);
}

/* Ensure comparison arrows stay with text */
.cell[data-comparison] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell[data-comparison]::after {
    margin-left: 4px;
    position: static;
    z-index: 2;
}

/* State-specific metallic effects */
.cell.correct {
    background: linear-gradient(45deg, 
        rgba(83, 236, 88, 0.9) 0%, 
        rgba(0, 173, 0, 0.9) 50%, 
        rgba(73, 223, 86, 0.9) 100%
    );
    border-color: rgba(74, 255, 93, 0.7);
}

.cell.partial {
    background: linear-gradient(45deg, 
        rgba(247, 204, 33, 0.9) 0%, 
        rgba(243, 170, 13, 0.9) 50%, 
        rgba(240,200,50,0.9) 100%
    );
    border-color: rgba(255, 216, 44, 0.925);
}

.cell.incorrect {
    background: linear-gradient(45deg, 
        rgb(233, 58, 58) 0%, 
        rgba(241, 36, 36, 0.9) 50%, 
        rgba(255, 12, 12, 0.9) 100%
    );
    border-color: rgba(238, 0, 0, 0.945);
}
.cell[data-comparison]::after {
    margin-left: 4px;
    position: static;
    z-index: 2;
    font-size: 18px; /* Increased from default */
    font-weight: 900; /* Extra bold */
    color: #ffffff; /* Pure black */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Slight shadow for depth */
}

.cell[data-comparison="higher"]::after {
    content: "▲"; /* More distinct triangle */
    color: #ffffff; /* Dark green for higher */
}

.cell[data-comparison="lower"]::after {
    content: "▼"; /* More distinct triangle */
    color: #ffffff; /* Dark red for lower */
}
