/* Tokens page — 07 / bbg2 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;600&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, #141418 0%, #1e1a24 45%, #121015 100%);
    color: #e8e6ec;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.tok-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    background: rgba(0, 0, 0, 0.35);
}

.tok-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #ffd700, #ffb347, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tok-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    color: #a7f3d0;
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.tok-balance strong { color: #4ade80; }

.tok-coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    background: radial-gradient(circle at 30% 30%, #fff0a8 0%, #ffd84a 35%, #f2b11c 70%, #c57f00 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.tok-coin-icon::after {
    content: 'T';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    color: #5c3a00;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

.tok-nav {
    display: flex;
    gap: 10px;
}

.tok-nav-btn {
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.tok-nav-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.45);
}

.tok-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 20px 40px;
}

.tok-games-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 14px;
}

.tok-grid-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin: 0;
    background: linear-gradient(90deg, #ffd700, #ffb347, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tok-games-intro {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.55rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    background: linear-gradient(90deg, #ffd700, #ffb347, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tok-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tok-games-grid > * {
    min-width: 0;
}

.tok-game-slot--hidden,
.tok-game-slot[hidden] {
    display: none !important;
}

.tok-game-slot {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    cursor: default;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

a.tok-game-slot {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.tok-game-slot--active {
    cursor: pointer;
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

.tok-game-slot--active:hover {
    transform: scale(1.03);
    border-color: #ffd700;
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.25);
}

.tok-game-slot--img {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    display: block;
    border-radius: 14px;
}

/* PNGs with solid black fill: blend out black on dark page */
.tok-games-grid > :nth-child(1) .tok-game-btn-img,
.tok-games-grid > :nth-child(4) .tok-game-btn-img {
    mix-blend-mode: screen;
}

.tok-games-grid > :nth-child(n+7).tok-game-slot--img {
    opacity: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.tok-games-grid > :nth-child(n+7) .tok-game-btn-img {
    mix-blend-mode: lighten;
    opacity: 1;
}

.tok-particle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}

.tok-neon-particle {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: tok-particle-fly var(--tok-p-dur, 1.6s) ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
    background: transparent;
    pointer-events: none;
}

@keyframes tok-particle-fly {
    0% {
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    18% {
        opacity: 0.9;
    }
    70% {
        opacity: 0.55;
    }
    100% {
        transform: translate(calc(-50% + var(--tok-p-dx)), calc(-50% + var(--tok-p-dy)));
        opacity: 0;
    }
}

.tok-game-slot--img.tok-game-slot--active {
    border: none;
    box-shadow: none;
}

.tok-game-slot--img.tok-game-slot--active:hover {
    transform: none;
    border: none;
    box-shadow: none;
}

.tok-game-slot--img.tok-game-slot--active:hover .tok-game-btn-img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.tok-game-btn-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .tok-neon-particle {
        animation: none;
        display: none;
    }
}

.tok-game-slot--soon:not(.tok-game-slot--img) {
    opacity: 0.45;
}

.tok-game-slot--img.tok-game-slot--soon {
    opacity: 1;
    cursor: default;
    pointer-events: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.tok-game-slot--img.tok-game-slot--soon .tok-game-btn-img {
    filter: none;
}

.tok-slot-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #6b7280;
}

.tok-game-slot--active .tok-slot-num { color: #ffd700; }

.tok-slot-name {
    font-size: calc(0.95rem + 3px);
    color: #d1d5db;
    margin-top: 6px;
}

.tok-slot-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-top: 8px;
    letter-spacing: 0.1em;
}

.tok-game-slot--active .tok-slot-badge { color: #22c55e; }

.tok-panel {
    display: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.45);
    padding: 22px;
    margin-top: 8px;
}

.tok-panel.is-open { display: block; }

.tok-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.06em;
    color: #ffd700;
    margin: 0 0 16px;
}

.tok-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tok-row label { color: #9ca3af; }

.tok-select {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1a1a1f;
    color: #fff;
}

.tok-meta {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.tok-meta strong { color: #e5e7eb; }

.tok-statement {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffd700;
    padding: 18px 22px;
    margin: 16px 0;
    line-height: 1.6;
    color: #f3f4f6;
    font-size: 1.45rem;
}

.tok-question {
    margin: 18px 0 14px;
    color: #d1d5db;
    font-size: 1.35rem;
}

.tok-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tok-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    padding: 12px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.tok-btn:active { transform: scale(0.98); }

.tok-btn-yes {
    background: linear-gradient(180deg, #22c55e, #15803d);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.tok-btn-no {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.tok-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tok-feedback {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    display: none;
}

.tok-feedback.show { display: block; }

.tok-feedback.ok {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

.tok-feedback.bad {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.tok-warn {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fcd34d;
    padding: 16px;
    border-radius: 12px;
    line-height: 1.5;
}

.tok-warn a { color: #fde68a; }

.tok-hidden { display: none !important; }

/* Modal — no more questions */
.tok-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tok-modal.tok-hidden { display: none !important; }

.tok-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.tok-modal-box {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: #1a1a22;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.tok-modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 22px;
    line-height: 1.4;
}

.tok-modal-ok {
    min-width: 120px;
}
