html {
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #f7f2ff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(119, 49, 255, 0.36), transparent 34rem),
        radial-gradient(circle at 18% 22%, rgba(35, 111, 255, 0.26), transparent 26rem),
        linear-gradient(180deg, #090018 0%, #080014 52%, #03000b 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(122, 62, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 62, 255, 0.13) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

a {
    color: inherit;
}

.navbar,
footer {
    display: none;
}

.container {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(0.7rem, 2vw, 1.4rem);
}

.main-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.game-panel {
    width: min(100%, 1120px);
    border: 1px solid rgba(126, 70, 255, 0.72);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(23, 10, 57, 0.88), rgba(6, 4, 28, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(149, 59, 255, 0.26), transparent 34rem);
    box-shadow:
        0 0 0 1px rgba(37, 175, 255, 0.16) inset,
        0 24px 72px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(109, 44, 255, 0.25);
}

.screen-title,
.game-logo,
.answer-title {
    margin: 0;
    color: #fff8ff;
    font-family: "Luckiest Guy", Impact, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow:
        0 4px 0 #40167d,
        0 0 22px rgba(180, 91, 255, 0.65),
        0 0 42px rgba(255, 255, 255, 0.22);
}

.big-button,
.outline-button,
.control-button,
.score-button {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.big-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 0.75rem 1.7rem;
    color: #190905;
    background: linear-gradient(180deg, #ffd65a, #d88d14);
    border-color: #ffe588;
    box-shadow: 0 0 20px rgba(255, 181, 36, 0.42), 0 7px 0 rgba(70, 28, 0, 0.55);
}

.big-button:hover,
.outline-button:hover,
.control-button:hover,
.score-button:hover {
    transform: translateY(-2px);
}

.outline-button,
.control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    color: #f7eaff;
    background: rgba(30, 9, 70, 0.84);
    border-color: rgba(168, 77, 255, 0.72);
    box-shadow: 0 0 18px rgba(121, 49, 255, 0.22) inset;
}

.home-stage {
    position: relative;
    min-height: min(82vh, 620px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(1rem, 3vw, 2rem);
}

.stage-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 72%, rgba(127, 31, 255, 0.3)),
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(114, 52, 255, 0.2) 29px 30px),
        repeating-linear-gradient(90deg, transparent 0 36px, rgba(114, 52, 255, 0.18) 37px 38px);
    perspective: 900px;
}

.stage-lights {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 132, 255, 0.85) 0 3px, transparent 4px),
        radial-gradient(circle at 39% 17%, rgba(166, 87, 255, 0.95) 0 4px, transparent 5px),
        radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.86) 0 3px, transparent 4px),
        radial-gradient(circle at 80% 24%, rgba(188, 91, 255, 0.85) 0 3px, transparent 4px),
        linear-gradient(110deg, transparent 25%, rgba(167, 79, 255, 0.18), transparent 52%),
        linear-gradient(250deg, transparent 30%, rgba(51, 149, 255, 0.15), transparent 60%);
}

.stage-platform {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 27%;
    height: 92px;
    border-radius: 50%;
    border: 2px solid rgba(178, 82, 255, 0.9);
    background: radial-gradient(ellipse at center, rgba(147, 58, 255, 0.42), rgba(22, 6, 56, 0.2) 62%, transparent 70%);
    box-shadow: 0 0 28px rgba(173, 63, 255, 0.72), 0 22px 34px rgba(0, 0, 0, 0.58);
}

.home-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1.2rem;
}

.game-logo {
    font-size: clamp(4.5rem, 14vw, 9.5rem);
    line-height: 0.9;
}

.game-logo.compact {
    font-size: clamp(3rem, 9vw, 5.8rem);
}

.settings-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-indent: 200%;
    border-radius: 50%;
    border: 1px solid rgba(202, 159, 255, 0.74);
    background: rgba(8, 4, 26, 0.65);
}

.settings-button::before {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 3px solid #d6c5ff;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(214, 197, 255, 0.12);
}

