/* Icon Quiz production shell adapted for the approved starship catalogue.
 * Keep the complete game below the Defender 1200 x 750 maximum. */
/* Page backdrop and typography inherit the same shared site CSS as Icon Quiz. */
#icon-quiz{width:min(1060px,100%);max-width:1200px;margin:0 auto;--playfield-h:546px;--deck-bar-h:54px;color-scheme:dark}
#icon-quiz .game-wrap{width:100%;height:652px;max-height:750px}
#icon-quiz .game-titlebar{height:52px;min-height:52px}
#icon-quiz .game-pad{height:546px}
#icon-quiz .menu-view{height:100%;min-height:0;padding:12px 28px 19px;position:relative;isolation:isolate;
 background:#041923;}
#icon-quiz .menu-view::before{display:none!important}
#icon-quiz .menu-central{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;gap:8px;max-width:820px;min-height:0;padding:12px 0 6px}
#icon-quiz .menu-category-label{margin:0;color:#a5d4e8;font-size:12px;letter-spacing:2px}
#icon-quiz .starship-intro{text-align:center;max-width:760px;margin:12px auto 0;padding:12px 16px 14px;
 background:radial-gradient(ellipse at center,#113c526b,#04172218 73%);}
#icon-quiz .starship-intro-mark{display:block;margin:0 auto -10px;color:#f6d943;font:1000 98px/1 Arial,Helvetica,sans-serif;
 -webkit-text-stroke:4px #0c3950;text-shadow:0 6px 0 #031923,0 0 26px #000}
#icon-quiz .starship-intro h2{margin:0;color:#f4df51;text-shadow:0 3px 1px #092a3b,0 5px 18px #000;font:1000 clamp(25px,4vw,42px)/1.08 Arial,sans-serif;letter-spacing:-.025em}
#icon-quiz .starship-intro p{color:#e0edf5;font-size:12px;font-weight:950;letter-spacing:1.2px;margin:14px 0 0}
#icon-quiz .starship-intro p span{color:#f5d945;padding:0 8px}
#icon-quiz .category-status{margin:6px 0 0}
#icon-quiz .quiz-player-line{margin:0;color:#c4dce9;font-size:10px}
#icon-quiz .quiz-player-line strong{color:#f4dd51}
#icon-quiz .menu-record .record-value-line strong{color:#f7d849}
#icon-quiz #game-view{display:flex;flex-direction:column;height:100%;max-height:100%;max-width:none;padding:9px 25px 6px;gap:0;overflow:hidden}
#icon-quiz #game-view[hidden]{display:none!important}
#icon-quiz #game-view .stats{flex:0 0 49px;min-height:0;padding-bottom:5px}
#icon-quiz #game-view .stat{min-height:0;padding:0 15px;border-left:3px solid #287fa9}
#icon-quiz #game-view .stat .stat-value.hearts{color:#f2b8c3;font-size:24px}
#icon-quiz .deck-total-small{font-size:14px;color:#81b1cb}
#icon-quiz #game-view .timer-row{flex:0 0 22px;margin:4px 0 0}
#icon-quiz #game-view .timer-track{flex:0 0 6px;margin:2px 0 0}
#icon-quiz #game-view .stage{flex:1 1 auto;min-height:0;height:auto;padding:4px 0 2px;gap:2px;justify-content:space-around;overflow:hidden}
#icon-quiz .round-line{font-size:10px;line-height:12px;color:#84c6e2;letter-spacing:2px;font-weight:900}
#icon-quiz .starship-playstage{width:min(100%,790px);height:100%;min-height:0;flex:1;max-height:268px;position:relative;overflow:hidden;
 border:1px solid #2e6b8b;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%);
 background:radial-gradient(ellipse at 50% 44%,#216989 0%,#09283b 38%,#061826 77%,#021019 100%)}
#icon-quiz .starship-sky{position:absolute;inset:0;pointer-events:none;background:
 linear-gradient(90deg,#0615227a,#06121f40,#071522a8),url('https://ptf-armada-static-assets.pages.dev/games/starship/v1/scene/01-starfield-background-38a01ee32df923.png') center/cover no-repeat;opacity:.6}
#icon-quiz .ship-aura{position:absolute;pointer-events:none;width:min(40%,270px);height:130%;top:50%;left:50%;transform:translate(-50%,-50%);
 background:radial-gradient(ellipse at center,#c0effaa9 0%,#51bdd86a 26%,#1595bb2e 45%,transparent 70%);filter:blur(12px)}
#icon-quiz #silhouette,#icon-quiz #fullship{position:absolute;left:50%;top:48%;height:116%;width:min(56%,355px);object-fit:contain;transform:translate(-50%,-50%) scale(var(--ship-optical-scale,1));image-rendering:auto;filter:drop-shadow(0 7px 6px #0008)}
#icon-quiz #silhouette{display:block;visibility:visible;opacity:1}
/* Spoiler-proof: fully removed from layout/paint outside explicit reveal state. */
#icon-quiz #fullship{display:none!important;visibility:hidden!important;opacity:0!important}
#icon-quiz .starship-playstage.revealed #silhouette{display:none!important}
#icon-quiz .starship-playstage.revealed #fullship{display:block!important;visibility:visible!important;opacity:1!important}
#icon-quiz .stage-question{font-size:14px;flex:none;line-height:21px;margin:0;height:21px;min-height:21px;max-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#icon-quiz #game-view .answer-grid{flex:0 0 152px;height:152px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,72px);gap:8px;margin:2px 0 0}
#icon-quiz #game-view .answer{height:72px;min-height:72px;padding:8px 13px;font-size:13px;gap:12px}
#icon-quiz #game-view .answer .key{flex:0 0 23px;font-size:14px;text-align:center}
#icon-quiz #game-view .answer .answer-label{min-width:0;display:block;overflow-wrap:anywhere;hyphens:auto;line-height:1.18}
#icon-quiz #game-view .answer.inactive{opacity:.58}
#icon-quiz #game-view .feedback{flex:0 0 19px;min-height:19px;margin:2px 0 0;padding:0;font-size:12px;line-height:18px}
#icon-quiz #game-view .feedback.good{color:#b0f2c9}
#icon-quiz #game-view .feedback.bad{color:#f9bbbb}
#icon-quiz .nts-global-note{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#86b8ce;font-size:10px;font-weight:900;margin:12px 0 0}
#icon-quiz .nts-global-note button{border:1px solid #306987;background:#0b2738;color:#a5d9ed;padding:7px 10px;font-size:10px}
#icon-quiz .quiz-attribution{font-size:10px;line-height:1.4;margin:6px 0 0;text-align:center}
#icon-quiz #screen{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
#icon-quiz #screen[hidden]{display:none!important}
#icon-quiz [hidden]{display:none!important}
@media(max-width:640px){
 #icon-quiz{--playfield-h:598px;--deck-bar-h:50px;width:100%}
 #icon-quiz .game-wrap{height:695px;max-height:750px}
 #icon-quiz .game-pad{height:598px}
 #icon-quiz .game-titlebar{height:47px;min-height:47px}
  #icon-quiz .menu-view{padding:8px 14px 13px}
 #icon-quiz .menu-central{gap:10px;padding:12px 0}
 #icon-quiz .starship-intro-mark{font-size:85px}
 #icon-quiz .starship-intro h2{font-size:clamp(23px,6.5vw,34px)}
 #icon-quiz #game-view{padding:9px 9px 7px}
 #icon-quiz #game-view .stats{flex-basis:50px}
 #icon-quiz #game-view .stat{padding:0 6px;border-left-width:2px}
 #icon-quiz #game-view .stat .stat-value.hearts{font-size:17px;white-space:nowrap}
 #icon-quiz .deck-total-small{font-size:11px}
 #icon-quiz .starship-playstage{max-height:310px}
 #icon-quiz .stage-question{font-size:12px}
 #icon-quiz #game-view .feedback{font-size:11px}
 #icon-quiz #silhouette,#icon-quiz #fullship{width:min(68%,280px);height:105%}
 #icon-quiz #game-view .answer-grid{flex-basis:192px;height:192px;grid-template-rows:repeat(2,92px)}
 #icon-quiz #game-view .answer{height:92px;min-height:92px;font-size:11.5px;padding:7px 7px;gap:6px}
 #icon-quiz #game-view .answer .key{flex-basis:17px;font-size:12px}
}
@media(max-width:370px){#icon-quiz{--playfield-h:598px}#icon-quiz .game-wrap{height:695px}#icon-quiz .menu-central{gap:6px;padding:4px 0}#icon-quiz .starship-intro{margin-top:5px;padding:6px 8px}#icon-quiz .starship-intro-mark{font-size:70px}#icon-quiz .starship-intro p{margin-top:6px}#icon-quiz .menu-action-row{row-gap:4px}#icon-quiz .quiz-share-bests{grid-column:1/-1;grid-row:4;align-self:center;justify-self:center;padding:3px 2px;font-size:9px}#icon-quiz .starship-intro p{font-size:10px}#icon-quiz #game-view .answer{font-size:10.5px;padding:5px;gap:5px}#icon-quiz #game-view .answer .key{flex-basis:14px;font-size:11px}#icon-quiz .menu-category-label{font-size:10px;letter-spacing:1px}}
@media(max-width:355px){#icon-quiz .game-titlebar .ribbon-label{font-size:10px;padding:12px 18px 12px 8px}}
@media(prefers-reduced-motion:reduce){#icon-quiz .starship-playstage *{transition:none!important;animation:none!important}}

/* Production Icon Quiz visual matching: actual Icon Quiz moving sheet, not a CSS approximation. */
#icon-quiz .quiz-icon-sheet{opacity:.21;filter:saturate(.72)}
#icon-quiz .quiz-icon-sheet::before{background-image:url('/assets/starship-full-colour-tile.006d9efa522f.webp');background-position:left center;background-size:640px 432px;animation:ptf-quiz-sheet-drift 130s linear infinite}
#icon-quiz .quiz-icon-sheet::after{background:linear-gradient(180deg,#03151e9c,#03151e28 35%,#03151e42 65%,#03151ee0)}
/* Preserve the site-wide Icon Quiz hero typography, including the exact
   -PTF- character spacing. Fit only the longer game-name span on small screens. */
.starship-apps .hero-brand-title{max-width:980px;white-space:nowrap}
@media(max-width:760px){
 .starship-apps .hero-brand-title{white-space:normal}
 .starship-apps .hero-brand-title .tools-hero-name{font-size:.9em}
}
@media(max-width:480px){
 .starship-apps .hero-brand-title .tools-hero-name{font-size:.72em}
}

@media(prefers-reduced-motion:reduce){#icon-quiz .quiz-icon-sheet::before{animation:none!important;will-change:auto}}

/* Reserve the four answer slots while artwork loads. No stage-height jump. */
#icon-quiz #game-view .answer-grid.is-loading{visibility:hidden;pointer-events:none}
