/* Airliner Trainer V50 — learning hub and accessible multilingual components */
.v50-subnav{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v50-head-lang{background:#12243d;color:#e9f4ff;border:1px solid #45658a;border-radius:10px;font:inherit;font-size:13px;font-weight:650;padding:10px 11px;max-width:140px;cursor:pointer}
.v50-head-lang:focus-visible,.v50-search:focus-visible,.v50-filter:focus-visible{outline:3px solid #80c5ff;outline-offset:2px}
.v50-section{margin:38px 0 55px;padding:27px 30px;border:1px solid #324c70;border-radius:22px;background:linear-gradient(140deg,#142849,#0c1d37)}
.v50-kicker{font-size:11px;text-transform:uppercase;letter-spacing:1.65px;color:#7ad4ea;font-weight:850}
.v50-section h2,.v50-page h2{font-size:clamp(22px,2.7vw,31px);letter-spacing:-.6px;margin:10px 0}
.v50-section p,.v50-page p{color:#b3c6e0;line-height:1.73}
.v50-section p{max-width:740px;font-size:14px}
.v50-buttons{display:flex;gap:11px;flex-wrap:wrap;margin-top:19px}
.v50-primary-link,.v50-secondary-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 17px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:800;transition:transform .15s ease,filter .15s ease}
.v50-primary-link{background:linear-gradient(100deg,#4a8ef7,#2569d5);border:1px solid #7eb4ff;color:#fff}
.v50-secondary-link{background:#183553;border:1px solid #446c98;color:#d3eaff}
.v50-primary-link:hover,.v50-secondary-link:hover{transform:translateY(-2px);filter:brightness(1.08)}
.v50-page{padding:35px 0 70px;min-height:62vh}
.v50-page h1{font-size:clamp(31px,4vw,55px);margin:9px 0 14px}
.v50-lead{font-size:clamp(15px,1.6vw,19px);line-height:1.8;max-width:920px;color:#b7cee8}
.v50-page-intro{margin-bottom:30px}
.v50-toolbar{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:25px 0}
.v50-search,.v50-filter{border:1px solid #46668f;border-radius:12px;background:#11243e;color:#eff7ff;padding:14px 15px;font:inherit;font-size:14px}
.v50-search{width:min(460px,100%);flex:2;min-width:220px}
.v50-filter{flex:1;max-width:300px;min-width:180px}
.v50-result-count{display:inline-flex;padding:9px 14px;border-radius:100px;background:#1b3555;border:1px solid #375778;color:#c0dafa;font-size:12px;font-weight:750}
.v50-aircraft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px}
.v50-aircraft-card{border:1px solid #3b5679;border-radius:16px;background:#11243e;overflow:hidden;scroll-margin-top:25px}
.v50-aircraft-card[open]{border-color:#699bca;background:#132944;box-shadow:0 16px 50px #0002}
.v50-aircraft-card summary{cursor:pointer;display:flex;align-items:center;gap:16px;padding:13px;list-style:none}
.v50-aircraft-card summary::-webkit-details-marker{display:none}
.v50-aircraft-card summary:hover{background:#1d3555}
.v50-thumb{width:116px;height:81px;display:grid;place-items:center;flex:none;background:#07172c;border-radius:10px;overflow:hidden}
.v50-thumb img{width:100%;height:100%;object-fit:contain}
.v50-card-titles{min-width:0;flex:1}.v50-card-titles strong{display:block;font-size:15px;line-height:1.35}.v50-card-titles small{display:block;color:#92abc9;font-size:12px;margin-top:5px}
.v50-expand-icon{font-size:21px;color:#9ecbff;transition:transform .2s}.v50-aircraft-card[open] .v50-expand-icon{transform:rotate(180deg)}
.v50-aircraft-detail{border-top:1px solid #3d5a7a;padding:14px 21px 25px}.v50-aircraft-detail h3{font-size:16px;margin:15px 0 8px;color:#f0f8ff}.v50-photo-count{font-size:12px;color:#91b2d9}
.v50-feature-list{padding-left:20px;margin:13px 0 23px;display:grid;gap:11px;font-size:13px;line-height:1.6;color:#c8dcf0}
.v50-feature-list li::marker{color:#6ae0cb}
.v50-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.v50-gallery figure{margin:0;min-width:0;border:1px solid #304b6d;border-radius:11px;background:#0c1e35;overflow:hidden}
.v50-gallery img{width:100%;height:130px;object-fit:contain;display:block}
.v50-gallery figcaption{padding:8px 9px;line-height:1.45;overflow-wrap:anywhere}
.v50-credit-link{font-size:10px;color:#9dcaf3;line-height:1.5;overflow-wrap:anywhere}
.v50-related{display:flex;flex-direction:column;gap:9px}.v50-related a{color:#8acbff;font-size:12px;text-decoration:none}.v50-related a:hover{text-decoration:underline}
.v50-empty{grid-column:1/-1;padding:20px;background:#142940;border-radius:12px}
.v50-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin:30px 0}
.v50-guide-card{display:block;text-decoration:none;overflow:hidden;border:1px solid #395677;border-radius:17px;background:#142641;transition:transform .18s,border-color .18s}
.v50-guide-card:hover{transform:translateY(-4px);border-color:#78b2f2}
.v50-guide-cover{height:174px;background:#071b30}.v50-guide-cover img{width:100%;height:100%;object-fit:contain;display:block}
.v50-guide-card-text{padding:18px 19px}.v50-guide-card-text h2{font-size:19px;line-height:1.3;margin:10px 0}.v50-guide-card-text p{font-size:13px;line-height:1.65;margin:0 0 16px}
.v50-card-cta{font-size:12px;color:#8dccff;font-weight:850}
.v50-breadcrumb{font-size:12px;margin:0 0 30px;color:#9abce5}.v50-breadcrumb a{text-decoration:none}.v50-breadcrumb a:hover{text-decoration:underline}
.v50-guide-section{margin:27px 0 37px}.v50-guide-section>p{max-width:900px;font-size:15px}
.v50-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:22px}
.v50-comparison-card{overflow:hidden;border:1px solid #3c597b;background:#142742;border-radius:17px}
.v50-comparison-photo{height:235px;background:#0a1b32}.v50-comparison-photo img{height:100%;width:100%;object-fit:contain}
.v50-compare-body{padding:20px}.v50-compare-body h3{font-size:21px;margin:2px 0 6px}.v50-typecode{margin:0;color:#8da7c9;font-size:12px}
.v50-compare-footer{border-top:1px solid #35516e;padding-top:15px;display:flex;gap:10px;justify-content:space-between;align-items:start;flex-wrap:wrap}.v50-compare-footer a{font-size:12px;color:#8cd1ff;text-decoration:none;font-weight:700}
.v50-tips{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.v50-tips>div{background:#122741;border:1px solid #3a5679;border-radius:15px;padding:19px}
.v50-tips h2{font-size:20px;margin:0}.v50-tips p{font-size:14px;margin-bottom:0}
.v50-cta{border-radius:19px;background:linear-gradient(135deg,#204f83,#102b4f);border:1px solid #4a75aa;padding:29px;margin:45px 0}.v50-cta h2{margin:0}.v50-cta p{font-size:14px;max-width:650px}.v50-guide-end{margin:25px 0}
.v50-credits-container{max-width:1000px}.v50-credit-group{padding:20px 0;border-top:1px solid #365578}.v50-credit-group h2{font-size:19px}.v50-credit-row{display:flex;gap:14px;padding:10px 0;color:#e4f1ff;font-size:13px}.v50-credit-index{flex:none;color:#7ca6d0;font-size:11px;min-width:17px}.v50-credit-links{display:flex;gap:14px;flex-wrap:wrap;margin:7px 0}.v50-credit-links a{font-size:12px;color:#8bc7ff}
.v50-muted{font-size:12px;color:#91a9c6}.v50-legal-review{color:#9aacc5;font-size:13px}.v50-legal-main{max-width:920px}
.v50-small-lang{display:flex;align-items:center;gap:7px;font-size:11px;color:#aac5e3}
.v50-nav-link{display:inline-flex;align-items:center;padding:10px 12px;border-radius:11px;font-size:13px;text-decoration:none;font-weight:740;color:#c6d7f1}
.v50-nav-link:hover,.v50-nav-link.active{background:#1d4072;color:#fff}
@media(max-width:1100px){.v50-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v50-head-lang{max-width:115px}.v50-nav-link{padding:9px}}
@media(max-width:770px){.v50-aircraft-grid,.v50-comparison-grid,.v50-tips,.v50-guide-grid{grid-template-columns:1fr}.v50-section{padding:20px}.v50-comparison-photo{height:220px}.v50-page{padding:26px 0}.v50-aircraft-detail{padding:12px 15px}.v50-thumb{width:96px;height:75px}.v50-gallery img{height:110px}.v50-guide-cover{height:210px}.v50-subnav{gap:4px}.v50-nav-link{font-size:11px;padding:8px 7px}.v50-small-lang label{display:none}.v50-head-lang{max-width:106px;padding:8px 5px;font-size:11px}}
@media(max-width:480px){.v50-gallery{grid-template-columns:1fr}.v50-thumb{width:82px;height:67px}.v50-card-titles strong{font-size:13px}.v50-card-titles small{font-size:11px}.v50-section{margin:25px 0;padding:18px}.v50-guide-cover{height:172px}}
@media(prefers-reduced-motion:reduce){.v50-guide-card,.v50-primary-link,.v50-secondary-link{transition:none}}
/* Keep the site navigation readable at mobile widths; the base header has a fixed height. */
@media(max-width:700px){
  .v50-site-header{height:auto;min-height:0;padding:13px 0 16px;flex-direction:column;align-items:stretch;gap:10px}
  .v50-site-header .brand{align-self:flex-start}
  .v50-site-header .v50-subnav{width:100%;justify-content:flex-start;gap:4px}
  .v50-site-header .v50-small-lang{margin-left:auto;flex:0 0 auto}
  .v50-site-header .v50-nav-link{font-size:12px;padding:9px 8px}
  .v50-site-header .v50-head-lang{max-width:122px}
}

/* V50.1: prevent unintentional zoom and keyboard popups during mobile quiz selection.
   Access via the normal tap-to-open list; desktop search retains typing. */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  #guessDropdownPanel .aircraft-search {display:none!important}
  #guessDropdownPanel .aircraft-dropdown-list {
    margin-top:0;
    max-height:min(45vh,390px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  #guessDropdownPanel .aircraft-dropdown-option {min-height:44px;font-size:15px}
}
@media (max-width: 980px) {
  html {touch-action:pan-x pan-y}
  /* iOS Safari automatically magnifies fields whose text is below 16px. */
  input,select,textarea {font-size:16px!important}
}

/* V50.2 -- compact language control, used on EVERY public page */
.v50-locale-switch{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;min-width:74px;height:36px;border:1px solid #355376;border-radius:10px;background:#142845;color:#a8c3e8;cursor:pointer;white-space:nowrap;flex:0 0 auto}
.v50-locale-switch:hover{background:#1b3557;border-color:#7196c5}
.v50-locale-switch svg{width:16px;height:16px;flex:0 0 16px}
.v50-locale-select{appearance:none;-webkit-appearance:none;width:39px;max-width:39px;min-width:39px;height:30px;padding:0!important;margin:0!important;border:0!important;outline:none;background:transparent!important;color:#e3f2ff;font-size:13px!important;font-weight:800;cursor:pointer;text-align:center;text-align-last:center;letter-spacing:.02em}
.v50-locale-select option{color:#101b31;background:#f2f6fc;font-weight:600}
.v50-locale-switch:focus-within{outline:2px solid #9acbfc;outline-offset:2px}
.v50-screenreader{position:absolute!important;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.v50-site-header .v50-locale-switch{margin-left:8px}
.v50-locale-home{margin-left:5px}
/* With the language panel removed, the user's name uses the available width. */
body[data-page="home"] .control-grid{grid-template-columns:1fr}
body[data-page="home"] .control-card--wide{grid-column:1 / -1}
.v50-cookie-settings{background:none;border:0;padding:0;color:#91b5d9;text-decoration:underline;cursor:pointer;font:inherit;font-size:inherit}
.v50-cookie-settings:focus-visible{outline:2px solid #9dcaff;outline-offset:3px}
/* The Google CMP consent / revocation UI is intentionally NOT hidden or replaced. */
@media(max-width:770px){.v50-locale-switch{height:34px;padding:4px 5px;min-width:68px}.v50-site-header .v50-locale-switch{margin-left:2px}.v50-locale-select{width:35px;min-width:35px;max-width:35px;font-size:12px!important}}
@media(max-width:390px){.v50-locale-home{margin-left:0}.v50-locale-switch svg{width:14px;height:14px;flex-basis:14px}.v50-locale-switch{min-width:62px;gap:3px}.v50-locale-select{font-size:12px!important}}
/* V50.2: do not let the extra locale control push the mobile quiz off-screen. */
@media(max-width:650px){
 body[data-page="home"] .site-header{height:auto;min-height:94px;flex-wrap:wrap;align-content:center;gap:6px;padding:12px 0}
 body[data-page="home"] .site-header .brand{flex:0 0 auto}
 body[data-page="home"] .navigation{width:100%;max-width:100%;min-width:0;gap:4px;justify-content:flex-start;flex-wrap:nowrap}
 body[data-page="home"] .navigation .nav-tab,body[data-page="home"] .navigation .more-menu summary{padding:8px 9px}
 body[data-page="home"] .v50-locale-home{margin-left:auto}
}

/* V50.3 — Keep the page's real footer at the bottom of the viewport on
   short pages. Google's consent or revocation strip, when inserted as an
   in-flow sibling after .site-shell, is thus naturally placed at the bottom
   without hiding, moving, recoloring or interfering with the CMP widget.
   Full-length pages continue to scroll normally. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .site-shell { flex: 1 0 auto; display: flex; flex-direction: column; }
body > .site-shell > main { flex: 1 0 auto; }
/* External consent widgets are intentionally not targeted. */


/* V50.4 – Mobile navigation and short aircraft selection list. */
body[data-page="home"] .photo-meta{justify-content:flex-end}
@media (max-width:650px){
  body[data-page="home"] .site-header{position:relative;z-index:80;overflow:visible}
  body[data-page="home"] .navigation{position:relative}
  body[data-page="home"] .navigation .more-menu{position:static}
  body[data-page="home"] .navigation .more-menu .menu-popover{
    left:auto;right:0;top:calc(100% + 7px);
    width:min(274px,calc(100vw - 24px));max-width:100%;
    max-height:min(70dvh,440px);overflow-y:auto;
    overscroll-behavior:contain;z-index:100;
  }
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list{
    margin-top:0;max-height:min(264px,42dvh);
  }
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option{
    height:44px;min-height:44px;padding:0 12px;
    line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
}

/* V50.5 – manual AdSense placements below the full quiz */
body[data-page="home"] .v505-ad-zone{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px;
  margin:78px 0 60px;
  clear:both;
  width:100%;
}
body[data-page="home"] .v505-ad-block{
  min-width:0;
  padding:16px 12px 20px;
  border:1px solid rgba(107,140,181,.25);
  border-radius:13px;
  background:rgba(16,35,61,.32);
}
body[data-page="home"] .v505-ad-caption{
  margin-bottom:14px;
  font-size:10px;
  letter-spacing:1.2px;
  font-weight:700;
  text-align:center;
  color:#879bb5;
}
body[data-page="home"] .v505-ad-block .adsbygoogle{
  width:100%;
  min-width:0;
}
@media(max-width:760px){
  body[data-page="home"] .v505-ad-zone{
    grid-template-columns:minmax(0,1fr);
    gap:38px;
    margin:66px 0 52px;
  }
  body[data-page="home"] .v505-ad-block{padding:14px 10px 18px}
}


/* V50.6: permanently visible, five-row aircraft picker, partial credit and hot streak */
body[data-page="home"] #guessCombo{display:flex;flex-direction:column;gap:8px}
body[data-page="home"] #guessDropdownBtn{display:none!important}
body[data-page="home"] #guessDropdownPanel,
body[data-page="home"] #guessDropdownPanel[hidden]{
  display:block!important;position:static;z-index:auto;top:auto;left:auto;
  width:100%;min-width:0;box-shadow:none;padding:10px 11px;
  background:#0e2039;border:1px solid #44658b;border-radius:11px;
}
body[data-page="home"] #guessDropdownPanel .aircraft-search{display:block!important;height:43px!important}
body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list{
  max-height:220px!important;height:220px;overflow-y:auto;overflow-x:hidden;
  margin-top:8px;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#668fbe #132a4b;
}
body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option{
  display:block;height:44px;min-height:44px;line-height:44px;
  padding:0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:13px;
}
body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option[aria-selected="true"]{
  background:#24476b;color:#fff;border-left:3px solid #75baff;font-weight:800;
}
body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option.v506-family-selected{
  background:#563d23!important;color:#ffd196!important;border-left:3px solid #f4a84e!important;
}
body[data-page="home"] #aircraftGuessList.is-locked{pointer-events:none;opacity:.7}
body[data-page="home"] .v506-choice-status{min-height:20px;color:#a9c7e6;font-size:12px;line-height:1.5}
body[data-page="home"] .guess-form{align-items:stretch}
body[data-page="home"] .guess-form .submit-btn{align-self:end;min-height:46px}
body[data-page="home"] .result-message.partial{
  background:#533720;border-color:#efa443;color:#ffe5bb;
}
body[data-page="home"] .result-message.partial strong{color:#ffd092}
body[data-page="home"] .four-option-grid .answer-btn.partial{
  border-color:#f3b052;background:#563e24;color:#fff0d5
}
body[data-page="home"] .four-option-grid .answer-btn.partial .choice-letter{
  background:#ef9f3b;color:#231a0e
}
body[data-page="home"] .four-option-grid .answer-btn.v506-reveal{
  border-color:#5c8dbb;background:#203a57
}
body[data-page="home"] .four-option-grid .answer-btn.v506-reveal .choice-letter{
  background:#3e6b9e;color:#fff
}
body[data-page="home"] #streakValue{display:flex;align-items:center;gap:8px;white-space:nowrap}
body[data-page="home"] .v506-streak-count{font-variant-numeric:tabular-nums}
body[data-page="home"] .v506-flame-icon{position:relative;display:inline-grid;place-items:center;
  width:41px;height:45px;isolation:isolate;filter:drop-shadow(0 0 7px #f87522b0);
  transform-origin:center bottom;animation:v506-flame-dance .83s ease-in-out infinite alternate;
}
body[data-page="home"] .v506-flame-icon .v506-fire{font-size:35px;line-height:1;user-select:none}
body[data-page="home"] .v506-flame-icon b{position:absolute;top:18px;left:50%;transform:translateX(-50%);
  font-size:15px;font-weight:1000;color:#fff;text-shadow:0 1px 3px #2c130a,0 0 5px #67270b;
}
body[data-page="home"] .v506-flame-icon[data-tier="2"]{filter:drop-shadow(0 0 11px #ff8626)}
body[data-page="home"] .v506-flame-icon[data-tier="3"]{filter:drop-shadow(0 0 16px #ffb12a)}
body[data-page="home"] .v506-flame-icon[data-tier="4"]{filter:drop-shadow(0 0 20px #f9bb3c)}
body[data-page="home"] .v506-streak-bonus{color:#ffc36a;font-weight:800;font-size:11px;letter-spacing:0}
@keyframes v506-flame-dance{
  from{transform:rotate(-5deg) scale(.94)}to{transform:rotate(5deg) scale(1.10)}
}
@media(max-width:650px){
  body[data-page="home"] .guess-form{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="home"] .guess-form .submit-btn{width:100%}
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list{max-height:220px!important}
}
@media(prefers-reduced-motion:reduce){body[data-page="home"] .v506-flame-icon{animation:none!important}}


/* V50.8 — Mobile One-Screen Quiz */
/* Tablet: show image and answer picker side by side when there is room. */
@media (min-width:651px) and (max-width:980px) {
 body[data-page="home"] .main-heading {margin:13px 0 12px}
 body[data-page="home"] .quiz-layout {
   display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
   align-items:start;gap:12px;
 }
 body[data-page="home"] .aircraft-photo-frame {height:clamp(205px,34vw,330px)}
 body[data-page="home"] .photo-meta,body[data-page="home"] .photo-footer {height:30px}
 body[data-page="home"] .answer-card {padding:14px}
 body[data-page="home"] .answer-card h2 {font-size:20px;margin:5px 0 2px}
 body[data-page="home"] .answer-helper {margin-bottom:10px;font-size:12px}
 body[data-page="home"] .scoring-guide {margin:0 0 7px}
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {height:190px;max-height:190px!important}
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option {height:38px;min-height:38px;line-height:38px}
 body[data-page="home"] .v506-choice-status {min-height:15px}
 body[data-page="home"] .answer-tip {margin-top:7px}
 body[data-page="home"] .control-grid {order:3}
 body[data-page="home"] .score-row {order:2}
 body[data-page="home"] .progress-row {order:4}
 body[data-page="home"] .progress-track {order:5}
 body[data-page="home"] .leaderboard-card {order:6}
}
/* Phones: full photograph + five visible choices + confirm without page scrolling.
   Additional stats, photo credits and ads remain in the normal document flow. */
@media (max-width:650px) {
 body[data-page="home"] {--v508-row:clamp(28px,4.3dvh,36px)}
 body[data-page="home"] .site-shell {width:calc(100% - 16px)}
 body[data-page="home"] .site-header {
   height:auto!important;min-height:0!important;padding:6px 0 5px!important;
   gap:4px!important;align-content:center!important;
 }
 body[data-page="home"] .site-header .brand-mark {width:29px;height:29px;border-radius:8px}
 body[data-page="home"] .site-header .brand-mark svg {width:19px}
 body[data-page="home"] .site-header .brand {gap:6px}
 body[data-page="home"] .site-header .brand-name strong {font-size:11px}
 body[data-page="home"] .site-header .brand-name small {font-size:6px;letter-spacing:.8px}
 body[data-page="home"] .site-header .navigation {gap:3px}
 body[data-page="home"] .site-header .navigation .nav-tab,
 body[data-page="home"] .site-header .navigation .more-menu summary {
   padding:5px 8px;font-size:10px;min-height:29px;
 }
 body[data-page="home"] .site-header .v50-locale-switch {height:28px;padding:2px 5px}
 body[data-page="home"] .main-heading {margin:6px 0 7px!important;display:block}
 body[data-page="home"] .main-heading .eyebrow {display:none}
 body[data-page="home"] .main-heading h1 {font-size:19px!important;line-height:1.14;letter-spacing:-.5px;margin:0}
 body[data-page="home"] .quiz-layout {display:flex;flex-direction:column;gap:6px;align-items:stretch}
 body[data-page="home"] .left-panel,body[data-page="home"] .right-panel {width:100%;min-width:0}
 body[data-page="home"] .photo-card {border-radius:11px}
 body[data-page="home"] .photo-meta {
   height:17px!important;min-height:17px;padding:0 8px;font-size:8px;
 }
 body[data-page="home"] .aircraft-photo-frame {
   height:clamp(111px,24.5dvh,213px)!important;
   max-height:none;min-height:0;
 }
 body[data-page="home"] .aircraft-photo-frame img {object-fit:contain!important}
 body[data-page="home"] .photo-footer {
   height:20px!important;min-height:20px;padding:0 8px;
 }
 body[data-page="home"] .photo-footer a {font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-page="home"] .answer-card {
   order:0;padding:8px 9px!important;border-radius:11px;
   box-shadow:none;
 }
 body[data-page="home"] .question-top {min-height:15px;gap:6px}
 body[data-page="home"] .question-label {font-size:9px;letter-spacing:.8px}
 body[data-page="home"] .four-choices {font-size:8px;letter-spacing:.3px}
 /* Keep the question number; remove redundant headline, long instructions and badges. */
 body[data-page="home"] .answer-card h2,
 body[data-page="home"] .answer-card .answer-helper,
 body[data-page="home"] .answer-card .scoring-guide,
 body[data-page="home"] .answer-card .answer-tip {display:none!important}
 body[data-page="home"] .guess-form {gap:5px!important;grid-template-columns:minmax(0,1fr)!important}
 body[data-page="home"] #guessCombo {gap:3px!important}
 body[data-page="home"] #v506-choice-status {font-size:10px;line-height:13px;min-height:13px;max-height:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body[data-page="home"] #guessDropdownPanel,
 body[data-page="home"] #guessDropdownPanel[hidden] {
   padding:5px!important;box-shadow:none!important;border-radius:8px;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-search {
   height:33px!important;min-height:33px;padding:5px 10px!important;
   font-size:16px!important;border-radius:7px;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {
   height:calc(5 * var(--v508-row))!important;
   max-height:calc(5 * var(--v508-row))!important;
   margin-top:3px!important;overflow-y:auto!important;
   -webkit-overflow-scrolling:touch;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option {
   height:var(--v508-row)!important;min-height:var(--v508-row)!important;
   line-height:var(--v508-row)!important;font-size:13px!important;
   padding:0 9px!important;
 }
 body[data-page="home"] .guess-form .submit-btn,
 body[data-page="home"] #submitGuessBtn {
   min-height:39px!important;height:39px;padding:0 10px;
   font-size:14px;border-radius:9px;width:100%;
 }
 body[data-page="home"] #showFourBtn {
   margin-top:5px;padding:7px 8px;min-height:31px;
   font-size:11px;line-height:1.15;border-radius:9px;
 }
 body[data-page="home"] .four-option-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}
 body[data-page="home"] .four-option-grid .answer-btn {min-height:48px;padding:6px;gap:6px;font-size:11px;line-height:1.2}
 body[data-page="home"] .four-option-grid .choice-letter {width:25px;height:25px;flex-basis:25px;font-size:11px;border-radius:6px}
 body[data-page="home"] .result-message.show {margin-top:5px;padding:7px 9px;font-size:11px;line-height:1.2}
 body[data-page="home"] .result-message strong {font-size:12px;margin-bottom:2px}
 /* Once answered, the static list no longer needs space: keep the picture visible. */
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel .aircraft-dropdown-list,
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel .aircraft-search {display:none!important}
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel {padding:0!important;border:0!important;background:none!important}
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #submitGuessBtn {display:none!important}
 body[data-page="home"] .score-row {order:2;margin:12px 0 6px}
 body[data-page="home"] .control-grid {order:3;margin-bottom:6px}
 body[data-page="home"] .progress-row {order:4}
 body[data-page="home"] .progress-track {order:5}
 body[data-page="home"] .leaderboard-card {order:6}
 body[data-page="home"] .v505-ad-zone {margin-top:42px}
}
/* Extra-small height, e.g. iPhone SE / Safari landscape toolbars. */
@media (max-width:650px) and (max-height:690px) {
 body[data-page="home"] {--v508-row:28px}
 body[data-page="home"] .site-header {padding:3px 0!important;gap:1px!important}
 body[data-page="home"] .main-heading {display:none!important}
 body[data-page="home"] .photo-meta {display:none!important}
 body[data-page="home"] .aircraft-photo-frame {height:clamp(100px,21dvh,145px)!important}
 body[data-page="home"] .photo-footer {height:17px!important;min-height:17px}
 body[data-page="home"] .answer-card {padding:5px 8px!important}
 body[data-page="home"] #guessDropdownPanel .aircraft-search {height:31px!important;min-height:31px}
 body[data-page="home"] #submitGuessBtn {height:36px!important;min-height:36px!important}
 body[data-page="home"] #showFourBtn {min-height:27px;padding:5px;margin-top:3px}
}
@media (max-width:650px) and (max-height:570px) {
 body[data-page="home"] .site-header .brand-name small {display:none}
 body[data-page="home"] .aircraft-photo-frame {height:clamp(85px,19dvh,111px)!important}
 body[data-page="home"] {--v508-row:25px}
 body[data-page="home"] .guess-form .submit-btn {height:33px!important;min-height:33px!important}
}


/* V50.9 — Mobile Large Image Fix */
@media (max-width:650px) {
 body[data-page="home"] {
   --v509-row: 40px;
   --v509-photo-max: min(40dvh, 300px);
 }
 body[data-page="home"] .site-shell {width:calc(100% - 12px)}
 body[data-page="home"] .site-header {
   display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
   gap:8px!important;padding:8px 0 8px!important;min-height:0!important;
 }
 body[data-page="home"] .site-header .brand {min-width:0;gap:7px}
 body[data-page="home"] .site-header .brand-mark {width:31px;height:31px;border-radius:9px}
 body[data-page="home"] .site-header .brand-mark svg {width:19px;height:19px}
 body[data-page="home"] .site-header .brand-name strong {font-size:11.5px}
 body[data-page="home"] .site-header .brand-name small {font-size:6px;letter-spacing:.8px}
 body[data-page="home"] .navigation {
   width:auto!important;max-width:none!important;justify-content:flex-end!important;
   gap:4px;flex-wrap:nowrap!important;min-width:0;
 }
 body[data-page="home"] .navigation .nav-tab,
 body[data-page="home"] .navigation .more-menu summary {
   padding:7px 8px;font-size:11px;min-height:32px;border-radius:10px;
 }
 body[data-page="home"] .navigation .nav-dot {font-size:10px}
 body[data-page="home"] .v50-locale-home {margin-left:0}
 body[data-page="home"] .v50-locale-switch {height:32px;min-width:62px;padding:3px 5px}
 body[data-page="home"] .v50-locale-select {width:34px;min-width:34px;max-width:34px;font-size:12px!important}
 body[data-page="home"] .main-heading {display:none!important}
 body[data-page="home"] .quiz-layout {display:flex;flex-direction:column;gap:8px;align-items:stretch}
 body[data-page="home"] .left-panel,body[data-page="home"] .right-panel {width:100%;min-width:0}
 body[data-page="home"] .photo-card {border-radius:12px;overflow:hidden}
 body[data-page="home"] .photo-meta {
   height:19px!important;min-height:19px!important;padding:0 8px;
   font-size:8.5px;letter-spacing:1px;
 }
 body[data-page="home"] .aircraft-photo-frame {
   display:flex;align-items:center;justify-content:center;
   height:auto!important;min-height:0!important;max-height:none!important;
   padding:0!important;background:transparent!important;
 }
 body[data-page="home"] .aircraft-photo-frame img {
   display:block;width:100%!important;height:auto!important;
   max-height:var(--v509-photo-max)!important;object-fit:contain!important;
   margin:0 auto;background:transparent!important;
 }
 body[data-page="home"] .photo-footer {
   height:20px!important;min-height:20px!important;padding:0 6px;
 }
 body[data-page="home"] .photo-footer a {font-size:9px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-page="home"] .answer-card {
   order:0;padding:10px 10px 9px!important;border-radius:12px;box-shadow:none;
 }
 body[data-page="home"] .question-top {min-height:18px;gap:8px;margin-bottom:6px}
 body[data-page="home"] .question-label {font-size:10px;letter-spacing:1.2px}
 body[data-page="home"] .four-choices {font-size:9px;letter-spacing:.8px}
 body[data-page="home"] .answer-card h2,
 body[data-page="home"] .answer-card .answer-helper,
 body[data-page="home"] .answer-card .scoring-guide,
 body[data-page="home"] .answer-card .answer-tip {display:none!important}
 body[data-page="home"] .guess-form {gap:6px!important;grid-template-columns:minmax(0,1fr)!important}
 body[data-page="home"] #guessCombo {gap:5px!important}
 body[data-page="home"] #v506-choice-status {
   font-size:11px;line-height:14px;min-height:14px;max-height:14px;
   overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 }
 body[data-page="home"] #guessDropdownPanel,
 body[data-page="home"] #guessDropdownPanel[hidden] {
   padding:6px!important;box-shadow:none!important;border-radius:9px;background:#10233f;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-search {
   display:block!important;height:38px!important;min-height:38px!important;
   padding:6px 11px!important;font-size:16px!important;border-radius:8px;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {
   height:calc(5 * var(--v509-row))!important;
   max-height:calc(5 * var(--v509-row))!important;
   margin-top:5px!important;overflow-y:auto!important;
   -webkit-overflow-scrolling:touch;
 }
 body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-option {
   height:var(--v509-row)!important;min-height:var(--v509-row)!important;
   line-height:var(--v509-row)!important;font-size:16px!important;
   padding:0 10px!important;
 }
 body[data-page="home"] .guess-form .submit-btn,
 body[data-page="home"] #submitGuessBtn {
   min-height:44px!important;height:44px!important;padding:0 12px;
   font-size:16px;border-radius:10px;width:100%;
 }
 body[data-page="home"] #showFourBtn {
   margin-top:6px;padding:8px 10px;min-height:34px;
   font-size:12px;line-height:1.15;border-radius:10px;
 }
 body[data-page="home"] .four-option-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
 body[data-page="home"] .four-option-grid .answer-btn {min-height:52px;padding:8px 7px;gap:7px;font-size:12px;line-height:1.2}
 body[data-page="home"] .four-option-grid .choice-letter {width:28px;height:28px;flex-basis:28px;font-size:12px;border-radius:7px}
 body[data-page="home"] .result-message.show {margin-top:6px;padding:8px 10px;font-size:12px;line-height:1.24}
 body[data-page="home"] .result-message strong {font-size:13px;margin-bottom:2px}
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel .aircraft-dropdown-list,
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel .aircraft-search {display:none!important}
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #guessDropdownPanel {padding:0!important;border:0!important;background:none!important}
 body[data-page="home"] .answer-card:has(#guessInput:disabled) #submitGuessBtn {display:none!important}
 body[data-page="home"] .score-row {order:2;margin:10px 0 6px}
 body[data-page="home"] .control-grid {order:3;margin-bottom:6px}
 body[data-page="home"] .progress-row {order:4}
 body[data-page="home"] .progress-track {order:5}
 body[data-page="home"] .leaderboard-card {order:6}
}
@media (max-width:430px) {
 body[data-page="home"] {--v509-photo-max:min(39dvh,285px)}
 body[data-page="home"] .site-header .brand-name small {display:none}
 body[data-page="home"] .site-header .brand-name strong {font-size:10.5px}
 body[data-page="home"] .navigation .nav-tab,
 body[data-page="home"] .navigation .more-menu summary {padding:7px 7px;font-size:10.5px}
 body[data-page="home"] .v50-locale-switch {min-width:58px;height:31px}
}
@media (max-width:650px) and (max-height:780px) {
 body[data-page="home"] {--v509-row:37px;--v509-photo-max:min(35dvh,255px)}
 body[data-page="home"] .photo-meta {height:17px!important;min-height:17px!important}
 body[data-page="home"] .photo-footer {height:18px!important;min-height:18px!important}
 body[data-page="home"] .answer-card {padding:9px 9px 8px!important}
 body[data-page="home"] #guessDropdownPanel .aircraft-search {height:36px!important;min-height:36px!important}
 body[data-page="home"] .guess-form .submit-btn,
 body[data-page="home"] #submitGuessBtn {height:42px!important;min-height:42px!important}
}
@media (max-width:650px) and (max-height:700px) {
 body[data-page="home"] {--v509-row:35px;--v509-photo-max:min(31dvh,220px)}
 body[data-page="home"] .site-header {padding:6px 0 6px!important}
 body[data-page="home"] .photo-meta {display:none!important}
 body[data-page="home"] .photo-footer {height:17px!important;min-height:17px!important}
 body[data-page="home"] .question-top {margin-bottom:4px}
 body[data-page="home"] #guessDropdownPanel .aircraft-search {height:34px!important;min-height:34px!important}
 body[data-page="home"] .guess-form .submit-btn,
 body[data-page="home"] #submitGuessBtn {height:39px!important;min-height:39px!important;font-size:15px}
 body[data-page="home"] #showFourBtn {margin-top:4px;padding:7px 8px;min-height:31px;font-size:11px}
}
@media (max-width:650px) and (max-height:580px) {
 body[data-page="home"] {--v509-row:31px;--v509-photo-max:min(28dvh,175px)}
 body[data-page="home"] .site-header .brand-name strong {font-size:9.5px}
 body[data-page="home"] .navigation .nav-tab,
 body[data-page="home"] .navigation .more-menu summary {padding:6px 6px;font-size:9.5px;min-height:28px}
 body[data-page="home"] .v50-locale-switch {height:28px;min-width:54px}
 body[data-page="home"] #guessDropdownPanel .aircraft-search {height:32px!important;min-height:32px!important}
}


/* V50.10 — Header and visible stats */
@media (max-width:650px) {
  /* One real navigation row. Brand and buttons may never overlap. */
  body[data-page="home"] .site-header {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    align-content:center!important;
    gap:6px!important;
    height:44px!important;
    min-height:44px!important;
    padding:5px 0!important;
  }
  body[data-page="home"] .site-header .brand {
    flex:0 1 auto!important;
    min-width:0!important;
    gap:6px!important;
    overflow:hidden;
  }
  body[data-page="home"] .site-header .brand-mark {
    flex:0 0 31px!important;
    width:31px!important;
    height:31px!important;
  }
  body[data-page="home"] .site-header .brand-name {min-width:0;overflow:hidden}
  body[data-page="home"] .site-header .brand-name small {display:none!important}
  body[data-page="home"] .site-header .brand-name strong {
    font-size:9.2px!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  body[data-page="home"] .site-header .brand-name strong span {display:inline!important;margin-left:2px!important}
  body[data-page="home"] .navigation {
    position:relative!important;
    width:max-content!important;
    max-width:calc(100% - 40px)!important;
    min-width:0!important;
    flex:0 0 auto!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:3px!important;
    margin-left:auto!important;
  }
  body[data-page="home"] .navigation .nav-tab,
  body[data-page="home"] .navigation .more-menu summary {
    padding:5px 5px!important;
    min-height:30px!important;
    height:30px!important;
    border-radius:9px!important;
    font-size:10.5px!important;
    letter-spacing:0!important;
  }
  body[data-page="home"] .navigation .nav-dot {display:none!important}
  body[data-page="home"] .v50-locale-home {margin-left:0!important}
  body[data-page="home"] .v50-locale-switch {
    height:30px!important;
    min-width:59px!important;
    padding:2px 4px!important;
    gap:3px!important;
  }
  body[data-page="home"] .v50-locale-select {font-size:12px!important}
  body[data-page="home"] .main-heading {display:none!important}
  /* Keep existing large, uncropped photo and five-line picker. */
  body[data-page="home"] .quiz-layout {gap:6px!important}
  body[data-page="home"] .score-row {
    order:2!important;
    margin:3px 0 0!important;
    gap:6px!important;
    width:100%;
  }
  body[data-page="home"] .score-card {
    height:46px!important;
    min-height:46px!important;
    padding:5px 9px!important;
    border-radius:11px!important;
    overflow:hidden;
  }
  body[data-page="home"] .score-label {
    font-size:8px!important;
    line-height:11px!important;
    letter-spacing:.85px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body[data-page="home"] .score-card strong {
    font-size:19px!important;
    line-height:23px!important;
    margin-top:1px!important;
    letter-spacing:-.4px!important;
    white-space:nowrap;
  }
  body[data-page="home"] .score-card strong em {font-size:10px!important}
  body[data-page="home"] .score-card .flame {font-size:18px!important}
  /* On short screens, fewer rows are visible but all models stay scrollable. */
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {
    height:var(--v510-list-h,calc(5 * var(--v509-row)))!important;
    max-height:var(--v510-list-h,calc(5 * var(--v509-row)))!important;
  }
}
@media (max-width:355px) {
  body[data-page="home"] .site-header .brand-name {display:none!important}
  body[data-page="home"] .navigation .nav-tab,
  body[data-page="home"] .navigation .more-menu summary {font-size:10.5px!important;padding:5px 6px!important}
  body[data-page="home"] .v50-locale-switch {min-width:55px!important}
  body[data-page="home"] .score-card {padding:5px 6px!important}
  body[data-page="home"] .score-label {font-size:7.5px!important;letter-spacing:.4px!important}
}


/* V50.11 — Mobile Final Polish */
@media (max-width: 650px) {
  /* Four fully visible aircraft entries, with only this panel scrolling. */
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {
    height: calc(4 * var(--v509-row)) !important;
    min-height: calc(4 * var(--v509-row)) !important;
    max-height: calc(4 * var(--v509-row)) !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Keep the compact score cards, but separate them from the next card. */
  body[data-page="home"] .control-grid {
    margin-top: 14px !important;
  }
}


/* V50.12 — Mobile Hot Streak Icon Fix */
@media (max-width:650px) {
  /* Keep the entire flame within the existing 46px-high score tile.
     Absolute positioning means the animated icon cannot stretch the
     stats row and indirectly affect the quiz layout. */
  body[data-page="home"] .score-row .score-card:nth-child(2) {
    position:relative!important;
    overflow:hidden!important;
  }
  body[data-page="home"] #streakValue {
    display:flex!important;
    height:23px!important;
    min-height:23px!important;
    align-items:center!important;
    line-height:23px!important;
    padding-right:32px!important;
    overflow:visible!important;
  }
  body[data-page="home"] .score-row .score-card:nth-child(2) .v506-flame-icon {
    position:absolute!important;
    top:4px!important;
    right:5px!important;
    left:auto!important;
    width:32px!important;
    height:36px!important;
    display:grid!important;
    place-items:center!important;
    transform-origin:50% 58%!important;
    animation:v512-flame-flicker 1.1s ease-in-out infinite alternate!important;
    filter:drop-shadow(0 0 2px rgba(255,149,36,.6))!important;
    pointer-events:none;
  }
  body[data-page="home"] .score-row .score-card:nth-child(2) .v506-fire {
    font-size:28px!important;
    line-height:1!important;
    display:block!important;
    transform:translateY(1px);
    user-select:none;
  }
  body[data-page="home"] .score-row .score-card:nth-child(2) .v506-flame-icon b {
    top:54%!important;
    left:50%!important;
    transform:translate(-50%,-20%)!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    color:#fff!important;
    text-shadow:0 1px 2px #45210e,0 0 4px #412013;
  }
}
@keyframes v512-flame-flicker {
  from { transform:rotate(-2deg) scale(.96); }
  to { transform:rotate(2deg) scale(1.015); }
}
@media (max-width:650px) and (prefers-reduced-motion:reduce) {
  body[data-page="home"] .score-row .score-card:nth-child(2) .v506-flame-icon {
    animation:none!important;
  }
}


/* V50.13 — Weekly Streak and Balanced Stat Spacing */
@media (max-width:650px){
  body[data-page="home"] .score-row{
    margin-top:8px!important;
    margin-bottom:8px!important;
  }
  body[data-page="home"] .control-grid{margin-top:0!important}
}
body[data-page="home"] .leaderboard-card .leaderboard-meta small{font-size:11px}
body[data-page="home"] .leaderboard-card .leaderboard-score strong{font-variant-numeric:tabular-nums}
body[data-page="home"] .leaderboard-card .leaderboard-empty{line-height:1.5}


/* V50.14 — Mobile Score Row Gap Match */
@media (max-width: 650px) {
  /* Same 6px gap as between the aircraft photo and answer card.
     Neither photo sizing nor leaderboard content is modified. */
  body[data-page="home"] .score-row {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
}


/* Airliner Trainer V50.7: anonymous feedback */
.v507-wrap{max-width:790px;margin:24px auto 88px}
.v507-kicker{display:block;color:#83d8f5;font-size:11px;font-weight:800;letter-spacing:2px;margin-bottom:15px}
.v507-title{font-size:clamp(29px,5vw,44px);line-height:1.13;letter-spacing:-.7px;margin:0 0 15px;color:#f1f6ff}
.v507-lead{max-width:680px;line-height:1.7;color:#b9cae4;font-size:15px;margin-bottom:28px}
.v507-card{background:#122540;border:1px solid #365575;border-radius:20px;padding:clamp(20px,4vw,38px);box-shadow:0 24px 60px rgba(0,0,0,.17)}
.v507-label{display:block;color:#e6f2ff;font-size:14px;font-weight:700;margin:0 0 10px}
.v507-select,.v507-message{width:100%;border:1px solid #4d6c94;border-radius:11px;background:#0b1b33;color:#f1f6ff;font:inherit;font-size:15px;line-height:1.5;outline-offset:3px;padding:14px 16px;margin-bottom:24px}
.v507-message{min-height:205px;resize:vertical}
.v507-message::placeholder{color:#9aacc6}
.v507-select:focus,.v507-message:focus{border-color:#75c5f4;outline:2px solid rgba(92,185,247,.55)}
.v507-send{width:100%;background:#3983ee;border:0;border-radius:11px;color:white;font:inherit;font-size:15px;font-weight:800;cursor:pointer;padding:16px 20px;transition:background .18s}
.v507-send:hover,.v507-send:focus-visible{background:#5c9cff}
.v507-help{color:#a9bdd7;font-size:12px;line-height:1.65;margin:19px 0 0}
.v507-back{display:inline-flex;margin-top:24px;text-decoration:none;color:#88d1ff;font-size:14px;font-weight:700}
.v507-back:hover{text-decoration:underline}
.v507-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.v507-privacy{max-width:980px;margin:30px auto;padding:24px;border:1px solid #365575;border-radius:16px;background:#142540}
.v507-privacy h2{margin:0 0 10px;font-size:19px}
.v507-privacy p{margin:0;line-height:1.7;font-size:14px;color:#b4c5db}
@media(max-width:650px){.v507-wrap{margin:10px auto 62px}.v507-card{padding:20px}.v507-message{min-height:180px}}

/* V52 navigation and account wallet – quiz layout otherwise unchanged. */
.v52-multiplayer{display:flex;align-items:center;justify-content:center;gap:6px;min-width:142px;padding:9px 15px;border:1px solid #648ce4;border-radius:10px;text-decoration:none;color:#fff!important;background:linear-gradient(110deg,#4166bd,#253f77);font-size:13px;font-weight:850;white-space:nowrap;box-shadow:0 3px 14px #3564d53a}
.v52-multiplayer svg{flex-shrink:0}.menu-popover #endlessModeBtn,.menu-popover #dailyModeBtn{display:block;width:100%;text-align:left;background:#182b48;color:#dce9ff;border:0;padding:10px 12px!important;margin:2px 0;height:auto!important;font-size:14px!important}
.v52-wallet{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:7px 9px;margin:4px 0;background:#14233e;border:1px solid #344c71;border-radius:9px;font-size:12px;align-items:center}.v52-wallet a{color:#a8c6ff;font-weight:700;text-decoration:none;overflow-wrap:anywhere}.v52-wallet strong{color:#f1ce7e}.v52-wallet small{grid-column:1/-1;font-size:10px;color:#a4b9d5}.v52-section{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.v52-section p{font-size:11px;opacity:.8}.v52-section button{padding:5px 8px;border:1px solid #49618c;border-radius:7px;background:#1a3153;color:#e5edff;font-size:11px}.v52-coin-board{margin-top:15px;border-top:1px solid #3c5274;padding-top:12px}.v52-coin-board li{padding:5px;overflow-wrap:anywhere}.v52-coin-board h3{margin:0 0 8px}.v52-coin-board p{font-size:11px}.control-card--wide:has(#playerNameInput){display:none!important}
@media(max-width:650px){body[data-page="home"] .v52-multiplayer{min-width:116px;max-width:158px;font-size:11px;padding:6px 10px;min-height:30px;gap:4px}body[data-page="home"] .v52-multiplayer svg{width:14px;height:14px}body[data-page="home"] .site-header .brand{flex:1 1 auto!important}body[data-page="home"] .v52-wallet{order:2;width:100%;margin:3px 0}body[data-page="home"] .navigation{max-width:none!important}}
@media(max-width:355px){body[data-page="home"] .v52-multiplayer{min-width:112px}}
html:has(body[data-page="home"]) {touch-action:manipulation}
body[data-page="home"] #photoFrame {touch-action:pan-y}
.coin-amount {display:inline-flex;align-items:center;gap:.25em;white-space:nowrap;font-variant-numeric:tabular-nums}
.coin-icon {width:1.2em;height:1.2em;flex:none;vertical-align:middle}
.coin-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-page="home"] :is(#guessInput,#guessDropdownBtn,#submitGuessBtn,.aircraft-dropdown-option,#showFourBtn,.four-option-grid button) {
  touch-action:manipulation;
}
body[data-page="home"] #guessInput {font-size:max(16px,1rem)!important}
@media(max-width:650px){
  body[data-page="home"] .site-header {height:auto!important;min-height:48px!important}
  body[data-page="home"] .navigation .v52-multiplayer,
  body[data-page="home"] .navigation .more-menu summary {height:auto!important;min-height:44px!important}
  body[data-page="home"] .navigation .v52-multiplayer {min-width:0;max-width:150px;white-space:normal;text-align:center}
  body[data-page="home"] .menu-popover #endlessModeBtn,
  body[data-page="home"] .menu-popover #dailyModeBtn {min-height:44px!important}
  body[data-page="home"] #guessDropdownPanel .aircraft-dropdown-list {
    height:clamp(62px,calc(100dvh - 425px),176px)!important;
    max-height:clamp(62px,calc(100dvh - 425px),176px)!important
  }
  body[data-page="home"] #guessDropdownPanel :is(.aircraft-search,.aircraft-dropdown-option) {
    min-height:44px!important;height:auto!important
  }
  body[data-page="home"] #aircraftPhoto {
    max-height:min(var(--v509-photo-max,250px),clamp(90px,calc(100dvh - 385px),250px))!important
  }
  body[data-page="home"]:has(#guessDropdownPanel:not([hidden])) #aircraftPhoto {
    max-height:min(var(--v509-photo-max,190px),clamp(74px,calc(100dvh - 458px),190px))!important
  }
}
@media (orientation:landscape) and (max-height:480px){
  body[data-page="home"] #aircraftPhoto {max-height:clamp(95px,calc(100dvh - 205px),195px)!important}
  body[data-page="home"] .quiz-layout:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start}
  body[data-page="home"] .answer-card {padding-block:5px!important}
  body[data-page="home"] .question-top {margin-bottom:2px}
}
@media (min-width:651px) and (max-height:850px){
  body[data-page="home"] .main-heading {margin-block:12px}
  body[data-page="home"] .right-panel {display:flex;flex-direction:column;min-width:0}
  body[data-page="home"] .right-panel .answer-card {order:-2}
  body[data-page="home"] .right-panel .v52-wallet {order:-1}
}
body[data-page="home"] #photoFrame {
  position:relative;
  block-size:clamp(240px,48dvh,500px)!important;
  min-block-size:0!important;
  padding:0!important;
  background:#0a172c!important;
  overflow:hidden;
}
body[data-page="home"] #photoFrame #aircraftPhoto {
  position:absolute;inset:0;margin:0;width:100%!important;height:100%!important;
  max-height:none!important;object-fit:contain;animation:none;transform:none;
}
#photoFrame:not([data-photo-state="ready"]) #aircraftPhoto {visibility:hidden}
#photoFrame .loading-photo {
  position:absolute;inset:0;display:grid;place-content:center;text-align:center;
  gap:3px;width:100%;padding:4px;color:#aabfdd;background:#0d1d34;
}
#photoFrame .loading-photo button {
  min-height:44px;font:inherit;color:#eff5ff;background:#203d65;border:1px solid #5877a5;border-radius:8px
}
.account-privacy [lang] {display:none}
html:lang(hi) body {font-family:"Nirmala UI","Kohinoor Devanagari","Noto Sans Devanagari",Mangal,system-ui,sans-serif}
html:lang(en) .account-privacy [lang="en"],html:lang(de) .account-privacy [lang="de"],
html:lang(fr) .account-privacy [lang="fr"],html:lang(es) .account-privacy [lang="es"],
html:lang(hi) .account-privacy [lang="hi"],html:lang(pt) .account-privacy [lang="pt"] {display:block}
body[data-page="home"] .result-message.show {font-size:.95rem;line-height:1.3;overflow-wrap:anywhere}
body[data-page="home"] .result-message.show :is(strong,span) {display:block}
body[data-page="home"] .result-message.show strong {font-size:1.05rem}
body[data-page="home"] .next-btn {min-height:44px;touch-action:manipulation}
@media (max-width:650px){
  body[data-page="home"] #photoFrame {block-size:clamp(90px,calc(100dvh - 430px),250px)!important}
  body[data-page="home"] .answer-card:has(#resultMessage.show:is(.good,.bad,.partial)) .four-option-grid {display:none!important}
}
@media (orientation:landscape) and (max-height:480px){
  body[data-page="home"] #photoFrame {block-size:clamp(85px,calc(100dvh - 210px),210px)!important}
}