.home-footer-actions {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 1.5rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    color: #cbb9eb;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.setup-panel,
.question-panel,
.answer-panel,
.winner-panel {
    padding: clamp(1rem, 2.4vw, 1.8rem);
}

.setup-panel {
    width: min(100%, 760px);
}

.screen-title {
    margin-bottom: 1.1rem;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
}

.setup-form {
    display: grid;
    gap: 1rem;
}

.form-section {
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(117, 69, 220, 0.54);
    border-radius: 10px;
    background: rgba(9, 5, 32, 0.58);
}

.form-section legend {
    width: auto;
    float: none;
    margin: 0 auto 0.45rem;
    padding: 0 0.7rem;
    color: #cbb7ff;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.setup-field {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.setup-field:last-child {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    color: #fff;
    background: rgba(8, 3, 30, 0.82);
    border: 1px solid rgba(134, 77, 230, 0.68);
    border-radius: 7px;
    outline: none;
}

.form-control:focus {
    border-color: #d79bff;
    box-shadow: 0 0 0 3px rgba(174, 80, 255, 0.18);
}

.section-hint {
    margin: -0.5rem 0 0.8rem;
    color: #8e7dae;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.d-none {
    display: none;
}

.category-card {
    position: relative;
    min-height: 118px;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    gap: 0.3rem;
    padding: 0.55rem;
    border: 1px solid rgba(98, 159, 255, 0.66);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(145deg, rgba(5, 36, 99, 0.84), rgba(5, 7, 32, 0.92));
    box-shadow: 0 0 18px rgba(24, 112, 255, 0.16) inset;
    cursor: pointer;
}

.category-choice:nth-child(2n) .category-card {
    border-color: rgba(173, 73, 255, 0.68);
    background: linear-gradient(145deg, rgba(80, 14, 128, 0.86), rgba(10, 4, 37, 0.94));
}

.category-choice:nth-child(3n) .category-card {
    border-color: rgba(57, 220, 127, 0.62);
    background: linear-gradient(145deg, rgba(12, 94, 53, 0.8), rgba(4, 26, 25, 0.94));
}

.category-choice:nth-child(4n) .category-card {
    border-color: rgba(245, 150, 39, 0.68);
    background: linear-gradient(145deg, rgba(131, 66, 12, 0.88), rgba(35, 13, 4, 0.94));
}

.category-img {
    width: min(78px, 60%);
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(115, 211, 255, 0.45));
}

.category-label {
    width: 100%;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.category-check {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
}

.category-check::before {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.22rem;
    width: 0.38rem;
    height: 0.68rem;
    border: solid #1a0b2f;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:checked + .category-card {
    border-color: #ffd763;
    box-shadow: 0 0 0 1px rgba(255, 215, 99, 0.74) inset, 0 0 24px rgba(255, 184, 52, 0.42);
}

input[type="checkbox"]:checked + .category-card .category-check {
    opacity: 1;
}

.form-actions {
    display: flex;
    justify-content: center;
}

.board-panel {
    padding: clamp(0.8rem, 2vw, 1.3rem);
}

.game-scorebar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: clamp(0.8rem, 4vw, 4rem);
    align-items: center;
    margin-bottom: 1rem;
}

.score-card {
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(28, 123, 255, 0.78);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(12, 69, 161, 0.9), rgba(2, 20, 64, 0.94));
    box-shadow: 0 0 22px rgba(14, 104, 255, 0.24) inset;
}

.score-card.team-two {
    border-color: rgba(176, 57, 255, 0.72);
    background: linear-gradient(180deg, rgba(86, 12, 137, 0.94), rgba(33, 4, 68, 0.94));
}

.score-card.leading {
    border-color: #ffd763;
    box-shadow: 0 0 20px rgba(255, 199, 73, 0.38);
}

