.page-minigames {
    --game-gold: #e0bd70;
    --game-red: #d74657;
    --game-cyan: #69bfd7;
    --game-green: #7dc79e;
}

.page-minigames .page-hero .container::before {
    content: "SHINOBI LEGACY // PRÓBATÉR";
}

.minigame-hero .container {
    padding-right: min(8vw, 120px);
}

.minigame-hero h1 {
    max-width: 760px;
}

.minigame-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.minigame-hero-tags span {
    padding: 8px 11px;
    border: 1px solid rgba(216, 184, 115, 0.25);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(5, 11, 23, 0.58);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.minigame-section {
    position: relative;
    overflow: hidden;
}

.minigame-section::before {
    content: "忍";
    position: absolute;
    top: 280px;
    right: -30px;
    color: rgba(216, 184, 115, 0.025);
    font: 34rem/1 Georgia, serif;
    pointer-events: none;
}

.trial-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 48px;
    align-items: end;
    margin-bottom: 34px;
}

.trial-heading h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.trial-heading > p {
    margin: 0 0 6px;
    line-height: 1.75;
}

.trial-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.trial-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 15px;
    min-height: 156px;
    padding: 22px 23px 19px;
    overflow: hidden;
    border: 1px solid rgba(216, 184, 115, 0.15);
    border-radius: 2px;
    color: var(--hud-text);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 54%),
        rgba(9, 18, 32, 0.86);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.trial-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--game-gold), transparent);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.trial-card:hover,
.trial-card.is-active {
    border-color: rgba(224, 189, 112, 0.48);
    background:
        linear-gradient(135deg, rgba(224, 189, 112, 0.09), transparent 56%),
        rgba(12, 23, 40, 0.95);
    transform: translateY(-2px);
}

.trial-card.is-active::after {
    transform: scaleX(1);
}

