/* ==========================================================================
   彩运工坊 · Lucky Lab
   Pure JSP lottery number picker — visual system
   ========================================================================== */

:root {
    --bg: #f3efe7;
    --bg-soft: #faf7f1;
    --card: #fffdf8;
    --ink: #171813;
    --ink-soft: #30312b;
    --muted: #77776d;
    --muted-light: #a2a196;
    --line: rgba(23, 24, 19, 0.12);
    --line-soft: rgba(23, 24, 19, 0.07);
    --accent: #e84c2e;
    --accent-deep: #c53519;
    --accent-soft: #fbe2d9;
    --gold: #efbf5b;
    --green: #2b7058;
    --danger: #c83e32;
    --danger-soft: #f9e3df;
    --cream: #f7f1e5;
    --max: 1220px;
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-soft: 0 24px 60px rgba(53, 42, 27, 0.09);
    --shadow-card: 0 12px 32px rgba(53, 42, 27, 0.07);
    --font-sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --font-display: "Bahnschrift", "Aptos Display", "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
    --header-h: 84px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 300px;
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 680px at 2% -6%, rgba(244, 188, 143, 0.22), transparent 62%),
        radial-gradient(900px 620px at 98% 8%, rgba(196, 213, 180, 0.2), transparent 60%);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

h1, h2, h3, h4, h5, h6, p, ol, ul, figure {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

img,
svg {
    display: block;
}

[hidden] {
    display: none !important;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(23, 24, 19, 0.07);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: min(calc(100% - 80px), var(--max));
    margin-inline: auto;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 500;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-180%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(232, 76, 46, 0.55);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Shared atoms
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(247, 241, 229, 0.56);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 76, 46, 0.13);
}

.eyebrow--light .eyebrow-dot {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(239, 191, 91, 0.12);
}

.section-no {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 800;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #5d9f74;
    box-shadow: 0 0 0 4px rgba(93, 159, 116, 0.12);
    vertical-align: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.25s var(--ease-out),
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(232, 76, 46, 0.24);
}

.btn-primary:hover {
    background: var(--accent-deep);
    box-shadow: 0 16px 32px rgba(197, 53, 25, 0.27);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: #2c2d25;
}

.btn-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: #fff;
}

