@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   play-shared.css — THE single stylesheet for all play/* pages.
   Load this instead of style.css. nav.css?v=1.26.5.29 still loads separately.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
    --gold:             #ffb007;
    --warning-yellow:             #ffb007;
    --gold-dim:         #e8920a;          
    --gold-glow:        rgba(255, 176, 7, 0.35);
    --dark:                #0a0a0a;
    --dark-card:           #141414;
    --dark-surface:        #1a1a1a;
    --dark-border:         #2a2a2a;
    --text-primary:        #f0f0f0;
    --text-secondary:      #a0a0a0;
    --text-white:          #ffffff;
    --primary-green:       #28a745;
    --radius:              16px;

    /* Per-page overrides — set all four in each page's <style> block */
    --primary:          var(--gold);
    --primary-hover:    var(--gold-dim);
    --btn-glow-color:   255, 195, 40;
    --accent:              var(--gold);
    --title-color:         var(--gold);
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: "Noto Sans", 'Segoe UI', sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── CTA button ─────────────────────────────────────────────── */
.cta-play-button {
    display: block;
    background-color: var(--primary);
    color: var(--text-white);
    text-shadow: rgba(0,0,0,.48) 1.5px 1.5px 2px;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: auto;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cta-play-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.03);
    color: var(--text-white);
}
.cta-play-button:active { transform: scale(.98); }

/* ── Button layered animation ───────────────────────────────── */
@keyframes breathing-glow {
    0%   { box-shadow: 0 0 10px 0px  rgba(var(--btn-glow-color), 0);   }
    50%  { box-shadow: 0 0 15px 5px  rgba(var(--btn-glow-color), 0.5); }
    100% { box-shadow: 0 0 10px 0px  rgba(var(--btn-glow-color), 0);   }
}
@keyframes expanding-pulse {
    0%   { box-shadow: 0 0 0 0px  rgba(var(--btn-glow-color), 0.9); opacity: 1; }
    100% { box-shadow: 0 0 0 15px rgba(var(--btn-glow-color), 0);   opacity: 0; }
}
@keyframes throb {
    0%   { transform: scale(1);    }
    40%  { transform: scale(1);    }
    50%  { transform: scale(.99);  }
    60%  { transform: scale(1.01); }
    70%  { transform: scale(1);    }
    100% { transform: scale(1);    }
}

.small-btn,
.cta-play-button {
    position: relative;
    z-index: 1;
    animation: breathing-glow 1.5s infinite .5s ease-in-out,
               throb          3s   infinite .1s ease-in-out;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.small-btn::before,
.cta-play-button::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    animation: expanding-pulse 1.5s infinite ease-out;
}
.small-btn:hover,
.cta-play-button:hover {
    box-shadow: 0 0 25px 8px rgba(var(--btn-glow-color), 1);
}
.small-btn:hover::before,
.cta-play-button:hover::before { opacity: 0; }

/* ── Rating system ──────────────────────────────────────────── */
.rating-section-container {
    margin-top: 14px;
    padding-top: 5px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}
.star-rating-display {
    color: var(--gold);
    font-size: 1.2em;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}
