/* V28: final title, readable gains, momentary award ribbon and mobile card. */
body:not(.in-game) .brand img{height:auto!important;width:clamp(115px,35vw,160px)!important;max-width:100%;object-fit:contain;display:block}
body:not(.in-game) header{min-height:46px;padding-block:4px 8px}
body:has(#intro:not(.hide)) header .edition span{display:none}
#intro.v11-intro{min-height:calc(100svh - 72px);padding-top:clamp(64px,15svh,140px);padding-inline:clamp(16px,5vw,28px);justify-content:flex-end}
#intro .launch-visual{inset:-45% 0 0;background-position:center bottom;background-size:cover}
#intro .launch-visual::after{background:linear-gradient(180deg,transparent 30%,#06132122 45%,#070d19bd 65%,#080d16 98%)}
#intro .launch-emblem{font-size:clamp(12px,3.4vw,16px);letter-spacing:.18em}
#intro h1{font-size:clamp(34px,10.5vw,58px);line-height:1.13;margin:10px 0 16px;letter-spacing:-.055em}
#intro .launch-content{padding-bottom:max(16px,env(safe-area-inset-bottom))}
#intro .launch-start{min-height:56px}
body:has(#result:not(.hide)) main{height:auto;min-height:100svh;overflow:visible;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
#result{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
#result .share-card-frame{width:100%;max-width:clamp(200px,calc(75svh - 174px),100%);margin-inline:auto}
#result .card-replay{min-height:48px;scroll-margin-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
#game .growth-window{--gain-h:clamp(42px,6.5dvh,56px);grid-template-rows:9px minmax(0,1fr);padding:1px 2px 1px!important}
#game .growth-window .delta,#game.reward-live23 .gain-count22 .growth-window .delta,#game.reward-live23 .gain-pop21 .growth-window .delta{font-size:calc((var(--gain-h) - 12px)*.84)!important;font-weight:800;line-height:1!important;letter-spacing:-.045em}
#game .skill-tile.gain-green .growth-window .delta,#game .skill-tile.gain-red .growth-window .delta,#game .skill-tile.gain-gold .growth-window .delta,#game .skill-tile.gain-rain .growth-window .delta{font-size:calc((var(--gain-h) - 12px)*.99)!important;font-weight:900}
#game .growth-window .gain-tag{font-size:8px!important;line-height:1!important;z-index:1}
#game .skill-tile-nums .val{font-size:clamp(20px,5.8vw,26px);font-weight:800}
#game .skill-tile.primary-gain .val,#game .skill-tile.gain-gold .val,#game .skill-tile.gain-rain .val{font-size:clamp(23px,6.4vw,30px);color:#fff0bd}
#game .skill-tile-top{min-height:26px}
#game .reel .cell .number-symbol .num-metal,#game.reward-live23 .reel .cell.mid.matched .number-symbol .num-metal,#game.reward-live23[data-reward="5"] .reel .cell.mid.matched .number-symbol .num-metal{background:linear-gradient(135deg,#ffffff26 0%,#ffffff08 28%,#ffffff42 29%,#ffffff08 40%,transparent 41%,#00000025 100%),var(--plate,#eef2f5)!important;box-shadow:inset 0 1px 0 #ffffffa0,inset 0 -2px 2px #0004,inset 0 0 0 1px #ffffff28,0 2px 3px #0009!important}
#game.reward-live23 .reel .cell.mid.matched .number-symbol .num-metal{box-shadow:inset 0 1px 0 #fff9,inset 0 -2px 2px #0004,0 0 0 2px var(--award-core),0 0 13px var(--award-hot)!important}
#game.reward-live23[data-reward="4"] .reward-caption23.on,#game.reward-live23[data-reward="5"] .reward-caption23.on{top:50%;left:0;right:0;transform:translateY(-50%);z-index:55;padding:8px 4px;border-radius:0;border-block:2px solid var(--award-core,#ffd56a);background:linear-gradient(100deg,#090a11f5,#34220ff5 45%,#090a11f5);box-shadow:0 0 18px var(--award-hot,#e6ad45);font-size:clamp(24px,7.7vw,38px);line-height:1.12;animation:ribbon28 .68s ease-out both}
#game.reward-live23[data-reward="5"] .reward-caption23.on{background:linear-gradient(100deg,#090a11f5,#37224cf5,#090a11f5)}
#game.reward-live23 .reward-caption23.settled28{display:none!important}
@keyframes ribbon28{0%{opacity:0;transform:translateY(-50%) scaleY(.62)}20%{opacity:1;transform:translateY(-50%) scaleY(1)}85%{opacity:1}100%{opacity:0}}
#game .award-pulse .flash28{position:absolute;inset:0;background:#fff;opacity:0;animation:flash28 .23s ease-out both;pointer-events:none}
#game .award-pulse .sunburst28{position:absolute;inset:-45%;background:repeating-conic-gradient(from 12deg at 50% 50%,transparent 0deg 12deg,#ffdf9166 13deg 16deg,transparent 17deg 27deg);mask-image:radial-gradient(circle,#000 5%,#000b 35%,transparent 70%);animation:sunburst28 .8s ease-out both}
#game .award-pulse .spark28{position:absolute;left:50%;top:43%;width:5px;height:12px;background:linear-gradient(#fff8d8,#e3ad39);transform:rotate(var(--a)) translateY(0);animation:spark28 .8s ease-out both;box-shadow:0 0 5px #fff8}
@keyframes flash28{0%{opacity:0}18%{opacity:.65}100%{opacity:0}}
@keyframes sunburst28{0%{opacity:0;transform:scale(.7)}20%{opacity:.85}100%{opacity:0;transform:scale(1.15)}}
@keyframes spark28{0%{opacity:0;transform:rotate(var(--a)) translateY(0)}15%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(var(--d)) rotate(110deg)}}
#game.reward-live23[data-reward="4"] #hitTitle,#game.reward-live23[data-reward="5"] #hitTitle{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:900;font-size:clamp(18px,5vw,25px);color:var(--award-core,#ffde85)}
@media(max-height:660px){#game .growth-window{--gain-h:36px}#game .skill-tile-top{min-height:23px}#game .skill-tile-nums .val{font-size:20px}#game .skill-tile.primary-gain .val,#game .skill-tile.gain-gold .val,#game .skill-tile.gain-rain .val{font-size:23px}#game .skill-tile{padding-block:3px!important}#game .skill-grid{gap:3px 6px}}
@media(max-height:570px){body.in-game main{height:auto;min-height:100svh;overflow:visible}body.in-game{overflow:auto}#game.game-shell{min-height:520px}#game .reels{flex:0 0 150px}}
@media(prefers-reduced-motion:reduce){#game .award-pulse .flash28,#game .award-pulse .sunburst28,#game .award-pulse .spark28{display:none!important}#game.reward-live23 .reward-caption23.on{animation:none!important}#game.reward-live23 .reward-caption23.settled28{display:none!important}}

/* V29: boat 2 remains black, reward ribbon masks the upper labels, localized impact. */
#game .sym-1{--plate:#111;--ink:#fff}
#game .reel .cell .sym-1 .num-metal,#game.reward-live23 .reel .cell.mid.matched .sym-1 .num-metal{border:2px solid #dce4eb!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#game.reward-live23[data-reward="3"] .reward-caption23.on{top:0;left:0;right:0;padding:5px 4px;line-height:1.2;background:linear-gradient(180deg,#080b11 0%,#080b11f5 75%,#080b11e8 100%);border-radius:0;z-index:55;white-space:normal;overflow:visible;text-overflow:clip}
#game .reels.impact29{animation:impact29 .15s ease-out both}
@keyframes impact29{0%,100%{transform:translateX(0)}24%{transform:translateX(-3px)}48%{transform:translateX(3px)}72%{transform:translateX(-1px)}}
@media(prefers-reduced-motion:reduce){#game .reels.impact29{animation:none!important}}