.score-card span {
    max-width: 100%;
    color: #d9dcff;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.score-card strong {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.turn-pill {
    min-width: 190px;
    padding: 0.75rem 1rem;
    color: #ffd763;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 2px solid rgba(255, 207, 48, 0.78);
    border-radius: 8px;
    background: rgba(16, 7, 39, 0.88);
    box-shadow: 0 0 18px rgba(255, 189, 34, 0.24);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(92px, 1fr));
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.board-category,
.board-cell {
    min-width: 92px;
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

.board-category {
    min-height: 48px;
    padding: 0.45rem;
    color: #fff;
    font-size: clamp(0.68rem, 1.1vw, 0.9rem);
    background: linear-gradient(180deg, #094ac7, #061f77);
}

.board-category:nth-child(6n + 2) {
    background: linear-gradient(180deg, #7c1dd4, #3a0c78);
}

.board-category:nth-child(6n + 3) {
    background: linear-gradient(180deg, #179650, #07462e);
}

.board-category:nth-child(6n + 4) {
    background: linear-gradient(180deg, #0d779d, #09364d);
}

.board-category:nth-child(6n + 5) {
    background: linear-gradient(180deg, #a25216, #4f1c06);
}

.board-category:nth-child(6n + 6) {
    background: linear-gradient(180deg, #ac7718, #523407);
}

.board-cell {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(8, 41, 103, 0.9), rgba(3, 14, 54, 0.96));
    border: 1px solid rgba(43, 127, 255, 0.44);
}

.board-cell:nth-child(6n + 2) {
    background: linear-gradient(180deg, rgba(57, 15, 104, 0.94), rgba(18, 6, 49, 0.98));
    border-color: rgba(156, 73, 255, 0.38);
}

.board-cell:nth-child(6n + 3) {
    background: linear-gradient(180deg, rgba(8, 80, 48, 0.9), rgba(4, 35, 32, 0.98));
    border-color: rgba(50, 207, 116, 0.36);
}

.board-cell:nth-child(6n + 4) {
    background: linear-gradient(180deg, rgba(7, 61, 86, 0.94), rgba(4, 25, 43, 0.98));
    border-color: rgba(41, 180, 220, 0.34);
}

.board-cell:nth-child(6n + 5),
.board-cell:nth-child(6n) {
    background: linear-gradient(180deg, rgba(88, 44, 8, 0.94), rgba(35, 12, 4, 0.98));
    border-color: rgba(232, 138, 38, 0.36);
}

.board-cell a,
.answered-cell {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #f8f4ff;
    text-decoration: none;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.answered-cell {
    color: rgba(223, 214, 238, 0.5);
}

.board-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 216, 91, 0.42);
}

.board-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.board-actions form {
    margin: 0;
}

.question-panel {
    width: min(100%, 900px);
}

.question-header {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.question-meta {
    min-height: 68px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 0.4rem;
    border: 1px solid rgba(43, 127, 255, 0.58);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(8, 50, 126, 0.88), rgba(4, 16, 54, 0.96));
}

.question-meta span {
    color: #70d2ff;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.question-meta strong {
    color: #fff;
    font-size: 1.35rem;
}

.timer-ring {
    width: 72px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #fffce8;
    font-size: 1.35rem;
    font-weight: 900;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #1a0d36 53%, transparent 54%),
        conic-gradient(#ffd65a, #b56dff 60%, rgba(255, 255, 255, 0.12) 0);
    box-shadow: 0 0 22px rgba(255, 211, 88, 0.45);
}

.question-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(116, 58, 223, 0.64);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(48, 10, 124, 0.84), rgba(17, 5, 55, 0.94));
}

.question-card h1 {
    max-width: 760px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.18;
}

.media-frame,
.answer-media-frame {
    width: min(100%, 680px);
    min-height: 220px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(125, 74, 255, 0.72);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(91, 47, 180, 0.35), transparent 52%),
        rgba(10, 4, 38, 0.76);
}

.empty-media {
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.question-media,
.answer-media {
    width: 100%;
    max-height: 48vh;
    object-fit: contain;
}

.question-media-control {
    width: min(92%, 520px);
}

.question-actions {
    display: flex;
    justify-content: center;
    margin: 0;
}

.answer-panel,
.winner-panel {
    width: min(100%, 760px);
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 34%, rgba(116, 43, 255, 0.34), transparent 26rem),
        linear-gradient(180deg, rgba(15, 7, 47, 0.94), rgba(5, 3, 20, 0.98));
}

.answer-status {
    color: #65ff7e;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(80, 255, 112, 0.52);
}

.answer-title {
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
}

.answer-media-frame {
    min-height: 260px;
    border-color: rgba(255, 211, 103, 0.8);
    box-shadow: 0 0 28px rgba(255, 186, 51, 0.28);
}

.answer-placeholder {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 2rem;
    color: #fff;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
}

.answer-actions {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.score-button {
    min-height: 78px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 0.7rem;
    color: #fff;
    background: linear-gradient(180deg, #0b62d7, #043076);
    border-color: rgba(66, 153, 255, 0.82);
}

.score-button span {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.score-button.team-two {
    background: linear-gradient(180deg, #7c20d1, #3a0b75);
    border-color: rgba(183, 86, 255, 0.82);
}

.score-button.no-score {
    color: #1b0b03;
    background: linear-gradient(180deg, #ffd35b, #c98314);
    border-color: #ffe19a;
}

.award-note {
    margin: 0;
    color: #7c76ff;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.winner-name {
    color: #ffd763;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(255, 209, 80, 0.48);
}

.final-scores {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-panel {
    width: min(100%, 1180px);
    padding: clamp(0.8rem, 2vw, 1.3rem);
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-page-header .screen-title {
    margin-bottom: 0.25rem;
    text-align: left;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.admin-summary {
    margin: 0;
    color: #cbb9eb;
    font-weight: 800;
    text-transform: uppercase;
}

.question-filter-bar {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(220px, 1.5fr) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(117, 69, 220, 0.54);
    border-radius: 10px;
    background: rgba(9, 5, 32, 0.58);
}

.question-filter-bar label {
    display: grid;
    gap: 0.35rem;
    color: #d6c5ff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-actions .big-button,
.filter-actions .control-button {
    min-width: 0;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    box-shadow: none;
}

.questions-table-wrap {
    max-height: calc(100vh - 280px);
    min-height: 320px;
    overflow: auto;
    border: 1px solid rgba(94, 61, 181, 0.62);
    border-radius: 10px;
    background: rgba(5, 3, 22, 0.62);
}

.questions-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.questions-table th,
.questions-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(117, 69, 220, 0.28);
    vertical-align: top;
}

.questions-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #d9dcff;
    background: #10082e;
    font-size: 0.75rem;
    text-align: left;
    text-transform: uppercase;
}

.questions-table tbody tr:nth-child(2n) {
    background: rgba(255, 255, 255, 0.035);
}

.question-id,
.question-value {
    color: #ffd763;
    font-weight: 900;
    white-space: nowrap;
}

.question-copy {
    min-width: 280px;
    max-width: 420px;
    line-height: 1.35;
}

.question-answer {
    min-width: 130px;
    color: #65ff7e;
    font-weight: 800;
}

.media-preview-link {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(126, 70, 255, 0.72);
    border-radius: 7px;
    background: rgba(8, 3, 30, 0.82);
}

.media-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.missing-media {
    color: #8e7dae;
    font-weight: 800;
}

.compact-control {
    min-height: 34px;
    padding: 0.42rem 0.65rem;
    font-size: 0.76rem;
}

.empty-admin-state {
    padding: 2rem;
    color: #cbb9eb;
    text-align: center;
    font-weight: 800;
    border: 1px solid rgba(117, 69, 220, 0.54);
    border-radius: 10px;
    background: rgba(9, 5, 32, 0.58);
}

.flip-in {
    animation: flipIn 320ms ease-out both;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .container {
        padding: 0.6rem;
    }

    .home-stage {
        min-height: 88vh;
    }

    .stage-platform {
        left: 5%;
        right: 5%;
        bottom: 31%;
    }

    .home-footer-actions {
        left: 1rem;
        right: 1rem;
    }

    .category-container,
    .answer-actions,
    .final-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-scorebar,
    .question-header {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .turn-pill,
    .timer-ring {
        justify-self: center;
    }

    .board-grid {
        grid-template-columns: repeat(var(--columns), minmax(82px, 1fr));
        gap: 0.42rem;
    }

    .board-category,
    .board-cell {
        min-width: 82px;
        min-height: 52px;
    }

    .setup-field {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .admin-page-header,
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .question-filter-bar {
        grid-template-columns: 1fr;
    }

    .questions-table-wrap {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .category-container,
    .answer-actions,
    .final-scores {
        grid-template-columns: 1fr;
    }

    .game-logo {
        font-size: clamp(3.5rem, 22vw, 5.5rem);
    }
}
