:root {
  color-scheme: light;
  --paper: #fbf6e9;
  --cream: #fffdf5;
  --ink: #24224d;
  --muted: #5d5675;
  --blue: #293aad;
  --blue-dark: #212d86;
  --border: #c7b9d3;
  --album: #eee3f4;
  --danger: #a22c45;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #244bd6; outline-offset: 4px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
h1, p, ol, dl, dd { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-header, .app-footer {
  width: min(100% - 44px, 1040px);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.app-header { flex-wrap: wrap; padding-block: 16px; border-bottom: 1px solid #d9cadd; }
.app-footer { padding-block: 15px; border-top: 1px solid #d9cadd; color: var(--muted); font-size: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 8px;
  transform: rotate(-8deg);
  background: var(--blue);
  color: #fff4d6;
  font-size: 21px;
  box-shadow: 2px 3px #d2c0df;
}
.brand-name { font-size: 17px; font-weight: 900; letter-spacing: .015em; line-height: 1.15; }
.mode-nav { display: flex; gap: 3px; padding: 3px; border: 1px solid #d8c9e3; border-radius: 999px; background: #f2e8f6; }
.mode-button { min-height: 39px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-weight: 740; font-size: 13px; }
.mode-button[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.mode-button:hover:not([aria-pressed="true"]) { background: #e3d4ef; }

.screen {
  width: min(100% - 44px, 940px);
  margin-inline: auto;
  padding-block: 30px 46px;
}
.screen h1 { font-size: clamp(36px, 7vw, 73px); font-weight: 950; letter-spacing: -.025em; line-height: 1.08; overflow-wrap: anywhere; }
.screen .eyebrow { margin-bottom: 7px; color: var(--blue-dark); font: 750 12px/1.25 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.intro { max-width: 680px; margin-bottom: 22px; }
.lede { max-width: 56ch; margin-top: 12px; color: var(--muted); }
.initial-screen { padding-top: 22px; }
.screen--lobby .intro h1 { max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 8px 16px; font-weight: 790; line-height: 1.2; }
.button--primary { color: var(--cream); background: var(--blue); box-shadow: 0 3px #1d296e; }
.button--primary:not(:disabled):hover { background: var(--blue-dark); }
.button--primary:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px #1d296e; }
.button--secondary { color: var(--blue-dark); border-color: var(--border); background: var(--cream); }
.button--secondary:not(:disabled):hover { background: #f1e8f7; }

[data-tier="0"] { --sticker: #e5edaa; --sticker-border: #adb773; }
[data-tier="1"] { --sticker: #f5d4de; --sticker-border: #c699a6; }
[data-tier="2"] { --sticker: #d5e7fa; --sticker-border: #a1b5d1; }
[data-tier="3"] { --sticker: #ebdbf6; --sticker-border: #b6a2c7; }
[data-tier="4"] { --sticker: #f7d9a7; --sticker-border: #c7a773; }
.album {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(7px, 2vw, 16px);
  padding: clamp(10px, 2vw, 20px);
  list-style: none;
  background: radial-gradient(#c4adce 15%, transparent 18%) 0 0 / 11px 11px, var(--album);
  border: 1px solid var(--border);
  border-radius: 12px 16px 15px 9px;
}
.formation {
  display: grid;
  grid-template-columns: 4fr 3fr 2.4fr 1.7fr;
  gap: 6px;
}
.formation-group { min-width: 0; padding: 7px; border: 1px solid var(--sticker-border); border-radius: 8px; background: var(--sticker); }
.formation-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 5px; margin-bottom: 4px; font-size: 12px; }
.formation-label span { color: var(--muted); }
.formation-slots { display: flex; gap: 4px; padding: 0; list-style: none; }
.formation-slot {
  flex: 1; min-width: 0; text-align: center; border: 1px solid var(--sticker-border); border-radius: 4px;
  background: var(--cream); font: 750 12px/1.65 var(--mono);
}
.formation-slot[data-status="current"] { color: var(--cream); background: var(--blue); border-color: var(--blue); }
.formation-slot[data-status="solved"] { color: #215941; background: #e5f4ea; }
.formation-slot[data-status="missed"] { color: var(--danger); background: #f7e2e8; }
.screen--round .formation, .screen--reveal .formation { margin-bottom: 12px; }
.finish-actions { margin: 0 0 14px; }
.sticker-slot {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  position: relative;
  gap: 2px;
  background: var(--sticker);
  border: 1px solid var(--sticker-border);
  border-radius: 7px;
  padding: clamp(4px, 1.2vw, 9px);
  box-shadow: 2px 3px #64527b2e;
  transform: rotate(-1.5deg);
}
.sticker-slot:nth-child(even) { transform: rotate(1.5deg); }
.sticker-slot--current { outline: 2px solid var(--blue); outline-offset: 2px; }
.sticker-slot--missed { --sticker: #e4dfd8; --sticker-border: #b9adac; }
.sticker-number { font: 750 11px/1.25 var(--mono); color: var(--blue-dark); }
.sticker-slot .portrait {
  display: grid;
  place-items: center;
  margin-block: 1px 4px;
  padding: 3px;
  height: clamp(42px, 10vw, 112px);
  border: 1px dashed #77678f;
  border-radius: 4px;
  background: #fffdf342;
  box-shadow: none;
  transform: none;
}
.sticker-slot .portrait-art { width: min(83%, 103px); max-height: 100%; }
.sticker-slot .portrait-spark { display: none; }
.sticker-slot--solved .portrait { border-style: solid; border-color: #675791; background: #fffdf37a; }
.sticker-slot--missed .portrait { filter: grayscale(1); opacity: .75; }
.sticker-tier { min-width: 0; font-weight: 840; line-height: 1.05; overflow-wrap: anywhere; }
.sticker-points { font: 710 11px/1.3 var(--mono); color: var(--blue-dark); white-space: nowrap; }
.sticker-player { font-size: 11px; font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }

.screen--round .album, .screen--reveal .album { margin-bottom: 16px; }
.screen--round .sticker-slot .portrait, .screen--reveal .sticker-slot .portrait { height: clamp(34px, 6vw, 68px); }
.round-layout { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(0, 1.65fr); gap: 16px; align-items: start; }
.round-card, .round-main {
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(11px, 2.5vw, 21px);
}
.round-card { background: var(--sticker, var(--album)); border-color: var(--sticker-border, var(--border)); }
.round-card--missed { background: #e4dfd8; }
.round-card--missed .portrait { filter: grayscale(1); }
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  background: #e7d9f3;
  color: #443478;
  border: 4px solid var(--cream);
  border-radius: 6px;
  box-shadow: 0 0 0 1px #b6a5ca, 3px 4px #2b235436;
  transform: rotate(-4deg);
  margin: 9px 3px 10px;
  padding: 7px;
}
.portrait--revealed { background: #dcdaf6; color: #3043b9; }
.portrait-art { display: block; width: min(100%, 155px); }
.portrait-spark { position: absolute; font-size: 16px; line-height: 1; }
.portrait-spark--top { top: 5px; right: 5px; }
.portrait-spark--bottom { bottom: 5px; left: 5px; }
.round-tier { font-size: 17px; font-weight: 850; }
.round-points { color: var(--muted); font-size: 13px; }
.timer { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 5px; background: var(--blue); color: var(--cream); font: 850 clamp(19px, 4vw, 34px)/1.12 var(--mono); letter-spacing: -.075em; }
.timer--urgent { background: var(--danger); }
.round-main h1 { font-size: clamp(32px, 6vw, 53px); margin-bottom: 12px; }
.career { max-height: min(260px, 36dvh); overflow: auto; margin-bottom: 10px; border-block: 1px solid #d6c8df; padding: 0; list-style: none; }
.career-row {
  display: grid;
  grid-template-columns: 109px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 6px 5px;
  font-size: 14px;
  border-bottom: 1px solid #e9ddec;
}
.career-row:last-child { border-bottom: 0; }
.career-row:nth-child(even) { background: #f1eaf6; }
.career-years { font: 750 12px/1.3 var(--mono); color: #493a76; white-space: nowrap; }
.career-club { font-weight: 710; overflow-wrap: anywhere; }
.loan { display: inline-block; border-radius: 4px; padding: 1px 4px; background: #e6daef; color: #4c4166; font-size: 10px; }
.career-source { font-size: 12px; }
.guess-form label { display: block; margin-bottom: 4px; font-weight: 740; font-size: 13px; }
.guess-controls { display: flex; gap: 6px; }
.guess-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9d8db5;
  border-radius: 6px;
  background: #fff;
  padding: 7px 9px;
  color: var(--ink);
  font-size: 16px;
}
.feedback { color: var(--danger); font-size: 13px; }
.feedback:not(:empty) { margin-top: 8px; }

@media (max-width: 620px), (max-height: 540px) and (pointer: coarse) {
  .screen.screen--round { padding-block-end: calc(28px + var(--guess-height, 76px) + var(--guess-bottom, 0px)); }
  .screen--practice .career { max-height: none; overflow: visible; }
  .guess-composer {
    position: fixed;
    z-index: 5;
    left: var(--guess-left, 0px);
    bottom: var(--guess-bottom, 0px);
    width: var(--guess-width, 100%);
    display: grid;
    justify-content: center;
    grid-template-columns: minmax(0, 600px);
    padding: 7px max(12px, env(safe-area-inset-right, 0px))
      calc(8px + max(0px, env(safe-area-inset-bottom, 0px) - var(--guess-bottom, 0px)))
      max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--border);
    background: var(--cream);
    box-shadow: 0 -4px 14px #24224d19;
  }
  .guess-composer label { margin-bottom: 3px; }
  .guess-composer .guess-controls { order: 1; }
  .guess-controls input { min-height: 46px; font-size: 18px; line-height: 1.2; }
  .guess-form .guess-composer .miss-pills { max-height: 54px; margin-block: 2px 4px; }
  .guess-composer .feedback:not(:empty) { margin: 0 0 4px; }
}

.scoreboard { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 7px; margin-bottom: 14px; }
.scoreboard > div { padding: 8px 12px; background: var(--cream); border: 1px solid var(--border); border-radius: 6px; }
.scoreboard dt { font: 750 11px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; }
.scoreboard dd { font-size: clamp(18px, 4vw, 35px); font-weight: 920; letter-spacing: -.06em; }
.scoreboard small { font-size: 12px; letter-spacing: 0; font-weight: 640; }

@media (max-width: 620px) {
  .formation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-header, .app-footer, .screen { width: calc(100% - 24px); }
  .app-header { padding-block: 9px; }
  .screen { padding-block: 19px 28px; }
  .intro { margin-bottom: 15px; }
  .lede { font-size: 14px; }
  .album { gap: 4px; padding: 8px 5px; }
  .sticker-slot { padding-inline: 3px; }
  .sticker-slot--current { outline-offset: 0; }
  .sticker-tier { font-size: 11px; min-height: 22px; }
  .sticker-points { font-size: 9px; }
  .sticker-player { font-size: 9px; }
  .screen--round .album, .screen--reveal .album { margin-bottom: 9px; }
  .screen--round .album .portrait, .screen--reveal .album .portrait { display: none; }
  .round-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .round-card { display: grid; grid-template-columns: minmax(0,1fr) auto 57px; align-items: center; gap: 2px 6px; padding: 7px 9px; }
  .round-card .eyebrow { margin: 0; font-size: 9px; }
  .round-card > .portrait, .round-portrait, .sticker-reveal { grid-area: 1 / 3 / span 3 / 4; }
  .round-card .portrait { margin: 0; border-width: 2px; padding: 1px; }
  .round-card .portrait-spark { display: none; }
  .round-card .round-tier { grid-row: 2; font-size: 14px; }
  .round-card .round-points { grid-row: 3; font-size: 11px; }
  .round-card .timer { grid-area: 1 / 2 / span 3 / 3; margin: 0; }
  .round-main { padding: 10px; }
  .round-main h1 { margin-bottom: 8px; }
  .career { max-height: min(179px, 29dvh); }
  .career-row { grid-template-columns: 85px minmax(0, 1fr); gap: 5px; padding: 4px 3px; font-size: 12px; }
  .career-years { font-size: 11px; }
  .scoreboard > div { padding-inline: 6px; }
  .scoreboard small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Collectible stickers */
[data-rarity="rare"] {
  --foil: linear-gradient(119deg, #bcd7fa 6%, #e6f1ff 27%, #fbffff 37%, #c1dafa 51%, #d7e6ff 82%);
}
[data-rarity="ultra-rare"] {
  --foil:
    radial-gradient(circle at 4px 5px, #fff 0 1px, transparent 2px) 0 0 / 19px 17px,
    radial-gradient(circle at 10px 6px, #a967cc 0 1px, transparent 1.8px) 0 0 / 23px 22px,
    linear-gradient(125deg, #cda8f0, #f7e7ff 33%, #ead9ff 55%, #d4b8f1 75%, #f9e8f7);
}
[data-rarity="premium"] {
  --foil: linear-gradient(125deg, #ff8dc7 1%, #ffd99a 22%, #f9ffc1 35%, #97f8d9 50%, #8be9ff 66%, #b7a5ff 83%, #fb9de2 100%);
}
.sticker-slot[data-rarity]:not(.sticker-slot--missed), .round-card[data-rarity]:not(.round-card--missed) {
  background: var(--foil, var(--sticker));
}
.sticker-topline { display: flex; min-height: 15px; align-items: center; justify-content: space-between; gap: 2px; }
.sticker-rarity { color: #413357; font: 780 10px/1.25 var(--mono); letter-spacing: .015em; }
.sticker-slot .sticker-rarity { white-space: nowrap; }
.hint-badge { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; color: #604100; background: #fff5b4; border: 1px solid #b38625; vertical-align: middle; }
.hint-badge svg { width: 13px; height: 13px; }
.portrait--illustrated { overflow: hidden; padding: 0; }
.portrait--illustrated .portrait-art { height: 100%; width: 100%; max-width: 216px; object-fit: contain; }
.sticker-slot .portrait--illustrated { padding: 0; }
.sticker-slot .portrait--illustrated .portrait-art { max-width: 100%; }
.round-card .portrait--illustrated { aspect-ratio: 1 / 1.1; }
.hint-controls { margin-top: 8px; }
.hint-controls .button { font-size: 13px; }
.hint-details {
  display: flex; flex-wrap: wrap; gap: 10px 21px; margin-bottom: 9px; padding: 8px 11px;
  border: 1px solid #ddbf6f; border-radius: 6px; background: #fff4c8;
}
.hint-details dt { color: #644a19; font: 740 10px/1.25 var(--mono); text-transform: uppercase; }
.hint-details dd { font-size: 14px; font-weight: 810; }
.art-credit { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; margin-top: 3px; }

.profile-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 19px; }
.profile-intro h1 { max-width: 13ch; }
.collection-count {
  color: #423565; background: #eee2f7; border: 1px solid #d6c0e6; border-radius: 8px;
  padding: 5px 11px; white-space: nowrap; font: 710 12px/1.25 var(--mono);
}
.collection-count strong { font-size: 18px; }
.profile-tabs { display: flex; gap: 5px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 13px; border-bottom: 1px solid #d9cadd; }
.profile-tabs .mode-button { border: 1px solid #dccde5; border-radius: 6px; }
.collection {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(147px, 1fr)); gap: 11px;
  list-style: none; padding: clamp(9px, 2vw, 17px); border: 1px solid var(--border); border-radius: 12px;
  background: radial-gradient(#c4adce 15%, transparent 18%) 0 0 / 11px 11px, var(--album);
}
.album-group + .album-group { margin-top: 17px; }
.album-group h2 { margin: 0 0 6px; font-size: 17px; }
.collection-slot { min-width: 0; }
.collection-card {
  height: 100%; padding: 7px 8px 8px; border: 1px solid #aa9bb9; border-radius: 7px;
  background: var(--foil, #e5edaa); box-shadow: 2px 3px #64527b2e;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .collection-card { transition: transform .19s ease-out, box-shadow .19s ease-out; }
  .collection-slot:hover { z-index: 1; }
  .collection-slot:hover .collection-card {
    transform: perspective(520px) translateY(-5px) rotateX(5deg) rotateZ(-2deg);
    box-shadow: 3px 8px 13px #44345636;
  }
  .collection-slot:nth-child(even):hover .collection-card {
    transform: perspective(520px) translateY(-5px) rotateX(5deg) rotateZ(2deg);
  }
}
.collection-card[data-rarity="common"], .rarity-key [data-rarity="common"] { background: #f5d4de; }
.collection-card strong { display: block; line-height: 1.16; overflow-wrap: anywhere; }
.collection-card .portrait {
  height: 123px; margin: 5px 0 6px; transform: none; border-width: 2px;
  border-color: #fffcf3; background: #fffcf385; box-shadow: none;
}
.collection-card .portrait-art { width: auto; max-width: 100%; height: 100%; }
.collection-meta { color: #423557; font: 680 10px/1.25 var(--mono); }
.rarity-key { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin-top: 13px; }
.rarity-key li { border: 1px solid #b7a7c6; border-radius: 6px; padding: 3px 7px; background: var(--foil, #e5edaa); font: 720 10px/1.25 var(--mono); }
.profile-empty, .profile-results, .profile-leagues { background: var(--cream); border: 1px solid var(--border); border-radius: 9px; padding: 13px; }
.profile-empty h2 { margin: 0 0 3px; font-size: 19px; letter-spacing: -.035em; }
.profile-empty p, .profile-note { color: var(--muted); font-size: 13px; }
.profile-empty button, .profile-note { margin-top: 10px; }
.profile-results, .profile-leagues { list-style: none; padding-block: 2px; padding-inline: 11px; }
.profile-results li, .profile-leagues li { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-block: 8px; border-bottom: 1px solid #e4d8e8; }
.profile-results li:last-child, .profile-leagues li:last-child { border-bottom: 0; }
.profile-results li div span { display: block; color: var(--muted); font-size: 12px; }
.profile-results li > strong { white-space: nowrap; font: 790 13px/1.2 var(--mono); }

.miss-pills {
  display: flex; flex-wrap: wrap; gap: 5px; list-style: none;
  margin-block: 8px; padding: 0;
}
.guess-form .miss-pills { max-height: 82px; overflow: auto; }
.miss-pills li {
  max-width: 100%; padding: 2px 8px; overflow-wrap: anywhere;
  border: 1px solid #dba7af; border-radius: 999px; background: #f9dfe4;
  color: #842637; font-size: 12px; font-weight: 710;
}
.miss-pills li span { font-weight: 900; }
.miss-pill--fresh { animation: miss-stamp .24s ease-out both; }
.sticker-reveal { animation: sticker-flip .38s cubic-bezier(.19,.72,.25,1) both; }
.missed-stamp, .result-stamp {
  display: inline-block; width: fit-content; border-radius: 4px; padding: 3px 6px;
  background: #e1edb9; color: #3b4b20; font: 800 10px/1.3 var(--mono); text-transform: uppercase;
}
.missed-stamp, .result-stamp--missed { background: #f9dfe4; color: #842637; }
.missed-stamp { margin-bottom: 7px; animation: miss-stamp .24s ease-out both; }
@keyframes miss-stamp { from { opacity: .45; transform: scale(1.14) rotate(-3deg); } }
@keyframes sticker-flip { from { opacity: .6; transform: perspective(400px) rotateY(-75deg) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .miss-pill--fresh, .missed-stamp, .sticker-reveal { animation: none; }
}

.rank-panel { border: 1px solid #c0add2; border-radius: 12px; background: #f2e9f7; padding: clamp(12px, 2.6vw, 24px); }
.rank-panel h2, .match-report h2 { margin: 0; font-size: clamp(18px, 3.5vw, 25px); line-height: 1.15; letter-spacing: -.015em; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rank-head span { color: #493a76; border: 1px solid #c2afd6; border-radius: 4px; padding: 2px 6px; font: 740 10px/1.3 var(--mono); }
.rank-percentile { color: var(--blue-dark); font-weight: 700; }
.rank-percentile strong { font-size: clamp(28px, 5vw, 47px); letter-spacing: -.035em; line-height: 1.35; }
.rank-chart { display: block; width: 100%; max-width: 620px; margin-inline: auto; overflow: visible; }
.rank-chart text { fill: var(--muted); font: 650 10px var(--mono); }
.rank-area { fill: #d9cae8; stroke: #a992c7; stroke-width: 1px; }
.rank-fill { fill: #a5a8ed; }
.rank-marker { fill: none; stroke: var(--blue-dark); stroke-width: 2px; }
.rank-pin { fill: var(--blue-dark); stroke: var(--cream); stroke-width: 2px; }
.rank-axis { stroke: #a18cb8; }
.rank-note, .rank-panel > p[role="status"] { margin-top: 4px; color: var(--muted); font-size: 12px; }
.rank-panel .button { margin-top: 6px; }

.match-report { margin-top: 24px; }
.match-report ol { padding: 0; margin-top: 9px; list-style: none; display: grid; gap: 6px; }
.report-row { border: 1px solid var(--border); border-radius: 9px; background: var(--cream); }
.report-row summary {
  display: grid; grid-template-columns: 55px minmax(0,1fr) auto; align-items: center;
  gap: clamp(7px, 2vw, 15px); padding: 7px; cursor: pointer; list-style: none;
}
.report-row summary::-webkit-details-marker { display: none; }
.report-sticker { border: 1px solid var(--sticker-border, #b9a5cb); border-radius: 5px; background: var(--foil, var(--sticker)); }
.report-sticker[data-rarity="very-common"] { --sticker: #e5edaa; }
.report-sticker[data-rarity="common"] { --sticker: #f5d4de; }
.report-sticker .portrait { height: 58px; margin: 1px; padding: 0; border: 0; box-shadow: none; transform: none; background: transparent; }
.report-sticker .portrait-art { height: 100%; max-width: 100%; object-fit: contain; }
.report-sticker .portrait-spark { display: none; }
.report-player strong { display: block; line-height: 1.2; overflow-wrap: anywhere; }
.report-rarity { display: inline-flex; align-items: center; gap: 5px; color: #493a76; font: 750 10px/1.3 var(--mono); }
.report-solve { display: grid; gap: 2px; max-width: 240px; margin-top: 4px; }
.report-solve:empty { display: none; }
.solve-caption, .solve-observed { color: var(--muted); font: 630 10px/1.2 var(--mono); }
.solve-meter { display: block; width: 100%; height: 8px; accent-color: var(--blue); }
.solve-meter::-webkit-meter-bar { border: 0; background: #e9ddf0; }
.solve-meter::-webkit-meter-optimum-value { background: #5357b6; }
.solve-meter::-moz-meter-bar { background: #5357b6; }
.report-outcome { display: grid; justify-items: end; gap: 2px; white-space: nowrap; font: 770 12px/1.3 var(--mono); }
.report-chevron { color: var(--blue-dark); }
.report-row[open] .report-chevron { transform: rotate(180deg); }
.report-details { padding: 9px 11px; border-top: 1px solid #e4d8e8; }
.report-details h3 { margin: 0 0 3px; font-size: 13px; }
.report-details .career { max-height: none; }

.profile-account { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 12px; }
.profile-account .profile-note { margin-top: 0; overflow-wrap: anywhere; }
.profile-account .button { min-height: 36px; font-size: 13px; }
.account-dialog {
  width: min(100% - 28px, 420px); border: 1px solid var(--border); border-radius: 12px;
  padding: 19px; color: var(--ink); background: var(--cream); box-shadow: 4px 5px #271f4940;
}
.account-dialog::backdrop { background: #24224d90; }
.account-dialog h2 { margin: 0 0 4px; line-height: 1.15; }
.account-dialog p { color: var(--muted); font-size: 14px; }
.account-dialog label { display: block; margin: 11px 0 4px; font-size: 13px; font-weight: 740; }
.account-dialog input { width: 100%; min-height: 42px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); }
.account-status:not(:empty) { margin-top: 8px; }

.share-dialog {
  width: min(100% - 28px, 510px); max-height: calc(100dvh - 28px);
  padding: clamp(10px, 3vw, 18px); border: 1px solid var(--border); border-radius: 12px;
  background: var(--cream); color: var(--ink); box-shadow: 4px 5px #271f4940;
}
.share-dialog::backdrop { background: #24224da0; }
.share-dialog h2 { margin: 0 0 8px; line-height: 1.15; }
.share-formats { display: flex; gap: 5px; margin-bottom: 9px; }
.share-formats .mode-button { border: 1px solid var(--border); border-radius: 6px; }
.share-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 55dvh; margin-inline: auto; }
.share-dialog .actions { gap: 6px; margin-top: 10px; }
.share-dialog .button { font-size: 13px; padding-inline: 10px; }
.share-status:not(:empty) { margin-top: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 620px) {
  .app-header { gap: 7px; }
  .brand { gap: 6px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { font-size: 14px; }
  .mode-nav .mode-button { min-height: 37px; padding-inline: 7px; font-size: 11px; }
  .sticker-slot .sticker-rarity { font-size: 8px; white-space: normal; }
  .sticker-slot .hint-badge { width: 14px; height: 14px; }
  .sticker-slot .hint-badge svg { width: 10px; height: 10px; }
  .collection { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .collection-card .portrait { height: 103px; }
  .collection-count { padding-inline: 6px; font-size: 10px; }
  .collection-count strong { font-size: 15px; }
  .hint-controls .button { min-height: 38px; }
}
