.game-scene { position: relative; isolation: isolate; }
.game-scenery { position: absolute; inset: 0; z-index: -1; background: url('/storage/redesign/game-scene-v2.webp') center top / 100% auto no-repeat; opacity: .7; mask-image: linear-gradient(#000 65%,transparent); pointer-events: none; }
.game-page { padding-block: 32px 25px; }
.game-layout { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.65fr) minmax(280px,1.15fr); gap: 30px; align-items: center; }
.game-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 12px; font-weight: 700; margin-bottom: 34px; }
.game-back .icon { width: 18px; }
.game-intro h1 { font-size: clamp(27px,2.5vw,44px); line-height: 1.07; font-weight: 1000; letter-spacing: -.035em; font-style: italic; margin: 12px 0 8px; }
.intro-price { display: block; color: var(--gold-light); font-size: clamp(35px,4vw,65px); line-height: 1.15; font-weight: 1000; font-style: italic; letter-spacing: -.05em; text-shadow: 0 0 24px rgba(var(--theme-primary-rgb),.27); white-space: nowrap; }
.game-intro p { color: var(--muted); font-size: 15px; margin: 15px 0 25px; }
.game-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.game-features li { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 30px 9px 9px 30px; background: color-mix(in srgb,var(--bg) 80%,transparent); }
.game-features .icon { color: var(--gold); width: 27px; height: 27px; }
.game-features b,.game-features small { display: block; }
.game-features b { font-size: 12px; }
.game-features small { color: var(--muted); font-size: 10px; }
.board-column { min-width: 0; width: 100%; max-width: min(610px,calc(100svh - 200px)); justify-self: center; }
.scratch-frame { position: relative; padding: 12px; border-radius: 30px; background: linear-gradient(140deg,var(--gold-light),var(--gold-deep) 16%,var(--gold) 30%,var(--bg) 44%,var(--gold-deep) 67%,var(--gold-light) 87%,var(--gold)); border: 2px solid var(--gold-light); box-shadow: 0 0 6px var(--gold),0 0 28px rgba(var(--theme-primary-rgb),.28),inset 0 0 0 3px var(--gold-deep),inset 0 0 12px var(--gold); }
.scratch-frame:after { content: ''; pointer-events: none; position: absolute; inset: 7px; border: 1px solid var(--gold-light); border-radius: 22px; opacity: .7; }
.frame-crown { position: absolute; left: calc(50% - 25px); top: -22px; z-index: 4; width: 50px; height: 35px; border: 1px solid var(--gold); border-bottom: 0; border-radius: 30px 30px 0 0; background: var(--bg); color: var(--gold-light); display: grid; place-items: center; box-shadow: 0 -4px 12px rgba(var(--theme-primary-rgb),.25); }
.frame-crown .icon { width: 26px; height: 26px; }
.scratch-stage { position: relative; aspect-ratio: 1; border-radius: 18px; padding: 10px; background: var(--bg); overflow: hidden; border: 1px solid var(--gold-deep); }
.scratch-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 9px; height: 100%; width: 100%; }
.scratch-cell { min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; gap: 4px; justify-content: center; align-items: center; border: 1px solid var(--gold-deep); border-radius: 12px; background: linear-gradient(140deg,var(--panel),var(--bg)); padding: 8px 4px; box-shadow: inset 0 1px 4px #ffffff18; text-align: center; overflow: hidden; }
.scratch-cell img { width: 86%; height: 45%; object-fit: contain; border-radius: 4px; }
.scratch-cell .prize-name { font-size: clamp(8px,.9vw,12px); line-height: 1.15; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.scratch-cell .prize-value { font-size: clamp(12px,1.35vw,20px); line-height: 1.15; font-weight: 900; color: var(--gold-light); white-space: nowrap; }
.scratch-cell .prize-symbol { width: 40%; height: 45%; color: var(--gold-light); opacity: .9; }
.scratch-cell.placeholder { background: linear-gradient(135deg,color-mix(in srgb,var(--text) 30%,var(--panel)),var(--panel)); border-color: color-mix(in srgb,var(--text) 10%,var(--panel)); color: color-mix(in srgb,var(--text) 30%,var(--panel)); gap: 0; filter: blur(1px); }
.placeholder .icon { width: 32%; height: 30%; fill: currentColor; stroke-width: .8; opacity: .4; }
.placeholder span { font-weight: 1000; font-style: italic; font-size: clamp(9px,1.4vw,19px); line-height: .95; margin-top: 5px; opacity: .45; }
.placeholder b { color: var(--gold); font-size: .8em; }
.stage-lock { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 15px; align-items: center; justify-content: center; background: color-mix(in srgb,var(--bg) 25%,transparent); border: 0; color: #fff; text-align: center; text-shadow: 0 4px 8px #000b; }
.stage-lock .icon { width: 40px; height: 40px; filter: drop-shadow(0 3px 4px #0009); fill: #d3d3d3; stroke: #fff; }
.stage-lock strong { font-size: clamp(20px,2.5vw,38px); line-height: 1.06; font-weight: 1000; letter-spacing: .01em; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; touch-action: none; cursor: crosshair; }
.stage-actions { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 38px; margin-top: 8px; }
.stage-actions button { display: inline-flex; gap: 6px; align-items: center; color: var(--gold-light); background: color-mix(in srgb,var(--bg) 86%,transparent); border: 1px solid var(--line); padding: 7px 10px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.stage-actions .icon { width: 17px; height: 17px; }
.stage-actions>span { color: var(--muted); font-size: 10px; text-align: center; }
.stage-actions #soundToggle { width: 36px; height: 34px; justify-content: center; padding: 0; }
.game-sidebar { padding: 26px 22px 18px; border: 1px solid var(--gold); outline: 1px solid var(--gold-deep); outline-offset: 5px; border-radius: 24px; background: linear-gradient(145deg,rgba(var(--theme-primary-rgb),.1),color-mix(in srgb,var(--bg) 95%,transparent) 45%); box-shadow: 0 0 24px rgba(var(--theme-primary-rgb),.12); text-align: center; min-width: 0; }
.game-product h2 { font-size: clamp(20px,2vw,30px); line-height: 1.12; font-weight: 1000; letter-spacing: -.03em; margin: 7px 0 14px; }
.game-product h2 span { white-space: nowrap; color: var(--gold-light); }
.game-product p { color: var(--muted); font-size: 14px; margin: 0 auto 22px; max-width: 300px; }
.prize-panel { padding: 17px 8px; border: 1px solid var(--gold-light); border-radius: 16px; background: linear-gradient(120deg,var(--gold-deep),color-mix(in srgb,var(--gold-deep) 70%,#000) 50%,var(--gold-deep)); box-shadow: inset 0 0 25px rgba(var(--theme-primary-rgb),.4),0 0 14px rgba(var(--theme-primary-rgb),.18); }
.prize-panel>span { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.prize-panel .icon { color: var(--gold-light); width: 20px; }
.prize-panel>strong { display: block; color: #fff; font-size: clamp(27px,3.1vw,48px); font-weight: 1000; line-height: 1.2; letter-spacing: -.04em; margin-top: 10px; text-shadow: 0 2px 12px rgba(var(--theme-primary-rgb),.6); white-space: nowrap; }
.buy-button { margin-top: 22px; padding: 16px 7px; border-radius: 30px; font-size: clamp(12px,1.15vw,17px); white-space: nowrap; }
.sidebar-benefits { display: flex; justify-content: space-between; gap: 5px; margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); }
.sidebar-benefits>span { display: flex; gap: 6px; align-items: center; text-align: left; font-size: 9px; color: var(--muted); line-height: 1.3; }
.sidebar-benefits .icon { color: var(--gold); width: 22px; height: 22px; }
.game-result { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; padding: 13px 10px; }
.game-result>.icon { width: 30px; height: 30px; }
.game-result b { display: block; font-size: 15px; line-height: 1.25; }
.game-result p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.game-result.is-win { border-color: #61dc36; background: linear-gradient(120deg,#105109,#082805); color: #c8ffb2; box-shadow: 0 0 20px #4ade8020; }
.game-result.is-win p { color: #d3ffbd; }
.game-result.is-win>.icon { color: #a6ff73; }
.scratch-cell.is-winner { border-color: var(--gold-light); box-shadow: inset 0 0 15px rgba(var(--theme-primary-rgb),.25),0 0 13px var(--gold); background: linear-gradient(140deg,rgba(var(--theme-primary-rgb),.3),var(--bg)); }
.game-how { display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 22px; padding: 24px; margin: 25px 0 0; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb,var(--bg) 92%,transparent); }
.game-how h2 { font-size: 25px; font-weight: 1000; line-height: 1.15; margin: 0 0 7px; letter-spacing: -.03em; }
.game-how>div>p { font-size: 12px; color: var(--muted); margin: 0; }
.game-how .how-steps { margin: 0; gap: 12px; }
.game-how .how-steps article { padding: 15px 10px; }
.game-how .how-steps p { font-size: 10px; }
.game-how .how-steps h3 { font-size: 11px; }
.game-how .step-icon { width: 35px; height: 35px; }
.available-prizes { margin-top: 20px; font-size: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--panel); }
.available-prizes summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.available-prizes>div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.available-prizes>div span { padding: 5px 10px; border: 1px solid var(--gold-deep); border-radius: 15px; color: var(--gold-light); }
.available-prizes p { color: var(--muted); margin: 10px 0 0; }
.game-responsible { font-size: 10px; text-align: center; color: var(--muted); margin: 16px 0 0; }
.game-mobile-heading { display: none; }
@media (max-width:1250px) {
 .game-layout { gap: 23px; grid-template-columns: minmax(165px,.7fr) minmax(0,1.55fr) minmax(250px,1fr); }
 .game-page { padding-top: 29px; }
 .game-back { font-size: 10px; margin-bottom: 20px; }
 .game-intro h1 { font-size: 28px; }
 .intro-price { font-size: 40px; }
 .game-intro p { font-size: 12px; margin: 12px 0 18px; }
 .game-features li { padding: 10px 8px; gap: 8px; }
 .game-features b { font-size: 10px; }.game-features small { font-size: 8px; }
 .game-sidebar { padding: 20px 16px 14px; }
 .game-product p { font-size: 12px; margin-bottom: 15px; }
 .prize-panel { padding-block: 14px; }
 .buy-button { margin-top: 17px; padding-block: 13px; }
 .sidebar-benefits { margin-top: 18px; padding-top: 12px; }
 .sidebar-benefits>span { font-size: 8px; gap: 4px; }
 .sidebar-benefits .icon { width: 17px; height: 20px; }
 .game-how { padding: 18px; grid-template-columns: 125px 1fr; gap: 15px; margin-top: 15px; }
 .game-how h2 { font-size: 22px; }
 .game-how .how-steps { grid-template-columns: repeat(4,1fr); }
 .game-how .how-steps article { display: block; padding: 12px; }
 .game-how .step-icon { width: 26px; height: 26px; margin-bottom: 5px; }.game-how .step-icon .icon { width: 16px; height: 16px; }
}
@media (min-width:901px) and (max-height:760px) {
 .game-intro h1 { font-size: 27px; }.game-intro p { font-size: 12px; margin-block: 10px; }
 .game-features { gap: 6px; }.game-features li { padding: 8px; }
 .game-back { margin-bottom: 15px; }.game-features small { font-size: 9px; }
 .game-sidebar { padding-block: 18px 12px; }
 .game-product p { margin-bottom: 14px; font-size: 12px; }
 .game-product h2 { font-size: 23px; margin-bottom: 10px; }
 .prize-panel { padding-block: 13px; }
 .prize-panel>strong { font-size: 35px; }.buy-button { margin-top: 16px; padding-block: 12px; }
 .sidebar-benefits { margin-top: 14px; padding-top: 12px; }
}
@media (max-width:900px) and (min-width:641px) {
 .game-intro { display: none; }.game-layout { grid-template-columns: 1.15fr 1fr; gap: 20px; }
 .board-column { max-width: none; }.game-product h2 { font-size: 22px; }
 .game-how { display: block; }.game-how .how-steps { margin-top: 15px; }
 .scratch-frame { padding: 9px; }.scratch-stage { padding: 7px; }.scratch-grid { gap: 6px; }
}
@media (max-width:640px) {
 .game-scenery { background-size: auto 700px; background-position: center top; opacity: .7; }
 .game-page { padding: 10px 0 15px; }
 .game-mobile-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 22px; font-size: 10px; color: var(--muted); }
 .game-mobile-heading a { display: inline-flex; align-items: center; gap: 5px; }.game-mobile-heading .icon { width: 14px; height: 14px; }
 .game-intro { display: none; }
 .game-layout { grid-template-columns: 1fr; gap: 10px; }
 .board-column { width: min(100%,max(220px,calc(100svh - 400px))); max-width: 440px; }
 .scratch-frame { border-radius: 22px; padding: 8px; }
 .scratch-frame:after { border-radius: 17px; inset: 4px; }.frame-crown { height: 29px; top: -19px; width: 42px; left: calc(50% - 21px); }.frame-crown .icon { width: 23px; height: 23px; }
 .scratch-stage { border-radius: 14px; padding: 6px; }
 .scratch-grid { gap: 6px; }
 .scratch-cell { border-radius: 9px; padding: 4px 2px; gap: 3px; }
 .scratch-cell .prize-name { font-size: 8px; }.scratch-cell .prize-value { font-size: clamp(11px,3.3vw,15px); }
 .placeholder span { font-size: 13px; }.stage-lock strong { font-size: 25px; }.stage-lock .icon { width: 34px; height: 34px; }
 .stage-actions { margin-top: 7px; min-height: 28px; }.stage-actions button { padding: 5px 8px; font-size: 9px; }.stage-actions>span { font-size: 9px; }.stage-actions #soundToggle { width: 30px; height: 28px; }
 .game-sidebar { padding: 15px 14px 12px; outline-offset: 2px; border-radius: 16px; margin: 0 3px; }
 .game-product { text-align: left; }.game-product .eyebrow { font-size: 8px; }
 .game-product h2 { font-size: 22px; margin: 4px 0 7px; }.game-product p { font-size: 11px; margin: 0 0 12px; max-width: none; }
 .prize-panel { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 11px; }
 .prize-panel>span { font-size: 8px; letter-spacing: .04em; flex-direction: column; gap: 2px; }.prize-panel .icon { width: 20px; height: 20px; }
 .prize-panel>strong { font-size: 28px; margin: 0; }.buy-button { font-size: 13px; padding-block: 12px; min-height: 45px; border-radius: 12px; margin-top: 12px; }
 .sidebar-benefits { margin-top: 12px; padding-top: 10px; justify-content: center; gap: 18px; }.sidebar-benefits>span { font-size: 8px; }.sidebar-benefits .icon { width: 18px; height: 18px; }
 .game-result { padding: 10px; margin-top: 10px; }.game-result b { font-size: 13px; }.game-result p { font-size: 10px; }
 .game-how { display: block; padding: 17px 12px; margin-top: 22px; border-radius: 15px; }.game-how h2 { font-size: 22px; }
 .game-how .how-steps { grid-template-columns: 1fr 1fr; margin-top: 13px; gap: 8px; }.game-how .how-steps article { padding: 11px; }.game-how .how-steps p { font-size: 10px; }
 .game-responsible { font-size: 9px; }.available-prizes { font-size: 11px; padding: 11px; }
}
@media (max-width:640px) and (max-height:780px) {
 .game-mobile-heading { margin-bottom: 18px; font-size: 9px; }
 .board-column { width: min(100%,max(205px,calc(100svh - 360px))); }
 .stage-lock strong { font-size: 22px; }.stage-lock { gap: 10px; }
 .game-sidebar { padding: 9px 12px; }.game-product h2 { font-size: 19px; margin: 2px 0 7px; }
 .game-product .eyebrow,.game-product p,.sidebar-benefits { display: none; }
 .prize-panel { padding: 7px 10px; }.prize-panel>span { flex-direction: row; font-size: 8px; gap: 4px; }.prize-panel>strong { font-size: 23px; }
 .buy-button { margin-top: 9px; padding-block: 10px; min-height: 40px; font-size: 12px; }
 .game-layout { gap: 7px; }.stage-actions>span { font-size: 8px; }
}
@media (min-width:641px) and (max-width:900px) and (max-height:500px) {
 .site-header { height: 56px; }.site-header .brand img { height: 42px; width: 145px; }
 .game-page { padding-top: 25px; }.game-layout { grid-template-columns: 1fr 1.2fr; max-width: 730px; margin-inline: auto; }
 .board-column { max-width: max(200px,calc(100svh - 135px)); }
 .scratch-frame { padding: 7px; border-radius: 22px; }.scratch-stage { padding: 5px; border-radius: 14px; }
 .scratch-grid { gap: 5px; }.stage-lock strong { font-size: 20px; }.stage-lock .icon { width: 25px; height: 25px; }.stage-lock { gap: 9px; }
 .scratch-cell .prize-name { font-size: 7px; }.scratch-cell .prize-value { font-size: 11px; }
 .stage-actions { min-height: 26px; margin-top: 5px; }.stage-actions button { padding: 4px 7px; font-size: 9px; }.stage-actions>span { font-size: 8px; }
 .game-sidebar { padding: 12px; border-radius: 15px; }.game-product h2 { font-size: 21px; margin: 4px 0 10px; }.game-product p,.sidebar-benefits { display: none; }
 .prize-panel { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; }.prize-panel>strong { font-size: 28px; margin: 0; }.prize-panel>span { font-size: 8px; }
 .buy-button { font-size: 12px; padding: 10px; margin-top: 12px; min-height: 40px; }
 .game-result { padding: 8px; margin-top: 8px; }.game-result b { font-size: 12px; }.game-result p { font-size: 10px; }
 .game-how { margin-top: 16px; }
}
