/* Header and first-screen layout aligned with the main 555Drop navigation. */
html, body { width:100%; overflow-x:clip; }
body.mobile-menu-open { overflow:hidden; }
.site-shell { overflow:visible; }
.site-header { z-index:100; height:72px; background:linear-gradient(#1b1b1b,#171717); border-bottom:1px solid #303030; box-shadow:none; }
.header-inner { max-width:1510px; padding:0 14px; gap:clamp(16px,2.1vw,38px); justify-content:space-between; }
.brand { width:170px; line-height:0; }
.desktop-nav { flex:1; justify-content:center; gap:0; }
.desktop-nav .nav-item { position:relative; display:flex; flex-direction:row; gap:10px; min-width:0; padding:0 clamp(10px,1.18vw,23px); color:#aaa6a1; text-decoration:none; font-size:16px; font-weight:700; }
.desktop-nav .nav-item img { width:21px; height:21px; filter:invert(65%); opacity:.75; }
.desktop-nav .nav-item:hover,.desktop-nav .nav-item.active { color:#f0c85d; background:linear-gradient(90deg,#23221e,#211f19,#23221e); }
.desktop-nav .nav-item:hover img,.desktop-nav .nav-item.active img { filter:invert(82%) sepia(48%) saturate(631%) hue-rotate(351deg) brightness(103%); opacity:1; }
.desktop-nav .nav-item.active::after { content:""; position:absolute; bottom:0; left:18%; right:18%; height:2px; background:#edc85d; }
.header-actions { gap:10px; margin-left:0; flex:none; }
.header-gift,.header-login { display:inline-flex; align-items:center; justify-content:center; gap:10px; height:46px; white-space:nowrap; text-decoration:none; font-weight:700; }
.header-gift { padding:0 13px; color:#f7e0a7; border:2px dotted #d9b03c; border-radius:8px; background:#27231c; box-shadow:inset 0 0 0 1px #4d3d1b; font-size:13px; cursor:default; }
.header-gift img { width:21px; height:21px; filter:invert(82%) sepia(48%) saturate(631%) hue-rotate(351deg) brightness(103%); }
.header-gift .gift-arrow { flex:none; margin-left:3px; font-size:20px; line-height:1; font-weight:400; }
.header-login { min-width:115px; padding:0 16px; border:1px solid #ffe28b; border-radius:8px; color:#322813; background:linear-gradient(#ffe184,#f0bd42); box-shadow:0 0 16px #d39a3540,inset 0 1px #fff3bd; font-size:14px; }
.header-login:hover { color:#1a150b; filter:brightness(1.08); }
.header-login img { width:19px; height:19px; filter:brightness(0); }
.language-switcher { position:relative; flex:none; }
.language-trigger { display:flex; align-items:center; justify-content:center; gap:6px; height:44px; min-width:75px; padding:0 4px; border:0; color:#eee; background:transparent; font-weight:700; font-size:13px; }
.language-trigger:hover,.language-trigger[aria-expanded=true] { color:#f5cd61; }
.current-flag,.language-option img { width:25px; height:18px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px #ffffff24; }
.language-chevron { display:block; flex:none; width:15px; height:15px; color:currentColor; transition:transform .18s ease; }
.language-trigger[aria-expanded=true] .language-chevron { transform:rotate(180deg); }
.language-menu { position:absolute; z-index:200; top:calc(100% + 5px); right:0; width:194px; max-height:min(460px,calc(100svh - 80px)); overflow-y:auto; padding:6px; background:#1d1d1d; border:1px solid #5b4825; border-radius:13px; box-shadow:0 18px 32px #000b; }
.language-option { width:100%; height:35px; display:flex; align-items:center; gap:10px; text-align:left; padding:0 10px; color:#ead599; background:transparent; border:0; border-radius:8px; font-size:13px; }
.language-option span:nth-child(2) { flex:1; }
.language-option:hover,.language-option:focus-visible,.language-option.selected { background:#292929; color:#ffdd83; }
.language-option.selected { box-shadow:inset 3px 0 #eac657; }
.language-check { visibility:hidden; color:#e8c354; font-size:17px; }
.language-option.selected .language-check { visibility:visible; }
.mobile-menu-button,.mobile-menu,.mobile-bottom-nav { display:none; }
.game-scene { min-height:calc(100svh - 72px); overflow:hidden; }
.scene-inner { max-width:1520px; min-height:calc(100svh - 72px); padding:clamp(16px,2.2vh,26px) 18px clamp(22px,3vh,36px); gap:clamp(14px,2vh,24px); }
.game-stage { flex:1; width:100%; min-height:0; }
.game-stage:has(.intro-panel:not([hidden])) { display:flex; flex:1 0 auto; }
.intro-panel { display:flex; flex:1; min-height:0; justify-content:center; align-items:center; isolation:isolate; }
.intro-content { width:100%; padding-top:clamp(12px,2vh,24px); display:flex; flex-direction:column; align-items:center; gap:clamp(6px,.75vh,10px); }
.intro-panel .hero-title { margin:0; font-size:clamp(40px,4.35vw,68px); }
.intro-panel .hero-subtitle { margin:0; font-size:clamp(15px,1.27vw,20px); }
.case-art { --art-width:clamp(390px,35vw,560px); width:min(var(--art-width),100%); height:auto; aspect-ratio:1.2; margin:0; filter:drop-shadow(0 0 22px #f6a72a3b); }
.case-art img { height:auto; max-width:100%; object-fit:contain; }
.case-platform { z-index:0; width:100%; left:0; top:16%; }
.case-main { z-index:2; width:69%; left:15.5%; top:0; }
.case-coins { z-index:1; width:68%; left:16%; top:0; opacity:.9; }
.intro-button { width:min(100%,380px); min-width:0; min-height:61px; margin:0; padding:10px 22px; font-size:19px; }
.mascot { z-index:1; width:min(28vw,450px); max-height:calc(100% - 115px); height:auto; bottom:0; object-fit:contain; object-position:bottom; }
.mascot-left { left:max(-25px,calc((100vw - 1700px)/2)); }
.mascot-right { right:max(-25px,calc((100vw - 1700px)/2)); }
.steps { z-index:4; flex:none; width:min(100%,1420px); min-height:118px; }
.step { gap:12px; }
.step img { width:73px; height:73px; }
.result-panel .upgrade-action-icon { width:24px; height:24px; flex:none; color:currentColor; }

/* Upgrade uses the main site's layered dial language and a fixed illustrative sector. */
.game-stage:has(.upgrade-panel:not([hidden])) { display:flex; align-items:center; }
.upgrade-panel { justify-content:center; min-height:0; }
.upgrade-panel .hero-title { margin:0 0 6px; }
.upgrade-panel .hero-subtitle { margin:0; }
.upgrade-board { width:min(100%,1020px); grid-template-columns:minmax(0,1fr) minmax(270px,1.25fr) minmax(0,1fr); gap:clamp(12px,2vw,26px); margin:clamp(16px,3vh,30px) auto 0; padding:clamp(12px,1.4vw,18px); }
.upgrade-card { height:clamp(218px,27vw,280px); min-width:0; }
.upgrade-card img { max-width:100%; height:clamp(110px,13vw,150px); }
.upgrade-center { min-width:0; }
.upgrade-ring { --chance-angle:0deg; position:relative; display:grid; place-items:center; width:clamp(245px,23vw,300px); height:auto; aspect-ratio:1; padding:0; border:0; border-radius:50%; background:conic-gradient(from -45deg,#504b43,#141618 42%,#555048 53%,#101113 75%,#66573e); box-shadow:0 0 0 5px #101113,0 0 0 7px #66512a,0 0 0 13px #171819,0 0 34px #e4a92f38,inset 0 0 18px #000; isolation:isolate; }
.upgrade-ring::before { content:""; position:absolute; z-index:1; inset:7%; border-radius:50%; background:conic-gradient(#ffe8a2 0deg,#e99420 var(--chance-angle),#36322b var(--chance-angle) 360deg); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 22px),#000 calc(100% - 20px)); mask:radial-gradient(farthest-side,transparent calc(100% - 22px),#000 calc(100% - 20px)); filter:drop-shadow(0 0 7px #ffb833); }
.upgrade-ring-ticks { position:absolute; z-index:2; inset:2%; border-radius:50%; background:repeating-conic-gradient(from -90deg,#d1b36d 0deg 1deg,transparent 1deg 12deg); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px)); mask:radial-gradient(farthest-side,transparent calc(100% - 8px),#000 calc(100% - 7px)); opacity:.72; }
.upgrade-pointer { position:absolute; z-index:4; inset:0; transform:rotate(0deg); will-change:transform; pointer-events:none; }
.upgrade-pointer::before { content:""; position:absolute; bottom:8px; left:50%; width:24px; height:30px; transform:translateX(-50%); clip-path:polygon(50% 0,100% 100%,0 100%); background:linear-gradient(90deg,#b97a1e,#fff2bc 48%,#eea72e); filter:drop-shadow(0 2px 3px #000) drop-shadow(0 0 7px #ffc64a); }
.upgrade-ring .ring-inner { position:absolute; z-index:3; inset:18%; width:auto; height:auto; display:grid; place-items:center; border:1px solid #695631; border-radius:50%; background:radial-gradient(circle at 44% 36%,#35312b,#141517 67%,#090a0b); box-shadow:inset 0 0 25px #000,0 0 0 1px #191919,0 0 20px #d9962629; }
.upgrade-ring .ring-inner strong { color:#ffe4a1; font-size:clamp(40px,4.1vw,57px); font-weight:800; line-height:1; font-variant-numeric:tabular-nums; text-shadow:0 2px 8px #000,0 0 20px #f6b32955; }
.upgrade-ring.is-complete { animation:upgrade-success-pulse .42s ease-out both; }
.upgrade-button { width:min(100%,330px); min-width:0; min-height:58px; margin:16px auto 0; gap:12px; padding:10px 18px; font-size:clamp(16px,1.4vw,19px); white-space:nowrap; }
.upgrade-button .upgrade-action-icon { width:22px; height:22px; flex:none; color:currentColor; }
.upgrade-button > span:nth-child(2) { flex:1; text-align:center; }
.upgrade-panel.is-spinning .upgrade-button { pointer-events:none; }
.final-panel:not([hidden]) { animation:upgrade-final-enter .38s ease-out both; }
@keyframes upgrade-success-pulse { 50% { filter:brightness(1.4) drop-shadow(0 0 24px #ffbc45); transform:scale(1.025); } }
@keyframes upgrade-final-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (min-width:1200px) and (max-height:800px) {
  .scene-inner:has(.upgrade-panel:not([hidden])) { padding-top:10px; padding-bottom:12px; gap:10px; }
  .upgrade-board { margin-top:16px; }
  .upgrade-card { height:225px; }
  .upgrade-ring { width:260px; }
  .upgrade-button { margin-top:12px; }
}
@media (max-width:1199px) {
  .upgrade-board { grid-template-columns:minmax(0,1fr) minmax(250px,1.25fr) minmax(0,1fr); }
  .upgrade-card { height:230px; }
  .upgrade-card h2 { font-size:clamp(14px,1.6vw,18px); }
  .upgrade-card strong { font-size:clamp(26px,3vw,34px); }
  .upgrade-ring { width:clamp(250px,27vw,300px); }
}
@media (max-width:767px) {
  .game-stage:has(.upgrade-panel:not([hidden])) { display:block; }
  .upgrade-panel { justify-content:flex-start; }
  .upgrade-panel .hero-title { margin-top:clamp(14px,3vh,30px); }
  .upgrade-board { width:min(100%,480px); grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:clamp(14px,2.5vh,24px); padding:10px; }
  .upgrade-card { grid-row:1; }
  .upgrade-target-card { grid-column:2; }
  .upgrade-center { grid-column:1 / -1; grid-row:2; }
  .upgrade-ring { width:clamp(220px,62vw,275px); }
  .upgrade-ring .ring-inner strong { font-size:45px; }
  .upgrade-card { height:clamp(142px,39vw,175px); padding:8px 5px 10px; }
  .upgrade-card h2 { font-size:clamp(12px,3.3vw,16px); }
  .upgrade-card img { width:clamp(75px,22vw,105px); height:clamp(72px,22vw,100px); }
  .upgrade-card strong { font-size:clamp(23px,6vw,29px); }
  .upgrade-button { width:min(calc(100% - 24px),340px); margin-top:14px; }
}
@media (max-width:390px) {
  .upgrade-panel .hero-title { margin-top:14px; }
  .upgrade-ring { width:clamp(215px,62vw,245px); }
  .upgrade-board { gap:8px; }
  .upgrade-card { height:142px; }
}
@media (max-width:1360px) {
  .header-inner { gap:10px; padding:0 20px; }
  .brand { width:153px; }
  .desktop-nav .nav-item { font-size:14px; padding:0 10px; gap:7px; }
  .header-gift { font-size:11px; padding:0 9px; }
  .header-login { min-width:100px; }
  .language-trigger { min-width:68px; }
  .case-art { --art-width:clamp(360px,34vw,500px); }
  .mascot { width:min(26vw,385px); }
}
@media (min-width:1200px) {
  .mascot { width:auto; height:calc(100svh - 90px); max-height:none; }
  .mascot-left { left:calc(-1 * clamp(55px,6vw,110px)); }
  .mascot-right { right:calc(-1 * clamp(55px,6vw,110px)); }
  .case-platform { top:25%; }
  .case-main { width:60%; left:20%; top:8%; }
  .case-coins { width:68%; left:16%; top:7%; }
  .intro-button { position:relative; z-index:3; }
}
@media (max-width:1199px) {
  .site-header { height:64px; }
  .header-inner { height:64px; max-width:none; padding:0 18px; }
  .brand { width:145px; }
  .desktop-nav,.header-actions > .header-gift,.header-actions > .header-login { display:none; }
  .header-actions { margin-left:auto; gap:10px; }
  .mobile-menu-button { width:42px; height:42px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; border:1px solid #6b5428; border-radius:7px; background:#25221b; }
  .mobile-menu-button span { width:20px; height:2px; border-radius:1px; background:#eac967; }
  .mobile-menu { display:block; position:fixed; z-index:150; inset:0; padding:0; border:0; background:transparent; }
  .mobile-menu-backdrop { position:absolute; inset:0; width:100%; border:0; background:#000b; }
  .mobile-menu-panel { position:absolute; top:0; right:0; bottom:0; width:min(340px,100%); overflow-y:auto; padding:14px 14px calc(92px + env(safe-area-inset-bottom)); background:#1b1b1b; border-left:1px solid #574524; box-shadow:-20px 0 40px #0009; }
  .mobile-menu-top { display:grid; grid-template-columns:44px minmax(0,1fr) 64px; align-items:center; gap:5px; padding-bottom:13px; border-bottom:1px solid #725925; }
  .mobile-menu-close { width:29px; height:29px; border:1px solid #e3c35b; border-radius:7px; color:#ffe28a; background:#24221f; font-size:25px; line-height:1; }
  .mobile-menu-top .header-gift { min-width:0; height:37px; padding:2px 5px; gap:4px; font-size:9px; line-height:1.1; white-space:normal; text-align:center; }
  .mobile-menu-top .header-gift img { width:17px; height:17px; flex:none; }
  .mobile-menu-top .gift-arrow { margin-left:0; font-size:14px; }
  .mobile-menu-top .header-login { min-width:0; height:37px; padding:0 4px; gap:3px; font-size:10px; }
  .mobile-menu-top .header-login img { width:14px; height:14px; }
  .mobile-drawer-nav { display:flex; flex-direction:column; padding:8px 0; }
  .mobile-drawer-nav a { display:flex; align-items:center; justify-content:center; gap:10px; position:relative; height:47px; color:#bdb8af; text-decoration:none; font-size:14px; font-weight:700; }
  .mobile-drawer-nav a img { width:18px; height:18px; filter:invert(65%); opacity:.75; }
  .mobile-drawer-nav a.active { color:#f4cd60; background:#211e18; }
  .mobile-drawer-nav a.active::before { content:""; position:absolute; left:0; top:7px; bottom:7px; width:2px; background:#e7c45c; }
  .mobile-drawer-nav a.active img { filter:invert(82%) sepia(48%) saturate(631%) hue-rotate(351deg) brightness(103%); opacity:1; }
  .drawer-language { margin:4px 7px; }
  .drawer-language .language-trigger { width:100%; height:37px; border:1px solid #433923; border-radius:8px; background:#1f1f1f; }
  .drawer-language .language-menu { top:calc(100% + 3px); left:0; right:0; width:100%; max-height:min(420px,calc(100svh - 360px)); }
  .mobile-bottom-nav { position:fixed; z-index:160; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(4,1fr); min-height:64px; padding-bottom:env(safe-area-inset-bottom); border-top:1px solid #4d391b; background:#1a1a1a; box-shadow:0 -5px 18px #0009; }
  .mobile-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:#aaa6a1; text-decoration:none; font-size:10px; }
  .mobile-bottom-nav a img { width:21px; height:21px; filter:invert(65%); opacity:.7; }
  .mobile-bottom-nav a.active { position:relative; color:#f2c959; background:linear-gradient(#30281b,#221e18); }
  .mobile-bottom-nav a.active::after { content:""; position:absolute; left:25%; right:25%; bottom:5px; height:2px; background:#e7c65c; }
  .mobile-bottom-nav a.active img { filter:invert(82%) sepia(48%) saturate(631%) hue-rotate(351deg) brightness(103%); opacity:1; }
  .game-scene { min-height:calc(100svh - 64px); }
  .scene-inner { min-height:calc(100svh - 64px); padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
  .mascot { display:none; }
}
@media (min-width:901px) and (max-width:1199px) {
  .case-art { --art-width:clamp(530px,56vw,640px); }
  .mascot { display:block; width:auto; height:min(50svh,610px); max-height:none; bottom:calc(180px + env(safe-area-inset-bottom)); opacity:.74; }
  .mascot-left { left:calc(-1 * clamp(160px,18vw,230px)); }
  .mascot-right { right:calc(-1 * clamp(160px,18vw,230px)); }
}
@media (min-width:768px) and (max-width:900px) {
  .case-art { --art-width:clamp(500px,60vw,560px); }
}
@media (max-width:767px) {
  .scene-inner { padding:14px 12px calc(80px + env(safe-area-inset-bottom)); }
  .intro-content { padding-top:0; gap:clamp(5px,.7vh,9px); }
  .intro-panel .hero-title { font-size:clamp(38px,7vw,56px); }
  .case-art { --art-width:min(96vw,540px); }
  .case-main { width:74%; left:13%; }
  .intro-button { width:min(100%,350px); }
  .steps { min-height:92px; }
  .step { padding:8px; gap:5px; }
  .step img { width:48px; height:48px; }
  .step-number { width:26px; height:26px; font-size:13px; }
  .step-copy strong { font-size:12px; }
  .step-copy small { font-size:10px; }
}
@media (max-width:520px) {
  .header-inner { padding:0 13px; }
  .brand { width:129px; }
  .language-trigger { min-width:70px; }
  .intro-panel .hero-title { font-size:clamp(36px,9.6vw,44px); }
  .intro-panel .hero-subtitle { font-size:14px; max-width:350px; }
  .case-art { --art-width:96vw; }
  .intro-button { width:min(100%,315px); min-height:55px; font-size:17px; }
  .steps { min-height:74px; }
  .step { padding:5px 2px; gap:2px; }
  .step-copy strong { font-size:10px; }
  .step-number { width:23px; height:23px; font-size:11px; }
  .final-panel { min-height:0; }
}
@media (min-width:1200px) and (max-height:820px) {
  .case-art { --art-width:min(30vw,400px); }
  .steps { min-height:100px; }
  .step img { width:60px; height:60px; }
  .intro-content { padding-top:0; gap:5px; }
}
@media (min-width:768px) and (max-width:1199px) and (max-height:800px) {
  .case-art { --art-width:clamp(340px,45vw,480px); }
  .steps { min-height:100px; }
}

/* The final reward is one layered composition above the existing step strip. */
.game-stage:has(.final-panel:not([hidden])) { display:flex; align-items:center; justify-content:center; }
.final-panel { z-index:2; min-height:0; justify-content:center; gap:clamp(5px,.7vh,9px); }
.final-panel .hero-title { z-index:2; margin:0; font-size:clamp(42px,4.6vw,72px); line-height:1.08; }
.final-panel .hero-subtitle { z-index:2; margin:0; font-size:clamp(15px,1.45vw,22px); font-weight:700; }
.final-panel .reward-art { position:relative; isolation:isolate; flex:none; width:min(100%,880px); height:clamp(250px,35vh,390px); margin:0; filter:none; pointer-events:none; }
.final-panel .reward-art>img { position:absolute; display:block; max-width:none; object-fit:contain; pointer-events:none; }
.final-panel .reward-laurel { z-index:1; height:78%; bottom:-3%; filter:drop-shadow(0 0 12px #ffba4280); }
.final-panel .reward-laurel-left { left:11%; }
.final-panel .reward-laurel-right { right:11%; }
.final-panel .reward-chest { z-index:2; width:auto; height:100%; top:auto; right:auto; bottom:0; left:50%; transform:translateX(-50%); filter:drop-shadow(0 0 20px #ffae4170); }
.final-panel .reward-confetti { z-index:3; width:68%; height:auto; left:16%; top:-10%; opacity:.55; -webkit-mask-image:linear-gradient(#000 0%,#000 58%,transparent 84%); mask-image:linear-gradient(#000 0%,#000 58%,transparent 84%); }
.final-bonus-card { position:relative; z-index:4; display:flex; align-items:center; justify-content:space-between; gap:14px; width:min(100%,940px); min-height:82px; margin-top:-24px; padding:12px 18px 12px 28px; border:1px solid #c58b32; border-radius:13px; background:linear-gradient(150deg,#1d1710f7,#090909fa 58%,#1a140cf7); box-shadow:0 0 22px #e1a63455,inset 0 1px #ffe5a54f,inset 0 -1px #a66b2999; text-align:left; }
.final-reward-line { min-width:0; margin:0; color:#f8ebd5; font-size:clamp(18px,1.5vw,22px); font-weight:700; line-height:1.3; }
.final-reward-line strong { color:#ffe18a; font-size:clamp(24px,2vw,33px); font-weight:900; white-space:nowrap; text-shadow:0 0 11px #ffa51e66; }
.final-reward-line #reward-code { margin-inline-start:.12em; color:#fff0b7; letter-spacing:.035em; user-select:all; }
.copy-button { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:9px; min-height:51px; padding:9px 16px; border:1px solid #e3ae44; border-radius:9px; background:#211a0f; color:#ffe080; box-shadow:0 0 12px #ffbc4470,inset 0 0 8px #efac2430; font-size:15px; font-weight:700; line-height:1.15; transition:background .2s,border-color .2s,color .2s; }
.copy-button:hover { border-color:#ffe087; background:#352714; }
.copy-button svg { display:none; flex:none; width:20px; height:20px; }
.copy-button .copy-icon,.copy-button.is-copied .check-icon,.copy-button.is-error .error-icon { display:block; }
.copy-button.is-copied .copy-icon,.copy-button.is-error .copy-icon { display:none; }
.copy-button.is-copied { border-color:#70c491; background:#1e3a2d; color:#d9ffe1; }
.copy-button.is-error { border-color:#d88273; background:#472922; color:#ffe4d9; }
.promo-instruction { max-width:850px; margin:0; color:#eaded1; font-size:clamp(13px,1.08vw,16px); line-height:1.35; text-wrap:balance; }
.final-register { width:min(100%,540px); min-width:0; min-height:66px; margin:3px 0 0; justify-content:center; gap:12px; padding:10px 22px; font-size:clamp(16px,1.35vw,20px); box-shadow:0 0 28px #ffb51f66,inset 0 1px #fff4c2; }
.gold-button.final-register > span:last-child { font-size:inherit; line-height:1.2; }
.final-register svg { width:23px; height:23px; flex:none; color:currentColor; }
.steps.final-steps .step img { object-fit:contain; }
@media (min-width:1200px) {
  .scene-inner:has(.final-panel:not([hidden])) { gap:clamp(10px,1.5vh,18px); padding-top:clamp(10px,1.6vh,20px); padding-bottom:clamp(12px,2vh,24px); }
}
@media (min-width:1200px) and (max-height:820px) {
  .final-panel .reward-art { height:clamp(240px,34vh,280px); }
  .final-panel { gap:4px; }
  .final-panel .hero-title { font-size:clamp(42px,4vw,60px); }
  .final-bonus-card { min-height:72px; }
  .final-register { min-height:56px; }
}
@media (max-width:767px) {
  .game-stage:has(.final-panel:not([hidden])) { display:block; flex:0 0 auto; min-height:0; }
  .final-panel { justify-content:flex-start; gap:8px; }
  .final-panel .hero-title { margin:8px 0 0; font-size:clamp(36px,8.5vw,48px); }
  .final-panel .hero-subtitle { font-size:clamp(13px,3.4vw,16px); }
  .final-panel .reward-art { width:min(100%,500px); height:clamp(225px,62vw,330px); }
  .final-panel .reward-chest { height:95%; }
  .final-panel .reward-laurel { height:67%; bottom:-2%; }
  .final-panel .reward-laurel-left { left:0; }
  .final-panel .reward-laurel-right { right:0; }
  .final-panel .reward-confetti { width:78%; left:11%; top:-5%; }
  .final-bonus-card { gap:10px; min-height:78px; margin-top:-17px; padding:10px 12px; }
  .final-reward-line { font-size:clamp(14px,3.5vw,17px); line-height:1.3; }
  .final-reward-line strong { font-size:clamp(19px,4.7vw,24px); }
  .copy-button { min-height:44px; max-width:150px; font-size:12px; }
  .copy-button svg { width:18px; height:18px; }
  .promo-instruction { max-width:460px; font-size:13px; }
  .final-register { width:min(100%,440px); min-height:56px; font-size:clamp(14px,3.8vw,17px); }
}
@media (max-width:520px) {
  .final-bonus-card { flex-direction:column; align-items:stretch; text-align:center; }
  .final-reward-line { text-wrap:balance; }
  .final-bonus-card .copy-button { align-self:center; width:min(100%,180px); max-width:none; }
  .steps.final-steps { grid-template-columns:1fr; width:min(100%,450px); min-height:0; }
  .steps.final-steps .step { justify-content:flex-start; flex-wrap:nowrap; min-height:58px; padding:5px 12px; gap:9px; text-align:left; }
  .steps.final-steps .step:not(:last-child) { border-right:0; border-bottom:1px solid #4d381a; }
  .steps.final-steps .step img { display:block; width:35px; height:35px; }
  .steps.final-steps .step-copy strong { font-size:12px; }
  .steps.final-steps .step-copy small { display:block; margin-top:1px; font-size:10px; line-height:1.25; }
}
@media (max-width:520px) and (max-height:740px) {
  .scene-inner:has(.final-panel:not([hidden])) { padding-top:8px; }
  .final-panel { gap:5px; }
  .final-panel .hero-title { margin-top:0; font-size:clamp(32px,8vw,38px); }
  .final-panel .hero-subtitle { font-size:12px; }
  .final-panel .reward-art { height:clamp(190px,52vw,215px); }
  .final-panel .reward-chest { height:108%; }
  .final-bonus-card { padding:7px 10px; gap:5px; }
  .final-bonus-card .copy-button { min-height:36px; }
  .final-register { min-height:50px; }
}