.btn-ghost-light {
    border-color: rgba(247, 241, 229, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
}

.btn-ghost-light:hover {
    border-color: rgba(247, 241, 229, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.btn-hero-ghost {
    border-color: rgba(247, 241, 229, 0.2);
    background: rgba(255, 255, 255, 0.035);
    color: var(--cream);
}

.btn-hero-ghost:hover {
    border-color: rgba(247, 241, 229, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.btn-cta-ghost {
    border-color: rgba(23, 24, 19, 0.25);
    color: var(--ink);
    background: transparent;
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--ink);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 12px 24px rgba(200, 62, 50, 0.2);
}

.btn-danger:hover {
    background: #ad2d23;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
    background: #fff;
    border-color: rgba(23, 24, 19, 0.25);
    transform: rotate(4deg);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(23, 24, 19, 0.35);
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.25s var(--ease-out), border-color 0.25s ease, color 0.25s ease;
}

.text-link:hover {
    gap: 13px;
    border-color: var(--accent);
    color: var(--accent);
}

.text-link .icon {
    width: 15px;
    height: 15px;
}

.section {
    padding-top: 106px;
}

.section-title {
    margin-top: 17px;
    font-size: clamp(38px, 4.3vw, 58px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-wrap: balance;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 42px;
}

.section-intro {
    justify-self: end;
    max-width: 440px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(243, 239, 231, 0.82);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(248, 245, 238, 0.94);
    border-color: var(--line-soft);
    box-shadow: 0 12px 35px rgba(50, 40, 25, 0.04);
}

.header-inner {
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--ink);
    color: #f8f2e8;
    box-shadow: 0 8px 20px rgba(23, 24, 19, 0.16);
}

.brand-mark svg {
    width: 27px;
    height: 27px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-copy strong {
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.brand-copy small {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.3;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
}

.nav-link.is-active {
    background: var(--ink);
    color: #fff;
}

.nav-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.nav-link.is-active .nav-badge,
.header-cta .nav-badge {
    background: var(--accent);
    color: #fff;
}

.nav-badge.is-zero {
    opacity: 0.62;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.header-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.header-cta .icon {
    width: 15px;
    height: 15px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--ink);
}

.menu-close-icon {
    display: none;
}

body.menu-open .menu-open-icon {
    display: none;
}

body.menu-open .menu-close-icon {
    display: block;
}

/* Mobile navigation */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(20, 20, 16, 0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 94vw);
    height: 100%;
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-soft);
    box-shadow: -30px 0 80px rgba(15, 15, 11, 0.18);
    transform: translateX(102%);
    transition: transform 0.45s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.mobile-menu-nav > a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-soft);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.mobile-menu-nav > a:hover {
    color: var(--accent);
}

.menu-no {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.mobile-menu-label {
    margin: 20px 0 10px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mobile-game-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-game-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 12.5px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-game-links a:hover {
    background: #fff;
    border-color: var(--line);
}

.mobile-game-links .icon {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--muted);
}

.mobile-game-dot,
.filter-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu-foot {
    margin-top: auto;
    padding-top: 28px;
    color: var(--muted);
}

.mobile-menu-foot p {
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 18px;
}

.mobile-menu-foot span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

.mobile-menu-foot .icon {
    width: 14px;
    height: 14px;
}

body.menu-open {
    overflow: hidden;
}

/* Game colour dots used across navigation/filters */
.game-tone-dlt { color: #d6532f; background: currentColor; }
.game-tone-ssq { color: #c84142; background: currentColor; }
.game-tone-kl8 { color: #b77a16; background: currentColor; }
.game-tone-qxc { color: #6d5196; background: currentColor; }
.game-tone-pl5 { color: #2c7561; background: currentColor; }
.game-tone-dlt.mobile-game-dot,
.game-tone-ssq.mobile-game-dot,
.game-tone-kl8.mobile-game-dot,
.game-tone-qxc.mobile-game-dot,
.game-tone-pl5.mobile-game-dot {
    background: currentColor;
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

.hero-section {
    padding-top: 24px;
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    min-height: 640px;
    gap: 20px;
    padding: clamp(42px, 5.2vw, 74px);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #151610;
    color: var(--cream);
    isolation: isolate;
    box-shadow: 0 40px 90px rgba(44, 34, 21, 0.16);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(247, 241, 229, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 241, 229, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(circle at 55% 40%, #000, transparent 72%);
    mask-image: radial-gradient(circle at 55% 40%, #000, transparent 72%);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
}

.hero-glow--coral {
    top: -240px;
    right: -120px;
    width: 690px;
    height: 690px;
    background: radial-gradient(circle, rgba(227, 76, 42, 0.34) 0%, rgba(227, 76, 42, 0.06) 46%, transparent 70%);
}

.hero-glow--gold {
    bottom: -320px;
    left: 18%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(228, 172, 65, 0.15) 0%, transparent 68%);
}

.hero-copy {
    position: relative;
    z-index: 3;
    align-self: center;
    max-width: 630px;
}

.hero-title {
    margin-top: 24px;
    font-size: clamp(44px, 4.55vw, 66px);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.1;
    text-wrap: balance;
}

.hero-title-serif {
    color: #f2ad92;
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero-lede {
    max-width: 490px;
    margin-top: 26px;
    color: rgba(247, 241, 229, 0.63);
    font-size: 15px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 33px;
}

.hero-actions .btn {
    min-height: 52px;
    padding-inline: 25px;
}

.hero-proof {
    display: flex;
    gap: 34px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid rgba(247, 241, 229, 0.1);
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proof-item strong {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.proof-item span {
    color: rgba(247, 241, 229, 0.45);
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

.hero-session {
    display: flex;
    align-items: center;
    margin-top: 24px;
    color: rgba(247, 241, 229, 0.42);
    font-size: 10.5px;
    letter-spacing: 0.03em;
}

.hero-session strong {
    margin: 0 4px;
    color: rgba(247, 241, 229, 0.75);
    font-family: var(--font-display);
    font-weight: 700;
}

.hero-visual {
    position: relative;
    display: flex;
    min-height: 440px;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(247, 241, 229, 0.07);
    border-radius: 50%;
}

.orbit--outer {
    width: 590px;
    height: 590px;
    transform: rotate(-13deg) scaleY(0.72);
}

.orbit--inner {
    width: 430px;
    height: 430px;
    border-color: rgba(247, 241, 229, 0.09);
    transform: rotate(24deg) scaleY(0.82);
}

.hero-spark {
    position: absolute;
    color: rgba(239, 191, 91, 0.8);
    font-size: 24px;
    line-height: 1;
    animation: twinkle 4.6s ease-in-out infinite;
}

.hero-spark--one {
    top: 8%;
    right: 5%;
}

.hero-spark--two {
    bottom: 12%;
    left: 2%;
    color: rgba(242, 173, 146, 0.65);
    font-size: 18px;
    animation-delay: -1.8s;
}

.lucky-ticket {
    --ball-front: #dc5934;
    --ball-back: #2d537c;
    position: relative;
    z-index: 2;
    width: min(100%, 378px);
    padding: 24px 23px 22px;
    border-radius: 18px;
    background: #f8f1e5;
    color: var(--ink);
    box-shadow:
        0 34px 65px rgba(0, 0, 0, 0.38),
        0 3px 0 rgba(255, 255, 255, 0.5) inset;
    transform: rotate(2.4deg);
    animation: ticketFloat 9s ease-in-out infinite;
}

.ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ticket-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.ticket-brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.ticket-no {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.ticket-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 23px;
}

.ticket-type {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(23, 24, 19, 0.07);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ticket-example {
    color: var(--muted-light);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.ticket-label {
    margin-top: 24px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.hero-balls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ball-group {
    display: flex;
    gap: 6px;
}

.ball {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--ball-front, var(--accent));
    color: var(--ball-front-text, #fff);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.22),
        inset 0 -3px 6px rgba(0, 0, 0, 0.13),
        0 4px 9px rgba(26, 22, 15, 0.13);
}

.ball--back {
    background: var(--ball-back, #31597f);
    color: var(--ball-back-text, #fff);
}

.ball-plus {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
}

.ticket-perforation {
    position: relative;
    margin: 23px -23px 16px;
    border-top: 1px dashed rgba(23, 24, 19, 0.22);
}

.ticket-perforation::before,
.ticket-perforation::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #151610;
}

.ticket-perforation::before {
    left: -8px;
}

.ticket-perforation::after {
    right: -8px;
}

.ticket-foot {
    display: flex;
    align-items: flex-end;
    gap: 22px;
}

.ticket-foot > div:not(.ticket-barcode) {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-foot span {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.ticket-foot strong {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ticket-barcode {
    display: flex;
    height: 27px;
    align-items: stretch;
    gap: 2px;
    margin-left: auto;
}

.ticket-barcode i {
    width: 2px;
    background: rgba(23, 24, 19, 0.45);
}

.ticket-barcode i:nth-child(3n) { width: 1px; }
.ticket-barcode i:nth-child(4n) { width: 3px; opacity: 0.6; }
.ticket-barcode i:nth-child(5n) { height: 70%; align-self: flex-end; }

.ticket-stamp {
    position: absolute;
    right: 21px;
    bottom: 68px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid rgba(202, 50, 32, 0.45);
    border-radius: 50%;
    color: rgba(202, 50, 32, 0.65);
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-align: center;
    transform: rotate(-12deg);
}

.float-pill {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(247, 241, 229, 0.16);
    border-radius: 13px;
    background: rgba(31, 32, 26, 0.82);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.float-pill--secure {
    top: 16%;
    left: -3%;
}

.float-pill--free {
    right: -2%;
    bottom: 14%;
}

.float-pill-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    background: rgba(112, 174, 126, 0.14);
    color: #98c8a3;
}

.float-pill-icon--gold {
    background: rgba(239, 191, 91, 0.13);
    color: var(--gold);
}

.float-pill-icon .icon {
    width: 15px;
    height: 15px;
}

.float-pill > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.float-pill strong {
    color: rgba(247, 241, 229, 0.88);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.float-pill small {
    color: rgba(247, 241, 229, 0.4);
    font-family: var(--font-display);
    font-size: 7.5px;
    letter-spacing: 0.06em;
}

.hero-bottom-line {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: end;
    margin-top: 4px;
    color: rgba(247, 241, 229, 0.3);
    font-size: 9px;
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Home — saved reminder
   -------------------------------------------------------------------------- */

.saved-reminder {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.7);
}

.saved-reminder-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.saved-reminder-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.saved-reminder-copy .eyebrow {
    font-size: 8.5px;
}

.saved-reminder-copy h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.saved-reminder-copy h2 span {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 22px;
}

.saved-reminder .btn {
    min-height: 42px;
    margin-left: auto;
    padding: 9px 17px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Home — games bento
   -------------------------------------------------------------------------- */

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

.game-card {
    --card-bg: #f3ede3;
    --card-accent: #d25932;
    --card-alt: #31597f;
    --card-ink: #2f231b;
    --card-muted: rgba(47, 35, 27, 0.6);
    --card-line: rgba(47, 35, 27, 0.13);
    position: relative;
    display: flex;
    min-height: 296px;
    flex-direction: column;
    grid-column: span 2;
    padding: 25px;
    overflow: hidden;
    border: 1px solid rgba(23, 24, 19, 0.06);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    color: var(--card-ink);
    isolation: isolate;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}

.game-card:nth-child(1),
.game-card:nth-child(2) {
    grid-column: span 3;
    min-height: 350px;
    padding: 29px;
}

.game-card:hover {
    border-color: rgba(23, 24, 19, 0.12);
    box-shadow: 0 24px 45px rgba(53, 42, 27, 0.1);
    transform: translateY(-5px);
}

.game-card--dlt {
    --card-bg: #f8e2d6;
    --card-accent: #d5502c;
    --card-alt: #31577e;
    --card-ink: #3f2117;
    --card-muted: rgba(63, 33, 23, 0.6);
    --card-line: rgba(63, 33, 23, 0.13);
}

.game-card--ssq {
    --card-bg: #f6e1e0;
    --card-accent: #c73e3e;
    --card-alt: #336fa8;
    --card-ink: #431e1e;
    --card-muted: rgba(67, 30, 30, 0.6);
    --card-line: rgba(67, 30, 30, 0.13);
}

.game-card--kl8 {
    --card-bg: #f4e6c6;
    --card-accent: #ad7717;
    --card-alt: #7d5818;
    --card-ink: #40310f;
    --card-muted: rgba(64, 49, 15, 0.6);
    --card-line: rgba(64, 49, 15, 0.14);
}

.game-card--qxc {
    --card-bg: #eae4f3;
    --card-accent: #6a4c94;
    --card-alt: #8c573f;
    --card-ink: #302141;
    --card-muted: rgba(48, 33, 65, 0.6);
    --card-line: rgba(48, 33, 65, 0.13);
}

.game-card--pl5 {
    --card-bg: #dfede8;
    --card-accent: #27745f;
    --card-alt: #5d7d72;
    --card-ink: #143d32;
    --card-muted: rgba(20, 61, 50, 0.6);
    --card-line: rgba(20, 61, 50, 0.13);
}

.game-watermark {
    position: absolute;
    z-index: -1;
    top: 63px;
    right: 10px;
    color: var(--card-ink);
    font-family: var(--font-display);
    font-size: 112px;
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 0.8;
    opacity: 0.055;
    pointer-events: none;
    white-space: nowrap;
}

.game-card--large .game-watermark {
    top: 88px;
    right: 18px;
    font-size: 138px;
}

.game-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.game-index {
    color: var(--card-muted);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
}

.game-schedule {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--card-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--card-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.game-card-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 43px;
}

.game-card--large .game-card-main {
    margin-top: 57px;
}

.game-card-main h3 {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.1;
}

.game-card--large .game-card-main h3 {
    font-size: 35px;
}

.game-en {
    display: block;
    margin-top: 6px;
    color: var(--card-muted);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.17em;
}

.game-tagline {
    max-width: 280px;
    color: var(--card-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.game-card--large .game-tagline {
    max-width: 340px;
    font-size: 13px;
}

.game-preview {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 24px;
}

.preview-label {
    display: block;
    margin-bottom: 8px;
    color: var(--card-muted);
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    opacity: 0.65;
}

.mini-balls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.mini-ball {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--card-accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 3px 7px rgba(0, 0, 0, 0.09);
}

.mini-ball--alt {
    background: var(--card-alt);
}

.mini-separator {
    padding: 0 2px;
    color: var(--card-muted);
    font-family: var(--font-display);
    font-size: 12px;
}

.mini-digit {
    display: inline-grid;
    width: 27px;
    height: 30px;
    flex: none;
    place-items: center;
    border: 1px solid var(--card-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.36);
    color: var(--card-ink);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.mini-digit--alt {
    border-color: color-mix(in srgb, var(--card-alt) 35%, transparent);
    background: color-mix(in srgb, var(--card-alt) 10%, transparent);
    color: var(--card-alt);
}

.game-card-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid var(--card-line);
}

.game-spec {
    color: var(--card-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.game-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.game-cta-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--card-line);
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

.game-cta-icon .icon {
    width: 12px;
    height: 12px;
}

.game-card:hover .game-cta-icon {
    background: var(--card-accent);
    border-color: var(--card-accent);
    color: #fff;
    transform: rotate(8deg);
}

.games-footnote {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 10.5px;
}

.games-footnote span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.games-footnote .icon {
    width: 13px;
    height: 13px;
}

/* --------------------------------------------------------------------------
   Home — steps / values / CTA
   -------------------------------------------------------------------------- */

.steps-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(36px, 6vw, 86px);
    padding: clamp(34px, 4.7vw, 58px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    background: rgba(255, 252, 246, 0.65);
}

.steps-intro {
    align-self: start;
}

.steps-intro .section-title {
    font-size: clamp(34px, 3.8vw, 52px);
}

.steps-intro p {
    max-width: 310px;
    margin: 20px 0 26px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.steps-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.steps-list li {
    display: grid;
    grid-template-columns: 34px 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 23px 0;
    border-bottom: 1px solid var(--line);
}

.steps-list li:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.step-no {
    padding-top: 4px;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.step-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.55);
    color: var(--accent);
}

.steps-list h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.steps-list p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.value-card {
    position: relative;
    min-height: 245px;
    padding: 32px 30px;
    border-right: 1px solid var(--line);
}

.value-card:last-child {
    border-right: 0;
}

.value-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.value-icon .icon {
    width: 19px;
    height: 19px;
}

.value-no {
    position: absolute;
    top: 37px;
    right: 30px;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.value-card h3 {
    margin-top: 28px;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.value-card p {
    max-width: 310px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.85;
}

.luck-cta {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: clamp(35px, 5vw, 64px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 87% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        #efc15b;
    color: var(--ink);
    isolation: isolate;
}

.luck-cta-copy {
    position: relative;
    z-index: 2;
}

.luck-cta .eyebrow--light {
    color: rgba(23, 24, 19, 0.55);
}

.luck-cta .eyebrow--light .eyebrow-dot {
    background: var(--ink);
    box-shadow: 0 0 0 4px rgba(23, 24, 19, 0.08);
}

.luck-cta h2 {
    margin-top: 20px;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.06;
    text-wrap: balance;
}

.luck-cta p {
    max-width: 380px;
    margin-top: 18px;
    color: rgba(23, 24, 19, 0.62);
    font-size: 13.5px;
}

.luck-cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-self: flex-end;
    padding-bottom: 5px;
}

.luck-cta-actions .btn {
    min-height: 49px;
}

.luck-cta-mark {
    position: absolute;
    z-index: 1;
    right: -12px;
    bottom: -52px;
    color: rgba(255, 255, 255, 0.13);
    font-family: var(--font-display);
    font-size: clamp(140px, 19vw, 260px);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.luck-cta-orbs {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 15%;
    width: 280px;
    height: 100%;
    pointer-events: none;
}

.luck-cta-orbs span {
    position: absolute;
    border: 1px solid rgba(23, 24, 19, 0.1);
    border-radius: 50%;
}

.luck-cta-orbs span:nth-child(1) {
    top: -50px;
    right: 20px;
    width: 230px;
    height: 230px;
}

.luck-cta-orbs span:nth-child(2) {
    top: 10px;
    right: 80px;
    width: 120px;
    height: 120px;
}

.luck-cta-orbs span:nth-child(3) {
    bottom: 24px;
    right: 0;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: 116px;
    padding: 68px 0 26px;
    border-radius: 38px 38px 0 0;
    background: #151610;
    color: var(--cream);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) minmax(0, 1.55fr);
    gap: clamp(36px, 7vw, 100px);
    padding-bottom: 52px;
}

.brand--footer {
    color: var(--cream);
}

.brand--footer .brand-mark {
    background: var(--cream);
    color: var(--ink);
}

.brand--footer .brand-copy small {
    color: rgba(247, 241, 229, 0.41);
}

.footer-slogan {
    margin-top: 30px;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.footer-stamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 23px;
    color: rgba(247, 241, 229, 0.35);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.footer-stamp .icon {
    width: 13px;
    height: 13px;
    color: var(--gold);
}

.footer-columns {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 1.35fr;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-col h3 {
    margin-bottom: 9px;
    color: rgba(247, 241, 229, 0.35);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.footer-col a {
    color: rgba(247, 241, 229, 0.66);
    font-size: 12px;
    line-height: 1.7;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col p {
    max-width: 310px;
    color: rgba(247, 241, 229, 0.47);
    font-size: 11.5px;
    line-height: 1.9;
}

.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: rgba(247, 241, 229, 0.38);
    font-size: 9.5px;
}

.footer-meta .icon {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.footer-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    padding: 19px 0;
    border-top: 1px solid rgba(247, 241, 229, 0.1);
    border-bottom: 1px solid rgba(247, 241, 229, 0.1);
}

.footer-notice strong {
    color: rgba(247, 241, 229, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.footer-notice p {
    max-width: 900px;
    color: rgba(247, 241, 229, 0.32);
    font-size: 10px;
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    color: rgba(247, 241, 229, 0.28);
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.05em;
}

.footer-dot {
    margin-inline: 6px;
    color: rgba(247, 241, 229, 0.18);
}

/* --------------------------------------------------------------------------
   Play page — hero
   -------------------------------------------------------------------------- */

body.theme-dlt {
    --theme: #d6532f;
    --theme-deep: #9d3219;
    --theme-soft: #f7e2d8;
    --ball-front: #db5935;
    --ball-front-text: #fff;
    --ball-back: #2f567e;
    --ball-back-text: #fff;
}

body.theme-ssq {
    --theme: #c93f40;
    --theme-deep: #8f2929;
    --theme-soft: #f5e1e0;
    --ball-front: #c94343;
    --ball-front-text: #fff;
    --ball-back: #3472aa;
    --ball-back-text: #fff;
}

body.theme-kl8 {
    --theme: #ad7717;
    --theme-deep: #79500b;
    --theme-soft: #f5e7c7;
    --ball-front: #e9a73e;
    --ball-front-text: #3d2a08;
    --ball-back: #6f5220;
    --ball-back-text: #fff;
}

body.theme-qxc {
    --theme: #6c4f96;
    --theme-deep: #4a326e;
    --theme-soft: #ece5f5;
    --ball-front: #29292f;
    --ball-front-text: #fff;
    --ball-back: #89513e;
    --ball-back-text: #fff;
}

body.theme-pl5 {
    --theme: #28725f;
    --theme-deep: #185344;
    --theme-soft: #deede7;
    --ball-front: #28725f;
    --ball-front-text: #fff;
    --ball-back: #5c7a6f;
    --ball-back-text: #fff;
}

.page-play,
.page-history {
    background-image:
        radial-gradient(900px 560px at 94% 3%, var(--theme-soft, #ece6da), transparent 65%),
        radial-gradient(1000px 620px at 2% 18%, rgba(255, 255, 255, 0.44), transparent 65%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 10.5px;
    letter-spacing: 0.03em;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb span[aria-current="page"] {
    color: var(--ink-soft);
}

.play-hero-section {
    padding-top: 26px;
}

.play-hero {
    position: relative;
    display: flex;
    min-height: 294px;
    align-items: center;
    overflow: hidden;
    padding: 43px 48px;
    border: 1px solid rgba(23, 24, 19, 0.06);
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 44%, rgba(255, 255, 255, 0.72), transparent 22%),
        linear-gradient(130deg, var(--theme-soft) 0%, #fbf8f1 72%);
    isolation: isolate;
}

.play-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(23, 24, 19, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 24, 19, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}

.play-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 680px;
}

.play-hero .eyebrow {
    color: var(--theme-deep);
    opacity: 0.8;
}

.play-hero .eyebrow-dot {
    background: var(--theme);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme) 13%, transparent);
}

.play-hero h1 {
    margin-top: 18px;
    color: var(--ink);
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1.02;
}

.title-pill {
    display: inline-block;
    margin-left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--theme);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    vertical-align: 17px;
}

.play-hero-copy > p {
    max-width: 620px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.play-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.play-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(23, 24, 19, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 500;
}

.play-meta .icon {
    width: 13px;
    height: 13px;
    color: var(--theme);
}

.play-hero-art {
    position: absolute;
    top: 50%;
    right: 45px;
    width: 340px;
    height: 270px;
    transform: translateY(-50%);
    pointer-events: none;
}

.play-art-ring {
    position: absolute;
    border: 1px solid rgba(23, 24, 19, 0.085);
    border-radius: 50%;
}

.play-art-ring--one {
    top: 5px;
    right: 23px;
    width: 260px;
    height: 260px;
}

.play-art-ring--two {
    top: 57px;
    right: 73px;
    width: 156px;
    height: 156px;
    border-style: dashed;
}

.play-art-mark {
    position: absolute;
    top: 38px;
    right: 26px;
    color: transparent;
    font-family: var(--font-display);
    font-size: 132px;
    font-weight: 800;
    letter-spacing: -0.09em;
    line-height: 1;
    opacity: 0.2;
    -webkit-text-stroke: 1.5px var(--theme);
    white-space: nowrap;
}

.play-art-balls {
    position: absolute;
    right: 58px;
    bottom: 47px;
    display: flex;
    gap: 6px;
    transform: rotate(-5deg);
}

.play-art-ball {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--ball-front);
    color: var(--ball-front-text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), 0 8px 16px rgba(23, 24, 19, 0.12);
}

.play-art-ball:nth-child(2) {
    margin-top: 18px;
}

.play-art-ball:nth-child(3) {
    margin-top: -6px;
}

.play-art-caption {
    position: absolute;
    right: 54px;
    bottom: 25px;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 6.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.play-hero-note {
    position: absolute;
    right: 24px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted-light);
    font-size: 8px;
    letter-spacing: 0.03em;
}

.play-hero-note .icon {
    width: 12px;
    height: 12px;
    color: var(--green);
}

/* --------------------------------------------------------------------------
   Play page — layout & ticket panel
   -------------------------------------------------------------------------- */

.play-main-section {
    padding-top: 24px;
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 356px;
    gap: 20px;
    align-items: start;
}

.play-primary {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.ticket-panel {
    min-width: 0;
    padding: 29px 29px 25px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 246, 0.91);
    box-shadow: var(--shadow-soft);
}

.ticket-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line-soft);
}

.ticket-panel-head .eyebrow {
    font-size: 8.5px;
}

.ticket-panel-head h2 {
    margin-top: 7px;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.15;
}

.ticket-panel-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10.5px;
}

.ticket-panel-sub strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 12px;
}

.meta-divider {
    color: var(--muted-light);
}

.generated-at {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.generated-at .live-dot {
    width: 5px;
    height: 5px;
    margin-right: 7px;
    background: var(--green);
}

.toolbar-button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toolbar-button:hover {
    border-color: var(--theme);
    color: var(--theme-deep);
    background: #fff;
}

.toolbar-button .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.4s var(--ease-out);
}

.toolbar-button:hover .icon {
    transform: rotate(-90deg);
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
}

.ticket {
    position: relative;
    padding: 16px 18px 13px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #fbf7f0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ticket::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: var(--theme);
    opacity: 0.75;
}

.ticket:hover {
    border-color: rgba(23, 24, 19, 0.13);
    box-shadow: 0 6px 18px rgba(53, 42, 27, 0.035);
}

.ticket.is-new {
    animation: ticketReveal 0.55s var(--ease-out) both;
    animation-delay: calc(var(--ticket-index, 0) * 55ms);
}

.ticket-list.is-loading {
    pointer-events: none;
}

.ticket-list.is-loading .ticket {
    opacity: 0.35;
    transform: translateY(3px);
}

.ticket.is-saved {
    border-color: rgba(43, 112, 88, 0.2);
    background: #f8fbf8;
}

.ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ticket-index {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.ticket-index strong {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.ticket-action {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.ticket-action:hover {
    background: rgba(23, 24, 19, 0.055);
    color: var(--ink);
}

.ticket-action .icon {
    width: 13px;
    height: 13px;
}

.ticket-action:disabled {
    cursor: default;
    opacity: 0.76;
}

.ticket-action.is-saved {
    color: var(--green);
}

.ticket-action.is-saved:hover {
    color: var(--green);
}

.ticket-sets {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 18px;
    margin-top: 13px;
}

.number-set {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.number-label {
    color: var(--muted-light);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ball-row,
.digit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ticket .ball {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.ticket-list[data-count="1"] .ticket {
    padding: 19px 21px 15px;
}

.ticket-list[data-count="1"] .ticket .ball {
    width: 46px;
    height: 46px;
    font-size: 16px;
}

.ticket-list[data-count="1"] .ticket .digit {
    width: 42px;
    height: 50px;
    font-size: 24px;
}

.digit {
    display: inline-grid;
    width: 37px;
    height: 45px;
    flex: none;
    place-items: center;
    border: 1px solid rgba(23, 24, 19, 0.13);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(23, 24, 19, 0.05);
}

.digit--alt {
    border-color: color-mix(in srgb, var(--ball-back) 32%, transparent);
    background: color-mix(in srgb, var(--ball-back) 9%, #fff);
    color: var(--ball-back);
}

.set-plus {
    padding-bottom: 11px;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1;
}

.ticket-footline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px dashed rgba(23, 24, 19, 0.09);
}

.ticket-brandline {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.ticket-saved-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green);
    font-size: 8.5px;
    font-weight: 500;
}

.ticket-saved-state .icon {
    width: 11px;
    height: 11px;
}

.ticket-panel-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.btn-save-all {
    min-height: 44px;
    padding: 10px 19px;
    font-size: 12px;
}

.btn-save-all.is-saved {
    background: var(--green);
    box-shadow: 0 10px 22px rgba(43, 112, 88, 0.2);
}

.panel-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--muted-light);
    font-size: 8.5px;
}

.panel-note .icon {
    width: 12px;
    height: 12px;
}

.play-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 3px 6px;
    color: var(--muted);
    font-size: 9px;
}

.play-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.play-assurance .icon {
    width: 13px;
    height: 13px;
    color: var(--theme);
}

/* Generating state */
.generate-btn {
    position: relative;
    min-height: 48px;
}

.btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.generate-btn.is-loading .button-icon {
    display: none;
}

.generate-btn.is-loading .btn-spinner {
    display: block;
}

/* --------------------------------------------------------------------------
   Play page — sidebar
   -------------------------------------------------------------------------- */

.play-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 13px;
}

.config-card {
    padding: 23px;
    border-radius: var(--radius-lg);
    background: #191a15;
    color: var(--cream);
    box-shadow: 0 24px 50px rgba(40, 33, 23, 0.12);
}

.config-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(247, 241, 229, 0.1);
}

.config-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: none;
    place-items: center;
    border-radius: 11px;
    background: rgba(247, 241, 229, 0.09);
    color: var(--gold);
}

.config-icon .icon {
    width: 18px;
    height: 18px;
}

.config-head h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.config-head p {
    margin-top: 2px;
    color: rgba(247, 241, 229, 0.38);
    font-size: 9.5px;
}

.config-field {
    margin-top: 18px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-label {
    display: block;
    color: rgba(247, 241, 229, 0.65);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.field-value {
    color: rgba(247, 241, 229, 0.3);
    font-size: 8.5px;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 9px;
    padding: 3px;
    border: 1px solid rgba(247, 241, 229, 0.09);
    border-radius: 11px;
    background: rgba(247, 241, 229, 0.055);
}

.seg-btn {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(247, 241, 229, 0.48);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seg-btn:hover {
    color: var(--cream);
}

.seg-btn.is-active {
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.select-shell {
    position: relative;
    margin-top: 9px;
}

.select-shell select {
    width: 100%;
    min-height: 42px;
    padding: 10px 38px 10px 12px;
    border: 1px solid rgba(247, 241, 229, 0.1);
    border-radius: 10px;
    background: rgba(247, 241, 229, 0.065);
    color: var(--cream);
    font-size: 11px;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.select-shell select option {
    background: #fffdf8;
    color: var(--ink);
}

.select-shell select:focus-visible {
    border-color: var(--gold);
    outline: 2px solid rgba(239, 191, 91, 0.35);
    outline-offset: 1px;
}

.select-chevron {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 14px;
    height: 14px;
    color: rgba(247, 241, 229, 0.4);
    pointer-events: none;
    transform: translateY(-50%);
}

.field-hint {
    margin-top: 7px;
    color: rgba(247, 241, 229, 0.29);
    font-size: 8.5px;
    line-height: 1.6;
}

.config-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 19px 0;
    padding: 14px 0;
    border-top: 1px solid rgba(247, 241, 229, 0.09);
    border-bottom: 1px solid rgba(247, 241, 229, 0.09);
}

.config-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.config-summary span {
    color: rgba(247, 241, 229, 0.34);
    font-size: 9px;
}

.config-summary strong {
    color: rgba(247, 241, 229, 0.72);
    font-size: 9.5px;
    font-weight: 500;
    text-align: right;
}

.config-card .btn-primary {
    background: var(--accent);
}

.config-card .btn-primary:hover {
    background: var(--accent-deep);
}

.config-footnote {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    color: rgba(247, 241, 229, 0.27);
    font-size: 8px;
    line-height: 1.5;
    text-align: center;
}

.config-footnote .icon {
    width: 11px;
    height: 11px;
    margin-top: 1px;
    color: rgba(152, 200, 163, 0.55);
}

.saved-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 17px;
    border: 1px solid var(--line-soft);
    border-radius: 17px;
    background: rgba(255, 252, 246, 0.75);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}

.saved-link:hover {
    border-color: var(--line);
    background: #fffdf8;
    transform: translateY(-2px);
}

.saved-link-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: var(--theme-soft);
    color: var(--theme-deep);
}

.saved-link-icon .icon {
    width: 15px;
    height: 15px;
}

.saved-link-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.saved-link-copy > span {
    color: var(--muted);
    font-size: 8.5px;
}

.saved-link-copy strong {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
}

.saved-link-copy strong span {
    font-family: var(--font-display);
    font-size: 12px;
}

.saved-link-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--muted-light);
}

.rule-card {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 246, 0.75);
}

.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.side-card-head h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.side-tag {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 15px;
}

.rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rule-index {
    display: grid;
    width: 17px;
    height: 17px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: rgba(23, 24, 19, 0.055);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 600;
}

.rule-list p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.rule-warning {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted-light);
    font-size: 8px;
    line-height: 1.6;
}

.rule-warning .icon {
    width: 11px;
    height: 11px;
    margin-top: 1px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 21px;
    border-radius: var(--radius-md);
    background: var(--theme-soft);
    color: var(--ink-soft);
}

.tip-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--theme-deep);
}

.tip-icon .icon {
    width: 15px;
    height: 15px;
}

.tip-card h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tip-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   History page
   -------------------------------------------------------------------------- */

.history-hero-section {
    padding-top: 26px;
}

.history-hero {
    position: relative;
    display: flex;
    min-height: 356px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 44px 48px 37px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 78% 40%, rgba(239, 191, 91, 0.13), transparent 27%),
        #191a15;
    color: var(--cream);
    isolation: isolate;
}

.history-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(247, 241, 229, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 241, 229, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(circle at 85% 50%, #000, transparent 65%);
    mask-image: radial-gradient(circle at 85% 50%, #000, transparent 65%);
}

.history-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 590px;
}

.history-hero .eyebrow {
    color: rgba(247, 241, 229, 0.45);
}

.history-hero .eyebrow-dot {
    background: var(--gold);
}

.history-hero h1 {
    margin-top: 16px;
    font-size: clamp(46px, 5.5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 1.03;
}

.history-hero-copy > p {
    max-width: 470px;
    margin-top: 14px;
    color: rgba(247, 241, 229, 0.49);
    font-size: 12.5px;
    line-height: 1.85;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 23px;
}

.history-actions .btn {
    min-height: 43px;
    padding: 9px 18px;
    font-size: 11px;
}

.history-summary {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 31px;
    padding-top: 19px;
    border-top: 1px solid rgba(247, 241, 229, 0.1);
}

.history-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.history-stat span {
    color: rgba(247, 241, 229, 0.82);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.history-stat--main span {
    color: var(--gold);
    font-size: 33px;
}

.history-stat small {
    color: rgba(247, 241, 229, 0.3);
    font-size: 8.5px;
    letter-spacing: 0.06em;
}

.history-hero-art {
    position: absolute;
    top: 50%;
    right: 54px;
    width: 330px;
    height: 260px;
    transform: translateY(-50%);
    pointer-events: none;
}

.history-ticket-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.history-stub {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 235px;
    height: 185px;
    border-radius: 14px;
    transform: rotate(8deg);
    transform-origin: bottom right;
}

.history-stub--back {
    background: rgba(247, 241, 229, 0.08);
    border: 1px solid rgba(247, 241, 229, 0.11);
}

.history-stub--mid {
    top: 30px;
    right: 45px;
    background: rgba(247, 241, 229, 0.13);
    border: 1px solid rgba(247, 241, 229, 0.13);
    transform: rotate(-4deg);
}

.history-stub--front {
    top: 42px;
    right: 63px;
    display: flex;
    flex-direction: column;
    padding: 17px;
    background: #f6eedf;
    color: var(--ink);
    transform: rotate(2deg);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
}

.stub-label {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.stub-no {
    position: absolute;
    top: 18px;
    right: 15px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 6.5px;
    letter-spacing: 0.08em;
}

.stub-balls {
    display: flex;
    gap: 4px;
    margin-top: 28px;
}

.stub-balls i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

.stub-line {
    margin-top: auto;
    border-top: 1px dashed rgba(23, 24, 19, 0.2);
}

.history-hero-mark {
    position: absolute;
    right: 16px;
    bottom: -22px;
    color: transparent;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
    opacity: 0.1;
    -webkit-text-stroke: 1px var(--cream);
    pointer-events: none;
}

.history-main-section {
    padding-top: 28px;
}

.history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.65);
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--line);
    background: #fffdf8;
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.filter-dot {
    width: 5px;
    height: 5px;
}

.filter-count {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
}

.filter-chip.is-active .filter-count {
    color: rgba(255, 255, 255, 0.45);
}

.clear-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 9.5px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.clear-button:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.clear-button .icon {
    width: 13px;
    height: 13px;
}

.history-groups {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-groups.is-empty {
    display: none;
}

.saved-group {
    --group: #d6532f;
    --group-soft: #f8e3d9;
    --ball-front: #d6532f;
    --ball-front-text: #fff;
    --ball-back: #31597f;
    --ball-back-text: #fff;
    padding: 21px 22px 9px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 246, 0.82);
    box-shadow: 0 5px 18px rgba(53, 42, 27, 0.025);
}

.saved-group--ssq {
    --group: #c43d3e;
    --group-soft: #f7e1e1;
    --ball-front: #c84343;
    --ball-back: #3472aa;
}

.saved-group--kl8 {
    --group: #a97214;
    --group-soft: #f6e8c9;
    --ball-front: #e8a53b;
    --ball-front-text: #3a2808;
}

.saved-group--qxc {
    --group: #694c92;
    --group-soft: #ece5f4;
    --ball-front: #29292f;
    --ball-back: #89513e;
}

.saved-group--pl5 {
    --group: #28725f;
    --group-soft: #deede7;
    --ball-front: #28725f;
    --ball-back: #5c7a6f;
}

.saved-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line-soft);
}

.saved-group-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.saved-group-mark {
    display: grid;
    min-width: 39px;
    height: 39px;
    padding: 0 7px;
    flex: none;
    place-items: center;
    border-radius: 11px;
    background: var(--group-soft);
    color: var(--group);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.saved-group-title h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.saved-group-title p {
    margin-top: 2px;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.saved-group-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 9px;
}

.saved-group-meta strong {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.saved-group-meta a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--group);
    font-size: 9px;
    font-weight: 600;
}

.saved-group-meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.saved-group-meta .icon {
    width: 11px;
    height: 11px;
}

.saved-list {
    display: flex;
    flex-direction: column;
}

.saved-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 -9px;
    padding: 14px 9px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 9px;
    transition: background 0.2s ease, opacity 0.25s ease, transform 0.25s ease;
}

.saved-ticket:last-child {
    border-bottom: 0;
}

.saved-ticket:hover {
    background: rgba(255, 255, 255, 0.55);
}

.saved-ticket.is-removing {
    opacity: 0;
    transform: translateX(10px);
}

.saved-ticket-main {
    min-width: 0;
}

.saved-number-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ball-row--compact,
.digit-row--compact {
    gap: 5px;
}

.ball--sm {
    width: 30px !important;
    height: 30px !important;
    font-size: 10.5px !important;
}

.digit--sm {
    width: 28px !important;
    height: 34px !important;
    border-radius: 7px;
    font-size: 16px !important;
    box-shadow: 0 1px 0 rgba(23, 24, 19, 0.04);
}

.saved-number-line .set-plus {
    padding-bottom: 0;
    font-size: 12px;
}

.saved-ticket-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: var(--muted-light);
    font-size: 8.5px;
}

.saved-ticket-meta > span:first-child {
    color: var(--group);
    font-weight: 600;
}

.meta-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--muted-light);
}

.saved-ticket-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
}

.saved-action {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.saved-action .icon {
    width: 12px;
    height: 12px;
}

.saved-action:hover {
    border-color: var(--line-soft);
    background: #fff;
    color: var(--ink);
}

.saved-action--danger:hover {
    border-color: transparent;
    background: var(--danger-soft);
    color: var(--danger);
}

.saved-ticket.is-removing .saved-action {
    pointer-events: none;
}

.saved-action:disabled {
    cursor: default;
    opacity: 0.65;
}

/* Empty state */

.empty-state {
    max-width: 660px;
    margin: 18px auto 0;
    padding: 50px 24px 46px;
    text-align: center;
}

.empty-state.is-hidden {
    display: none;
}

.empty-art {
    position: relative;
    width: 230px;
    height: 165px;
    margin: 0 auto 25px;
}

.empty-ticket {
    position: absolute;
    top: 13px;
    left: 16px;
    display: flex;
    width: 196px;
    height: 136px;
    flex-direction: column;
    padding: 15px;
    border: 1px dashed rgba(23, 24, 19, 0.26);
    border-radius: 12px;
    background: rgba(255, 252, 246, 0.58);
    transform: rotate(-4deg);
}

.empty-ticket-star {
    position: absolute;
    top: 9px;
    right: 12px;
    color: var(--accent);
    font-size: 14px;
}

.empty-ticket-label {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.empty-ticket-balls {
    display: flex;
    gap: 5px;
    margin-top: 24px;
}

.empty-ticket-balls i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px dashed rgba(23, 24, 19, 0.2);
    background: rgba(255, 255, 255, 0.3);
}

.empty-ticket-line {
    margin-top: auto;
    border-top: 1px dashed rgba(23, 24, 19, 0.18);
}

.empty-orbit {
    position: absolute;
    top: 0;
    right: 0;
    width: 89px;
    height: 89px;
    border: 1px solid rgba(232, 76, 46, 0.22);
    border-radius: 50%;
}

.empty-orbit::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.empty-state h2 {
    margin-top: 13px;
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.empty-state > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 23px;
}

.empty-actions .btn {
    min-height: 43px;
    padding: 9px 18px;
    font-size: 11px;
}

.history-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 17px 19px;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    background: rgba(255, 252, 246, 0.45);
}

.history-note-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: none;
    place-items: center;
    border-radius: 8px;
    background: rgba(23, 24, 19, 0.055);
    color: var(--muted);
}

.history-note-icon .icon {
    width: 13px;
    height: 13px;
}

.history-note p {
    color: var(--muted-light);
    font-size: 9px;
    line-height: 1.75;
}

.history-note strong {
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Dialog & toast
   -------------------------------------------------------------------------- */

.confirm-dialog {
    width: min(420px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.confirm-dialog::backdrop {
    background: rgba(20, 20, 16, 0.48);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.confirm-dialog-body {
    padding: 28px;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 30px 70px rgba(15, 15, 11, 0.24);
    animation: dialogIn 0.3s var(--ease-out) both;
}

.confirm-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
}

.confirm-icon .icon {
    width: 18px;
    height: 18px;
}

.confirm-dialog h2 {
    margin-top: 17px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.confirm-dialog p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.confirm-dialog p strong {
    color: var(--danger);
    font-family: var(--font-display);
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 23px;
}

.confirm-actions .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 11px;
}

.toast-region {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    display: flex;
    width: min(340px, calc(100vw - 32px));
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid rgba(247, 241, 229, 0.1);
    border-radius: 13px;
    background: rgba(25, 26, 21, 0.96);
    color: var(--cream);
    box-shadow: 0 14px 36px rgba(15, 15, 11, 0.22);
    font-size: 11px;
    line-height: 1.6;
    pointer-events: auto;
    animation: toastIn 0.35s var(--ease-out) both;
}

.toast.is-leaving {
    animation: toastOut 0.25s ease both;
}

.toast-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: none;
    place-items: center;
    border-radius: 7px;
    background: rgba(152, 200, 163, 0.12);
    color: #9ccba6;
}

.toast--error .toast-icon {
    background: rgba(232, 76, 46, 0.13);
    color: #f19b85;
}

.toast--info .toast-icon {
    background: rgba(239, 191, 91, 0.12);
    color: var(--gold);
}

.toast-icon .icon {
    width: 13px;
    height: 13px;
}

.toast-message {
    padding-top: 2px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(17px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes ticketFloat {
    0%, 100% { transform: rotate(2.4deg) translateY(0); }
    50% { transform: rotate(1.6deg) translateY(-8px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 0.95; transform: scale(1.1) rotate(12deg); }
}

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

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes toastOut {
    to { opacity: 0; transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
    .container {
        width: min(calc(100% - 56px), var(--max));
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.96fr);
        padding: 50px;
    }

    .hero-title {
        font-size: clamp(44px, 5.25vw, 62px);
    }

    .hero-visual {
        min-height: 410px;
    }

    .float-pill--secure {
        left: 0;
    }

    .float-pill--free {
        right: 0;
    }

    .lucky-ticket {
        width: min(100%, 350px);
    }

    .hero-balls {
        gap: 6px;
    }

    .hero-balls .ball {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .play-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .play-hero-art {
        right: 18px;
        opacity: 0.82;
    }

    .play-hero-copy {
        max-width: 610px;
    }

    .history-hero-art {
        right: 26px;
        opacity: 0.88;
    }
}

@media (max-width: 980px) {
    :root {
        --header-h: 76px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
        padding: 48px;
    }

    .hero-copy {
        max-width: 650px;
    }

    .hero-title {
        font-size: clamp(46px, 7vw, 70px);
    }

    .hero-visual {
        min-height: 465px;
        margin-top: 22px;
    }

    .hero-bottom-line {
        margin-top: 20px;
    }

    .orbit--outer {
        width: 540px;
        height: 540px;
    }

    .lucky-ticket {
        width: min(100%, 390px);
    }

    .hero-balls .ball {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .float-pill--secure {
        top: 12%;
        left: 4%;
    }

    .float-pill--free {
        right: 4%;
        bottom: 9%;
    }

    .saved-reminder {
        margin-top: 18px;
    }

    .section {
        padding-top: 86px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
    }

    .section-intro {
        justify-self: start;
        margin: 0;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-card,
    .game-card:nth-child(1),
    .game-card:nth-child(2) {
        grid-column: span 1;
        min-height: 330px;
        padding: 25px;
    }

    .game-card:nth-child(5) {
        grid-column: span 2;
        min-height: 270px;
    }

    .game-card:nth-child(1) .game-card-main,
    .game-card:nth-child(2) .game-card-main {
        margin-top: 50px;
    }

    .game-watermark {
        font-size: 100px;
    }

    .game-card--large .game-watermark {
        top: 84px;
        font-size: 120px;
    }

    .steps-panel {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .steps-intro p {
        max-width: 500px;
    }

    .steps-list {
        border-top: 1px solid var(--line);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 0;
        padding: 27px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .value-card:last-child {
        border-bottom: 0;
    }

    .value-no {
        top: 31px;
        right: 24px;
    }

    .value-card h3 {
        margin-top: 20px;
    }

    .value-card p {
        max-width: 560px;
    }

    .luck-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .luck-cta-actions {
        align-self: flex-start;
        padding-bottom: 0;
    }

    .play-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .play-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .config-card {
        grid-row: span 2;
    }

    .saved-link {
        grid-column: 2;
    }

    .rule-card,
    .tip-card {
        grid-column: 2;
    }

    .play-hero {
        min-height: 286px;
        padding: 38px;
    }

    .play-hero-art {
        right: -20px;
        width: 300px;
        transform: translateY(-50%) scale(0.88);
        opacity: 0.55;
    }

    .play-hero-copy {
        max-width: 560px;
    }

    .history-hero {
        padding: 38px;
    }

    .history-hero-art {
        right: -30px;
        opacity: 0.45;
        transform: translateY(-50%) scale(0.85);
    }

    .history-hero-copy {
        max-width: 520px;
    }

    .history-summary {
        gap: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 40px), var(--max));
    }

    .header-inner {
        gap: 12px;
    }

    .header-cta {
        display: none;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
        border-radius: 12px;
    }

    .brand-mark svg {
        width: 25px;
        height: 25px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .hero-section {
        padding-top: 15px;
    }

    .hero-panel {
        padding: 34px 24px 27px;
        border-radius: 27px;
    }

    .hero-title {
        margin-top: 19px;
        font-size: clamp(33px, 8.6vw, 52px);
        letter-spacing: -0.065em;
    }

    .hero-lede {
        margin-top: 20px;
        font-size: 13.5px;
        line-height: 1.85;
    }

    .hero-actions {
        margin-top: 25px;
    }

    .hero-actions .btn {
        min-height: 46px;
        padding-inline: 18px;
        font-size: 12px;
    }

    .hero-proof {
        gap: 24px;
        margin-top: 29px;
        padding-top: 19px;
    }

    .proof-item strong {
        font-size: 21px;
    }

    .proof-item span {
        font-size: 9px;
    }

    .hero-session {
        margin-top: 17px;
        font-size: 9.5px;
    }

    .hero-visual {
        min-height: 400px;
        margin-top: 8px;
    }

    .orbit--outer {
        width: 440px;
        height: 440px;
    }

    .orbit--inner {
        width: 310px;
        height: 310px;
    }

    .lucky-ticket {
        width: min(100%, 345px);
        padding: 20px;
    }

    .hero-balls {
        gap: 6px;
    }

    .hero-balls .ball {
        width: 33px;
        height: 33px;
        font-size: 12px;
    }

    .ball-group {
        gap: 5px;
    }

    .ticket-perforation {
        margin-inline: -20px;
    }

    .float-pill {
        display: none;
    }

    .hero-bottom-line {
        display: none;
    }

    .hero-spark--one {
        right: 8%;
    }

    .saved-reminder {
        flex-wrap: wrap;
        gap: 12px;
        padding: 17px;
    }

    .saved-reminder-copy h2 {
        font-size: 15px;
    }

    .saved-reminder .btn {
        width: 100%;
        margin-left: 0;
    }

    .section {
        padding-top: 68px;
    }

    .section-title {
        font-size: clamp(33px, 8vw, 44px);
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card,
    .game-card:nth-child(1),
    .game-card:nth-child(2),
    .game-card:nth-child(5) {
        grid-column: span 1;
        min-height: 312px;
        padding: 23px;
        border-radius: 23px;
    }

    .game-card-main,
    .game-card--large .game-card-main,
    .game-card:nth-child(1) .game-card-main,
    .game-card:nth-child(2) .game-card-main {
        margin-top: 46px;
    }

    .game-card-main h3,
    .game-card--large .game-card-main h3 {
        font-size: 30px;
    }

    .game-watermark,
    .game-card--large .game-watermark {
        top: 72px;
        font-size: 102px;
    }

    .game-preview {
        padding-top: 20px;
    }

    .games-footnote {
        flex-direction: column;
        gap: 6px;
    }

    .steps-panel {
        padding: 26px 22px;
        border-radius: 23px;
        gap: 26px;
    }

    .steps-intro .section-title {
        font-size: clamp(31px, 7.5vw, 41px);
    }

    .steps-list li {
        grid-template-columns: 24px 38px minmax(0, 1fr);
        gap: 11px;
        padding: 18px 0;
    }

    .step-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .steps-list h3 {
        font-size: 15px;
    }

    .steps-list p {
        font-size: 11.5px;
    }

    .luck-cta {
        padding: 31px 23px;
        border-radius: 23px;
    }

    .luck-cta h2 {
        font-size: 34px;
    }

    .luck-cta p {
        font-size: 12px;
    }

    .luck-cta-actions {
        width: 100%;
    }

    .luck-cta-actions .btn {
        flex: 1;
        min-height: 45px;
        padding: 10px 13px;
        font-size: 11.5px;
    }

    .luck-cta-mark {
        font-size: 150px;
        bottom: -35px;
        opacity: 0.7;
    }

    .site-footer {
        margin-top: 80px;
        padding-top: 48px;
        border-radius: 28px 28px 0 0;
    }

    .footer-top {
        padding-bottom: 34px;
    }

    .footer-slogan {
        margin-top: 22px;
        font-size: 26px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 27px;
    }

    .footer-col--wide {
        grid-column: 1 / -1;
    }

    .footer-col--wide p {
        max-width: 440px;
    }

    .footer-notice {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .play-hero-section,
    .history-hero-section {
        padding-top: 16px;
    }

    .breadcrumb {
        margin-bottom: 13px;
        font-size: 9.5px;
    }

    .play-hero {
        min-height: 0;
        padding: 29px 22px;
        border-radius: 23px;
    }

    .play-hero h1 {
        margin-top: 14px;
        font-size: clamp(42px, 10.2vw, 58px);
    }

    .title-pill {
        margin-left: 8px;
        vertical-align: 10px;
    }

    .play-hero-copy > p {
        margin-top: 13px;
        font-size: 11.5px;
        line-height: 1.8;
    }

    .play-meta {
        gap: 5px;
        margin-top: 18px;
    }

    .play-meta > span {
        padding: 6px 9px;
        font-size: 9px;
    }

    .play-hero-art {
        opacity: 0.45;
        right: -75px;
    }

    .play-hero-note {
        display: none;
    }

    .play-main-section {
        padding-top: 14px;
    }

    .ticket-panel {
        padding: 20px 16px 18px;
        border-radius: 23px;
    }

    .ticket-panel-head {
        gap: 10px;
        padding-bottom: 15px;
    }

    .ticket-panel-head h2 {
        font-size: 24px;
    }

    .toolbar-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 9.5px;
    }

    .ticket {
        padding: 14px 13px 11px;
        border-radius: 14px;
    }

    .ticket::before {
        top: 12px;
        bottom: 12px;
    }

    .ticket-action span {
        display: none;
    }

    .ticket-action {
        width: 29px;
        height: 29px;
        justify-content: center;
        padding: 0;
    }

    .ticket-sets {
        gap: 11px;
        margin-top: 11px;
    }

    .number-label {
        font-size: 7.5px;
    }

    .ticket .ball {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .ticket-list[data-count="1"] .ticket .ball {
        width: 41px;
        height: 41px;
        font-size: 14px;
    }

    .ticket-list[data-count="1"] .ticket .digit {
        width: 37px;
        height: 44px;
        font-size: 21px;
    }

    .digit {
        width: 32px;
        height: 40px;
        font-size: 18px;
        border-radius: 8px;
    }

    .ticket-panel-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
    }

    .btn-save-all {
        width: 100%;
    }

    .panel-note {
        justify-content: center;
        margin-left: 0;
    }

    .play-assurance {
        justify-content: center;
        gap: 13px;
        padding-inline: 0;
        font-size: 8px;
    }

    .play-sidebar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }

    .config-card {
        padding: 21px;
        border-radius: 23px;
    }

    .seg-btn {
        min-height: 38px;
    }

    .saved-link,
    .rule-card,
    .tip-card {
        grid-column: auto;
    }

    .history-hero {
        min-height: 0;
        padding: 29px 22px 24px;
        border-radius: 23px;
    }

    .history-hero h1 {
        margin-top: 13px;
        font-size: clamp(38px, 10vw, 54px);
    }

    .history-hero-copy > p {
        font-size: 11.5px;
    }

    .history-hero-art {
        display: none;
    }

    .history-hero-mark {
        font-size: 84px;
        opacity: 0.08;
    }

    .history-actions {
        margin-top: 19px;
    }

    .history-summary {
        gap: 24px;
        margin-top: 24px;
        padding-top: 16px;
    }

    .history-stat span {
        font-size: 22px;
    }

    .history-stat--main span {
        font-size: 29px;
    }

    .history-main-section {
        padding-top: 20px;
    }

    .history-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 13px;
    }

    .filter-chips {
        width: 100%;
        flex-wrap: wrap;
        gap: 5px;
        overflow: visible;
        padding-bottom: 3px;
    }

    .filter-chip {
        flex: none;
        min-height: 32px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .clear-button {
        padding: 3px 0;
        font-size: 9px;
    }

    .saved-group {
        padding: 16px 14px 6px;
        border-radius: 20px;
    }

    .saved-group-head {
        align-items: flex-start;
        gap: 11px;
        padding-bottom: 12px;
    }

    .saved-group-title {
        gap: 9px;
    }

    .saved-group-mark {
        min-width: 35px;
        height: 35px;
        border-radius: 9px;
        font-size: 9.5px;
    }

    .saved-group-title h2 {
        font-size: 15px;
    }

    .saved-group-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .saved-group-meta > span {
        font-size: 8px;
    }

    .saved-group-meta a {
        font-size: 8px;
    }

    .saved-ticket {
        align-items: flex-start;
        gap: 10px;
        padding: 12px 4px;
        margin-inline: -4px;
    }

    .saved-ticket-actions {
        gap: 0;
    }

    .saved-action {
        width: 28px;
        height: 28px;
        justify-content: center;
        padding: 0;
    }

    .saved-action span {
        display: none;
    }

    .ball--sm {
        width: 27px !important;
        height: 27px !important;
        font-size: 9.5px !important;
    }

    .digit--sm {
        width: 24px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    .saved-ticket-meta {
        font-size: 8px;
    }

    .empty-state {
        padding: 34px 10px 25px;
    }

    .empty-art {
        transform: scale(0.9);
        margin-bottom: 15px;
    }

    .empty-state h2 {
        font-size: 31px;
    }

    .empty-state > p {
        font-size: 11px;
    }

    .empty-actions {
        flex-direction: column;
    }

    .empty-actions .btn {
        width: 100%;
    }

    .history-note {
        margin-top: 17px;
    }

    .toast-region {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }
}

@media (max-width: 430px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-panel {
        padding: 28px 18px 22px;
    }

    .hero-title {
        font-size: clamp(30px, 10vw, 47px);
    }

    .hero-lede br {
        display: none;
    }

    .hero-actions {
        gap: 7px;
    }

    .hero-actions .btn {
        flex: 1;
        padding-inline: 12px;
        white-space: nowrap;
    }

    .hero-proof {
        gap: 18px;
    }

    .proof-item strong {
        font-size: 18px;
    }

    .hero-visual {
        min-height: 350px;
        margin-inline: -3px;
    }

    .lucky-ticket {
        width: 100%;
        padding: 17px 16px 15px;
    }

    .hero-balls {
        gap: 4px;
        margin-top: 10px;
    }

    .hero-balls .ball {
        width: 28px;
        height: 28px;
        font-size: 10.5px;
    }

    .ball-group {
        gap: 4px;
    }

    .ball-plus {
        font-size: 12px;
    }

    .ticket-type-row {
        margin-top: 17px;
    }

    .ticket-label {
        margin-top: 18px;
    }

    .ticket-perforation {
        margin-top: 18px;
        margin-inline: -16px;
    }

    .ticket-stamp {
        display: none;
    }

    .ticket-foot {
        gap: 14px;
    }

    .ticket-barcode {
        display: none;
    }

    .orbit {
        display: none;
    }

    .section-title {
        font-size: 35px;
    }

    .game-card,
    .game-card:nth-child(1),
    .game-card:nth-child(2),
    .game-card:nth-child(5) {
        min-height: 300px;
    }

    .game-card-main h3,
    .game-card--large .game-card-main h3 {
        font-size: 28px;
    }

    .game-watermark,
    .game-card--large .game-watermark {
        font-size: 91px;
    }

    .luck-cta h2 {
        font-size: 30px;
    }

    .luck-cta-actions .btn {
        flex: auto;
        width: 100%;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-col--wide {
        grid-column: auto;
    }

    .play-hero {
        padding: 24px 18px;
    }

    .play-hero h1 {
        font-size: 38px;
    }

    .play-hero-art {
        display: none;
    }

    .play-meta > span {
        font-size: 8.5px;
    }

    .ticket-panel {
        padding: 17px 12px 15px;
    }

    .toolbar-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 9.5px;
    }

    .ticket-panel-head {
        align-items: flex-start;
    }

    .ticket-panel-head h2 {
        font-size: 21px;
    }

    .ticket .ball {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .ticket-list[data-count="1"] .ticket .ball {
        width: 37px;
        height: 37px;
        font-size: 12.5px;
    }

    .digit {
        width: 28px;
        height: 36px;
        font-size: 16px;
    }

    .ticket-list[data-count="1"] .ticket .digit {
        width: 33px;
        height: 40px;
        font-size: 19px;
    }

    .ticket-sets {
        gap: 9px;
    }

    .history-stat small {
        font-size: 8px;
    }

    .saved-group-head {
        flex-wrap: wrap;
    }

    .saved-group-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .saved-ticket {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .saved-ticket-actions {
        align-self: flex-end;
        margin-top: -4px;
    }

    .saved-action span {
        display: inline;
    }

    .saved-action {
        width: auto;
        padding: 5px 8px;
    }

    .confirm-dialog-body {
        padding: 23px;
    }

    .confirm-actions {
        flex-direction: column-reverse;
    }

    .confirm-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   DLT package ticket feature
   ========================================================================== */

.game-feature {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 3px 8px;
    border: 1px solid var(--card-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    color: var(--card-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.play-package-cta {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    padding: 7px 12px;
    border: 1px solid rgba(214, 83, 47, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.47);
    color: var(--theme-deep);
    font-size: 10px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.play-package-cta:hover {
    border-color: var(--theme);
    background: #fff;
}

.play-package-cta .icon {
    width: 13px;
    height: 13px;
}

.play-package-new {
    padding: 2px 5px;
    border-radius: 999px;
    background: var(--theme);
    color: #fff;
    font-family: var(--font-display);
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.package-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(214, 83, 47, 0.17);
    border-radius: 17px;
    background: linear-gradient(120deg, #fbe4d9, #fff9f4);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-out);
}

.package-entry:hover {
    border-color: rgba(214, 83, 47, 0.38);
    background: #fff9f4;
    transform: translateY(-2px);
}

.package-entry-icon {
    display: grid;
    width: 33px;
    height: 33px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: rgba(214, 83, 47, 0.1);
    color: var(--theme);
}

.package-entry-icon .icon {
    width: 16px;
    height: 16px;
}

.package-entry-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.4;
}

.package-entry-copy > span {
    color: var(--muted);
    font-size: 8.5px;
}

.package-entry-copy strong {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
}

.package-entry-badge {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 999px;
    background: var(--theme);
    color: #fff;
    font-family: var(--font-display);
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.package-entry-arrow {
    width: 13px;
    height: 13px;
    color: var(--muted-light);
}

/* Package promo on the home page */

.package-promo-section {
    padding-top: 22px;
}

.package-promo {
    position: relative;
    display: flex;
    min-height: 214px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: 34px 38px;
    border: 1px solid rgba(63, 33, 23, 0.1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.5), transparent 28%),
        linear-gradient(112deg, #fbe8dc 0%, #f6d9c8 50%, #fbf2e4 100%);
    color: var(--ink);
    isolation: isolate;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease;
}

.package-promo:hover {
    border-color: rgba(63, 33, 23, 0.17);
    box-shadow: 0 20px 40px rgba(69, 42, 25, 0.08);
    transform: translateY(-3px);
}

.package-promo-copy {
    position: relative;
    z-index: 3;
    max-width: 550px;
}

.package-promo .eyebrow--light {
    color: rgba(63, 33, 23, 0.56);
}

.package-promo .eyebrow--light .eyebrow-dot {
    background: #d6532f;
    box-shadow: 0 0 0 4px rgba(214, 83, 47, 0.1);
}

.package-promo h2 {
    margin-top: 14px;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
    text-wrap: balance;
}

.package-promo p {
    max-width: 460px;
    margin-top: 10px;
    color: rgba(63, 33, 23, 0.6);
    font-size: 11.5px;
    line-height: 1.8;
}

.package-promo-cta {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.package-promo-cta .icon {
    width: 13px;
    height: 13px;
    transition: transform 0.25s var(--ease-out);
}

.package-promo:hover .package-promo-cta {
    background: var(--accent);
}

.package-promo:hover .package-promo-cta .icon {
    transform: translateX(3px);
}

.package-promo-prices {
    position: relative;
    z-index: 3;
    display: grid;
    flex: none;
    grid-template-columns: repeat(3, 70px);
    gap: 7px;
    margin-left: auto;
}

.package-promo-prices span {
    display: flex;
    min-height: 61px;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    padding-top: 14px;
    border: 1px solid rgba(63, 33, 23, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.38);
    color: #4b2417;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.package-promo-prices small {
    color: rgba(63, 33, 23, 0.48);
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 500;
}

.package-promo-note {
    position: absolute;
    right: 39px;
    bottom: 17px;
    z-index: 4;
    color: rgba(63, 33, 23, 0.38);
    font-size: 8px;
    letter-spacing: 0.07em;
}

.package-promo-mark {
    position: absolute;
    right: -4%;
    bottom: -78px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.28);
    font-family: var(--font-display);
    font-size: 235px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.package-promo-orbit {
    position: absolute;
    top: -130px;
    left: 41%;
    z-index: 1;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(63, 33, 23, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Package page hero */

.package-hero {
    min-height: 310px;
}

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

.package-hero-copy {
    max-width: 700px;
}

.package-hero-art {
    position: absolute;
    top: 50%;
    right: 44px;
    width: 365px;
    height: 282px;
    transform: translateY(-50%);
    pointer-events: none;
}

.package-art-halo {
    position: absolute;
    top: 9%;
    right: 17px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(23, 24, 19, 0.08);
    border-radius: 50%;
    transform: rotate(-12deg) scaleY(0.82);
}

.package-art-ticket {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 35px rgba(61, 35, 19, 0.13);
}

.package-art-ticket--back {
    top: 29px;
    right: 33px;
    display: flex;
    width: 178px;
    height: 186px;
    flex-direction: column;
    align-items: flex-end;
    padding: 19px;
    background: #e9bfa8;
    color: rgba(63, 33, 23, 0.62);
    transform: rotate(10deg);
}

.package-art-ticket--back span {
    font-family: var(--font-display);
    font-size: 57px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

.package-art-ticket--back small,
.package-art-ticket--mid small {
    font-family: var(--font-display);
    font-size: 6.5px;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.package-art-ticket--mid {
    top: 34px;
    right: 101px;
    display: flex;
    width: 185px;
    height: 196px;
    flex-direction: column;
    align-items: flex-end;
    padding: 19px;
    background: #f0d2be;
    color: rgba(63, 33, 23, 0.58);
    transform: rotate(-5deg);
}

.package-art-ticket--mid span {
    font-family: var(--font-display);
    font-size: 49px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

.package-art-ticket--front {
    top: 19px;
    right: 45px;
    display: flex;
    width: 204px;
    height: 236px;
    flex-direction: column;
    padding: 17px;
    background: #f8f1e5;
    color: var(--ink);
    transform: rotate(2.5deg);
}

.package-art-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.package-art-brand {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.package-art-tag {
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(23, 24, 19, 0.07);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.package-art-ticket--front > strong {
    margin-top: 20px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.package-art-unit {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.06em;
}

.package-art-balls {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(23, 24, 19, 0.18);
}

.package-art-balls i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--ball-front);
    color: #fff;
    font-family: var(--font-display);
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

.package-art-balls i.alt {
    background: var(--ball-back);
}

.package-art-balls b {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 500;
}

.package-art-note {
    margin-top: 9px;
    color: var(--muted);
    font-size: 7.5px;
    letter-spacing: 0.04em;
}

.package-hero .play-art-caption {
    right: 35px;
    bottom: 9px;
}

/* Package result sheet */

.package-panel .ticket-panel-head {
    padding-bottom: 15px;
}

.package-result {
    padding-top: 14px;
    transition: opacity 0.2s ease;
}

.package-result.is-loading {
    opacity: 0.38;
    pointer-events: none;
}

.package-sheet {
    position: relative;
    overflow: hidden;
    padding: 23px 24px 18px;
    border: 1px solid rgba(23, 24, 19, 0.08);
    border-radius: 19px;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.45), transparent 58%),
        #fbf7f0;
}

.package-sheet.is-new {
    animation: packageSheetIn 0.55s var(--ease-out) both;
}

.package-sheet::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--theme);
    opacity: 0.8;
}

.package-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.package-kicker {
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.package-sheet-head h3 {
    margin-top: 5px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.15;
}

.package-sheet-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.package-sheet-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.package-price-unit {
    color: var(--theme);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.package-sheet-price strong {
    color: var(--theme-deep);
    font-family: var(--font-display);
    font-size: 45px;
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.package-sheet-price small {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.04em;
}

.package-perforation {
    position: relative;
    margin: 19px -24px 17px;
    border-top: 1px dashed rgba(23, 24, 19, 0.17);
}

.package-perforation::before,
.package-perforation::after {
    content: "";
    position: absolute;
    top: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fffdf8;
}

.package-perforation::before {
    left: -7px;
}

.package-perforation::after {
    right: -7px;
}

.package-parts {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.package-complex {
    padding: 13px 14px 12px;
    border: 1px solid rgba(23, 24, 19, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.48);
}

.package-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.package-part-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--theme-soft);
    color: var(--theme-deep);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.package-section-meta {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 500;
}

.package-balls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.package-ball-label {
    color: var(--muted-light);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.package-sheet .ball {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.package-singles {
    padding-top: 1px;
}

.package-single-list {
    display: flex;
    flex-direction: column;
}

.package-single-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(23, 24, 19, 0.09);
}

.package-single-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.package-single-index {
    width: 19px;
    flex: none;
    color: var(--muted-light);
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.package-single-row .ball-row {
    gap: 5px;
}

.package-single-row .ball {
    width: 30px;
    height: 30px;
    font-size: 10.5px;
}

.package-single-row .set-plus {
    padding-bottom: 0;
    margin: 0 2px;
    font-size: 11px;
}

.package-sheet-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 21px 34px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px dashed rgba(23, 24, 19, 0.17);
}

.package-sheet-foot > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.package-sheet-foot span {
    color: var(--muted-light);
    font-size: 8px;
}

.package-sheet-foot strong {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
}

.package-stamp {
    position: absolute;
    right: 30px;
    bottom: 55px;
    display: grid;
    width: 51px;
    height: 51px;
    place-items: center;
    border: 1px solid rgba(214, 83, 47, 0.33);
    border-radius: 50%;
    color: rgba(214, 83, 47, 0.53);
    font-family: var(--font-display);
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-align: center;
    transform: rotate(-12deg);
    pointer-events: none;
}

.package-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.package-actions .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 11px;
}

.package-actions .panel-note {
    margin-left: auto;
}

.package-actions .btn.is-saved {
    background: var(--green);
    box-shadow: 0 10px 22px rgba(43, 112, 88, 0.18);
}

/* Package configuration */

.package-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.package-tier {
    display: flex;
    min-width: 0;
    min-height: 70px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid rgba(247, 241, 229, 0.1);
    border-radius: 10px;
    background: rgba(247, 241, 229, 0.055);
    color: rgba(247, 241, 229, 0.52);
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.package-tier:hover {
    border-color: rgba(247, 241, 229, 0.25);
    background: rgba(247, 241, 229, 0.1);
}

.package-tier.is-active {
    border-color: var(--cream);
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.package-tier:disabled {
    opacity: 0.5;
}

.package-tier-price {
    display: flex;
    align-items: baseline;
    gap: 1px;
    color: var(--cream);
    font-family: var(--font-display);
    line-height: 1.1;
}

.package-tier.is-active .package-tier-price {
    color: var(--theme-deep);
}

.package-tier-price strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.package-tier-price small {
    font-size: 8px;
    font-weight: 500;
}

.package-tier-composition {
    overflow: hidden;
    max-width: 100%;
    color: rgba(247, 241, 229, 0.34);
    font-size: 7.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-tier.is-active .package-tier-composition {
    color: var(--muted);
}

.package-tier-bets {
    margin-top: auto;
    color: rgba(247, 241, 229, 0.3);
    font-family: var(--font-display);
    font-size: 7.5px;
}

.package-tier.is-active .package-tier-bets {
    color: var(--accent-deep);
}

.package-addon-field {
    margin-top: 16px;
}

.addon-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(247, 241, 229, 0.09);
    border-radius: 10px;
    background: rgba(247, 241, 229, 0.04);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.addon-toggle.is-checked {
    border-color: rgba(239, 191, 91, 0.25);
    background: rgba(239, 191, 91, 0.075);
}

.addon-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.addon-switch {
    display: flex;
    width: 30px;
    height: 17px;
    flex: none;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: rgba(247, 241, 229, 0.14);
    transition: background 0.2s ease;
}

.addon-switch > span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(247, 241, 229, 0.7);
    transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.addon-toggle.is-checked .addon-switch {
    background: var(--gold);
}

.addon-toggle.is-checked .addon-switch > span {
    background: #fffdf8;
    transform: translateX(13px);
}

.addon-toggle input:focus-visible + .addon-switch {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.addon-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.35;
}

.addon-copy strong {
    color: rgba(247, 241, 229, 0.7);
    font-size: 9px;
    font-weight: 600;
}

.addon-copy small {
    color: rgba(247, 241, 229, 0.31);
    font-size: 7.5px;
    line-height: 1.45;
}

.addon-extra {
    margin-left: auto;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 8px;
    white-space: nowrap;
}

.addon-toggle:not(.is-checked) .addon-extra {
    color: rgba(247, 241, 229, 0.24);
}

.package-selection-summary {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 17px 0;
    padding: 13px 0;
    border-top: 1px solid rgba(247, 241, 229, 0.09);
    border-bottom: 1px solid rgba(247, 241, 229, 0.09);
}

.package-selection-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.package-selection-summary span {
    color: rgba(247, 241, 229, 0.32);
    font-size: 8.5px;
}

.package-selection-summary strong {
    color: rgba(247, 241, 229, 0.72);
    font-size: 9px;
    font-weight: 500;
    text-align: right;
}

.package-selection-summary .package-amount-row {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px dashed rgba(247, 241, 229, 0.1);
}

.package-selection-summary .package-amount-row strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.package-generate-btn {
    margin-top: 1px;
}

.package-switch-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 17px;
    background: rgba(255, 252, 246, 0.7);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}

.package-switch-link:hover {
    border-color: var(--line);
    background: #fffdf8;
    transform: translateY(-2px);
}

.package-switch-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    background: rgba(23, 24, 19, 0.055);
    color: var(--muted);
}

.package-switch-icon .icon {
    width: 14px;
    height: 14px;
}

.package-switch-link > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.package-switch-link strong {
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 600;
}

.package-switch-link small {
    color: var(--muted-light);
    font-size: 8px;
}

.package-switch-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: var(--muted-light);
}

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

/* Package responsive */

@media (max-width: 1160px) {
    .package-hero-art {
        right: 20px;
        transform: translateY(-50%) scale(0.9);
        transform-origin: right center;
    }

    .package-promo-prices {
        grid-template-columns: repeat(3, 62px);
    }

    .package-promo-prices span {
        min-height: 56px;
        font-size: 18px;
    }
}

@media (max-width: 980px) {
    .package-hero-art {
        right: -20px;
        opacity: 0.55;
        transform: translateY(-50%) scale(0.82);
    }

    .page-package .play-sidebar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .package-promo {
        flex-wrap: wrap;
        gap: 22px;
    }

    .package-promo-prices {
        margin-left: 0;
        grid-template-columns: repeat(6, 62px);
    }

    .package-promo-note {
        display: none;
    }
}

@media (max-width: 720px) {
    .package-promo-section {
        padding-top: 18px;
    }

    .package-promo {
        display: block;
        min-height: 0;
        padding: 26px 23px;
        border-radius: 23px;
    }

    .package-promo h2 {
        font-size: 32px;
    }

    .package-promo p {
        font-size: 11px;
    }

    .package-promo-prices {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 22px;
    }

    .package-promo-prices span {
        min-height: 53px;
        padding-top: 12px;
        border-radius: 13px;
        font-size: 17px;
    }

    .package-promo-mark {
        right: -45px;
        bottom: -50px;
        font-size: 165px;
    }

    .package-promo-orbit {
        right: -60px;
        left: auto;
        width: 260px;
        height: 260px;
    }

    .package-hero-art {
        display: none;
    }

    .package-hero {
        min-height: 0;
    }

    .package-hero-copy {
        max-width: none;
    }

    .package-hero h1 {
        font-size: clamp(38px, 9.2vw, 54px);
    }

    .package-panel {
        padding: 20px 16px 18px;
    }

    .package-sheet {
        padding: 18px 16px 15px;
        border-radius: 15px;
    }

    .package-sheet-head h3 {
        font-size: 23px;
    }

    .package-sheet-price strong {
        font-size: 38px;
    }

    .package-perforation {
        margin-inline: -16px;
    }

    .package-sheet .ball {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .package-complex {
        padding: 11px 11px 10px;
    }

    .package-balls {
        gap: 6px;
    }

    .package-ball-label {
        font-size: 7px;
    }

    .package-single-row {
        gap: 6px;
    }

    .package-single-row .ball {
        width: 28px;
        height: 28px;
        font-size: 9.5px;
    }

    .package-sheet-foot {
        gap: 15px 23px;
    }

    .package-stamp {
        display: none;
    }

    .package-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .package-actions .btn {
        width: 100%;
    }

    .package-actions .panel-note {
        justify-content: center;
        margin-left: 0;
    }

    .package-tier-grid {
        gap: 5px;
    }

    .package-tier {
        min-height: 66px;
    }

    .package-tier-composition {
        font-size: 7px;
    }

    .package-generate-btn {
        width: 100%;
    }

    .play-package-cta {
        margin-top: 13px;
    }
}

@media (max-width: 430px) {
    .package-promo {
        padding: 23px 18px;
    }

    .package-promo h2 {
        font-size: 29px;
    }

    .package-promo-cta {
        min-height: 34px;
    }

    .package-promo-prices span {
        min-height: 49px;
        padding-top: 10px;
        font-size: 16px;
    }

    .package-sheet {
        padding: 16px 13px 13px;
    }

    .package-sheet-head {
        gap: 10px;
        flex-wrap: wrap;
    }

    .package-sheet-head h3 {
        font-size: 21px;
    }

    .package-sheet-head p {
        font-size: 9px;
    }

    .package-sheet-price {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .package-sheet-price strong {
        font-size: 34px;
    }

    .package-sheet-price small {
        flex-basis: auto;
        margin-left: 4px;
    }

    .package-perforation {
        margin-inline: -13px;
        margin-top: 15px;
        margin-bottom: 14px;
    }

    .package-parts {
        gap: 9px;
    }

    .package-balls {
        gap: 5px;
    }

    .package-sheet .ball {
        width: 27px;
        height: 27px;
        font-size: 9px;
    }

    .package-single-row .ball {
        width: 25px;
        height: 25px;
        font-size: 8.5px;
    }

    .package-single-index {
        width: 16px;
        font-size: 8px;
    }

    .package-single-row {
        gap: 5px;
    }

    .package-sheet-foot {
        gap: 13px 19px;
    }

    .package-sheet-foot strong {
        font-size: 11px;
    }

    .package-tier-price strong {
        font-size: 20px;
    }

    .package-tier-composition {
        font-size: 6.5px;
    }

    .package-addon-field .addon-toggle {
        align-items: flex-start;
    }

    .addon-copy strong {
        font-size: 8.5px;
    }

    .addon-copy small {
        font-size: 7px;
    }

    .addon-extra {
        font-size: 7px;
    }
}


/* ==========================================================================
   Responsible play — prominent purchase notices
   ========================================================================== */

.responsible-banner {
    padding-top: clamp(34px, 5vw, 58px);
}

.responsible-banner + .site-footer {
    margin-top: 22px;
}

.responsible-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 2.6vw, 30px);
    overflow: hidden;
    padding: 24px 27px;
    border: 1px solid rgba(232, 76, 46, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 93% 10%, rgba(232, 76, 46, 0.08), transparent 30%),
        #fff8ed;
    box-shadow: 0 14px 34px rgba(74, 45, 25, 0.06);
}

.responsible-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--accent);
}

.responsible-badge {
    display: flex;
    width: 80px;
    height: 80px;
    flex-wrap: wrap;
    align-content: center;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    border-radius: 21px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(232, 76, 46, 0.22);
}

.responsible-badge strong {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.responsible-badge > span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.responsible-badge small {
    flex-basis: 100%;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-sans);
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-align: center;
}

.responsible-kicker {
    color: var(--accent-deep);
    font-family: var(--font-display);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.responsible-copy h2 {
    margin-top: 5px;
    color: var(--ink);
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.18;
}

.responsible-copy p {
    max-width: 680px;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.8;
}

.responsible-copy p strong {
    color: var(--ink-soft);
    font-weight: 700;
}

.responsible-copy p strong:last-child {
    color: var(--accent-deep);
}

.responsible-tags {
    display: flex;
    min-width: 180px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.responsible-tags span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid rgba(232, 76, 46, 0.2);
    border-radius: 999px;
    background: rgba(232, 76, 46, 0.055);
    color: var(--accent-deep);
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.responsible-tags span:last-child {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.hero-responsible {
    display: flex;
    max-width: 500px;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(239, 191, 91, 0.26);
    border-radius: 11px;
    background: rgba(239, 191, 91, 0.08);
    color: rgba(247, 241, 229, 0.7);
    font-size: 10.5px;
    line-height: 1.7;
}

.hero-responsible strong {
    color: rgba(247, 241, 229, 0.92);
    font-weight: 700;
}

.hero-age {
    display: inline-flex;
    min-width: 27px;
    height: 20px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.compliance-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(232, 76, 46, 0.25);
    border-radius: 12px;
    background: #fff4e7;
}

.compliance-age {
    display: inline-flex;
    min-width: 28px;
    height: 22px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.compliance-callout strong {
    display: block;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.compliance-callout p {
    margin-top: 3px;
    color: #724f42;
    font-size: 10.5px;
    line-height: 1.7;
}

/* Stronger existing notices */

.footer-notice {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid rgba(239, 191, 91, 0.2) !important;
    border-radius: 14px;
    background: rgba(239, 191, 91, 0.065);
}

.footer-notice-badge {
    display: inline-flex;
    min-width: 35px;
    height: 27px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
}

.footer-notice p {
    max-width: none !important;
    color: rgba(247, 241, 229, 0.6) !important;
    font-size: 11.5px !important;
    line-height: 1.8 !important;
}

.footer-notice p strong {
    margin-right: 5px;
    color: var(--gold) !important;
    font-size: 11.5px;
    font-weight: 700;
}

.footer-notice {
    grid-template-columns: none !important;
}

.rule-warning {
    align-items: flex-start;
    margin-top: 15px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: var(--danger-soft);
    color: #8b4a3e;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.7;
}

.rule-warning .icon {
    width: 12px;
    height: 12px;
    color: var(--danger);
}

.play-assurance {
    color: #77776d;
    font-size: 9.5px;
}

.hero-bottom-line {
    color: rgba(247, 241, 229, 0.44);
    font-size: 9.5px;
}

@media (max-width: 980px) {
    .responsible-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .responsible-tags {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .responsible-banner {
        padding-top: 38px;
    }

    .responsible-banner + .site-footer {
        margin-top: 16px;
    }

    .responsible-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        padding: 20px 19px;
        border-radius: 20px;
    }

    .responsible-badge {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .responsible-badge strong {
        font-size: 23px;
    }

    .responsible-badge > span {
        font-size: 12px;
    }

    .responsible-badge small {
        margin-top: 3px;
        font-size: 6.5px;
    }

    .responsible-copy h2 {
        margin-top: 4px;
        font-size: 21px;
    }

    .responsible-copy p {
        font-size: 11.5px;
        line-height: 1.8;
    }

    .responsible-tags {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .responsible-tags span {
        min-height: 23px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .hero-responsible {
        max-width: none;
        margin-top: 14px;
        font-size: 10px;
    }

    .compliance-callout {
        margin-top: 12px;
        padding: 12px 11px;
    }

    .compliance-callout strong {
        font-size: 12px;
    }

    .compliance-callout p {
        font-size: 10px;
    }

    .footer-notice {
        align-items: flex-start;
        padding: 14px;
    }

    .footer-notice p {
        font-size: 11px !important;
    }

    .footer-notice p strong {
        display: block;
        margin-bottom: 2px;
        font-size: 11.5px;
    }

    .play-assurance {
        font-size: 9px;
    }

    .hero-bottom-line {
        display: flex;
        font-size: 8.5px;
        color: rgba(247, 241, 229, 0.38);
    }
}

@media (max-width: 430px) {
    .responsible-card {
        padding: 18px 16px;
    }

    .responsible-copy p {
        font-size: 11px;
    }

    .responsible-tags span:last-child {
        white-space: normal;
    }

    .hero-responsible {
        font-size: 9.5px;
    }

    .compliance-callout {
        gap: 8px;
    }

    .compliance-callout strong {
        font-size: 11.5px;
    }

    .compliance-callout p {
        font-size: 9.7px;
    }

    .footer-notice {
        gap: 10px;
    }

    .footer-notice-badge {
        min-width: 32px;
        height: 25px;
        font-size: 10px;
    }

    .footer-notice p {
        font-size: 10.5px !important;
    }
}

