/* AMS FRANCE V6 — mobile-first adjustments (Flip6 / large Pro smartphones) */
:root{--v6-gutter:clamp(10px,2.6vw,22px)}
html{max-width:100%;overflow-x:clip}
body{max-width:100%;min-width:0;overflow-x:clip}
#app,main,section,.roulette-layout,.wheel-panel,.theme-panel,.game-layout,.game-visual,.game-side,.selected-panel{min-width:0;max-width:100%}
main{padding-left:var(--v6-gutter);padding-right:var(--v6-gutter)}
header.topbar{padding-left:var(--v6-gutter);padding-right:var(--v6-gutter)}
.topbar .logo,.topbar .header-actions{min-width:0}
.topbar .logo small{letter-spacing:.1em}
.top-points{min-width:0}
.roulette-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.wheel-shell{width:min(100%,460px);max-width:100%;aspect-ratio:1;flex:none}
.wheel-svg{width:100%;max-width:100%;height:auto}
.wheel-panel,.theme-panel{min-width:0}
.wheel-hero{min-width:0}
.wheel-segment-text{font-weight:900}

/* The CTA is immediately under the wheel and remains visible after selection */
.spin-result{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:510px;margin:16px auto 0;padding:13px 14px;border:1px solid #53d7cb;border-radius:14px;background:linear-gradient(112deg,#183e4c,#102b38);box-shadow:0 8px 20px #0007}
.spin-result.hidden{display:none!important}
.spin-result-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.spin-result-kicker{font-size:10px;font-weight:900;letter-spacing:.12em;color:#8dece3}
.spin-result-copy strong{font:900 clamp(23px,3vw,32px)/1.05 'Arial Narrow',Impact,Arial,sans-serif;color:#fff;overflow-wrap:anywhere}
.spin-result-copy>span:last-child{font-size:11px;color:#b3d3dc}
.start-wheel-result{flex:0 1 auto;padding:14px 16px;min-height:48px;font-size:12px;white-space:normal;line-height:1.25}
.spin-result-animate{animation:v6comein .42s cubic-bezier(.18,.85,.25,1) both}
@keyframes v6comein{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.play-selected:not(:disabled){box-shadow:0 0 0 3px #54ded31b,0 9px 20px #1fe2c536}

/* Actual product images: thumbnails, not oversized hero images */
.real-material{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;padding:12px}
.real-card{display:grid;grid-template-columns:clamp(104px,17vw,144px) minmax(0,1fr);align-items:stretch;min-width:0;max-width:100%;border-radius:12px}
.real-card figure{aspect-ratio:auto!important;width:100%;height:100%;min-height:118px;max-height:178px;overflow:hidden}
.real-card figure img{display:block;width:100%;height:100%;max-height:176px;object-fit:contain;padding:7px}
.real-card .real-copy{min-width:0;padding:11px}
.real-card .real-copy p{font-size:12px;line-height:1.35;margin:0 0 5px}
.real-card .real-copy small{font-size:10px;line-height:1.45;margin-bottom:7px}
.real-card .real-copy a{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.real-card b{font-size:9px;letter-spacing:.08em;margin-bottom:5px}

/* Game illustration defaults to fit; zoom is optional */
.mobile-visual-tools{display:none}
.svg-stage{max-width:100%;min-width:0;overflow:hidden}
.svg-host{max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.svg-host svg{max-width:100%;height:auto}

@media(max-width:1120px){
 .roulette-layout{grid-template-columns:1fr;max-width:750px;margin-inline:auto}
 .wheel-panel,.theme-panel{max-width:100%}
 .wheel-shell{width:min(100%,460px)}
}
@media(max-width:820px){
  .game-layout{display:flex;flex-direction:column;gap:10px}
  .game-side{display:contents}
  .scoreboard{order:0;width:100%}
  .progress-track{order:1;width:100%}
  .question-panel{order:2;width:100%}
  .game-visual{order:3;width:100%}
  .help-panel{order:4;width:100%}
  .question-panel{padding:16px}
  .question-panel h3{margin:10px 0 6px}
  .question-panel>p{margin-bottom:4px}
  .feedback{min-height:10px}
  .mobile-visual-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;background:#0d2632;border-bottom:1px solid var(--line)}
  .mobile-visual-tools span{font-size:11px;color:#b2cbd2;line-height:1.35}
  .diagram-zoom{font-size:11px;padding:10px 12px;min-height:42px;white-space:normal;flex:none}
  .svg-host{min-height:0!important;display:block;overflow:auto;touch-action:pan-x pan-y pinch-zoom}
  .svg-host svg{min-width:0!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important}
  .svg-host.diagram-zoomed svg{width:840px!important;max-width:none!important;min-width:840px!important}
  .svg-stage{padding:5px}
  .visual-heading{padding:12px 14px}
  .visual-footer{padding:9px 12px}
  .guide-card{min-height:unset}
}
@media(max-width:580px){
  .wheel-panel,.theme-panel{padding:12px}
  .worlds{padding-top:8px}
  .roulette-layout{gap:10px}
  .wheel-shell{width:min(100%,400px);max-width:calc(100vw - 46px);filter:drop-shadow(0 10px 14px #0008)}
  .wheel-panel .wheel-hero h1{font-size:clamp(28px,8.2vw,41px);line-height:1}
  .wheel-panel .wheel-hero p{font-size:12px;line-height:1.45}
  .wheel-eyebrow{letter-spacing:.07em;font-size:10px}
  .roulette-actions{margin-top:7px}
  .spin-button{min-height:49px;padding:10px 12px;font-size:12px}
  .roulette-actions p{margin:7px 0 0;font-size:10px}
  .spin-result{flex-direction:column;align-items:stretch;margin-top:11px;padding:12px;gap:11px;scroll-margin-top:14px}
  .spin-result-copy{text-align:center}
  .spin-result-copy strong{font-size:26px}
  .start-wheel-result{width:100%;min-height:54px;font-size:15px;font-weight:900;letter-spacing:.05em}
  .header-actions{gap:8px}
  .header-tech{padding:8px 10px;white-space:normal;line-height:1.4}
  .top-points{padding:8px 10px;font-size:10px}
  .question-panel h3{font-size:clamp(28px,7vw,36px)}
  .question-n{letter-spacing:.08em}
  .game-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .game-controls button{flex:unset;min-width:0;font-size:11px;padding:12px 9px;line-height:1.2}
  .svg-host{width:100%;max-width:100%;min-height:0;overflow-x:auto}
  .svg-host svg{width:100%!important;max-width:100%!important;min-width:0!important}
  .svg-host.diagram-zoomed svg{width:840px!important;max-width:none!important;min-width:840px!important}
  .real-material{grid-template-columns:1fr;padding:9px;gap:9px}
  .real-card{grid-template-columns:clamp(92px,29vw,134px) minmax(0,1fr)}
  .real-card figure{max-height:151px;min-height:102px}
  .real-card figure img{max-height:149px;padding:5px}
  .mobile-visual-tools{flex-wrap:wrap}
  .mobile-visual-tools span{flex:1 1 110px}
  .selected-panel{padding:13px}
  .play-selected{min-height:50px}
  .theme-list{gap:6px}
  .theme-option{padding:9px}
  .theme-heading{margin-bottom:10px}
  .theme-heading h3{font-size:29px}
  .mobile-tech-call{font-size:11px}
}
@media(max-width:350px){
  .wheel-center{min-width:50px;max-width:67px}
  .wheel-center strong{font-size:16px}
  .wheel-shell{max-width:calc(100vw - 38px)}
  .roulette-layout{gap:8px}
  .wheel-panel .wheel-hero h1{font-size:27px}
  .game-controls button{font-size:10px;padding:11px 7px}
  .real-card{grid-template-columns:94px minmax(0,1fr)}
  .real-card .real-copy{padding:9px}
  .mobile-visual-tools .diagram-zoom{width:100%}
}
@media(prefers-reduced-motion:reduce){.spin-result-animate{animation:none}}
/* Clear, continuous but gentle call-to-action after the wheel stops */
.start-wheel-result:not(:disabled){animation:v6ctaglow 2.4s ease-in-out infinite}
@keyframes v6ctaglow{0%,100%{box-shadow:0 5px 16px #2be0ce35}50%{box-shadow:0 0 0 5px #52e4d01b,0 7px 22px #52e4d075}}
@media(max-width:580px){
  .mobile-tech-call{left:auto!important;right:10px!important;width:auto!important;max-width:calc(100vw - 20px);min-height:42px;padding:9px 13px!important;font-size:10px!important;border-radius:999px!important}
}
@media(prefers-reduced-motion:reduce){.start-wheel-result:not(:disabled){animation:none}}
