/* I Am A Birdie look: sticker-style panels over a cozy 3D house.
   Layout: full-screen 3D canvas; the title panel sits on the left over the bird lineup;
   in game, the Mischief List is top-left, Grandpa + powers top-right, talking at the bottom. */
:root {
  --ink: #1b2a2a;
  --ink-soft: #3a4d4c;
  --card: #f4fbff;
  --card-2: #ddf0f8;
  --sun: #ffc93c;
  --tomato: #ef5b45;
  --leaf: #2f9e62;
  --plum: #5b3f8c;
  --sky: #8fd0ec;
  --paper-line: #b9dbea;
  --display: "Grandstander", "Chalkboard SE", "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --shadow: 4px 4px 0 var(--ink);
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
button { font-family: var(--display); cursor: pointer; color: var(--ink); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; margin: 0 1px;
  border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 6px;
  background: #fff; font: 700 12px/1.3 var(--body); text-align: center; color: var(--ink);
}
.sticker { background: var(--card); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.dim { opacity: 0.7; font-size: 13px; }

/* ------------------------------------------------ title */
#title {
  position: fixed; inset: 0; display: flex; align-items: stretch;
  background: linear-gradient(90deg, rgba(27, 42, 42, 0.55) 0%, rgba(27, 42, 42, 0.15) 46%, rgba(27, 42, 42, 0) 60%);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.title-panel {
  width: min(540px, 100%); margin-block: 16px; padding: 16px 22px 16px;
  background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  overflow-y: auto; max-height: calc(100% - 32px); align-self: center;
  display: flex; flex-direction: column; gap: 8px;
}
.logo { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 8vw, 58px); line-height: 1; letter-spacing: -0.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.logo span { display: inline-block; paint-order: stroke fill; -webkit-text-stroke: 6px var(--ink); }
.logo .l0 { font-size: 0.62em; color: var(--sky); transform: rotate(-4deg); -webkit-text-stroke-width: 5px; }
.logo .l2 { color: var(--sun); font-size: 1.12em; transform: rotate(2deg); }
.tagline { margin: 0 0 2px; font-size: 15px; line-height: 1.35; max-width: 50ch; }
.label { margin: 4px 0 0; font: 800 13px var(--display); text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-soft); }
.bird-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bird-card {
  text-align: left; padding: 7px 10px; border: 3px solid var(--ink); border-radius: 12px;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; gap: 3px;
  font-family: var(--body); min-width: 0; transition: transform 0.12s ease, background 0.12s ease;
}
.bird-card:hover { transform: translate(-1px, -1px); }
.bird-card.sel { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.bc-name { font: 800 18px var(--display); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bc-name small { font: 600 13px var(--body); opacity: 0.75; }
.bc-row { font-size: 12px; line-height: 1.25; }
.bc-row b { display: block; font-size: 13px; }
.bc-weak b { color: #b8392a; }
.bird-card.sel .bc-weak b { color: #8a2216; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; }
.levels button { flex: 1 1 0; min-width: 0; padding: 6px 6px; font-size: 15px; font-weight: 800; border: 3px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.levels button.sel { background: var(--sky); }
.level-info { margin: 0; font-size: 13px; opacity: 0.8; }
.level-info:empty { display: none; }
.level-row { display: flex; flex-direction: column; gap: 6px; }
.play-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
button.big {
  font-size: 24px; font-weight: 900; padding: 10px 26px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--sun); box-shadow: 4px 4px 0 var(--ink); transition: transform 0.1s ease;
}
button.big:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
button.big:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
button.small { font-size: 14px; font-weight: 800; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
button.mid {
  font-size: 16px; font-weight: 900; padding: 9px 12px; border: 3px solid var(--ink); border-radius: 12px;
  background: var(--sky); box-shadow: 3px 3px 0 var(--ink);
}
button.mid:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.menu-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.menu-btns .dim:empty { display: none; }
.menu-btns .dim { flex-basis: 100%; margin: 0; }
.friends-row { display: flex; gap: 10px; flex-wrap: wrap; }
button.big { padding: 8px 18px; font-size: 21px; }
.join-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#joinCode {
  width: 6.2em; font: 900 28px var(--display); letter-spacing: 0.18em; text-transform: uppercase; text-align: center;
  padding: 4px 6px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
}
#joinCode:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.msg { margin: 0; font-weight: 700; color: #b8392a; min-height: 0; }
.msg:empty { display: none; }
.lobby { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.code-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 16px; align-self: flex-start;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
}
.code-card .label { margin: 0; color: var(--ink); }
#lobbyCode { font: 900 54px/1 var(--display); letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }
.lobby-hint { margin: 0; font-size: 15px; line-height: 1.35; max-width: 46ch; }
.lobby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lobby-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; font-size: 14px; min-width: 0; }
.lobby-list li.empty { background: transparent; border-style: dashed; font-weight: 400; opacity: 0.7; }
.pdot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: 900 13px var(--display); }
.small-check { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.small-check input { width: 18px; height: 18px; accent-color: var(--leaf); }
#netChip.net { font: 800 13px var(--display); white-space: nowrap; background: var(--sun); }
.found { margin: 0; font-size: 13px; font-weight: 700; }
.how { border-top: 2px dashed var(--paper-line); padding-top: 10px; font-size: 14px; line-height: 1.45; }
.how table { border-collapse: collapse; width: 100%; }
.how td { padding: 3px 4px; vertical-align: top; }
.how td:first-child { white-space: nowrap; width: 1%; }
.how p { margin: 8px 0 0; max-width: 60ch; }

/* ------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: none; }
#missions {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px));
  width: 300px; padding: 10px 12px 10px; font-size: 14px;
}
#missions h3 { margin: 0 0 6px; font: 800 17px var(--display); display: flex; justify-content: space-between; align-items: baseline; }
.tab-hint { font: 700 11px var(--body); opacity: 0.6; }
#mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
#mlist li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.25; padding: 2px 4px; border-radius: 6px; }
#mlist li .box { flex: none; width: 17px; height: 17px; margin-top: 1px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font: 900 12px/13px var(--display); text-align: center; color: var(--leaf); }
#mlist li.done { opacity: 0.55; }
#mlist li.done span:last-child { text-decoration: line-through; text-decoration-thickness: 2px; }
#mlist li.tracked { background: var(--sun); font-weight: 700; }
#mlist li.final span:last-child { font-weight: 800; color: var(--plum); }
#mlist li.final.tracked span:last-child { color: var(--ink); }
#mlist li.locked { opacity: 0.6; font-style: italic; }
#mlist li.locked .box { border: none; background: none; }
#mlist em { font-style: normal; font-weight: 700; color: var(--plum); font-variant-numeric: tabular-nums; }
#mhint { margin-top: 7px; padding-top: 6px; border-top: 2px dashed var(--paper-line); font-size: 13px; line-height: 1.3; }
#mhint:empty { display: none; }
#missions.compact #mlist li:not(.tracked) { display: none; }
#missions.compact #mhint { display: none; }
#missions.compact .tab-hint::after { content: ' · list'; }

#status {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.chip {
  display: flex; align-items: center; gap: 7px; padding: 5px 11px; background: var(--card);
  border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 14px; max-width: 320px;
}
#gpaFace { font-size: 19px; }
#gpa.mood-angry { background: var(--tomato); color: #fff; animation: wobble 0.4s ease-in-out infinite; }
#gpa.mood-curious { background: var(--sun); }
#gpa.mood-sleep { background: #cfe2ff; }
#gpa.mood-sad { background: #cfd8e8; }
.stars { font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums; }
.power { position: relative; overflow: hidden; padding-bottom: 9px; }
.power .key { font: 900 12px var(--display); background: var(--ink); color: #fff; border-radius: 5px; padding: 1px 6px; }
.power.ready { background: #fff7d8; }
.power.active { background: var(--sun); }
.bar { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 4px; border-radius: 3px; background: rgba(27, 42, 42, 0.18); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--leaf); }
.sugar { position: relative; padding-bottom: 9px; }
.sugar .bar i { background: #ff6f91; }
.sugar.low { animation: wobble 0.5s ease-in-out infinite; background: #ffe2ea; }

#minimap {
  position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: 170px; height: 158px; background: var(--card); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: width 0.2s ease, height 0.2s ease;
}
#minimap.big { width: min(420px, 70vw); height: min(391px, 65vw); }

#crosshair { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); opacity: 0.85; }
#hiddenTag { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font: 800 18px var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
#prompt {
  position: absolute; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 7px 14px 7px 7px; border-radius: 999px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 9px; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
#prompt .key { background: var(--sun); color: var(--ink); font: 900 15px var(--display); border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 6px; }
#subtitle {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px)); padding: 12px 16px 12px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow);
  font-size: 18px; line-height: 1.35; display: flex; flex-direction: column; gap: 3px;
}
#subtitle.blocking { pointer-events: auto; cursor: pointer; }
#subWho { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: 1px; align-self: flex-start; padding: 1px 9px; border-radius: 999px; color: #fff; background: var(--ink); }
#subtitle.w-grandpa #subWho { background: var(--leaf); }
#subtitle.w-caw #subWho { background: var(--plum); }
#subtitle.w-narr { background: #fff7d8; font-style: italic; }
#subNext { position: absolute; right: 14px; bottom: 8px; font: 700 12px var(--body); opacity: 0.6; font-style: normal; animation: nudge 1s ease-in-out infinite; }
#toast {
  position: absolute; left: 50%; top: 26%; transform: translateX(-50%);
  font: 900 clamp(30px, 6vw, 52px) var(--display); color: var(--sun); white-space: nowrap;
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink);
}
#toast.pop { animation: pop 1.3s ease forwards; }
#banner {
  position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  background: var(--sun); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 18px 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center; max-width: min(460px, calc(100vw - 32px));
}
#banner small { font: 800 12px var(--display); text-transform: uppercase; letter-spacing: 1.4px; }
#banner b { font: 900 21px/1.15 var(--display); text-wrap: balance; }
#banner span { font: 800 15px var(--display); }
#banner i { font-size: 13px; margin-top: 2px; }
#banner.pop { animation: drop 3.2s ease forwards; }
#choice {
  position: absolute; left: 50%; top: calc(110px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; width: min(520px, calc(100vw - 32px)); font-size: 15px; line-height: 1.3;
  background: #fff7d8;
}
#choice b { font: 800 18px var(--display); }
#timeout {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); text-align: center;
  font-family: var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
}
#timeout b { display: block; font-size: 44px; font-weight: 900; color: var(--tomato); }
#timeout span { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; }
#help {
  position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  padding: 9px 12px; font-size: 13px; line-height: 1.9;
}
#skipIntro {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top, 0px));
  pointer-events: auto; font-size: 14px; font-weight: 800; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}

/* ------------------------------------------------ touch */
#touch { position: fixed; inset: 0; pointer-events: none; }
#touch > * { pointer-events: auto; }
#stick {
  position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 130px; height: 130px; border-radius: 50%; background: rgba(244, 251, 255, 0.35); border: 3px solid rgba(27, 42, 42, 0.6);
  display: grid; place-items: center; touch-action: none;
}
#knob { width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.tbtns {
  position: absolute; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(2, 62px); gap: 10px;
}
.tbtns button, #t-next, #t-pause {
  border: 3px solid var(--ink); border-radius: 50%; background: var(--card); box-shadow: 2px 2px 0 var(--ink);
  font: 900 18px var(--display); touch-action: none;
}
#t-act { grid-column: 3; grid-row: 1 / span 2; border-radius: 30px; background: var(--sun); font-size: 20px; }
#t-up { grid-column: 1; grid-row: 1; } #t-down { grid-column: 1; grid-row: 2; }
#t-pow { grid-column: 2; grid-row: 1; } #t-tweet { grid-column: 2; grid-row: 2; }
.tbtns button.on, #touch button.on { background: var(--sky); transform: translate(2px, 2px); box-shadow: none; }
#t-next { position: absolute; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(176px + env(safe-area-inset-bottom, 0px)); border-radius: 12px; padding: 6px 10px; font-size: 14px; }
#t-pause { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(134px + env(safe-area-inset-top, 0px)); width: 44px; height: 44px; font-size: 16px; }
body.touch #minimap { bottom: auto; top: calc(188px + env(safe-area-inset-top, 0px)); left: auto; right: max(12px, env(safe-area-inset-right, 0px)); width: 130px; height: 121px; }
body.touch #help, body.touch #crosshair { display: none; }

body.touch #prompt { bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
body.touch #subtitle { bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }

/* ------------------------------------------------ modals */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(27, 42, 42, 0.55); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.modal .card {
  width: min(440px, 100%); background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100% - 32px); overflow-y: auto;
}
.modal h2 { margin: 0; font: 900 32px var(--display); }
.modal label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-weight: 700; }
.modal label.check { display: flex; gap: 9px; font-weight: 600; }
.modal input[type=range] { width: 100%; accent-color: var(--leaf); }
.modal input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--leaf); }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; }
.ending-card { text-align: center; align-items: center; width: min(500px, 100%) !important; }
.end-icon { font-size: 64px; line-height: 1; animation: bob 1.6s ease-in-out infinite; }
#endTitle { font-size: clamp(32px, 7vw, 44px); color: var(--tomato); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
#endText { margin: 0; font-size: 16px; line-height: 1.45; max-width: 44ch; }
.end-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.end-stats div { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; min-width: 0; }
.end-stats b { font: 900 22px var(--display); font-variant-numeric: tabular-nums; }
.end-stats span { font-size: 11.5px; line-height: 1.2; }
.ending-card .row { justify-content: center; }

