:root { color-scheme: light; } * { box-sizing: border-box; }
.game-shell { background:rgba(255,255,255,.94); border-radius:24px; box-shadow:0 24px 55px rgba(10,52,100,.3); padding:clamp(18px,3vw,32px); }.level-screen,.hangar { text-align:center; }.heading-kicker { color:#087bb9; font-size:.8rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }.level-screen h2,.hangar h2 { color:#173455; font-size:clamp(1.75rem,4vw,2.3rem); font-weight:800; margin:6px 0; }.level-screen>p,.hangar-heading p { color:#58708a; margin-bottom:24px; }
.level-picker,.plane-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.plane-picker { grid-template-columns:repeat(3,minmax(0,1fr)); }.level-card,.plane-card { align-items:center; background:linear-gradient(180deg,#f9fcff,#e8f4fd); border:3px solid #c7deed; border-radius:18px; color:#173455; cursor:pointer; display:flex; flex-direction:column; font:inherit; min-height:190px; padding:16px 12px; text-align:center; transition:transform .18s,border-color .18s,box-shadow .18s; }.plane-card { min-height:255px; }.level-card:hover,.level-card:focus-visible,.plane-card:hover,.plane-card:focus-visible { border-color:#36a6e6; box-shadow:0 9px 20px rgba(19,123,185,.2); outline:none; transform:translateY(-4px); }.level-card.selected,.plane-card.selected { border-color:#087bb9; box-shadow:0 0 0 4px rgba(8,123,185,.16),0 10px 24px rgba(19,123,185,.2); }.level-card strong { font-size:1.25rem; margin-bottom:8px; }.level-card span:last-child { color:#58708a; line-height:1.4; }.level-icon { font-size:3.2rem; margin-bottom:8px; }.plane-card img { border:2px solid #a8cfe4; border-radius:12px; height:130px; max-width:100%; object-fit:cover; width:210px; }.plane-name { font-size:1.16rem; font-weight:800; margin-top:8px; }.plane-detail { color:#58708a; font-size:.88rem; margin-top:4px; }
.primary-button,.secondary-button,.back-button { border:0; border-radius:999px; cursor:pointer; font:inherit; font-weight:800; padding:14px 28px; transition:transform .18s,box-shadow .18s; }.primary-button { background:linear-gradient(135deg,#007fbe,#0758a5); box-shadow:0 8px 18px rgba(0,99,177,.28); color:#fff; margin-top:25px; }.primary-button:hover,.primary-button:focus-visible { box-shadow:0 11px 23px rgba(0,99,177,.35); outline:none; transform:translateY(-2px); }.secondary-button { background:#e6f3fb; color:#075891; margin-top:10px; }.back-button { background:#edf6fb; color:#075891; font-size:.9rem; margin-bottom:15px; padding:9px 15px; }
.flight-screen { text-align:center; }.game-hud { align-items:stretch; display:grid; gap:10px; grid-template-columns:1fr 1.6fr 1fr; margin-bottom:12px; }.hud-block { background:#123b60; border-radius:12px; color:#fff; display:flex; flex-direction:column; justify-content:center; min-height:66px; padding:8px; }.hud-label { color:#a9dffa; font-size:.72rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }.word-block strong { font-size:1.35rem; letter-spacing:.22em; }.next-letter { color:#ffe36d; font-size:1.9rem; line-height:1; }.game-board { background:#82d5f6; border:4px solid #123b60; border-radius:18px; overflow:hidden; position:relative; touch-action:none; } #rallyCanvas { display:block; height:auto; width:100%; }.game-message { background:rgba(11,44,71,.88); border:2px solid rgba(255,255,255,.5); border-radius:999px; color:#fff; font-weight:700; left:50%; max-width:calc(100% - 36px); padding:8px 17px; pointer-events:none; position:absolute; top:14px; transform:translateX(-50%); }.game-message.success { background:rgba(20,119,63,.92); }.game-message.warning { background:rgba(169,45,39,.94); }.win-overlay { align-items:center; background:rgba(8,44,76,.7); display:flex; inset:0; justify-content:center; padding:20px; position:absolute; }.win-card { animation:pop-in .3s ease-out; background:#fff; border-radius:22px; box-shadow:0 18px 42px rgba(0,0,0,.32); color:#173455; max-width:390px; padding:27px; }.win-card h2 { font-size:1.8rem; font-weight:800; margin-bottom:5px; }.win-card .primary-button { margin-top:20px; }
.touch-controls { display:none; margin-top:14px; }.touch-controls button { background:#e4f4fc; border:2px solid #83bee0; border-radius:11px; color:#075891; font-size:1.2rem; font-weight:bold; height:45px; margin:2px; width:52px; }.touch-controls button:active { background:#8fd7ff; transform:scale(.95); }.control-hint { color:#526b82; font-size:.92rem; margin:13px 0 0; } @keyframes pop-in { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:scale(1); } }
@media (max-width:700px) { .level-picker,.plane-picker { grid-template-columns:1fr; }.level-card { min-height:140px; }.plane-card { flex-direction:row; justify-content:flex-start; min-height:104px; text-align:left; }.plane-card img { height:76px; margin-right:11px; width:118px; }.plane-name { margin:0; }.plane-card .plane-detail { margin-left:129px; margin-top:-20px; width:calc(100% - 129px); }.game-hud { grid-template-columns:1fr 1fr; }.word-block { grid-column:span 2; order:-1; }.touch-controls { display:block; }.control-hint { font-size:.82rem; } } @media (max-width:420px) { .game-shell { border-radius:16px; padding:13px; }.game-hud { gap:6px; }.hud-block { min-height:57px; }.word-block strong { font-size:1.08rem; } }