:root {
  --ink: #111d2a;
  --ink-2: #172638;
  --ink-3: #21344a;
  --cream: #f1e7d3;
  --cream-2: #fff8e9;
  --muted: #a8b0b5;
  --blue: #6e9fd2;
  --blue-bright: #8bb8e7;
  --red: #ed665d;
  --red-dark: #d9524a;
  --hairline: rgba(241, 231, 211, 0.16);
  --radius: 22px;
  --safe-top: max(16px, env(safe-area-inset-top));
  --safe-right: max(18px, env(safe-area-inset-right));
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --safe-left: max(18px, env(safe-area-inset-left));
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body { overflow-x: hidden; }

button,
canvas { -webkit-user-select: none; user-select: none; }

button { font: inherit; }

button:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.app { width: 100%; min-height: 100dvh; }

.screen {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}

.screen.is-active { opacity: 1; transform: none; }

.eyebrow,
.brandbar,
.result-topline,
.score-kicker,
.verdict-rule,
.dialog-index {
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  color: rgba(241, 231, 211, 0.72);
  border-bottom: 1px solid var(--hairline);
}

.studio-mark { display: inline-flex; gap: 2px; align-items: center; }
.studio-mark i { width: 3px; height: 13px; display: block; transform: skew(-18deg); background: var(--cream); }
.studio-mark i:nth-child(1) { background: var(--blue); }
.studio-mark i:nth-child(3) { background: var(--red); }
.edition { margin-left: auto; color: rgba(241, 231, 211, 0.34); }

.screen--home {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  background:
    radial-gradient(circle at 95% 13%, rgba(110, 159, 210, 0.14), transparent 34%),
    linear-gradient(125deg, transparent 0 72%, rgba(237, 102, 93, 0.045) 72% 100%),
    var(--ink);
}

.home-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 22px 0 12px;
}

.home-content .eyebrow { margin: 0 0 14px; color: var(--red); }

h1 {
  max-width: 640px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 14vw, 5.2rem);
  font-weight: 500;
  line-height: 0.87;
  letter-spacing: -0.063em;
}

h1 em { color: var(--blue-bright); font-weight: 400; }

.hook {
  margin: 22px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 6.3vw, 1.75rem);
  line-height: 1.05;
}

.intro {
  max-width: 550px;
  margin: 0 0 19px;
  color: rgba(241, 231, 211, 0.67);
  font-size: 0.91rem;
  line-height: 1.48;
}

.button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.button:active:not(:disabled) { transform: scale(0.975); }
.button:disabled { cursor: not-allowed; opacity: 0.34; }

.button--primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.button--start { width: min(100%, 320px); min-height: 55px; }
.button-arrow { font-size: 1.25rem; font-weight: 400; }
.button--primary:hover { background: var(--cream-2); }

.fine-print {
  display: flex;
  gap: 8px;
  max-width: 350px;
  margin: 13px 0 0;
  color: rgba(241, 231, 211, 0.48);
  font-size: 0.69rem;
  line-height: 1.35;
}

.fine-print span { color: var(--red); }

.home-art {
  position: absolute;
  right: -42px;
  bottom: 66px;
  width: 200px;
  height: 176px;
  opacity: 0.31;
  transform: rotate(-6deg);
  pointer-events: none;
}

.home-art svg { position: absolute; inset: 20px 0 0; width: 100%; fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-dasharray: 2 5; }
.home-art .scribble { stroke: var(--red); stroke-width: 2.1; stroke-dasharray: none; }
.ghost-number { position: absolute; right: 18px; top: -30px; font: 800 8rem/1 ui-monospace, monospace; color: transparent; -webkit-text-stroke: 1px rgba(241,231,211,.2); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  color: rgba(241, 231, 211, 0.32);
  border-top: 1px solid var(--hairline);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Drawing */
.screen--draw {
  height: 100dvh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  overflow: hidden;
  background: var(--ink);
}

.draw-header { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.draw-header .eyebrow { margin: 0 0 4px; color: var(--red); }
.draw-header h2 { margin: 0; font: 500 1.55rem/1.05 Georgia, serif; letter-spacing: -0.03em; }

.timer { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 3; }
.timer-track { stroke: rgba(241,231,211,.13); }
.timer-progress { stroke: var(--blue-bright); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 200ms ease; }
.timer span { font: 700 0.93rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.timer.is-urgent .timer-progress { stroke: var(--red); }
.timer.is-urgent span { color: var(--red); }

.draw-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 231, 211, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(241,231,211,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,231,211,.035) 1px, transparent 1px),
    var(--ink-2);
  background-size: 28px 28px;
  box-shadow: inset 0 0 65px rgba(0, 0, 0, 0.14), 0 14px 45px rgba(0, 0, 0, 0.12);
}

.draw-stage::before,
.draw-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-color: rgba(241,231,211,.42);
  pointer-events: none;
}