#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(ellipse at center, rgba(40, 255, 160, 0) 45%, rgba(0, 30, 20, 0.85) 100%); }
body.nightvision #game { filter: brightness(1.9) contrast(1.2) saturate(0.35) sepia(0.45) hue-rotate(70deg); }
body.nightvision #vignette { opacity: 1; }
#crash { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 16px; }
#crash code { font-size: 12px; opacity: 0.7; word-break: break-word; }

@keyframes pop { 0% { transform: translateX(-50%) scale(0.4); opacity: 0; } 12% { transform: translateX(-50%) scale(1.12); opacity: 1; } 22% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-24px); opacity: 0; } }
@keyframes drop { 0% { transform: translate(-50%, -140%); } 10% { transform: translate(-50%, 6%); } 16% { transform: translate(-50%, 0); } 88% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -140%); opacity: 0; } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 720px) {
  #title { background: rgba(27, 42, 42, 0.35); align-items: flex-start; }
  .title-panel { padding: 16px; gap: 8px; align-self: flex-start; }
  .bird-cards { grid-template-columns: 1fr; }
  .lobby-list { grid-template-columns: 1fr; }

  .bc-row { font-size: 12px; }
  #missions { width: min(240px, 52vw); font-size: 12.5px; padding: 8px 9px; }
  #missions h3 { font-size: 15px; }
  #mhint { font-size: 12px; }
  .chip { font-size: 12px; padding: 4px 9px; max-width: 46vw; }
  #gpaText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #subtitle { font-size: 16px; }
  .end-stats { grid-template-columns: repeat(2, 1fr); }
  #help { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
