:root {
    --canvas: #f3f7fc;
    --surface: #ffffff;
    --surface-blue: #e9f2ff;
    --ink: #0b1d35;
    --muted: #52657e;
    --soft: #71839a;
    --line: #d7e3f0;
    --blue: #1764c0;
    --blue-strong: #0d4fa8;
    --blue-deep: #082e67;
    --blue-night: #061c3d;
    --gold: #d2a24e;
    --gold-light: #f2d797;
    --cream: #fff8e8;
    --success: #2f7d5b;
    --danger: #b64d51;
    --shadow: 0 18px 48px rgba(26, 76, 132, .12);
    --ease: cubic-bezier(.22, .8, .22, 1);
    --spin: cubic-bezier(.14, .72, .18, 1);
}

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

html, body { width: 100%; height: 100%; margin: 0; }

html { color-scheme: light; background: var(--canvas); }

body {
    overflow: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 8%, rgba(89, 157, 229, .2), transparent 35%),
        radial-gradient(circle at 8% 88%, rgba(216, 232, 251, .9), transparent 37%),
        var(--canvas);
    font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button, a[href] { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(23, 100, 192, .34); outline-offset: 3px; }

.skip-link {
    position: fixed;
    z-index: 200;
    top: 8px;
    left: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--blue-deep);
    color: #fff;
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.casino-canvas { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.canvas-orbit { position: absolute; border: 1px solid rgba(23, 100, 192, .08); border-radius: 50%; }
.orbit-one { width: min(44vw, 760px); aspect-ratio: 1; right: -16vw; top: -26vw; }
.orbit-two { width: min(34vw, 560px); aspect-ratio: 1; left: -14vw; bottom: -20vw; }
.canvas-suit { position: absolute; color: rgba(23, 100, 192, .045); font-family: Georgia, serif; font-size: clamp(90px, 14vw, 250px); }
.suit-diamond { right: 4vw; top: 11vh; transform: rotate(14deg); }
.suit-club { left: 2vw; bottom: 4vh; transform: rotate(-10deg); }
.canvas-rule { position: absolute; inset: 10% 4%; border: 1px solid rgba(23, 100, 192, .05); border-radius: 40px; }

.site-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1600px, calc(100% - 40px));
    margin: 0 auto;
    border-bottom: 1px solid rgba(102, 133, 169, .22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 48px;
    text-decoration: none;
}
.brand-avatar { width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(30, 77, 130, .13); }
.brand-avatar img, .profile-portrait img, .contact-profile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none !important; }
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: -.015em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }

.topnav { display: flex; align-items: center; gap: 7px; }
.topnav button, .topnav a {
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #29435f;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.topnav button:hover, .topnav a:hover { background: rgba(255,255,255,.72); border-color: var(--line); transform: translateY(-1px); }
.topnav .nav-accent { background: var(--blue); border-color: var(--blue); color: #fff; }
.topnav .nav-accent:hover { background: var(--blue-strong); border-color: var(--blue-strong); }

.main-stage {
    width: min(1600px, calc(100% - 40px));
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 16px 0 22px;
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(560px, 1.48fr);
    gap: clamp(14px, 1.5vw, 24px);
}

.profile-card, .journey-card {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(151, 176, 205, .55);
    border-radius: 26px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.profile-card {
    overflow: hidden;
    padding: clamp(20px, 2.3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(17px, 2vh, 26px);
}
.profile-portrait { position: relative; width: clamp(116px, 10vw, 164px); aspect-ratio: 1; border-radius: 50%; padding: 6px; background: linear-gradient(145deg, #fff, var(--surface-blue)); box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(23, 100, 192, .15); }
.profile-portrait img { border-radius: 50%; }
.profile-portrait > span { position: absolute; right: -3px; bottom: 5px; display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 850; letter-spacing: .04em; }
.eyebrow, .table-kicker, .reward-kicker { margin: 0; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.profile-copy h1 { margin: 9px 0 13px; max-width: 590px; font-size: clamp(36px, 3.25vw, 58px); line-height: .99; letter-spacing: -.048em; }
.profile-copy h1 em { color: var(--blue); font-style: normal; }
.profile-copy > p:last-child { margin: 0; color: var(--muted); font-size: clamp(16px, 1.02vw, 18px); line-height: 1.52; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-metrics span { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.25; }
.profile-metrics strong { display: block; margin-bottom: 3px; color: var(--blue-deep); font-size: 19px; }
.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-links button, .profile-links a { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: #29435f; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.profile-links button { border-color: var(--blue); background: var(--blue); color: #fff; }

.journey-card {
    overflow: hidden;
    padding: clamp(16px, 1.7vw, 26px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: clamp(10px, 1.5vh, 16px);
}
.journey-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 20px; }
.journey-head h2 { margin: 5px 0 0; font-size: clamp(30px, 2.35vw, 43px); line-height: 1.03; letter-spacing: -.035em; }
.journey-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; }
.table-kicker span { display: inline-block; margin-right: 4px; color: var(--gold); }

.stage-control { display: grid; grid-template-columns: 50px minmax(0, 1fr) 50px; align-items: center; gap: 10px; }
.stage-arrow { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--blue-deep); font-size: 23px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.stage-arrow:hover { transform: translateY(-1px); border-color: #aec5df; background: var(--surface-blue); }
.stage-arrow:disabled { cursor: default; opacity: .32; transform: none; }
.stage-progress { min-width: 0; display: grid; grid-template-columns: auto minmax(100px, 1fr); align-items: center; gap: 18px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbff; }
.stage-progress p { min-width: 0; margin: 0; display: grid; }
.stage-progress p span { color: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stage-progress p strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.progress-dots { display: flex; justify-content: flex-end; gap: 7px; }
.progress-dots i { width: 100%; max-width: 55px; height: 5px; border-radius: 999px; background: #d8e4f2; transition: background .26s var(--ease), transform .26s var(--ease); }
.progress-dots i.is-active { background: var(--blue); transform: scaleY(1.35); }
.progress-dots i.is-unlocked { background: var(--gold); }
.progress-dots i.is-unlocked.is-active { box-shadow: 0 0 0 2px rgba(23,100,192,.28); }

.journey-viewport { position: relative; min-width: 0; min-height: 0; overflow: clip; border-radius: 22px; background: linear-gradient(145deg, var(--blue-deep), #1769c7 72%, #3986d9); color: #fff; isolation: isolate; }
.journey-viewport::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12; background: repeating-linear-gradient(120deg, rgba(255,255,255,.17) 0 1px, transparent 1px 9px); }
.journey-viewport::after { content: ""; position: absolute; z-index: -1; width: 36%; aspect-ratio: 1; right: 1%; bottom: 1%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 26px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.018); }

.stage-face, .reward-face, .completion-face { position: absolute; inset: 0; min-width: 0; min-height: 0; padding: clamp(18px, 2.2vw, 34px); transition: opacity .44s var(--ease), transform .44s var(--ease); }
.stage-face { display: grid; grid-template-columns: minmax(210px, .78fr) minmax(300px, 1.22fr); grid-template-rows: minmax(0, 1fr) auto; gap: 18px 28px; }
.table-mark { position: relative; grid-row: 1 / 3; min-width: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(4, 29, 68, .3); }
.table-mark small { position: absolute; bottom: 18px; font-size: 12px; font-weight: 850; letter-spacing: .14em; }

.casino-scene { position: absolute; inset: 10px; display: grid; place-items: center; min-width: 0; opacity: 1; }
.casino-scene[hidden] { display: none !important; }
.casino-scene::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.game-outcome { position: absolute; right: 12px; top: 12px; min-width: 72px; display: grid; padding: 7px 9px; border: 1px solid rgba(242,215,151,.42); border-radius: 11px; background: rgba(4,29,68,.72); color: #fff; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.game-outcome span { color: var(--gold-light); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.game-outcome strong { font-size: 25px; line-height: 1; }
.game-stage[data-phase="playing"] .game-outcome { opacity: 0; }
.game-stage[data-phase="settled"] .game-outcome { opacity: 1; transform: none; }

.blackjack-hand { position: relative; width: 188px; height: 142px; }
.playing-card { position: absolute; left: 50%; top: 50%; width: 78px; height: 108px; overflow: hidden; border: 3px solid rgba(255,255,255,.92); border-radius: 10px; background: #fff; color: #0a244a; box-shadow: 0 12px 28px rgba(0,17,45,.24); opacity: 0; transform-origin: 50% 110%; }
.playing-card i { position: absolute; top: 6px; left: 7px; font: 850 15px/1.05 Georgia, serif; font-style: normal; text-align: center; }
.playing-card b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 42px/1 Georgia, serif; }
.playing-card.red-card { color: #c43e48; }
.card-ace { transform: translate(-85%, -50%) rotate(-7deg); }
.card-king { transform: translate(-18%, -44%) rotate(7deg); }
.game-stage[data-phase="ready"] .playing-card {
    opacity: 1;
    border-color: rgba(255,255,255,.82);
    background:
        linear-gradient(135deg, rgba(255,255,255,.13) 25%, transparent 25%) -8px 0 / 16px 16px,
        linear-gradient(225deg, rgba(255,255,255,.13) 25%, transparent 25%) -8px 0 / 16px 16px,
        var(--blue-deep);
    color: transparent;
}
.game-stage[data-phase="ready"] .playing-card i,
.game-stage[data-phase="ready"] .playing-card b { opacity: 0; }
.game-stage[data-phase="ready"] .card-ace { transform: translate(-75%, -50%) rotate(-5deg); }
.game-stage[data-phase="ready"] .card-king { transform: translate(-28%, -46%) rotate(5deg); }
.blackjack-scene::after { content: none; }
.game-stage[data-phase="settled"] .playing-card { opacity: 1; }
.game-stage[data-phase="playing"] .card-ace { animation: deal-ace .62s var(--ease) both; }
.game-stage[data-phase="playing"] .card-king { animation: deal-king .78s .33s var(--ease) both; }
@keyframes deal-ace { from { opacity: 0; transform: translate(170%, -170%) rotate(24deg); } to { opacity: 1; transform: translate(-85%, -50%) rotate(-7deg); } }
@keyframes deal-king { from { opacity: 0; transform: translate(170%, -170%) rotate(28deg); } to { opacity: 1; transform: translate(-18%, -44%) rotate(7deg); } }

.slot-machine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(220px, 80%); height: 126px; padding: 12px; border: 3px solid var(--gold-light); border-radius: 17px; background: #f8fbff; box-shadow: inset 0 0 0 4px #d9e8f8, 0 14px 30px rgba(0,17,45,.24); }
.slot-reel { position: relative; overflow: hidden; border: 1px solid #bdd1e6; border-radius: 8px; background: #fff; }
.slot-reel::before, .slot-reel::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 18px; }
.slot-reel::before { top: 0; background: linear-gradient(#dbe6f2, transparent); }
.slot-reel::after { bottom: 0; background: linear-gradient(transparent, #dbe6f2); }
.game-stage { --reel-stop: -500px; }
.slot-strip { display: grid; grid-auto-rows: 100px; transform: translateY(0); color: var(--blue-deep); font-weight: 900; }
.slot-strip span { display: grid; place-items: center; font-size: 31px; }
.game-stage[data-phase="playing"] .slot-reel:nth-child(1) .slot-strip { animation: reel-one 1.45s var(--spin) both; }
.game-stage[data-phase="playing"] .slot-reel:nth-child(2) .slot-strip { animation: reel-two 1.7s var(--spin) both; }
.game-stage[data-phase="playing"] .slot-reel:nth-child(3) .slot-strip { animation: reel-three 1.95s var(--spin) both; }
@keyframes reel-one { from { transform: translateY(0); } to { transform: translateY(var(--reel-stop)); } }
@keyframes reel-two { from { transform: translateY(0); } to { transform: translateY(var(--reel-stop)); } }
@keyframes reel-three { from { transform: translateY(0); } to { transform: translateY(var(--reel-stop)); } }
.game-stage[data-phase="settled"] .slot-strip { transform: translateY(var(--reel-stop)); }

.mini-roulette { position: relative; width: min(190px, 64%); aspect-ratio: 1; display: grid; place-items: center; border: 12px solid rgba(255,255,255,.14); border-radius: 50%; background: repeating-conic-gradient(#082e67 0 18deg, #d2a24e 18deg 36deg); box-shadow: inset 0 0 0 5px #eff6ff, 0 12px 30px rgba(0,17,45,.2); }
.mini-roulette::before { content: ""; position: absolute; inset: 23%; border-radius: 50%; background: #fff; }
.mini-roulette b { position: relative; z-index: 1; color: var(--blue-deep); font-size: 12px; letter-spacing: .04em; }
.roulette-ball { position: absolute; z-index: 2; width: 13px; aspect-ratio: 1; top: 4px; left: 50%; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.24); transform-origin: 0 calc(50% + 76px); }
.game-stage[data-phase="playing"] .mini-roulette { animation: roulette-wheel 1.75s var(--spin); }
.game-stage[data-phase="playing"] .roulette-ball { animation: roulette-ball 1.75s var(--spin); }
@keyframes roulette-wheel { to { transform: rotate(1080deg); } }
@keyframes roulette-ball { to { transform: rotate(-1470deg); } }

.vip-stack { position: relative; width: min(210px, 75%); height: 145px; }
.vip-stack span { position: absolute; left: 50%; width: 142px; height: 38px; display: grid; place-items: center; border: 4px dashed rgba(255,255,255,.75); border-radius: 50%; background: #1f6fc8; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .06em; box-shadow: 0 8px 15px rgba(0,17,45,.18); opacity: 0; transform: translateX(-50%); }
.vip-stack span:nth-child(1) { bottom: 2px; }
.vip-stack span:nth-child(2) { bottom: 28px; }
.vip-stack span:nth-child(3) { bottom: 54px; }
.vip-stack span:nth-child(4) { bottom: 80px; background: var(--gold); color: #2f210a; }
.game-stage[data-phase="playing"] .vip-stack span { animation: stack-chip .74s var(--ease) both; }
.game-stage[data-phase="playing"] .vip-stack span:nth-child(2) { animation-delay: .16s; }
.game-stage[data-phase="playing"] .vip-stack span:nth-child(3) { animation-delay: .32s; }
.game-stage[data-phase="playing"] .vip-stack span:nth-child(4) { animation-delay: .48s; }
.game-stage[data-phase="settled"] .vip-stack span { opacity: 1; }
@keyframes stack-chip { from { opacity: 0; transform: translate(-50%, 100px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.dice-pair { display: flex; gap: 15px; }
.die { width: 68px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); padding: 10px; border: 3px solid #dbe8f6; border-radius: 14px; background: #fff; box-shadow: 0 12px 24px rgba(0,17,45,.22); opacity: 0; }
.die i { width: 9px; aspect-ratio: 1; place-self: center; border-radius: 50%; background: var(--blue-deep); }
.die i:nth-child(1) { grid-area: 1/1; }.die i:nth-child(2) { grid-area: 1/3; }.die i:nth-child(3) { grid-area: 2/1; }.die i:nth-child(4) { grid-area: 2/3; }.die i:nth-child(5) { grid-area: 3/1; }.die i:nth-child(6) { grid-area: 3/3; }
.game-stage[data-phase="playing"] .die:first-child { animation: dice-one 1.05s var(--spin); }
.game-stage[data-phase="playing"] .die:last-child { animation: dice-two 1.22s var(--spin); }
.game-stage[data-phase="settled"] .die { opacity: 1; }
@keyframes dice-one { from { opacity: 0; transform: translate(-70px,-60px) rotate(-220deg); } to { opacity: 1; transform: none; } }
@keyframes dice-two { from { opacity: 0; transform: translate(80px,-50px) rotate(260deg); } to { opacity: 1; transform: none; } }
.channel-pips { position: absolute; bottom: 10px; display: flex; gap: 5px; }
.channel-pips span { padding: 4px 6px; border-radius: 7px; background: rgba(255,255,255,.12); font-size: 8px; font-weight: 750; opacity: 0; }
.game-stage[data-phase="playing"] .channel-pips span { animation: channel-on .28s var(--ease) both; }
.game-stage[data-phase="playing"] .channel-pips span:nth-child(2) { animation-delay: .86s; }.game-stage[data-phase="playing"] .channel-pips span:nth-child(3) { animation-delay: 1.02s; }.game-stage[data-phase="playing"] .channel-pips span:nth-child(4) { animation-delay: 1.18s; }.game-stage[data-phase="playing"] .channel-pips span:nth-child(5) { animation-delay: 1.34s; }
.game-stage[data-phase="settled"] .channel-pips span { opacity: 1; background: var(--gold); color: #2e2009; }
@keyframes channel-on { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; background: var(--gold); color: #2e2009; } }
.stage-copy { align-self: center; min-width: 0; }
.stage-name { margin: 0 0 11px; color: #ddecff; font-size: 14px; font-weight: 700; }
.stage-name > span:first-child { display: inline-grid; place-items: center; min-width: 33px; height: 27px; margin-right: 6px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; }
.stage-name strong { color: var(--gold-light); }
.stage-copy h3, .reward-copy h3 { margin: 0 0 12px; max-width: 760px; font-size: clamp(31px, 3vw, 53px); line-height: 1.01; letter-spacing: -.042em; }
.stage-copy > p:last-of-type, .reward-copy > p:last-of-type { margin: 0; max-width: 720px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.48; }
.stage-tags, .reward-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.stage-tags span, .reward-tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.09); color: #edf6ff; font-size: 12px; font-weight: 750; }
.stage-action { align-self: end; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(210px, auto); align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); }
.stage-action p { min-width: 0; margin: 0; display: grid; }
.stage-action p span { color: rgba(255,255,255,.66); font-size: 12px; font-weight: 750; }
.stage-action p strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.bet-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--gold-light); border-radius: 14px; background: linear-gradient(180deg, #f4dda6, var(--gold)); color: #34240e; font-size: 16px; cursor: pointer; box-shadow: 0 9px 24px rgba(0, 19, 48, .19); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bet-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,19,48,.25); }
.bet-button:disabled { cursor: wait; opacity: .78; transform: none; }
.chip { position: relative; width: 28px; height: 28px; flex: 0 0 28px; border: 3px solid #fff8e7; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 2px var(--gold-light); }
.chip::after { content: "V"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 900; }
.flow-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }
.bet-flash { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.bet-flash span { width: 70px; aspect-ratio: 1; border: 3px solid var(--gold-light); border-radius: 50%; }
.journey-viewport.is-playing .bet-flash { animation: chip-flash 1.25s var(--spin); }
@keyframes chip-flash { 0% { opacity: 0; transform: scale(.3); } 22% { opacity: 1; } 75% { opacity: .3; transform: scale(5); } 100% { opacity: 0; transform: scale(6); } }

.reward-face { display: grid; grid-template-columns: minmax(145px, .45fr) minmax(280px, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 14px 28px; background: linear-gradient(145deg, #092c62, #1764c0); }
.reward-lead { grid-row: 1 / 4; display: grid; align-content: center; justify-items: center; gap: 13px; min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 19px; background: rgba(255,255,255,.07); text-align: center; }
.reward-suit { display: grid; place-items: center; width: min(130px, 70%); aspect-ratio: 1; border: 5px solid var(--gold-light); border-radius: 50%; background: #fff; color: var(--blue-deep); font: 700 clamp(38px, 4vw, 64px)/1 Georgia, serif; }
.reward-lead p { margin: 0; display: grid; }
.reward-lead p span { color: #c7daf2; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.reward-lead p strong { color: var(--gold-light); font-size: 18px; }
.reward-copy { align-self: end; }
.reward-kicker { color: var(--gold-light); }
.reward-proof { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 12px 15px; border: 1px solid rgba(242,215,151,.55); border-radius: 14px; background: var(--cream); color: var(--ink); }
.reward-proof span { grid-row: 1 / 3; color: #795a1c; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.reward-proof strong { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.1; }
.reward-proof small { color: var(--muted); font-size: 13px; }
.reward-tags { margin-top: 0; align-self: center; }
.reward-actions { display: flex; justify-content: flex-end; gap: 9px; }
.reward-actions button { min-height: 49px; padding: 0 17px; border: 1px solid rgba(255,255,255,.26); border-radius: 13px; background: rgba(255,255,255,.09); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.reward-actions .reward-next { border-color: var(--gold-light); background: var(--gold-light); color: #3e2c0d; }
.reward-face[hidden] { display: none !important; }
.stage-face[hidden] { display: none !important; }
.completion-face[hidden] { display: none !important; }
.journey-viewport.is-transitioning .stage-face, .journey-viewport.is-transitioning .reward-face, .journey-viewport.is-transitioning .completion-face { opacity: 0; transform: translateX(var(--travel, -14px)); }
.journey-viewport.is-entering .stage-face, .journey-viewport.is-entering .reward-face, .journey-viewport.is-entering .completion-face { animation: stage-in .44s var(--ease); }
@keyframes stage-in { from { opacity: 0; transform: translateX(var(--travel, 14px)); } to { opacity: 1; transform: none; } }

.completion-face { display: grid; grid-template-columns: minmax(170px,.5fr) minmax(280px,1fr); grid-template-rows: 1fr auto; gap: 18px 28px; background: linear-gradient(145deg, #092c62, #1764c0); }
.completion-seal { position: relative; grid-row: 1 / 3; display: grid; place-items: center; align-self: center; justify-self: center; width: min(220px, 86%); aspect-ratio: 1; border: 2px solid rgba(242,215,151,.65); border-radius: 50%; box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 0 36px rgba(255,255,255,.025); }
.completion-seal strong { display: grid; place-items: center; width: 48%; aspect-ratio: 1; border-radius: 50%; background: var(--gold-light); color: var(--blue-deep); font-size: 30px; }
.completion-seal span { position: absolute; display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: var(--gold); color: #33220a; font-size: 12px; font-weight: 900; }
.completion-seal span:nth-child(1) { top: -16px; left: calc(50% - 17px); }.completion-seal span:nth-child(2) { top: 22%; right: -8px; }.completion-seal span:nth-child(3) { bottom: 1%; right: 12%; }.completion-seal span:nth-child(4) { bottom: 1%; left: 12%; }.completion-seal span:nth-child(5) { top: 22%; left: -8px; }
.completion-copy { align-self: end; }
.completion-copy h3 { margin: 5px 0 10px; font-size: clamp(34px,3.2vw,54px); line-height: 1; letter-spacing: -.04em; }
.completion-copy > p:last-child { max-width: 640px; margin: 0; color: rgba(255,255,255,.82); font-size: 17px; }
.completion-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.completion-actions button, .completion-actions a { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.completion-actions .completion-primary { border-color: var(--gold-light); background: var(--gold-light); color: #35240b; }
.completion-replay { grid-column: 2; justify-self: start; min-height: 46px; padding: 0; border: 0; background: transparent; color: #d4e5f8; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.mobile-dock { display: none; }

.overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 12px; }
.overlay[hidden] { display: none; }
.overlay-backdrop { position: absolute; inset: 0; border: 0; background: rgba(7, 24, 47, .44); backdrop-filter: blur(5px); cursor: pointer; }
.overlay-sheet { position: relative; z-index: 1; width: min(980px, calc(100% - 20px)); max-height: min(820px, calc(100dvh - 24px)); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: clamp(18px, 2.4vw, 32px); border: 1px solid #cbdbea; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(7,36,76,.24); animation: sheet-in .3s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.overlay-header { position: sticky; z-index: 5; top: calc(clamp(18px, 2.4vw, 32px) * -1); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: calc(clamp(18px, 2.4vw, 32px) * -1) calc(clamp(18px, 2.4vw, 32px) * -1) 12px; padding: clamp(18px, 2.4vw, 32px); padding-bottom: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.overlay-header h2 { margin: 4px 0 0; font-size: clamp(27px, 3vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.overlay-close { width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); color: var(--ink); font-size: 25px; cursor: pointer; }
.overlay-intro { max-width: 760px; margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.expertise-grid article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbff; }
.expertise-grid i { color: var(--blue); font: 700 22px/1 Georgia, serif; font-style: normal; }
.expertise-grid h3 { margin: 9px 0 7px; font-size: 18px; letter-spacing: -.02em; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.expertise-grid small { display: block; margin-top: 10px; color: var(--blue); font-size: 12px; font-weight: 750; }
.impact-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 11px; }
.impact-row span { padding: 12px 8px; border-radius: 12px; background: var(--surface-blue); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.impact-row strong { display: block; color: var(--blue-deep); font-size: 20px; }

.contact-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 16px; padding: 5px; border-radius: 15px; background: var(--canvas); }
.contact-tabs button { min-height: 48px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 800; cursor: pointer; }
.contact-tabs button[aria-selected="true"] { background: #fff; color: var(--blue-deep); box-shadow: 0 4px 13px rgba(34,79,131,.1); }
.contact-view[hidden] { display: none; }
.contact-profile { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 14px; margin-bottom: 15px; }
.contact-profile img { width: 74px; height: 74px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.contact-profile p { margin: 0; display: grid; gap: 2px; }
.contact-profile strong { font-size: 20px; }
.contact-profile span { color: var(--muted); font-size: 14px; }
.contact-profile small { color: var(--blue); font-size: 13px; font-weight: 750; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-grid article, .contact-grid > a { min-width: 0; min-height: 72px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbff; text-decoration: none; }
.contact-grid article > span, .contact-grid > a > span { grid-column: 1; color: var(--soft); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.contact-grid article a, .contact-grid > a strong { grid-column: 1; min-width: 0; overflow-wrap: anywhere; color: var(--blue-deep); font-size: 15px; font-weight: 800; text-decoration: none; }
.contact-grid article a { min-height: 44px; display: flex; align-items: center; }
.contact-grid article button { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 58px; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 850; cursor: pointer; }
.contact-grid > a i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--blue); font-style: normal; }
.contact-cv { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; margin-top: 10px; padding: 13px; border-radius: 15px; background: var(--blue-deep); color: #fff; }
.contact-cv > div { display: grid; }
.contact-cv > div span { color: #bcd6f3; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.contact-cv > div strong { font-size: 16px; }
.contact-cv > div small { color: #d5e5f7; font-size: 12px; }
.contact-cv > a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 11px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.contact-cv > a:first-of-type { border-color: var(--gold-light); background: var(--gold-light); color: #3b2a0e; }

.meeting-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meeting-meta > div, .meeting-meta > p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbff; display: grid; }
.meeting-meta span { color: var(--soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.meeting-meta strong { font-size: 15px; }
.meeting-meta small { color: var(--muted); font-size: 12px; }
.availability-key { display: flex; justify-content: flex-end; gap: 14px; margin: 12px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.availability-key span { display: inline-flex; align-items: center; gap: 5px; }
.availability-key i { width: 9px; height: 9px; border-radius: 50%; background: #d7e0ea; }
.availability-key span:last-child i { background: var(--gold); }
.availability-calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.calendar-day { min-width: 0; display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbff; }
.calendar-day header { display: grid; }
.calendar-day header strong { font-size: 14px; }
.calendar-day header span { color: var(--muted); font-size: 12px; }
.calendar-busy { min-height: 44px; display: grid; place-items: center; border-radius: 9px; background: #edf2f7; color: #8593a4; font-size: 12px; font-weight: 750; }
.meeting-slot { min-height: 48px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--gold); border-radius: 9px; background: var(--cream); color: #684c14; font-size: 12px; font-weight: 850; text-align: center; cursor: pointer; }
.meeting-slot small { display: block; font-size: 11px; font-weight: 700; }
.meeting-slot[aria-pressed="true"] { background: var(--gold); color: #2e2009; box-shadow: inset 0 0 0 2px #fff2c9; }
.meeting-selection { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.meeting-selection p { margin: 0; display: grid; }
.meeting-selection p span { color: var(--soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.meeting-selection p strong { font-size: 14px; }
.meeting-selection a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.meeting-selection a[aria-disabled="true"] { background: #d8e1eb; color: #6f7c8c; pointer-events: none; }
.meeting-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.copy-toast { position: fixed; z-index: 160; right: 16px; bottom: 16px; min-width: 230px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #c8d9ea; border-radius: 14px; background: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.copy-toast.is-visible { opacity: 1; transform: none; }
.copy-toast > span { display: grid; place-items: center; width: 28px; aspect-ratio: 1; border-radius: 50%; background: #e3f4eb; color: var(--success); font-weight: 900; }
.copy-toast p { margin: 0; display: grid; }
.copy-toast strong { font-size: 14px; }
.copy-toast small { color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
    .main-stage { grid-template-columns: minmax(230px, .58fr) minmax(520px, 1.42fr); }
    .profile-card { padding: 22px; }
    .profile-copy h1 { font-size: clamp(34px, 3.7vw, 48px); }
    .profile-metrics { grid-template-columns: 1fr; }
    .profile-metrics span { display: flex; align-items: baseline; gap: 7px; padding: 8px 11px; }
    .profile-metrics strong { display: inline; margin: 0; font-size: 17px; }
    .journey-head > p { font-size: 14px; }
}

@media (max-width: 1099px) {
    .site-shell { grid-template-rows: 60px minmax(0, 1fr) 70px; }
    .topbar { width: calc(100% - 20px); }
    .topnav { display: none; }
    .main-stage { width: 100%; padding: 10px; display: block; }
    .profile-card { display: none; }
    .journey-card { width: min(760px, 100%); height: 100%; margin: 0 auto; border-radius: 22px; padding: 15px; gap: 9px; }
    .journey-head { grid-template-columns: 1fr; }
    .journey-head > p { display: none; }
    .journey-head h2 { font-size: clamp(27px, 5.6vw, 38px); }
    .stage-face { grid-template-columns: 1fr; grid-template-rows: minmax(110px, .8fr) auto auto; gap: 10px; padding: 14px; }
    .table-mark { grid-row: auto; min-height: 110px; }
    .table-mark small { right: 12px; bottom: 8px; font-size: 10px; }
    .blackjack-hand { width: 154px; height: 106px; }
    .playing-card { width: 62px; height: 88px; }
    .slot-machine { width: 190px; height: 96px; padding: 8px; }
    .game-stage { --reel-stop: -370px; }
    .slot-strip { grid-auto-rows: 74px; }
    .mini-roulette { width: 105px; border-width: 8px; }
    .roulette-ball { transform-origin: 0 calc(50% + 41px); }
    .vip-stack { height: 104px; }
    .vip-stack span { width: 118px; height: 31px; }
    .vip-stack span:nth-child(2) { bottom: 22px; }.vip-stack span:nth-child(3) { bottom: 42px; }.vip-stack span:nth-child(4) { bottom: 62px; }
    .die { width: 52px; padding: 8px; }
    .stage-copy { align-self: start; }
    .stage-name { margin-bottom: 6px; font-size: 13px; }
    .stage-copy h3, .reward-copy h3 { margin-bottom: 7px; font-size: clamp(28px, 7.2vw, 40px); }
    .stage-copy > p:last-of-type, .reward-copy > p:last-of-type { font-size: 16px; line-height: 1.38; }
    .stage-tags, .reward-tags { margin-top: 9px; }
    .stage-tags span, .reward-tags span { padding: 5px 8px; font-size: 11px; }
    .stage-action { grid-template-columns: 1fr; gap: 8px; padding-top: 9px; }
    .stage-action p { grid-template-columns: auto 1fr; gap: 8px; }
    .stage-action p strong { text-align: right; }
    .bet-button { width: 100%; min-height: 52px; }
    .reward-face { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; gap: 8px; padding: 14px; overflow-y: auto; }
    .reward-lead { grid-row: auto; grid-template-columns: 56px 1fr; justify-items: start; align-items: center; padding: 8px 11px; text-align: left; }
    .reward-suit { width: 52px; border-width: 3px; font-size: 24px; }
    .reward-lead p { text-align: left; }
    .reward-copy { align-self: start; }
    .reward-proof { padding: 10px 12px; }
    .reward-proof span { grid-row: auto; grid-column: 1 / -1; }
    .reward-actions { display: grid; grid-template-columns: .8fr 1.2fr; }
    .completion-face { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 12px; overflow-y: auto; }
    .completion-seal { grid-row: auto; width: 104px; }
    .completion-seal span { width: 24px; }
    .completion-seal strong { font-size: 20px; }
    .completion-copy { align-self: start; text-align: center; }
    .completion-copy h3 { font-size: 34px; }
    .completion-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .completion-replay { grid-column: auto; justify-self: center; }
    .mobile-dock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(247,250,254,.96); backdrop-filter: blur(12px); }
    .mobile-dock button, .mobile-dock a { min-width: 0; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--blue-deep); font-size: 14px; text-decoration: none; cursor: pointer; }
    .mobile-dock > :nth-child(2) { border-color: var(--blue); background: var(--blue); color: #fff; }
    .mobile-dock span { font-size: 13px; font-weight: 850; }
    .copy-toast { right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); left: 10px; min-width: 0; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
    .impact-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) and (max-width: 1099px) and (min-height: 501px) {
    .journey-card { width: min(960px, 100%); }
}

@media (max-width: 560px) {
    .site-shell { grid-template-rows: 56px minmax(0, 1fr) 66px; }
    .brand-avatar { width: 42px; height: 42px; flex-basis: 42px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { max-width: 210px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
    .main-stage { padding: 7px 8px; }
    .journey-card { padding: 12px; border-radius: 19px; gap: 7px; }
    .journey-head h2 { margin-top: 3px; font-size: clamp(25px, 7.4vw, 32px); }
    .table-kicker { font-size: 11px; }
    .stage-control { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 7px; }
    .stage-arrow { width: 48px; height: 48px; }
    .stage-progress { min-height: 48px; grid-template-columns: 1fr; gap: 4px; padding: 6px 10px; }
    .stage-progress p { grid-template-columns: auto 1fr; align-items: center; gap: 7px; }
    .stage-progress p span { font-size: 10px; }
    .stage-progress p strong { font-size: 13px; text-align: right; }
    .progress-dots { justify-content: stretch; gap: 4px; }
    .progress-dots i { max-width: none; height: 3px; }
    .journey-viewport { border-radius: 17px; }
    .stage-face { grid-template-rows: minmax(82px, .64fr) auto auto; padding: 11px; gap: 7px; }
    .table-mark { min-height: 82px; border-radius: 14px; }
    .table-mark small { display: none; }
    .casino-scene { inset: 3px; }
    .game-outcome { right: 5px; top: 5px; min-width: 60px; padding: 4px 6px; }
    .game-stage[data-phase="ready"] .game-outcome, .game-stage[data-phase="playing"] .game-outcome { display: none; }
    .game-outcome strong { font-size: 19px; }
    .blackjack-hand { width: 115px; height: 76px; }
    .playing-card { width: 47px; height: 66px; border-width: 2px; border-radius: 7px; }
    .playing-card i { top: 4px; left: 4px; font-size: 10px; }
    .playing-card b { font-size: 25px; }
    .slot-machine { width: 150px; height: 72px; padding: 5px; border-width: 2px; border-radius: 11px; }
    .game-stage { --reel-stop: -300px; }
    .slot-strip { grid-auto-rows: 60px; }
    .slot-strip span { font-size: 23px; }
    .mini-roulette { width: 72px; border-width: 6px; }
    .mini-roulette b { font-size: 8px; }
    .roulette-ball { width: 9px; transform-origin: 0 calc(50% + 27px); }
    .vip-stack { height: 72px; }
    .vip-stack span { width: 95px; height: 24px; border-width: 2px; font-size: 7px; }
    .vip-stack span:nth-child(2) { bottom: 16px; }.vip-stack span:nth-child(3) { bottom: 30px; }.vip-stack span:nth-child(4) { bottom: 44px; }
    .die { width: 39px; padding: 6px; border-width: 2px; border-radius: 9px; }
    .die i { width: 6px; }
    .channel-pips { display: none; }
    .stage-name { margin-bottom: 4px; font-size: 12px; }
    .stage-name > span:first-child { min-width: 28px; height: 23px; }
    .stage-copy h3, .reward-copy h3 { font-size: clamp(25px, 7vw, 31px); line-height: 1.02; }
    .stage-copy > p:last-of-type, .reward-copy > p:last-of-type { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 1.33; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .stage-tags { flex-wrap: nowrap; overflow: hidden; }
    .stage-tags span:nth-child(3) { display: none; }
    .stage-action { gap: 6px; padding-top: 7px; }
    .stage-action p span { font-size: 10px; }
    .stage-action p strong { font-size: 13px; }
    .bet-button { min-height: 50px; font-size: 15px; }
    .flow-status { bottom: 7px; font-size: 11px; }
    .reward-face { padding: 11px; gap: 7px; }
    .reward-lead { grid-template-columns: 45px 1fr; padding: 6px 9px; }
    .reward-suit { width: 42px; font-size: 20px; }
    .reward-copy h3 { margin-bottom: 5px; }
    .reward-proof { gap: 1px 8px; padding: 8px 10px; }
    .reward-proof strong, .reward-proof small { grid-column: 1 / -1; }
    .reward-proof strong { font-size: 18px; }
    .reward-proof small { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .reward-tags { flex-wrap: nowrap; overflow: hidden; }
    .reward-actions button { min-height: 48px; padding: 0 10px; font-size: 13px; }
    .completion-face { padding: 11px; gap: 7px; }
    .completion-seal { width: 72px; }
    .completion-seal span { width: 19px; font-size: 9px; }
    .completion-seal strong { font-size: 16px; }
    .completion-copy h3 { margin: 2px 0 5px; font-size: 27px; }
    .completion-copy > p:last-child { font-size: 14px; line-height: 1.32; }
    .completion-actions { gap: 5px; }
    .completion-actions button, .completion-actions a { min-height: 48px; padding: 0 6px; font-size: 12px; }
    .completion-replay { min-height: 44px; font-size: 12px; }
    .mobile-dock { gap: 5px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
    .mobile-dock button, .mobile-dock a { min-height: 52px; gap: 5px; padding: 0 5px; font-size: 13px; }
    .overlay { padding: 5px; align-items: end; }
    .overlay-sheet { width: 100%; max-height: calc(100dvh - 10px); padding: 15px; border-radius: 21px 21px 12px 12px; }
    .overlay-header { top: -15px; margin: -15px -15px 10px; padding: 15px; padding-bottom: 11px; }
    .overlay-header h2 { font-size: 27px; }
    .overlay-close { width: 48px; height: 48px; flex-basis: 48px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .impact-row { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-cv { grid-template-columns: 1fr 1fr; }
    .contact-cv > div { grid-column: 1 / -1; }
    .meeting-meta { grid-template-columns: 1fr; }
    .availability-calendar { grid-template-columns: 1fr; }
    .calendar-day { grid-template-columns: 78px minmax(0,1fr) 1fr; align-items: center; padding: 7px; }
    .calendar-busy, .meeting-slot { min-height: 46px; }
    .meeting-selection { grid-template-columns: 1fr; }
    .meeting-selection a { width: 100%; }
}

@media (max-width: 420px) and (max-height: 680px) {
    .site-shell { grid-template-rows: 52px minmax(0, 1fr) 62px; }
    .brand-avatar { width: 38px; height: 38px; flex-basis: 38px; }
    .brand-copy small { max-width: 240px; font-size: 10px; letter-spacing: -.01em; }
    .main-stage { padding: 5px 7px; }
    .journey-card { padding: 9px; gap: 5px; }
    .journey-head .table-kicker { display: none; }
    .journey-head h2 { margin: 0; font-size: 24px; }
    .stage-control { grid-template-columns: 45px minmax(0,1fr) 45px; gap: 5px; }
    .stage-arrow { width: 45px; height: 45px; min-height: 45px; }
    .stage-progress { min-height: 45px; padding: 4px 8px; }
    .stage-face { grid-template-rows: 66px minmax(0,1fr) auto; padding: 8px; gap: 5px; }
    .table-mark { min-height: 66px; overflow: visible; }
    .casino-scene { overflow: hidden; border-radius: 12px; }
    .blackjack-hand { width: 100px; height: 60px; }
    .playing-card { width: 39px; height: 55px; }
    .slot-machine { width: 126px; height: 58px; }
    .game-stage { --reel-stop: -240px; }
    .slot-strip { grid-auto-rows: 48px; }
    .slot-strip span { font-size: 19px; }
    .game-outcome { min-width: 52px; }
    .game-outcome span { font-size: 7px; }.game-outcome strong { font-size: 16px; }
    .stage-name { margin: 0 0 3px; }
    .stage-copy h3, .reward-copy h3 { margin-bottom: 4px; font-size: clamp(23px, 7vw, 27px); }
    .stage-copy > p:last-of-type { font-size: 14px; -webkit-line-clamp: 3; }
    .stage-tags { display: none; }
    .stage-action p { display: none; }
    .bet-button { min-height: 48px; }
    .flow-status { display: none; }
    .reward-face { padding: 8px; gap: 5px; }
    .reward-lead { display: none; }
    .reward-copy > p:last-of-type { font-size: 14px; -webkit-line-clamp: 2; }
    .reward-proof { padding: 7px 9px; }
    .reward-tags { display: none; }
    .reward-actions { gap: 5px; }
    .reward-actions button { min-height: 45px; }
    .completion-seal { display: none; }
    .completion-copy h3 { font-size: 25px; }
    .completion-copy > p:last-child { display: block; overflow: visible; }
    .mobile-dock { padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); }
    .mobile-dock button, .mobile-dock a { min-height: 50px; }
}

@media (min-width: 700px) and (max-width: 1099px) and (max-height: 500px) {
    .site-shell { grid-template-columns: minmax(0, 1fr) 70px; grid-template-rows: 52px minmax(0, 1fr); }
    .topbar { grid-column: 1; grid-row: 1; width: calc(100% - 16px); }
    .main-stage { grid-column: 1; grid-row: 2; padding: 5px 8px 7px; }
    .mobile-dock { grid-column: 2; grid-row: 1 / -1; grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); padding: 7px; border-top: 0; border-left: 1px solid var(--line); }
    .mobile-dock button, .mobile-dock a { min-height: 0; flex-direction: column; gap: 3px; padding: 4px; font-size: 11px; }
    .journey-card { max-width: none; padding: 8px; gap: 5px; grid-template-rows: auto minmax(0, 1fr); }
    .journey-head { display: none; }
    .stage-control { grid-row: 1; }
    .journey-viewport { grid-row: 2; }
    .stage-control { grid-template-columns: 46px minmax(0,1fr) 46px; }
    .stage-arrow { width: 46px; height: 46px; }
    .stage-progress { min-height: 46px; grid-template-columns: auto 1fr; }
    .stage-face { grid-template-columns: .72fr 1.25fr .86fr; grid-template-rows: 1fr; gap: 10px; padding: 9px; }
    .table-mark { grid-row: auto; min-height: 0; }
    .blackjack-hand { width: 132px; height: 92px; }.playing-card { width: 55px; height: 78px; }
    .slot-machine { width: 140px; height: 86px; padding: 7px; }
    .game-stage { --reel-stop: -340px; }
    .slot-strip { grid-auto-rows: 68px; }
    .mini-roulette { width: 100px; }.roulette-ball { transform-origin: 0 calc(50% + 38px); }
    .die { width: 46px; }
    .stage-copy { align-self: center; }
    .stage-copy h3 { font-size: clamp(24px, 3.7vw, 32px); }
    .stage-copy > p:last-of-type { font-size: 14px; -webkit-line-clamp: 3; }
    .stage-tags { display: none; }
    .stage-action { align-self: center; grid-template-columns: 1fr; padding: 0; border-top: 0; }
    .stage-action p { display: grid; grid-template-columns: 1fr; }
    .stage-action p strong { white-space: normal; text-align: left; }
    .bet-button { min-height: 54px; padding: 0 10px; font-size: 14px; }
    .reward-face { grid-template-columns: minmax(0,1fr) minmax(210px,.8fr); grid-template-rows: minmax(0,1fr) auto; gap: 7px 13px; padding: 9px; overflow: hidden; }
    .reward-lead { display: none; }
    .reward-copy { align-self: center; }
    .reward-copy h3 { margin-bottom: 5px; font-size: 25px; }
    .reward-copy > p:last-of-type { font-size: 13px; line-height: 1.28; -webkit-line-clamp: 2; }
    .reward-proof { align-self: center; grid-template-columns: 1fr; padding: 7px 9px; }
    .reward-proof span { grid-column: auto; }
    .reward-proof strong { font-size: 18px; }
    .reward-proof small { font-size: 11px; -webkit-line-clamp: 1; }
    .reward-tags { display: none; }
    .reward-actions { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .reward-actions button { min-height: 45px; }
    .completion-face { grid-template-columns: 105px minmax(0,1fr) 190px; grid-template-rows: 1fr; gap: 12px; padding: 10px; overflow: hidden; }
    .completion-seal { display: grid; grid-row: auto; width: 84px; }
    .completion-copy { align-self: center; text-align: left; }
    .completion-copy h3 { font-size: 29px; }
    .completion-copy > p:last-child { display: block; font-size: 13px; }
    .completion-actions { align-self: center; grid-template-columns: 1fr; }
    .completion-actions button, .completion-actions a { min-height: 44px; }
    .completion-replay { grid-column: 3; align-self: end; justify-self: center; min-height: 44px; }
    .copy-toast { right: 80px; bottom: 10px; left: auto; }
}

@media (min-width: 1100px) and (max-height: 760px) {
    .site-shell { grid-template-rows: 62px minmax(0,1fr); }
    .main-stage { padding: 9px 0 13px; }
    .profile-card { gap: 12px; padding: 18px 22px; }
    .profile-portrait { width: 100px; }
    .profile-copy h1 { margin: 6px 0 8px; font-size: clamp(31px, 3vw, 44px); }
    .profile-copy > p:last-child { font-size: 15px; line-height: 1.4; }
    .profile-metrics span { padding: 7px 10px; }
    .journey-card { padding: 13px 16px; gap: 8px; }
    .journey-head h2 { font-size: 30px; }
    .journey-head > p { font-size: 14px; }
    .stage-control { grid-template-columns: 46px minmax(0,1fr) 46px; }
    .stage-arrow { width: 46px; height: 46px; }
    .stage-face, .reward-face { padding: 17px; }
    .stage-copy h3, .reward-copy h3 { font-size: clamp(29px, 2.8vw, 42px); }
    .stage-copy > p:last-of-type, .reward-copy > p:last-of-type { font-size: 15px; }
    .playing-card { width: 67px; height: 94px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