.trial-card-number {
    grid-row: 1 / span 3;
    color: var(--game-gold);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.trial-card-symbol {
    position: absolute;
    z-index: -1;
    right: 14px;
    top: -16px;
    color: rgba(255, 255, 255, 0.055);
    font: 7.6rem/1 Georgia, serif;
    transition: color 180ms ease, transform 180ms ease;
}

.trial-card:hover .trial-card-symbol,
.trial-card.is-active .trial-card-symbol {
    color: rgba(224, 189, 112, 0.1);
    transform: rotate(-4deg) scale(1.04);
}

.trial-card strong {
    align-self: end;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.trial-card small {
    color: var(--hud-muted);
    font-size: 0.72rem;
}

.trial-card-record {
    align-self: end;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trial-card-record b {
    color: var(--game-gold);
}

.game-console {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-color: rgba(216, 184, 115, 0.22);
    border-radius: 2px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(145deg, rgba(16, 30, 51, 0.96), rgba(5, 11, 22, 0.98));
    background-size: 36px 36px, 36px 36px, auto;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.game-console::before,
.game-console::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 90px;
    height: 90px;
    border-color: rgba(224, 189, 112, 0.28);
    pointer-events: none;
}

.game-console::before {
    top: 13px;
    left: 13px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.game-console::after {
    right: 13px;
    bottom: 13px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.game-console-topline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(216, 184, 115, 0.15);
    color: rgba(255, 255, 255, 0.36);
    background: rgba(3, 8, 17, 0.54);
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.console-online {
    color: rgba(125, 199, 158, 0.75);
}

.console-online i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--game-green);
    box-shadow: 0 0 10px rgba(125, 199, 158, 0.8);
}

.game-panel {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.game-panel[hidden] {
    display: none;
}

.game-panel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: start;
    padding-bottom: 27px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-kicker {
    color: var(--game-gold);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.game-panel-header h2 {
    margin: 5px 0 7px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.game-panel-header p {
    max-width: 660px;
    margin: 0;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    border: 1px solid rgba(216, 184, 115, 0.14);
    background: rgba(2, 7, 15, 0.46);
}

.game-stats span {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid rgba(216, 184, 115, 0.12);
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-stats span:last-child {
    border-right: 0;
}

.game-stats strong {
    color: var(--hud-text);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.seal-stage {
    display: grid;
    gap: 26px;
    padding: 30px 0;
}

.seal-sequence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 106px;
    padding: 14px;
    border: 1px solid rgba(105, 191, 215, 0.13);
    background: rgba(3, 9, 19, 0.52);
}

.sequence-placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.seal-token {
    display: grid;
    place-items: center;
    width: clamp(54px, 7vw, 74px);
    aspect-ratio: 1;
    border: 1px solid rgba(224, 189, 112, 0.3);
    color: #fff7e5;
    background:
        radial-gradient(circle, rgba(224, 189, 112, 0.14), transparent 62%),
        rgba(12, 24, 42, 0.9);
    box-shadow: inset 0 0 22px rgba(224, 189, 112, 0.04);
    font: clamp(1.45rem, 3vw, 2rem)/1 Georgia, serif;
    animation: seal-reveal 260ms ease both;
}

.seal-token.is-concealed {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.26);
    background: rgba(3, 9, 19, 0.78);
}

.seal-pad {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.seal-pad button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 112px;
    padding: 13px 8px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(8, 18, 32, 0.82);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.seal-pad button:hover:not(:disabled) {
    border-color: rgba(224, 189, 112, 0.46);
    color: #fff;
    background: rgba(224, 189, 112, 0.09);
    transform: translateY(-2px);
}

.seal-pad button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.seal-pad button.is-correct {
    border-color: var(--game-green);
    background: rgba(125, 199, 158, 0.16);
}

.seal-pad button.is-wrong {
    border-color: var(--game-red);
    background: rgba(215, 70, 87, 0.17);
    animation: game-shake 220ms ease;
}

.seal-pad b {
    color: var(--game-gold);
    font: 1.8rem/1 Georgia, serif;
}

.seal-pad span {
    font-size: 0.67rem;
    font-weight: 800;
}

.seal-pad kbd,
.chakra-action kbd {
    position: absolute;
    top: 6px;
    right: 7px;
    border: 0;
    color: rgba(255, 255, 255, 0.25);
    background: transparent;
    font: 0.58rem/1 inherit;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    min-height: 58px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-status {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

.game-start {
    flex: 0 0 auto;
    min-width: 170px;
}

.reflex-arena {
    position: relative;
    min-height: 340px;
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid rgba(105, 191, 215, 0.18);
    background:
        radial-gradient(circle at center, rgba(105, 191, 215, 0.08), transparent 32%),
        linear-gradient(rgba(105, 191, 215, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 191, 215, 0.04) 1px, transparent 1px),
        rgba(2, 8, 17, 0.72);
    background-size: auto, 28px 28px, 28px 28px, auto;
    cursor: crosshair;
}

.arena-ring,
.arena-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(105, 191, 215, 0.14);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.arena-ring-one {
    width: 250px;
    height: 250px;
}

.arena-ring-two {
    width: 160px;
    height: 160px;
}

.arena-crosshair {
    width: 14px;
    height: 14px;
    border-color: rgba(224, 189, 112, 0.35);
}

.arena-crosshair::before,
.arena-crosshair::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(224, 189, 112, 0.28);
    transform: translate(-50%, -50%);
}

.arena-crosshair::before {
    width: 46px;
    height: 1px;
}

.arena-crosshair::after {
    width: 1px;
    height: 46px;
}

.arena-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(80%, 420px);
    margin: 0;
    text-align: center;
    transform: translate(-50%, -50%);
}

.reflex-arena.is-running .arena-instruction {
    opacity: 0;
}

.reflex-arena.is-miss {
    box-shadow: inset 0 0 60px rgba(215, 70, 87, 0.12);
}

.shuriken-target {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #07101c;
    background: radial-gradient(circle, #fff 0 8%, var(--game-gold) 9% 22%, #d8e5e9 23% 34%, transparent 35%);
    filter: drop-shadow(0 0 14px rgba(105, 191, 215, 0.45));
    cursor: crosshair;
    animation: shuriken-spin 2.2s linear infinite;
}

.shuriken-target::before {
    content: "";
    position: absolute;
    inset: 9px;
    background: conic-gradient(from 45deg, #d6e1e4 0 11%, transparent 12% 25%, #d6e1e4 26% 36%, transparent 37% 50%, #d6e1e4 51% 61%, transparent 62% 75%, #d6e1e4 76% 86%, transparent 87%);
    clip-path: polygon(50% 0, 63% 34%, 100% 50%, 66% 63%, 50% 100%, 37% 66%, 0 50%, 34% 37%);
}

.shuriken-target span {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
}

.chakra-stage {
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 34px 0 30px;
}

.chakra-emblem {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(105, 191, 215, 0.22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 191, 215, 0.18), rgba(105, 191, 215, 0.025) 58%, transparent 59%);
    box-shadow: 0 0 42px rgba(105, 191, 215, 0.08);
}

.chakra-emblem span {
    color: rgba(255, 255, 255, 0.82);
    font: 2.6rem/1 Georgia, serif;
    text-shadow: 0 0 24px rgba(105, 191, 215, 0.55);
}

.chakra-meter {
    position: relative;
    width: min(100%, 840px);
    height: 54px;
    border: 1px solid rgba(105, 191, 215, 0.2);
    background:
        linear-gradient(90deg, rgba(215, 70, 87, 0.12), transparent 28% 72%, rgba(215, 70, 87, 0.12)),
        rgba(2, 8, 17, 0.82);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.chakra-meter::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    left: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.chakra-zone {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: var(--zone-left, 42%);
    width: var(--zone-width, 16%);
    border: 1px solid rgba(224, 189, 112, 0.72);
    background: rgba(224, 189, 112, 0.14);
    box-shadow: 0 0 24px rgba(224, 189, 112, 0.2), inset 0 0 12px rgba(224, 189, 112, 0.12);
}

.chakra-marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--marker-x, 0%);
    width: 30px;
    height: 30px;
    border: 1px solid #c9f3ff;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 8%, #8dd9ec 10% 38%, #25758d 40% 64%, transparent 66%);
    box-shadow: 0 0 22px rgba(105, 191, 215, 0.72);
    transform: translate(-50%, -50%);
}

.chakra-marker i {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(105, 191, 215, 0.3);
    border-radius: 50%;
}

.chakra-scale {
    display: flex;
    justify-content: space-between;
    width: min(100%, 840px);
    margin-top: -17px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chakra-action {
    position: relative;
    min-width: 240px;
    padding: 15px 78px 15px 22px;
    border: 1px solid rgba(105, 191, 215, 0.34);
    color: #e9faff;
    background: linear-gradient(135deg, rgba(45, 130, 154, 0.38), rgba(8, 34, 48, 0.72));
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.chakra-action:hover:not(:disabled) {
    border-color: rgba(105, 191, 215, 0.7);
    box-shadow: 0 0 24px rgba(105, 191, 215, 0.14);
}

.chakra-action:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.chakra-action kbd {
    top: 50%;
    right: 13px;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.48);
    background: rgba(2, 8, 17, 0.38);
    transform: translateY(-50%);
}

.training-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 19px 22px;
    border: 1px solid rgba(216, 184, 115, 0.13);
    background: rgba(7, 15, 28, 0.72);
}

.training-note-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 184, 115, 0.24);
    border-radius: 50%;
    color: var(--game-gold);
    font-family: Georgia, serif;
}

.training-note strong {
    color: var(--hud-text);
}

.training-note p {
    margin: 3px 0 0;
    font-size: 0.76rem;
}

@keyframes seal-reveal {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.94);
    }
}

@keyframes game-shake {
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes shuriken-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .trial-heading,
    .game-panel-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trial-selector {
        grid-template-columns: 1fr;
    }

    .trial-card {
        min-height: 118px;
    }

    .seal-pad {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-stats {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .minigame-hero .container {
        padding-right: 16px;
    }

    .minigame-hero-tags {
        gap: 6px;
    }

    .minigame-hero-tags span {
        font-size: 0.58rem;
    }

    .trial-heading {
        margin-bottom: 24px;
    }

    .trial-heading > p {
        font-size: 0.86rem;
    }

    .trial-card {
        min-height: 108px;
        padding: 18px;
    }

    .game-console {
        min-height: 720px;
    }

    .game-console-topline {
        padding-inline: 14px;
        font-size: 0.52rem;
    }

    .game-panel {
        padding: 24px 15px 20px;
    }

    .game-panel-header {
        padding-bottom: 20px;
    }

    .game-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-stats span {
        min-width: 0;
        padding: 10px 7px;
        font-size: 0.49rem;
    }

    .game-stats strong {
        font-size: 0.86rem;
    }

    .seal-sequence {
        gap: 5px;
        min-height: 82px;
        padding: 9px;
    }

    .seal-token {
        width: clamp(35px, 11vw, 48px);
        font-size: 1.2rem;
    }

    .seal-pad {
        gap: 6px;
    }

    .seal-pad button {
        min-height: 88px;
    }

    .seal-pad b {
        font-size: 1.45rem;
    }

    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .game-start {
        width: 100%;
    }

    .reflex-arena {
        min-height: 390px;
    }

    .chakra-emblem {
        width: 88px;
        height: 88px;
    }

    .chakra-action {
        width: 100%;
        min-width: 0;
    }

    .training-note {
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seal-token,
    .shuriken-target,
    .seal-pad button.is-wrong {
        animation: none;
    }
}

/* Difficulty controls and image-based hand seals. */
.hero-xp b {
    color: var(--game-gold);
}

.difficulty-row {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.difficulty-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.difficulty-picker {
    display: flex;
    gap: 6px;
}

.difficulty-picker button {
    display: grid;
    gap: 2px;
    min-width: 96px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
    background: rgba(2, 8, 17, 0.5);
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.difficulty-picker button small {
    color: rgba(224, 189, 112, 0.56);
    font-size: 0.51rem;
}

.difficulty-picker button:hover:not(:disabled),
.difficulty-picker button.is-active {
    border-color: rgba(224, 189, 112, 0.56);
    color: #fff;
    background: rgba(224, 189, 112, 0.1);
}

.difficulty-picker button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.difficulty-row > p {
    max-width: 470px;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.6;
    text-align: right;
}

.seal-sequence {
    overflow-x: auto;
}

.seal-token {
    flex: 0 0 auto;
    overflow: hidden;
}

.seal-token img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.14));
}

.seal-token.is-concealed {
    font: clamp(1.4rem, 3vw, 2rem)/1 Georgia, serif;
}

.seal-pad {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.seal-pad button {
    min-height: 124px;
    overflow: hidden;
}

.seal-pad button img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    transition: transform 150ms ease;
}

.seal-pad button:hover:not(:disabled) img {
    transform: scale(1.08);
}

.seal-pad button:nth-child(n + 10) kbd {
    display: none;
}

.shuriken-target {
    width: var(--target-size, 64px);
    height: var(--target-size, 64px);
    border-radius: 0;
    color: transparent;
    background: transparent;
    filter: drop-shadow(0 0 11px rgba(105, 191, 215, 0.72));
}

.shuriken-target::before {
    display: none;
}

.shuriken-target img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chakra-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.chakra-action kbd {
    position: static;
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.58);
    background: rgba(2, 8, 17, 0.45);
    transform: none;
}

.leaderboard {
    margin-top: 30px;
    padding: 30px;
    border-radius: 2px;
}

.leaderboard-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: end;
    margin-bottom: 24px;
}

.leaderboard-heading h2 {
    margin: 5px 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.leaderboard-heading p {
    margin: 0;
}

.leaderboard-filters {
    display: flex;
    gap: 10px;
}

.leaderboard-filters label {
    min-width: 150px;
    margin: 0;
}

.leaderboard-filters select {
    padding-block: 11px;
}

.leaderboard-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(216, 184, 115, 0.14);
}

.leaderboard-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
}

.leaderboard-table th {
    color: rgba(255, 255, 255, 0.42);
    background: rgba(2, 8, 17, 0.55);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.leaderboard-table tbody tr:hover {
    background: rgba(224, 189, 112, 0.035);
}

.leaderboard-rank,
.leaderboard-score {
    color: var(--game-gold);
    font-weight: 900;
}

.leaderboard-player {
    display: flex;
    gap: 11px;
    align-items: center;
}

.leaderboard-player img {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(216, 184, 115, 0.22);
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-empty {
    padding: 28px !important;
    color: var(--hud-muted);
    text-align: center !important;
}

.leaderboard-login-note {
    margin: 16px 0 0;
    font-size: 0.76rem;
    text-align: center;
}

.leaderboard-login-note a {
    color: var(--game-gold);
}

@media (max-width: 980px) {
    .difficulty-row,
    .leaderboard-heading {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .difficulty-row > p {
        text-align: left;
    }

    .seal-pad {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .leaderboard-filters {
        width: 100%;
    }

    .leaderboard-filters label {
        flex: 1;
    }
}

@media (max-width: 680px) {
    .difficulty-picker {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .difficulty-picker button {
        min-width: 0;
        padding-inline: 7px;
    }

    .seal-pad {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seal-pad button {
        min-height: 103px;
        padding-inline: 4px;
    }

    .seal-pad button img {
        width: 62px;
        height: 62px;
    }

    .leaderboard {
        padding: 22px 14px;
    }

    .leaderboard-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
}
