:root {
  --green: #58cc02;
  --green-dark: #3d9200;
  --green-soft: #e8f8d9;
  --blue: #1cb0f6;
  --blue-dark: #087db4;
  --gold: #ffc800;
  --purple: #ce82ff;
  --red: #ff4b4b;
  --ink: #25312a;
  --muted: #718077;
  --line: #e3e8e4;
  --cream: #fffdf7;
  --card: #ffffff;
  --shadow: 0 5px 0 rgba(37, 49, 42, 0.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Avenir Next", Avenir, Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #e8eee7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e8eee7; }
body { margin: 0; min-height: 100vh; background: #e8eee7; }
button, input { font: inherit; }
button { color: inherit; }
button, label, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(28, 176, 246, 0.45); outline-offset: 2px; }

.app-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(22, 45, 31, 0.12);
}

.topbar {
  height: 70px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid rgba(227, 232, 228, 0.85);
  backdrop-filter: blur(14px);
}

.brand { border: 0; background: transparent; display: flex; gap: 9px; align-items: center; padding: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 39px; height: 39px; border-radius: 13px; background: var(--green); box-shadow: 0 4px 0 var(--green-dark); display: grid; place-items: center; color: white; font-weight: 1000; font-size: 26px; transform: rotate(-3deg); }
.brand-mark span { transform: rotate(3deg); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-weight: 1000; letter-spacing: -0.7px; font-size: 18px; }
.brand-copy small { color: var(--green-dark); font-weight: 900; font-size: 8px; letter-spacing: 1.45px; margin-top: 4px; }

.top-stats { display: flex; align-items: center; gap: 7px; }
.stat-chip { height: 35px; min-width: 45px; padding: 0 9px; border-radius: 11px; border: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 14px; font-weight: 900; cursor: pointer; }
.streak-chip .fire-icon { width: 17px; height: 20px; display: grid; place-items: center; color: #ff8a00; transform-origin: 50% 90%; animation: flameFlicker 1.8s ease-in-out infinite; }
.fire-icon svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 1px 0 #d96800); }
@keyframes flameFlicker { 50% { transform: rotate(2deg) scale(.94,1.04); color: #ff9f1a; } }
.xp-chip span { color: var(--gold); font-size: 19px; }
.avatar-button { width: 37px; height: 37px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 2px var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 1000; position: relative; cursor: pointer; }
.online-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid white; }

main { padding-bottom: calc(94px + var(--safe-bottom)); }
.app-view { display: none; padding: 20px 16px 28px; animation: viewIn 0.25s ease; }
.app-view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.map-heading-row, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--green-dark); font-size: 10px; letter-spacing: 1.5px; font-weight: 1000; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.06; letter-spacing: -1.25px; font-weight: 1000; }
h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -0.55px; font-weight: 1000; }
.round-button { width: 44px; height: 44px; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 14px; background: white; font-size: 23px; font-weight: 900; cursor: pointer; }
.round-button:active { transform: translateY(3px); border-bottom-width: 2px; }