.draw-stage::before { top: 13px; left: 13px; border-top: 1px solid; border-left: 1px solid; }
.draw-stage::after { right: 13px; bottom: 13px; border-right: 1px solid; border-bottom: 1px solid; }

#draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.canvas-hint {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 230px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.canvas-hint.is-hidden { opacity: 0; transform: translate(-50%, -44%); }
.canvas-hint strong { display: block; color: rgba(241,231,211,.5); font: 500 1rem/1.2 Georgia, serif; }
.canvas-hint small { display: block; margin-top: 7px; color: rgba(241,231,211,.28); font-size: .68rem; }

.countdown {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  background: rgba(17, 29, 42, 0.88);
  backdrop-filter: blur(5px);
}

.countdown[hidden] { display: none; }
.countdown span { font: 500 clamp(5rem, 28vw, 8rem)/.9 Georgia, serif; color: var(--red); animation: count-pop 760ms ease both; }
.countdown small { margin-top: 12px; color: rgba(241,231,211,.65); font-size: .78rem; }

@keyframes count-pop { 0% { opacity: 0; transform: scale(.7); } 28% { opacity: 1; transform: scale(1); } 100% { opacity: .25; transform: scale(1.14); } }

.draw-actions { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 8px; }
.draw-actions .button { min-height: 50px; }
.button--quiet { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; color: rgba(241,231,211,.68); border: 1px solid var(--hairline); background: transparent; }
.button--quiet:not(:disabled):hover { background: rgba(241,231,211,.06); }
.icon-undo, .icon-clear { font-size: 1.1rem; font-weight: 400; }
.button--finish { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: var(--ink); background: var(--red); }
.button--finish:not(:disabled):hover { background: #f2766e; }
.button--finish:disabled { color: rgba(17,29,42,.65); }
.draw-note { margin: 0; text-align: center; color: rgba(241,231,211,.35); font-size: .63rem; line-height: 1.35; }

/* Result */
.screen--result {
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  background:
    radial-gradient(circle at 5% 25%, rgba(110, 159, 210, .1), transparent 32%),
    var(--ink);
}

.result-topline { display: flex; justify-content: space-between; padding: 7px 0 12px; color: rgba(241,231,211,.45); border-bottom: 1px solid var(--hairline); }
.result-topline span:first-child { color: var(--red); }
.result-layout { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; padding: 14px 0; }

.map-card {
  position: relative;
  aspect-ratio: 1.16 / 1;
  overflow: hidden;
  border: 1px solid rgba(241,231,211,.16);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

#result-canvas { display: block; width: 100%; height: 100%; }

.map-legend {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 7px 9px;
  border: 1px solid rgba(241,231,211,.12);
  border-radius: 10px;
  background: rgba(17,29,42,.76);
  backdrop-filter: blur(8px);
  color: rgba(241,231,211,.66);
  font-size: .62rem;
}

.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 18px; height: 3px; border-radius: 2px; }
.legend-user { background: var(--cream); }
.legend-reference { background: var(--red); }

.result-copy { display: grid; grid-template-columns: .82fr 1.18fr; gap: 16px; align-items: stretch; }
.score-block { position: relative; padding-right: 10px; border-right: 1px solid var(--hairline); }
.score-kicker { color: rgba(241,231,211,.45); }
.score-block p { display: flex; align-items: baseline; margin: 1px 0 0; }
.score-block strong { font: 500 clamp(3.4rem, 17vw, 5.8rem)/.95 Georgia, serif; color: var(--cream); letter-spacing: -.07em; }
.score-block p span { margin-left: 5px; color: rgba(241,231,211,.4); font: 500 1rem/1 ui-monospace, monospace; }
.corse-bonus { display: inline-block; margin-top: 4px; padding: 4px 7px; color: var(--ink); border-radius: 6px; background: var(--blue-bright); font-size: .57rem; font-weight: 850; letter-spacing: .08em; }

.verdict-block { align-self: center; }
.verdict-rule { margin: 0 0 7px; color: var(--red); }
.verdict-block h2 { margin: 0; font: 500 clamp(1.2rem, 5.2vw, 1.75rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
.verdict-block > p:last-child { margin: 8px 0 0; color: rgba(241,231,211,.55); font-size: .72rem; line-height: 1.4; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 7px 5px; padding: 10px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(241,231,211,.025); }
.metric span { color: rgba(241,231,211,.5); font-size: .62rem; }
.metric strong { font: 700 .72rem/1 ui-monospace, monospace; }
.metric i { grid-column: 1 / -1; display: block; width: 100%; height: 3px; overflow: hidden; border-radius: 4px; background: rgba(241,231,211,.1); }
.metric b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue-bright); transition: width 700ms cubic-bezier(.2,.8,.2,1) 650ms; }
.metric:nth-child(3) b { background: var(--red); }

.result-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 9px; }
.result-actions .button { min-height: 53px; }
.button--secondary { padding: 0 16px; color: var(--cream); border: 1px solid var(--hairline); background: transparent; }
.button--secondary:hover { background: rgba(241,231,211,.06); }
.button--danger { padding: 0 16px; color: #fff; background: var(--red-dark); }
.share-status { min-height: 16px; margin: -5px 0 0; text-align: center; color: var(--blue-bright); font-size: .67rem; }

.ad-slot { max-width: 920px; min-height: 90px; margin: 10px auto; place-items: center; border: 1px dashed var(--hairline); color: rgba(241,231,211,.25); font-size: .65rem; }
.ad-slot:not([hidden]) { display: grid; }
.footer--result { max-width: 920px; margin: 0 auto; }

.confirm-dialog {
  width: min(calc(100% - 32px), 440px);
  padding: 0;
  color: var(--cream);
  border: 1px solid rgba(241,231,211,.18);
  border-radius: 20px;
  background: var(--ink-2);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.confirm-dialog::backdrop { background: rgba(5, 10, 15, .75); backdrop-filter: blur(4px); }
.confirm-dialog form { padding: 23px; }
.dialog-index { color: var(--red); }
.confirm-dialog h2 { margin: 12px 0 8px; font: 500 1.75rem/1.05 Georgia, serif; letter-spacing: -.04em; }
.confirm-dialog p { margin: 0 0 20px; color: rgba(241,231,211,.56); font-size: .82rem; line-height: 1.5; }
.confirm-dialog form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.reference-reveal { animation: map-reveal 700ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes map-reveal { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

@media (max-height: 690px) and (max-width: 600px) {
  .screen--home { padding-top: max(10px, env(safe-area-inset-top)); }
  .brandbar { height: 34px; }
  .home-content { padding-top: 10px; }
  h1 { font-size: clamp(2.45rem, 12.5vw, 3.2rem); }
  .hook { margin-top: 15px; font-size: 1.22rem; }
  .intro { margin-bottom: 13px; font-size: .78rem; line-height: 1.38; }
  .button--start { min-height: 50px; }
  .home-art { bottom: 42px; opacity: .2; }
  .draw-header { min-height: 44px; }
  .timer { width: 48px; height: 48px; }
  .draw-actions .button { min-height: 48px; }
  .draw-note { display: none; }
  .screen--draw { gap: 8px; }
}

@media (min-width: 700px) {
  .screen--home { grid-template-columns: minmax(0, 1.1fr) .9fr; grid-template-rows: auto 1fr auto; padding-left: max(44px, env(safe-area-inset-left)); padding-right: max(44px, env(safe-area-inset-right)); }
  .brandbar, .footer--home { grid-column: 1 / -1; }
  .home-content { max-width: 680px; padding: 50px 0; }
  .home-art { position: relative; right: auto; bottom: auto; align-self: center; justify-self: center; width: min(40vw, 440px); height: 400px; opacity: .55; }
  .home-art svg { inset: 55px 0 0; }
  .ghost-number { font-size: 13rem; }
  .fine-print { max-width: 420px; }

  .screen--draw { max-width: 920px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
  .draw-stage { min-height: 420px; }

  .screen--result { padding-left: 32px; padding-right: 32px; }
  .result-layout { grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); grid-template-rows: auto auto auto; gap: 18px 24px; padding-top: 28px; }
  .result-visual { grid-row: 1 / 4; }
  .result-copy { grid-column: 2; grid-template-columns: 1fr; }
  .score-block { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .metrics { grid-column: 2; }
  .result-actions { grid-column: 2; }
  .map-card { aspect-ratio: .92 / 1; }
}

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

/* V2 — volontairement plus calme et minimale */
.screen--home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  background: var(--ink);
}

.home-content {
  width: 100%;
  max-width: 500px;
  padding: 0 0 5vh;
}

.home-content .eyebrow { margin-bottom: 18px; }
.home-content h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
.home-content .hook {
  max-width: 310px;
  margin: 24px 0 28px;
  color: rgba(241,231,211,.62);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.45;
}
.home-content .button--start { width: 100%; }
.home-content .fine-print {
  display: block;
  max-width: none;
  margin-top: 13px;
  text-align: center;
  color: rgba(241,231,211,.34);
}

.home-best {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1px 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(241,231,211,.11);
  color: rgba(241,231,211,.5);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-best strong { color: var(--cream); font: 500 1rem/1 ui-monospace, monospace; letter-spacing: 0; }
.home-best strong b { font-size: 1.4rem; }
.home-best small { grid-column: 1 / -1; color: var(--blue-bright); font-size: .72rem; letter-spacing: 0; text-transform: none; }

.screen--draw {
  max-width: 680px;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 10px;
}
.draw-header { min-height: 50px; }
.draw-header h2 { font-size: 1.35rem; }
.draw-stage {
  border-color: rgba(241,231,211,.13);
  border-radius: 18px;
  background: var(--ink-2);
  box-shadow: none;
}
.draw-actions { gap: 7px; }

.screen--result { background: var(--ink); }
.result-topline {
  max-width: 560px;
  margin: 0 auto;
  padding: 5px 0 10px;
  border-bottom: 0;
}
.result-layout {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  gap: 11px;
  padding: 4px 0 10px;
}
.result-visual,
.result-copy,
.metrics,
.result-actions { width: 100%; }
.map-card {
  aspect-ratio: 1.34 / 1;
  border-color: rgba(241,231,211,.12);
  border-radius: 18px;
  box-shadow: none;
  background: var(--ink-2);
}
.map-legend {
  right: 0;
  bottom: 5px;
  left: 0;
  gap: 20px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: .6rem;
}
.result-copy {
  display: grid;
  grid-template-columns: 118px minmax(0,1fr);
  gap: 15px;
  align-items: center;
}
.score-block {
  padding-right: 14px;
  border-right: 1px solid var(--hairline);
}
.score-block strong { font-size: 4rem; }
.score-block p span { font-size: .78rem; }
.verdict-block h2 { font-size: clamp(1.18rem, 5.2vw, 1.55rem); }
.metrics { gap: 6px; }
.metric {
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: rgba(241,231,211,.05);
}
.metric span { font-size: .58rem; }
.result-actions { gap: 7px; }
.result-actions .button { min-height: 50px; font-size: .78rem; white-space: nowrap; }
.local-scores {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(241,231,211,.11);
  border-radius: 14px;
  background: rgba(241,231,211,.025);
}
.save-score label,
.local-ranking h3 {
  display: block;
  margin: 0 0 8px;
  color: rgba(241,231,211,.62);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.save-score > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.save-score input {
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(241,231,211,.16);
  border-radius: 10px;
  outline: 0;
  background: var(--ink-2);
  color: var(--cream);
  font: 600 16px/1 system-ui, sans-serif;
}
.save-score input:focus { border-color: var(--blue-bright); }
.button--save { min-height: 48px; padding: 0 13px; background: var(--cream); color: var(--ink); font-size: .72rem; }
.save-score p { min-height: 14px; margin: 5px 0 0; color: var(--blue-bright); font-size: .66rem; }
.local-ranking { padding-top: 2px; border-top: 1px solid rgba(241,231,211,.08); }
.local-ranking h3 { margin-top: 10px; }
.local-ranking h3 span { float: right; color: rgba(241,231,211,.34); font-weight: 500; letter-spacing: 0; text-transform: none; }
.local-ranking ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.local-ranking li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 8px; align-items: center; min-height: 30px; color: rgba(241,231,211,.42); font: 500 .72rem/1 system-ui, sans-serif; }
.local-ranking li b { overflow: hidden; color: rgba(241,231,211,.78); text-overflow: ellipsis; white-space: nowrap; }
.local-ranking li strong { color: var(--cream); font-family: ui-monospace, monospace; }
.footer--result {
  justify-content: center;
  padding-top: 8px;
  border-top-color: rgba(241,231,211,.08);
  text-align: center;
}

@media (min-width: 700px) {
  .screen--home {
    display: flex;
    padding-left: max(44px, env(safe-area-inset-left));
    padding-right: max(44px, env(safe-area-inset-right));
  }
  .home-content { padding: 0; }
  .result-layout {
    display: flex;
    padding-top: 4px;
  }
  .map-card { aspect-ratio: 1.34 / 1; }
  .result-copy { grid-template-columns: 140px minmax(0,1fr); }
  .score-block { padding: 0 18px 0 0; border-right: 1px solid var(--hairline); border-bottom: 0; }
}