.star-rating-display .stars-empty,
.star-rating-display .stars-filled { display: flex; gap: 2px; }
.star-rating-display .stars-filled-container {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    overflow: hidden;
    color: var(--gold);
    transition: width .3s ease;
}
.star-rating-display .stars-filled { width: max-content; color: var(--gold); }
.star-rating-display .stars-empty  { color: var(--dark-border); }
#rating-info-text { font-size: .9em; color: var(--text-secondary); }
.star-rating-input {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.star-rating-input .stars { display: flex; gap: 3px; color: #4f4f4f; font-size: 1.3em; }
.star-rating-input .stars i        { cursor: pointer; transition: color .2s ease, transform .1s ease; }
.star-rating-input .stars .fas     { color: var(--gold); }
.star-rating-input .stars i.selected { color: var(--gold); transform: scale(1.1); }
.star-rating-input.disabled        { opacity: .6; pointer-events: none; }

/* ── Utility ────────────────────────────────────────────────── */
.avgWinUp {
    color: var(--primary-green);
    font-weight: bold;
    display: inline-block;
    transform: scale(1.1) translateY(-.1rem);
    -webkit-transform: scale(1.1) translateY(-.1rem);
}
.avgWinUpUp {
    color: var(--primary-green);
    font-weight: bold;
    display: inline-block;
    transform: rotate(200deg) scaleX(1) scale(1.3) translateY(-.1rem);
    -webkit-transform: rotate(200deg) scaleX(1) scale(1.3) translateY(-.1rem);
}

/* ── Page hero (about, how-to-play, game-themes) ────────────── */
.page-hero {
    position: relative;
    padding: calc(var(--navbar-height, 70px) + 48px) 24px 52px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 35%, rgba(255,176,7,.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 85% 75%, rgba(255,176,7,.04) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,176,7,.1);
    border: 1px solid rgba(255,176,7,.22);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: .8rem; font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: playFadeUp .7s ease both;
}
.page-hero__title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    max-width: 720px;
    margin: 0 auto 18px;
    animation: playFadeUp .7s ease .08s both;
}
.page-hero__title .accent { color: var(--title-color); }
.page-hero__sub {
    font-size: clamp(.95rem, 2.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
    animation: playFadeUp .7s ease .16s both;
}

/* ── Ticket hero (betty, graffiti, freemoney…) ──────────────── */
.ticket-hero {
    position: relative;
    padding: calc(var(--navbar-height, 70px) + 32px) 24px 0;
    max-width: 1100px;
    margin: 0 auto;
}
.ticket-hero__inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}
.ticket-hero__img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.55);
    border: 1px solid var(--dark-border);
}
.ticket-hero__info {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    text-align: center;
}
.ticket-hero__eyebrow {
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent);
    animation: playFadeUp .6s ease both;
}
.ticket-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800; line-height: 1.1;
    color: var(--title-color);
    margin-block: 6px;
    animation: playFadeUp .6s ease .06s both;
}
.ticket-hero__subtitle {
    font-size: 1rem; color: var(--text-secondary);
    margin-block: 0 20px;
    animation: playFadeUp .6s ease .12s both;
}
.ticket-hero__desc {
    font-size: .95rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 26px;
    animation: playFadeUp .6s ease .18s both;
}
.ticket-hero__desc b { color: var(--text-primary); }

/* ── Proof strip ────────────────────────────────────────────── */
.proof-strip {
    background: linear-gradient(to bottom, var(--dark-card), var(--dark));
    padding: 26px 24px;
    display: flex;
    justify-content: center; align-items: center;
    gap: clamp(20px, 5vw, 56px);
    flex-wrap: wrap;
    text-align: center;
}
.proof-stat__val {
    display: block; font-size: 1.5rem; font-weight: 800;
    color: var(--gold);
}
.proof-stat__label {
    display: block; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-secondary); margin-top: 3px;
}

/* ── Body content — ticket pages ────────────────────────────── */
.play-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 0;
}
.play-section { margin-bottom: 52px; }
.play-section__heading {
    font-size: 1.25rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
    display: flex; align-items: center; gap: 10px;
}
.play-section__heading i { color: var(--accent); font-size: 1rem; }
.play-section p,
.play-section li {
    font-size: .97rem; color: var(--text-secondary); line-height: 1.75;
}
.play-section b { color: var(--text-primary); }
.play-section ul {
    padding-left: 20px;
    display: flex; flex-direction: column; gap: 8px;
}

/* ── Details table ──────────────────────────────────────────── */
.play-details-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.play-details-table td { padding: 12px 16px; border-bottom: 1px solid var(--dark-border); }
.play-details-table tr:last-child td { border-bottom: none; }
.play-details-table td:first-child { color: var(--text-secondary); font-weight: 500; width: 40%; }
.play-details-table td:last-child  { color: var(--text-primary); font-weight: 700; }

/* ── Screenshots ────────────────────────────────────────────── */
.play-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.play-screenshots img {
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    width: 100%; object-fit: cover;
}