.league-card { margin-top: 18px; padding: 13px; border-radius: 19px; background: #26362d; color: white; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 11px; align-items: center; box-shadow: 0 6px 0 #142019; }
.team-crest, .large-crest { display: grid; place-items: center; background: var(--green); color: white; box-shadow: inset 0 -5px 0 rgba(0,0,0,0.14); font-weight: 1000; }
.team-crest { width: 46px; height: 46px; border-radius: 15px; font-size: 24px; }
.league-copy { min-width: 0; display: flex; flex-direction: column; }
.league-copy span { color: #b8c9bf; font-size: 10px; font-weight: 800; }
.league-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; margin: 1px 0 7px; }
.progress-track { height: 8px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.league-score { text-align: right; display: flex; flex-direction: column; line-height: 1; }
.league-score b { font-size: 17px; }
.league-score span { color: var(--gold); font-size: 9px; font-weight: 1000; margin-top: 4px; }

.map-card { margin-top: 17px; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; background: white; overflow: hidden; }
.map-toolbar { display: flex; gap: 7px; padding: 11px 10px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.map-toolbar::-webkit-scrollbar { display: none; }
.filter-pill { flex: 0 0 auto; border: 0; border-radius: 999px; background: #eff3ef; color: var(--muted); padding: 8px 12px; font-weight: 900; font-size: 11px; cursor: pointer; }
.filter-pill.active { background: var(--green-soft); color: var(--green-dark); box-shadow: inset 0 0 0 1px #bfe8a0; }
.campus-map { height: 415px; position: relative; overflow: hidden; background: #eaf2eb; }
.maplibre-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.maplibregl-canvas { cursor: grab; }
.maplibregl-canvas:active { cursor: grabbing; }
.maplibregl-ctrl-top-right { top: 8px; right: 8px; }
.maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(35,60,43,.12); border-radius: 12px; box-shadow: 0 3px 10px rgba(35,60,43,.16); }
.maplibregl-ctrl-group button { width: 34px; height: 34px; }
.maplibregl-ctrl-scale { margin: 0 9px 28px 0 !important; color: #405248; border-color: #64766c; background: rgba(255,255,255,.82); font-size: 8px; font-weight: 800; }
.maplibregl-ctrl-attrib { font-size: 8px; }
.map-loading { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--green-dark); background: #eef6ef; font-size: 10px; font-weight: 900; transition: opacity .25s, visibility .25s; }
.map-loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.map-loading.error { inset: auto 12px 46px; min-height: 42px; padding: 8px 12px; border-radius: 12px; color: #6f5a19; background: #fff6cf; text-align: center; }
.map-loading i { width: 18px; height: 18px; border: 3px solid #bfe7a2; border-top-color: var(--green); border-radius: 50%; animation: mapSpin .8s linear infinite; }
.map-loading.error i { display: none; }
@keyframes mapSpin { to { transform: rotate(360deg); } }

.territory-map-label { pointer-events: none; padding: 4px 7px; color: var(--territory-color); background: rgba(255,255,255,.9); border: 2px solid var(--territory-color); border-radius: 999px; box-shadow: 0 2px 8px rgba(27,47,34,.16); font-size: 8px; font-weight: 1000; letter-spacing: .5px; }
.mission-marker { border: 0; background: transparent; padding: 0; cursor: pointer; z-index: 4; }
.marker-pin { width: 46px; height: 46px; border-radius: 16px 16px 16px 4px; transform: rotate(-45deg); display: grid; place-items: center; background: white; border: 3px solid var(--green); box-shadow: 0 4px 9px rgba(35,60,43,.22); }
.marker-pin span { transform: rotate(45deg); font-size: 20px; font-weight: 1000; color: var(--green-dark); }
.mission-marker.featured .marker-pin { animation: pinPulse 1.9s infinite; background: var(--green); border-color: white; box-shadow: 0 0 0 4px rgba(88,204,2,.25), 0 6px 12px rgba(46,96,14,.25); }
.mission-marker.featured .marker-pin span { color: white; }
.mission-marker.completed .marker-pin { background: var(--green-soft); border-color: var(--green); }
.mission-marker.completed .marker-pin::after { content: "✓"; position: absolute; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: white; background: var(--green); transform: rotate(45deg); right: -6px; top: -5px; font-size: 11px; border: 2px solid white; }
.mission-marker.locked { opacity: .66; }
.mission-marker.locked .marker-pin { border-color: #9facaa; }
.mission-marker.locked .marker-pin span { color: #8c9991; }
.zone-mission-marker { min-width: 91px; padding: 7px 9px 8px; border: 2px solid white; border-bottom: 4px solid var(--zone-dark); border-radius: 15px; display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 6px; color: white; background: linear-gradient(145deg,var(--zone-color),var(--zone-dark)); box-shadow: 0 5px 14px rgba(81,57,197,.35),0 0 0 5px rgba(123,97,255,.16); cursor: pointer; text-align: left; }
.zone-mission-marker > span { grid-row: 1 / 3; width: 24px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.18); font-size: 16px; animation: sweepIconPulse 1.8s ease-in-out infinite; }
.zone-mission-marker b { font-size: 8px; line-height: 1; letter-spacing: .7px; white-space: nowrap; }
.zone-mission-marker small { margin-top: 3px; color: rgba(255,255,255,.85); font-size: 7px; font-weight: 900; white-space: nowrap; }
@keyframes sweepIconPulse { 50% { background: rgba(255,255,255,.3); filter: brightness(1.14); } }
.marker-bubble { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); width: 150px; background: #26362d; color: white; border-radius: 14px; padding: 8px 10px; text-align: left; box-shadow: 0 4px 0 #17231c; pointer-events: none; }
.marker-bubble::after { content: ""; position: absolute; bottom: -6px; left: calc(50% - 6px); border: 6px solid transparent; border-top-color: #17231c; border-bottom: 0; }
.marker-bubble b { display: block; font-size: 11px; line-height: 1.15; }
.marker-bubble small { color: #c9d5cd; font-size: 8.5px; }
@keyframes pinPulse { 0%,100% { transform: rotate(-45deg) scale(1); } 50% { transform: rotate(-45deg) scale(1.08); } }
.user-location-marker { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(28,176,246,.22), 0 2px 7px rgba(20,77,104,.35); }

.map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 7; display: flex; flex-wrap: wrap; gap: 5px 8px; max-width: calc(100% - 62px); background: rgba(255,255,255,.9); border-radius: 10px; padding: 7px 9px; box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 8px; color: var(--muted); font-weight: 800; backdrop-filter: blur(8px); }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.available { background: var(--green); }.legend-dot.owned { background: #8ad858; border: 1px solid var(--green-dark); }.legend-dot.sweep { background: #7b61ff; box-shadow: 0 0 0 2px rgba(123,97,255,.16); }.legend-dot.locked { background: #a8b2ac; }

.section-block { margin-top: 27px; }
.section-heading { align-items: center; }
.section-heading h2 { margin-top: 0; }
.text-button { border: 0; background: transparent; color: var(--blue-dark); font-weight: 900; font-size: 12px; cursor: pointer; }
.mission-carousel { margin: 12px -16px 0; padding: 0 16px 7px; display: flex; gap: 11px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mission-carousel::-webkit-scrollbar { display: none; }
.mini-mission-card { flex: 0 0 242px; scroll-snap-align: start; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 19px; padding: 13px; background: white; cursor: pointer; text-align: left; }
.mini-mission-top { display: flex; gap: 10px; align-items: center; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--green-soft); color: var(--green-dark); font-size: 20px; font-weight: 1000; }
.mini-copy { min-width: 0; }
.mini-copy strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-rewards { display: flex; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 900; margin-top: 11px; }
.mini-rewards b:first-child { color: var(--green-dark); }

.page-heading { padding: 8px 1px 20px; }
.page-heading p:last-child { color: var(--muted); line-height: 1.45; font-size: 14px; margin: 10px 0 0; }
.compact-heading { padding-bottom: 16px; }
.scanner-card { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; background: white; padding: 12px; }
.scanner-window { height: 320px; border-radius: 18px; background: #17251d; position: relative; overflow: hidden; display: grid; place-items: center; }
#scannerVideo { width: 100%; height: 100%; object-fit: cover; display: none; }
.scanner-window.streaming #scannerVideo { display: block; }
.scanner-window.streaming .scanner-placeholder { display: none; }
.scanner-placeholder { text-align: center; color: white; padding: 24px; display: flex; flex-direction: column; align-items: center; }
.scanner-placeholder strong { font-size: 18px; margin-top: 16px; }
.scanner-placeholder span { color: #a9bbb0; font-size: 11px; margin-top: 4px; }
.qr-glyph { width: 86px; height: 86px; border: 7px solid white; border-radius: 8px; position: relative; opacity: .95; }
.qr-glyph i { position: absolute; width: 21px; height: 21px; border: 5px solid white; }
.qr-glyph i:nth-child(1) { left: 7px; top: 7px; }.qr-glyph i:nth-child(2) { right: 7px; top: 7px; }.qr-glyph i:nth-child(3) { left: 7px; bottom: 7px; }.qr-glyph i:nth-child(4) { right: 11px; bottom: 12px; width: 11px; height: 11px; background: white; border: 0; }
.scan-frame { position: absolute; inset: 38px; pointer-events: none; }
.scan-frame i { position: absolute; width: 36px; height: 36px; border-color: var(--green); border-style: solid; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 5px 0 0 5px; border-radius: 9px 0 0 0; }.scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 5px 5px 0 0; border-radius: 0 9px 0 0; }.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 5px 5px; border-radius: 0 0 0 9px; }.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 5px 5px 0; border-radius: 0 0 9px 0; }
.scan-frame b { display: none; position: absolute; height: 3px; left: 8px; right: 8px; top: 20%; background: var(--green); border-radius: 3px; box-shadow: 0 0 12px var(--green); animation: scanLine 2.1s infinite ease-in-out; }
.scanner-window.streaming .scan-frame b { display: block; }
@keyframes scanLine { 0%,100% { top: 18%; } 50% { top: 79%; } }

.primary-button, .secondary-button, .light-button, .dark-button { width: 100%; border-radius: 15px; min-height: 49px; padding: 0 16px; font-weight: 1000; letter-spacing: .2px; cursor: pointer; transition: transform .08s, border-bottom-width .08s; }
.primary-button { border: 0; border-bottom: 5px solid var(--green-dark); background: var(--green); color: white; margin-top: 13px; }
.primary-button span { margin-right: 5px; font-size: 18px; }
.primary-button:disabled { background: #cbd4ce; border-bottom-color: #aeb9b2; cursor: not-allowed; }
.secondary-button { border: 2px solid var(--line); border-bottom-width: 5px; background: white; color: var(--ink); margin-top: 9px; }
.primary-button:not(:disabled):active, .secondary-button:active, .light-button:active, .dark-button:active { transform: translateY(3px); border-bottom-width: 2px; }
.privacy-note { color: var(--muted); text-align: center; font-size: 9px; margin: 12px 0 0; }
.privacy-note span { color: var(--green); margin-right: 3px; }
.scan-help-card { margin-top: 15px; padding: 13px; border-radius: 18px; background: #e4f6ff; border: 1px solid #b8e5fb; display: flex; gap: 12px; align-items: center; }
.coach-face { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--green); border-radius: 50% 50% 45% 55%; color: white; font-size: 27px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.scan-help-card strong { color: #075b85; font-size: 13px; }.scan-help-card p { margin: 3px 0 0; color: #306f8c; font-size: 10px; line-height: 1.4; }
.team-form label { display: block; color: var(--muted); font-size: 11px; font-weight: 900; margin-bottom: 7px; }
.team-form input { min-width: 0; width: 100%; height: 49px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 0 13px; background: white; font-weight: 800; text-transform: uppercase; }

.my-team-hero { border-radius: 24px; padding: 17px; background: #26362d; color: white; box-shadow: 0 6px 0 #15231b; }
.team-hero-top { display: flex; gap: 13px; align-items: center; }
.large-crest { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 19px; font-size: 29px; }
.team-hero-top span { color: #a9bbb0; font-size: 8px; letter-spacing: 1.3px; font-weight: 1000; }
.team-hero-top h2 { font-size: 23px; margin: 2px 0 2px; }
.team-hero-top p { margin: 0; color: #b9c9c0; font-size: 10px; }
.team-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; padding: 13px 0; border-top: 1px solid #45564c; border-bottom: 1px solid #45564c; }
.team-hero-stats div { text-align: center; border-right: 1px solid #45564c; }
.team-hero-stats div:last-child { border-right: 0; }
.team-hero-stats strong { display: block; font-size: 17px; }.team-hero-stats span { color: #a9bbb0; font-size: 8px; font-weight: 800; }
.team-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.light-button { border: 0; border-bottom: 5px solid var(--blue-dark); background: var(--blue); color: white; }
.dark-button { border: 0; border-bottom: 5px solid var(--green-dark); background: var(--green); color: white; }
.season-pill { border-radius: 999px; background: #fff3c8; color: #9e7600; padding: 6px 9px; font-size: 9px; font-weight: 900; }
.daily-match-block { margin-top: 28px; }
.daily-label { color: var(--blue-dark); }
.daily-timer { padding: 6px 9px; border-radius: 999px; background: #e4f6ff; color: var(--blue-dark); font-size: 9px; font-weight: 900; }
.daily-match-card { margin-top: 12px; padding: 17px 16px 14px; display: grid; grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr); align-items: center; gap: 8px; position: relative; overflow: hidden; border: 2px solid #b9dbf0; border-bottom-width: 5px; border-radius: 22px; background: linear-gradient(135deg,#f0faff 0%,#fffdf7 48%,#f7efff 100%); }
.daily-match-card::before,.daily-match-card::after { content:""; position:absolute; width:92px; height:92px; border-radius:50%; filter:blur(2px); opacity:.14; pointer-events:none; }
.daily-match-card::before { left:-40px; top:-44px; background:var(--blue); }.daily-match-card::after { right:-38px; bottom:-50px; background:var(--purple); }
.match-team { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.match-crest { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 18px; color: white; font-size: 27px; font-weight: 1000; box-shadow: inset 0 -5px 0 rgba(0,0,0,.14),0 5px 12px rgba(37,49,42,.12); animation: matchCrestFloat 2.4s ease-in-out infinite; }
.match-team-b .match-crest { animation-delay: -.9s; }
.match-team strong { width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.match-team b { margin-top: 2px; color: var(--muted); font-size: 9px; }
.versus-orb { width: 48px; height: 48px; display: grid; place-items: center; justify-self: center; position: relative; z-index: 2; border: 4px solid white; border-radius: 50%; background: var(--gold); color: #6f5200; font-size: 13px; font-weight: 1000; box-shadow: 0 4px 0 #c69600,0 0 0 0 rgba(255,200,0,.38); animation: versusPulse 1.8s ease-out infinite; }
.match-score-track { grid-column: 1/-1; height: 9px; margin-top: 4px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg,var(--blue),#dbecf5 50%,var(--purple)); position:relative; }
.match-score-track::after { content:""; position:absolute; left:50%; top:-2px; width:3px; height:13px; border-radius:3px; background:white; transform:translateX(-50%); }
.match-score-track i { display:block; height:100%; width:50%; border-radius:inherit; background:rgba(255,255,255,.55); transition:width .5s ease; }
.match-reward { grid-column:1/-1; margin:0; color:#66766d; text-align:center; font-size:8.5px; font-weight:800; }
@keyframes matchCrestFloat { 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes versusPulse { 70% { box-shadow:0 4px 0 #c69600,0 0 0 12px rgba(255,200,0,0); } 100% { box-shadow:0 4px 0 #c69600,0 0 0 0 rgba(255,200,0,0); } }
.leaderboard { margin-top: 12px; padding-left: 9px; display: flex; flex-direction: column; gap: 8px; }
.team-row { display: grid; grid-template-columns: 28px 43px minmax(0,1fr) auto; align-items: center; gap: 9px; position: relative; overflow: visible; background: white; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 9px 10px; }
.team-row.current { z-index:1; }
.team-row.current::before { content:""; position:absolute; z-index:-1; left:-11px; top:50%; width:13px; height:34px; transform:translateY(-50%); border-radius:8px 0 0 8px; background:var(--green); box-shadow:0 3px 0 var(--green-dark); }
.team-row.rank-1 { border-color: #f3cf51; background: linear-gradient(105deg,#fff8d8,#fffdf7); }
.team-row.rank-2 { border-color: #8ed9fb; background: linear-gradient(105deg,#eaf8ff,#fff); }
.team-row.rank-3 { border-color: #d5a3f5; background: linear-gradient(105deg,#f7ebff,#fff); }
.rank-number { width: 24px; height: 24px; margin: auto; border-radius: 8px; display: grid; place-items: center; text-align: center; font-weight: 1000; color: var(--muted); }
.team-row.rank-1 .rank-number { color: #8a6500; background: #ffd84d; }
.team-row.rank-2 .rank-number { color: #075b85; background: #a8e3ff; }
.team-row.rank-3 .rank-number { color: #74369a; background: #dfb6f8; }
.row-crest { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 1000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.13); }
.team-row-copy { min-width: 0; }.team-row-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }.team-row-copy span { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.row-score { text-align: right; }.row-score strong { display: block; font-size: 13px; }.row-score span { color: var(--green-dark); font-size: 8px; font-weight: 900; }
.activity-list { margin-top: 11px; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.live-label { display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,75,75,.45); animation: livePulse 1.25s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255,75,75,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,75,0); } }
.activity-item { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-emblem { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: white; font-weight: 1000; }
.activity-item p { margin: 0; font-size: 11px; font-weight: 800; line-height: 1.3; }.activity-item time { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }

.planet-card { padding: 20px 15px; border-radius: 24px; color: white; background: linear-gradient(145deg,#26362d,#17251d); box-shadow: 0 6px 0 #101b15; display: flex; align-items: center; gap: 16px; overflow: hidden; position: relative; }
.planet-orbit { flex: 0 0 118px; width: 118px; height: 118px; position: relative; display: grid; place-items: center; }
.planet { width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #9af34f 0 14%, #58cc02 15% 50%, #2d8c00 51% 100%); box-shadow: inset -12px -9px 0 rgba(0,0,0,.12), 0 0 28px rgba(88,204,2,.28); display: grid; place-items: center; font-size: 36px; font-weight: 1000; }
.planet-orbit i { position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transform: rotate(-24deg) scaleY(.45); }.planet-orbit b { position: absolute; right: 6px; top: 30px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 12px var(--gold); }
.planet-copy span { color: #a9bbb0; letter-spacing: 1.4px; font-size: 8px; font-weight: 1000; }.planet-copy strong { display: block; color: var(--green); font-size: 31px; line-height: 1; margin: 4px 0 7px; }.planet-copy p { color: #c3d0c8; font-size: 9px; line-height: 1.4; margin: 0; }
.impact-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.impact-metric-card { min-width:0; min-height:124px; padding:13px; position:relative; overflow:hidden; text-align:left; cursor:pointer; background:white; border:2px solid var(--line); border-bottom-width:5px; border-radius:18px; transition:transform .12s,border-color .12s,box-shadow .12s; }
.impact-metric-card:hover { border-color:#b9dbea; box-shadow:0 4px 14px rgba(37,49,42,.08); transform:translateY(-1px); }
.impact-metric-card:active { transform:translateY(3px); border-bottom-width:2px; }
.impact-icon { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; font-weight: 1000; }
.impact-icon.green { background: var(--green-soft); color: var(--green-dark); }.impact-icon.blue { background: #e4f6ff; color: var(--blue-dark); }.impact-icon.territory { background: #e4f6ff; color: var(--blue-dark); }.impact-icon.purple { background: #f5e7ff; color: #8e45b8; }
.impact-grid strong { display: block; font-size: 24px; line-height: 1; margin-top: 13px; }.impact-grid p { color: var(--muted); font-size: 9px; font-weight: 800; margin: 5px 0 0; }
.metric-arrow { position:absolute; right:12px; top:13px; width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:#f0f4f1; color:#7c8a82; font-size:20px; font-style:normal; line-height:1; }
.reward-card { margin-top: 16px; padding: 16px; border-radius: 21px; background: #eaf7ff; border: 2px solid #9edcff; border-bottom-width: 5px; }
.reward-card-top { display: flex; align-items: center; justify-content: space-between; }.reward-card .eyebrow { color: var(--blue-dark); }.reward-card h2 { font-size: 18px; }.wallet-icon { width: 41px; height: 41px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 1000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.wallet-balance { margin-top: 17px; display: flex; align-items: baseline; justify-content: space-between; }.wallet-balance strong { font-size: 26px; }.wallet-balance span { color: var(--blue-dark); font-size: 9px; font-weight: 900; }
.reward-progress { background: rgba(28,176,246,.16); height: 10px; margin-top: 7px; }.reward-progress i { background: var(--blue); }.reward-card > p { color: #246f93; font-size: 9px; margin: 10px 0 0; }
.method-card { margin-top: 14px; border: 2px solid var(--line); border-radius: 17px; background: white; overflow: hidden; }
.method-card summary { padding: 14px; list-style: none; font-size: 12px; font-weight: 900; cursor: pointer; display: flex; justify-content: space-between; }.method-card summary::-webkit-details-marker { display: none; }.method-card p { padding: 0 14px 14px; color: var(--muted); font-size: 10px; line-height: 1.5; margin: 0; }

.bottom-nav { position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,560px); height: calc(70px + var(--safe-bottom)); padding: 7px 12px var(--safe-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); backdrop-filter: blur(15px); }
.bottom-nav button { border: 0; background: transparent; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8b9890; cursor: pointer; }
.bottom-nav button span { font-size: 23px; line-height: 1; font-weight: 900; }.bottom-nav button b { font-size: 9px; }.bottom-nav button.active { color: var(--green-dark); background: var(--green-soft); }.bottom-nav button.active span { transform: translateY(-1px); }
.scan-nav-icon { width: 30px; height: 27px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 8px; box-shadow: 0 3px 0 var(--green-dark); font-size: 19px !important; }

.sheet-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(18,31,23,.48); opacity: 0; visibility: hidden; transition: .2s; backdrop-filter: blur(2px); }
.sheet-backdrop.show { opacity: 1; visibility: visible; }
.bottom-sheet { position: fixed; z-index: 80; left: 50%; bottom: 0; transform: translate(-50%,105%); width: min(100%,560px); max-height: 91vh; overflow-y: auto; padding: 12px 18px calc(18px + var(--safe-bottom)); background: var(--cream); border-radius: 28px 28px 0 0; box-shadow: 0 -12px 40px rgba(16,35,22,.22); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.bottom-sheet.show { transform: translate(-50%,0); }
.sheet-handle { width: 50px; height: 5px; border-radius: 99px; background: #d6ddd8; margin: 0 auto 13px; }
.sheet-close { position: absolute; right: 16px; top: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef2ef; color: #68766d; font-size: 25px; cursor: pointer; }
.mission-sheet-hero { display: flex; align-items: center; gap: 13px; padding-right: 35px; }
.mission-big-icon { flex: 0 0 61px; width: 61px; height: 61px; border-radius: 19px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 29px; font-weight: 1000; box-shadow: inset 0 -5px 0 rgba(61,146,0,.12); }
.mission-sheet-hero span, .proof-heading span { color: var(--green-dark); font-size: 8px; letter-spacing: 1.3px; font-weight: 1000; }.mission-sheet-hero h2 { font-size: 23px; line-height: 1.06; margin: 3px 0 3px; }.mission-sheet-hero p { color: var(--muted); font-size: 10px; margin: 0; }
.territory-progress-card { margin-top: 17px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 16px; color: white; background: #26362d; }
.territory-progress-card strong { display: block; font-size: 12px; }.territory-progress-card span { display: block; color: #adbbb2; font-size: 9px; margin-top: 3px; }.node-dots { display: flex; gap: 5px; }.node-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #718077; }.node-dots i.done { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 2px rgba(88,204,2,.18); }
.mission-instruction { margin-top: 15px; padding: 12px; display: flex; gap: 11px; border: 2px solid var(--line); border-radius: 16px; background: white; }
.mission-instruction > span { flex: 0 0 31px; width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--blue); font-weight: 1000; box-shadow: inset 0 -3px 0 rgba(0,0,0,.13); }.mission-instruction.safety > span { background: var(--green); }.mission-instruction strong { display: block; font-size: 11px; }.mission-instruction p { color: var(--muted); font-size: 10px; line-height: 1.4; margin: 3px 0 0; }
.mission-rewards { margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.mission-rewards div { padding: 10px 5px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; background: #eef3ef; }.mission-rewards span { color: var(--green-dark); font-weight: 1000; }.mission-rewards strong { font-size: 10px; }
.sheet-primary { margin-top: 15px; }

.zone-mission-sheet { background: linear-gradient(180deg,#f4f0ff 0,#fffdf7 48%); }
.zone-sheet-hero { display: flex; align-items: center; gap: 13px; padding-right: 35px; }
.zone-sheet-icon { flex: 0 0 61px; width: 61px; height: 61px; border-radius: 19px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,#8b70ff,#5139c5); box-shadow: inset 0 -5px 0 rgba(33,17,111,.22),0 7px 18px rgba(81,57,197,.2); font-size: 29px; }
.zone-sheet-hero span { color: #654ad8; font-size: 8px; letter-spacing: 1.3px; font-weight: 1000; }
.zone-sheet-hero h2 { margin: 3px 0; font-size: 23px; line-height: 1.06; }
.zone-sheet-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.zone-multiplier-card { margin-top: 17px; padding: 14px; border-radius: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: white; background: linear-gradient(135deg,#7b61ff,#5139c5); box-shadow: inset 0 -5px 0 rgba(32,18,100,.19); }
.zone-multiplier-card div { flex: 0 0 auto; }
.zone-multiplier-card span { display: block; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 1000; letter-spacing: 1px; }
.zone-multiplier-card strong { display: block; margin-top: 2px; font-size: 25px; line-height: 1; }
.zone-multiplier-card p { max-width: 210px; margin: 0; color: rgba(255,255,255,.87); font-size: 9px; line-height: 1.4; }
.zone-description { margin: 15px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.zone-instruction-list { margin: 13px 0 0; padding: 0; list-style: none; counter-reset: sweep-step; display: grid; gap: 8px; }
.zone-instruction-list li { counter-increment: sweep-step; padding: 11px 11px 11px 47px; min-height: 42px; position: relative; border: 2px solid #e7e0ff; border-radius: 14px; background: white; color: #4d5b52; font-size: 9.5px; line-height: 1.4; }
.zone-instruction-list li::before { content: counter(sweep-step); position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; color: white; background: #7b61ff; font-size: 10px; font-weight: 1000; }
.zone-safety-card { margin-top: 11px; padding: 11px; display: flex; gap: 10px; border-radius: 14px; color: #406231; background: var(--green-soft); }
.zone-safety-card > span { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--green); font-weight: 1000; }
.zone-safety-card strong { display: block; font-size: 10px; }
.zone-safety-card p { margin: 2px 0 0; font-size: 8.5px; line-height: 1.4; }

.proof-heading { display: flex; align-items: center; gap: 12px; padding-right: 34px; }.proof-step { flex: 0 0 51px; width: 51px; height: 51px; border-radius: 16px; background: var(--blue); color: white; display: grid; place-items: center; font-size: 22px; font-weight: 1000; box-shadow: inset 0 -5px 0 rgba(0,0,0,.13); }.proof-step.team-step { background: var(--purple); }.proof-heading h2 { font-size: 21px; margin: 2px 0; }.proof-heading p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.photo-drop { margin-top: 15px; display: block; height: 265px; border: 3px dashed #cfd9d1; border-radius: 20px; background: white; overflow: hidden; cursor: pointer; position: relative; }
.photo-drop input { position: absolute; opacity: 0; pointer-events: none; }.photo-drop img { width: 100%; height: 100%; object-fit: cover; display: none; }.photo-drop.has-photo img { display: block; }.photo-drop.has-photo .photo-placeholder { display: none; }
.photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }.photo-placeholder > span { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #e4f6ff; color: var(--blue-dark); font-size: 28px; }.photo-placeholder strong { margin-top: 13px; font-size: 15px; }.photo-placeholder p { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.privacy-banner { margin-top: 11px; padding: 10px; display: flex; gap: 9px; border-radius: 13px; background: var(--green-soft); color: #4e7140; }.privacy-banner > span { color: var(--green); font-size: 15px; }.privacy-banner strong { display: block; font-size: 10px; }.privacy-banner p { margin: 0; font-size: 8.5px; line-height: 1.35; }
.team-form { margin-top: 18px; }.team-form input { width: 100%; text-transform: none; }.team-form .primary-button, .team-form .secondary-button { margin-top: 9px; }.or-divider { margin: 16px 0; display: flex; align-items: center; gap: 10px; color: #9aa59e; font-size: 9px; font-weight: 900; }.or-divider::before,.or-divider::after { content:""; height: 1px; background: var(--line); flex: 1; }

.verifying-overlay, .result-overlay { position: fixed; z-index: 110; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,253,247,.98); opacity: 0; visibility: hidden; transition: opacity .22s; padding: 24px; text-align: center; }
.verifying-overlay.show, .result-overlay.show { opacity: 1; visibility: visible; }
.verification-orb { width: 112px; height: 112px; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-size: 52px; position: relative; box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), 0 0 0 11px var(--green-soft); animation: orbBreathe 1.35s infinite; }.verification-orb i,.verification-orb b { position: absolute; border-radius: 50%; border: 3px solid var(--green); opacity: .28; inset: -23px; animation: ring 1.4s infinite; }.verification-orb b { inset: -40px; animation-delay: .35s; }
@keyframes orbBreathe { 50% { transform: scale(1.05) rotate(2deg); } } @keyframes ring { 0% { transform: scale(.75); opacity:.45; } 100% { transform: scale(1.15); opacity:0; } }
.verifying-overlay h2 { margin-top: 36px; font-size: 24px; }.verifying-overlay p { color: var(--muted); font-size: 11px; }.verification-steps { display: flex; gap: 7px; margin-top: 12px; }.verification-steps i { width: 25px; height: 6px; border-radius: 8px; background: #dce4de; }.verification-steps i.active { background: var(--green); animation: stepPulse 1s infinite; } @keyframes stepPulse { 50% { opacity:.4; } }
.result-overlay { background: linear-gradient(180deg,#efffe5,#fffdf7 55%); }
.result-card { width: min(100%,410px); position: relative; z-index: 2; }.result-badge { width: 112px; height: 112px; margin: 0 auto 23px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); border: 8px solid white; box-shadow: 0 8px 0 var(--green-dark), 0 0 0 12px var(--green-soft); font-size: 57px; font-weight: 1000; animation: badgeIn .55s cubic-bezier(.2,1.5,.5,1); } @keyframes badgeIn { from { transform: scale(.3) rotate(-20deg); opacity:0; } }
.result-card h2 { font-size: 31px; margin: 4px 0 8px; }.result-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.45; }.result-card .result-guidance { margin: 12px auto 0; padding: 11px 13px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; }.result-stats { margin: 24px 0 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.result-stats div { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 16px; background: white; padding: 11px 5px; display: flex; flex-direction: column; }.result-stats span { color: var(--green-dark); font-size: 17px; font-weight: 1000; }.result-stats strong { font-size: 18px; }.result-stats small { color: var(--muted); font-size: 8px; font-weight: 900; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }.confetti i { position: absolute; top: -20px; width: 9px; height: 17px; border-radius: 2px; animation: confettiFall 2.7s linear forwards; } @keyframes confettiFall { to { transform: translateY(110vh) rotate(760deg); } }
.result-overlay.rejected { background: linear-gradient(180deg,#fff1f1,#fffdf7 55%); }.result-overlay.rejected .result-badge { background: var(--red); box-shadow: 0 8px 0 #b72d2d, 0 0 0 12px #ffe0e0; }
.result-overlay.rejected .result-guidance { background: #ffe4e1; color: #9d3029; }

.impact-detail-overlay { position:fixed; z-index:125; inset:0; display:flex; justify-content:center; background:rgba(25,42,31,.55); opacity:0; visibility:hidden; transition:opacity .22s; }
.impact-detail-overlay.show { opacity:1; visibility:visible; }
.impact-detail-shell { width:min(100%,560px); min-height:100%; overflow-y:auto; background:var(--cream); transform:translateY(20px); transition:transform .28s cubic-bezier(.2,.8,.2,1); }
.impact-detail-overlay.show .impact-detail-shell { transform:none; }
.impact-detail-header { min-height:225px; padding:76px 24px 27px; position:relative; overflow:hidden; color:white; background:linear-gradient(145deg,#087db4,#1cb0f6); }
.impact-detail-header::after { content:""; position:absolute; right:-62px; bottom:-78px; width:210px; height:210px; border:35px solid rgba(255,255,255,.11); border-radius:50%; }
.impact-detail-close { position:absolute; z-index:2; top:22px; right:20px; width:42px; height:42px; border:0; border-radius:50%; background:rgba(255,255,255,.18); color:white; font-size:29px; cursor:pointer; }
.impact-detail-header .eyebrow { color:rgba(255,255,255,.8); }
.impact-detail-header h2 { position:relative; z-index:1; max-width:380px; font-size:32px; line-height:1.04; letter-spacing:-1px; }
.impact-detail-header > p:last-child { position:relative; z-index:1; max-width:430px; margin:10px 0 0; color:rgba(255,255,255,.82); font-size:11px; line-height:1.5; }
.impact-detail-content { padding:20px 18px 34px; }
.detail-hero-stat { padding:18px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:2px solid var(--line); border-bottom-width:5px; border-radius:20px; background:white; }
.detail-hero-stat span { color:var(--muted); font-size:10px; font-weight:900; }.detail-hero-stat strong { display:block; margin-top:3px; font-size:32px; line-height:1; }.detail-hero-icon { flex:0 0 57px; width:57px; height:57px; display:grid; place-items:center; border-radius:18px; background:#e4f6ff; color:var(--blue-dark); font-size:27px; font-weight:1000; }
.detail-card { margin-top:14px; padding:16px; border:2px solid var(--line); border-radius:19px; background:white; }
.detail-card h3 { margin:0 0 12px; font-size:15px; }.detail-card > p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.detail-stat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
.detail-stat-grid div { padding:13px; border-radius:14px; background:#f3f7f4; }.detail-stat-grid strong { display:block; font-size:18px; }.detail-stat-grid span { color:var(--muted); font-size:8.5px; font-weight:800; }
.detail-bars { display:flex; flex-direction:column; gap:11px; }
.detail-bar-label { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:9px; font-weight:800; }.detail-bar-label b { color:var(--ink); }
.detail-bar-track { height:9px; margin-top:5px; overflow:hidden; border-radius:999px; background:#edf1ee; }.detail-bar-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--blue),var(--purple)); }
.detail-zone { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }.detail-zone:last-child { border-bottom:0; }.detail-zone > span { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:var(--green-soft); color:var(--green-dark); font-weight:1000; }.detail-zone strong { display:block; font-size:11px; }.detail-zone small { color:var(--muted); font-size:8px; }.detail-zone b { font-size:11px; }

.toast { position: fixed; z-index: 150; left: 50%; bottom: calc(82px + var(--safe-bottom)); transform: translate(-50%,20px); width: min(calc(100% - 32px),500px); padding: 11px 13px; border-radius: 15px; display: flex; gap: 9px; align-items: center; background: #26362d; color: white; box-shadow: 0 6px 18px rgba(0,0,0,.22); opacity: 0; visibility: hidden; transition: .24s; }.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }.toast span { width: 27px; height: 27px; border-radius: 9px; background: var(--green); display: grid; place-items: center; font-weight: 1000; }.toast p { font-size: 11px; font-weight: 900; margin: 0; }

@media (min-width: 561px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100vh - 36px); border-radius: 28px; overflow: hidden; }
  .topbar { top: 0; }
  .bottom-nav { bottom: 18px; border-radius: 0 0 28px 28px; }
  .bottom-sheet { bottom: 18px; border-radius: 28px; max-height: calc(100vh - 54px); }
}

@media (max-width: 380px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 16px; }
  .stat-chip { min-width: 40px; padding: 0 7px; }
  .campus-map { height: 390px; }
  .marker-bubble { width: 135px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