/* ── Body content — info pages ──────────────────────────────── */
.info-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 0;
}
.info-body p {
    font-size: .97rem; color: var(--text-secondary);
    line-height: 1.75; margin-bottom: 16px;
}
.info-body b { color: var(--text-primary); }
.info-body a:hover { text-decoration: underline; }
.info-section { margin-bottom: 44px; }
.info-section__heading {
    font-size: 1.2rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border);
}
.info-section ul {
    padding-left: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.info-section li { font-size: .97rem; color: var(--text-secondary); line-height: 1.7; }
.info-section li b { color: var(--text-primary); }

/* ── Step list (how-to-play) ────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; list-style: none; padding: 0; }
.step-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--dark-border);
}
.step-item:last-child { border-bottom: none; }
.step-item__num {
    flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,176,7,.1); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .88rem;
}
.step-item__text strong { display: block; font-size: .97rem; color: var(--text-primary); margin-bottom: 4px; }
.step-item__text span   { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

/* ── Games carousel ─────────────────────────────────────────── */
.games-carousel { padding: 0 0 48px 0; overflow: hidden; text-align: center; }
.games-carousel__heading {
    font-size: clamp(1.3rem, 3.5vw, 2rem); font-weight: 700;
    margin-bottom: 8px; padding: 0 24px;
}
.games-carousel__sub {
    color: var(--text-secondary); font-size: .93rem;
    margin-bottom: 26px; padding: 0 24px;
}
.games-carousel__track {
    display: flex; width: max-content;
    gap: 14px; padding: 8px 0;
    animation: carouselScroll 30s linear infinite;
}
.games-carousel__track:hover { animation-play-state: paused; }

.carousel-card {
    flex-shrink: 0; width: 160px;
    border-radius: 14px; overflow: hidden;
    background: var(--dark-surface); border: 1px solid var(--dark-border);
    transition: transform .3s, box-shadow .3s; cursor: pointer;
    position: relative;
}
.carousel-card:hover { transform: translateY(-6px); box-shadow: 0 10px 32px rgba(0,0,0,.45); }
.carousel-card__img { width: 100%; background: #222; }
.carousel-card__name {
    padding: 9px 11px; font-weight: 600; font-size: .78rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.carousel-card__badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--gold); color: #1a1a00;
    font-size: .62rem; font-weight: 700;
    padding: 3px 7px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: .04em;
}

/* ── Game themes grid — original card style ─────────────────── */
/* Uses .more-games-section / .more-games-grid / .game-card-link
   matching the original HTML structure exactly                   */
.more-games-section { margin-top: 40px; }
.more-games-section h2 {
    text-align: center;
    color: var(--text-white);
    font-size: 1.8em;
    margin-bottom: 25px;
}
.more-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.game-card-link {
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-white);
    text-shadow: #000 1px 1px 2px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}
.game-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.game-card-link img {
    width: 100%; height: auto;
    display: block;
    aspect-ratio: 600 / 330;
}
.game-card-link span {
    display: block;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 480px) {
    .more-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .game-card-link span { font-size: 1em; padding: 10px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.play-footer {
    padding: 14px 24px;
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 0;
    border-top: 1px solid var(--dark-border);
    font-size: .78rem; color: var(--text-secondary);
    text-align: center;
    opacity: 0;
    animation: overlayFadeIn 5s forwards;
}
.play-footer__links {
    display: flex; flex-wrap: wrap;
    justify-content: center;
    width: 100%; margin-bottom: 4px;
    text-decoration: underline;
}
.play-footer a {
    color: var(--text-secondary);
    margin: 0 8px; white-space: nowrap;
    transition: color .2s;
}
.play-footer a:hover { color: #fff; }
.play-footer__copy { width: 100%; text-align: center; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes playFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes carouselScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 700px) {
    .ticket-hero__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .page-hero { padding-bottom: 40px; }
    .play-body, .info-body { padding-top: 36px; padding-left: 18px; padding-right: 18px; }
    .ticket-hero { padding-left: 18px; padding-right: 18px; }
    .more-games { padding-left: 18px; padding-right: 18px; }
    .proof-strip { gap: 16px; padding: 20px 16px; }
    .carousel-card { width: 135px; }
    .games-carousel__track { gap: 10px; }
}