/* The /pip page: talk to Pip and play learning games with her. A chat-app layout: sidebar on the
   left (games, toys, settings), Pip's room across the top of the main column, the conversation
   below it and the message box at the bottom. On phones the sidebar becomes a slide-out menu. */
:root {
  --bg: #050505;
  --panel: #0e0e0e;
  --panel-2: #151515;
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --pip: #A3E635;
  --amber: #F9AB00;
  --maths: #22D3EE;
  --spelling: #F472B6;
  --quiz: #F9AB00;
  --reading: #A78BFA;
  --chemistry: #34D399;
  --physics: #60A5FA;
  --medical: #FB7185;
  --astronomy: #C4B5FD;
  --animals: #84CC16;
  --earth: #F97316;
  --geography: #2DD4BF;
  --history: #D4A373;
  --computing: #E879F9;
  --art: #FACC15;
  --inventions: #94A3B8;
  --languages: #C084FC;
  --sport: #EF4444;
  --biology: #6EE7B7;
  --plants: #BEF264;
  --oceans: #38BDF8;
  --weather: #7DD3FC;
  --environment: #22C55E;
  --psychology: #F9A8D4;
  --economics: #EAB308;
  --geology: #D6D3D1;
  --patterns: #38BDF8;
  --personality: #FB923C;
  --good: #4ade80;
  --bad: #f87171;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: var(--pip); }

.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.scrim { display: none; } /* the phone menu's backdrop; never a grid cell */

/* ---- sidebar ---- */
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; padding: 18px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; justify-content: space-between; }
.brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 26px; }
.brand span { font-weight: 800; font-size: 18px; color: var(--pip); }
.new-chat {
  width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(163, 230, 53, 0.45);
  background: rgba(163, 230, 53, 0.1); color: var(--pip); font-weight: 700; font-size: 15px; cursor: pointer; text-align: left;
}
.new-chat:hover { background: rgba(163, 230, 53, 0.18); }
.chat-list { display: grid; gap: 2px; max-height: 32vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.chat-item { display: flex; align-items: center; border-radius: 10px; }
.chat-item:hover, .chat-item.active { background: var(--panel-2); }
.chat-item.active { box-shadow: inset 2px 0 0 var(--pip); }
.chat-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 8px 10px; background: none; border: 0; cursor: pointer; text-align: left; }
.chat-open .t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-open .d { font-size: 11px; color: var(--faint); }
.chat-del { flex: none; width: 28px; height: 28px; margin-right: 4px; border-radius: 8px; border: 0; background: none; color: var(--faint); font-size: 18px; cursor: pointer; opacity: 0; }
.chat-item:hover .chat-del, .chat-del:focus-visible { opacity: 1; }
.chat-del:hover { color: var(--bad); background: rgba(248, 113, 113, 0.1); }
@media (hover: none) { .chat-del { opacity: 0.6; } }
.no-chats { font-size: 13px; color: var(--faint); }
.side h3 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.games { display: grid; gap: 10px; }
/* The game sections fold up; the header shows how many games are inside. */
.group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 0; margin-bottom: 4px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); user-select: none;
}
.group > summary::-webkit-details-marker { display: none; }
.group > summary::before { content: "▸"; font-size: 12px; transition: transform 0.2s; }
.group[open] > summary::before { transform: rotate(90deg); }
.group > summary:hover, .group > summary:focus-visible { color: var(--muted); }
.group > summary .count { margin-left: auto; letter-spacing: 0; text-transform: none; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.group[open] > .games { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .group > summary::before { transition: none; } }
.game {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left;
  padding: 12px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.game:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.game:active { transform: scale(0.98); }
.game.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--panel-2)); }
.game .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.game b { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.game b small { font-size: 12px; font-weight: 600; color: var(--c); }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 99px; transition: width 0.5s; }
.game .stars { font-size: 12px; color: var(--muted); margin-top: 5px; }
.tools { display: grid; gap: 8px; }
.tool {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--muted); text-align: left;
}
.tool:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.side .foot { margin-top: auto; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.side .foot a { text-decoration: none; }

/* ---- main column ---- */
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }
.topbar { display: none; }
.room {
  position: relative; flex: none; height: 34vh; min-height: 200px; max-height: 340px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(163, 230, 53, 0.16), transparent 60%), linear-gradient(#0a0a0a, #111);
  border-bottom: 1px solid var(--line);
}
.room::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.04)); pointer-events: none; }
/* Each game (and chat) has its own scene behind Pip; a new one fades in over the last. */
.room-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.room-layer {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  background:
    radial-gradient(ellipse at 50% 125%, var(--glow) 0%, transparent 62%),
    radial-gradient(circle at 12% 18%, var(--glow2) 0%, transparent 42%),
    radial-gradient(circle at 88% 30%, var(--glow2) 0%, transparent 38%),
    linear-gradient(#090909, #121212);
}
.room-layer.show { opacity: 1; }
.room-layer::after { content: ''; position: absolute; inset: 0; }
.room-layer.grid::after { background-image: linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px); background-size: 28px 28px; }
.room-layer.ruled::after { background-image: repeating-linear-gradient(transparent 0 30px, rgba(244, 114, 182, 0.09) 30px 31px); }
.room-layer.spots::after { background-image: radial-gradient(rgba(249, 171, 0, 0.1) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.room-layer.hex::after { background-image: radial-gradient(circle, rgba(52, 211, 153, 0.1) 2px, transparent 2.5px), radial-gradient(circle, rgba(52, 211, 153, 0.06) 2px, transparent 2.5px); background-size: 30px 26px; background-position: 0 0, 15px 13px; }
.room-layer.waves::after { background-image: repeating-radial-gradient(circle at 50% 120%, transparent 0 26px, rgba(96, 165, 250, 0.08) 26px 27px); }
.room-layer.pulse::after { background-image: linear-gradient(rgba(251, 113, 133, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 113, 133, 0.06) 1px, transparent 1px); background-size: 40px 40px; }
/* Patterns in the scene's own accent colour. */
.room-layer.dots::after { background-image: radial-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 2px, transparent 2.5px); background-size: 26px 26px; }
.room-layer.lines::after { background-image: repeating-linear-gradient(transparent 0 22px, color-mix(in srgb, var(--accent) 9%, transparent) 22px 24px); mask-image: linear-gradient(transparent 20%, #000 100%); }
.room-layer.grid-a::after { background-image: linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px); background-size: 34px 34px; }
.room-layer.diag::after { background-image: repeating-linear-gradient(45deg, transparent 0 18px, color-mix(in srgb, var(--accent) 7%, transparent) 18px 20px); }
.room-layer.shelf::after { background: repeating-linear-gradient(transparent 0 46px, rgba(167, 139, 250, 0.12) 46px 50px); mask-image: linear-gradient(transparent 30%, #000 100%); }
.glyph {
  position: absolute; font-weight: 800; color: var(--accent); opacity: 0.18; line-height: 1;
  animation: drift var(--d, 5s) ease-in-out infinite alternate;
}
.room-layer.stars .glyph { opacity: 0.35; font-weight: 400; animation-name: twinkle; }
@keyframes drift { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-14px) rotate(8deg); } }
@keyframes twinkle { from { opacity: 0.08; } to { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .glyph { animation: none; } .room-layer { transition: none; } }
.room .resting { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.levelup {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%) scale(0.9); z-index: 2; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--pip); color: #0b0b0b; font-weight: 800; font-size: 16px;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.levelup.show { opacity: 1; transform: translateX(-50%) scale(1); }

.thread { flex: 1; overflow-y: auto; padding: 24px 16px; scroll-behavior: smooth; }
.thread-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.welcome { text-align: center; color: var(--muted); padding: 12px 0 4px; }
.welcome h1 { color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 14px; }
.chip:hover { border-color: rgba(163, 230, 53, 0.5); }

.msg { display: flex; gap: 10px; align-items: flex-end; }
.msg .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(163, 230, 53, 0.16); }
.msg .body { max-width: min(560px, 82%); padding: 12px 15px; border-radius: 18px; line-height: 1.5; font-size: 15px; }
.msg.pip .body { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.you { justify-content: flex-end; }
.msg.you .body { background: rgba(249, 171, 0, 0.16); border-bottom-right-radius: 6px; }
.msg .body.level-intro { border-left: 3px solid var(--maths); background: rgba(34, 211, 238, 0.08); font-weight: 600; }
.msg .src { margin-top: 6px; font-size: 12px; color: var(--faint); }
.msg .src a { color: var(--pip); }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ---- game cards in the conversation ---- */
.card { border-top: 3px solid var(--c); }
.card .tag { font-size: 12px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; }
.card .q { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.card .visual { font-size: 26px; letter-spacing: 2px; margin: 6px 0 10px; line-height: 1.4; }
.card .sentence { color: var(--muted); margin-bottom: 12px; }
.card .picture { font-size: 72px; line-height: 1; text-align: center; margin: 8px 0 4px; }
.card .passage {
  font-size: 18px; line-height: 1.7; padding: 14px 16px; margin: 4px 0 14px; border-radius: 14px;
  background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.25);
}
.card .q.small { font-size: 18px; }
.ans.word { font-size: 22px; letter-spacing: 0.03em; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ans {
  padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 18px; font-weight: 700; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.ans:hover:not(:disabled) { border-color: var(--c); }
.ans:active:not(:disabled) { transform: scale(0.97); }
.ans:disabled { cursor: default; }
.ans.speaking { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); transform: scale(1.03); }
.ans.right { border-color: var(--good); background: rgba(74, 222, 128, 0.14); }
.ans.wrong { border-color: var(--bad); background: rgba(248, 113, 113, 0.12); }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.slot { width: 40px; height: 48px; border-radius: 10px; border-bottom: 3px solid var(--c); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; font-size: 22px; font-weight: 800; cursor: pointer; }
.slot.right { border-color: var(--good); color: var(--good); }
.slot.wrong { border-color: var(--bad); color: var(--bad); }
.tiles { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tile { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); font-size: 22px; font-weight: 800; cursor: pointer; }
.tile:hover:not(:disabled) { border-color: var(--c); }
.tile:disabled { opacity: 0.25; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.small-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.small-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.small-btn.go { background: var(--c); color: #0b0b0b; border-color: transparent; }
.result { margin-top: 12px; font-weight: 700; }
.result.good { color: var(--good); }
.result.bad { color: var(--bad); }
.fact { margin-top: 6px; color: var(--muted); font-size: 14px; }
/* Patterns: the sequence to read, big picture choices, and the 3 × 3 number grid. */
.seq { margin: 4px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.02em; color: #fff; word-break: break-word; }
.seq.big { font-size: 26px; letter-spacing: 0.08em; line-height: 1.5; }
.answers.big .ans { font-size: 26px; padding: 10px 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; margin: 6px 0 12px; }
.grid3 span { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 18px; }
.grid3 span:last-child { border-style: dashed; color: var(--c); }
/* About You: the chosen answer, with no right or wrong colour. */
.answers.wide { grid-template-columns: 1fr; }
.answers.wide .ans { text-align: left; padding: 11px 14px; }
.ans.picked { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: #fff; }
.check-row { margin-top: 8px; }
.check-row .small-btn { padding: 6px 12px; font-size: 13px; }
.check-row .small-btn:disabled { cursor: progress; opacity: 0.7; }
.check-note.ok { color: #7fd49b; }
.check-note.fixed { color: #f2c86b; }

/* ---- change game levels ---- */
.levels-dialog {
  width: min(520px, calc(100vw - 32px)); margin: auto; padding: 24px; border-radius: 20px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.levels-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.levels-dialog h2 { font-size: 20px; margin-bottom: 6px; }
.levels-dialog .sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.level-rows { display: grid; gap: 12px; }
.level-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; }
.level-row .name { font-weight: 700; }
.level-row select {
  width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--panel-2); color: #fff; font: 500 14px Inter, sans-serif;
}
.level-row .small-btn { padding: 8px 12px; }
.dialog-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.dialog-actions .spacer { flex: 1; }
.dialog-actions .go { --c: var(--pip); }
@media (max-width: 480px) { .level-row { grid-template-columns: 1fr auto; } .level-row .name { grid-column: 1 / -1; } }

/* ---- composer ---- */
.composer { flex: none; padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.composer form {
  max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; padding: 8px 8px 8px 16px;
  border-radius: 24px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.12);
}
.composer form:focus-within { border-color: rgba(163, 230, 53, 0.55); }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; color: #fff; font: 500 16px/1.4 Inter, sans-serif; padding: 8px 0; max-height: 140px; }
.composer textarea::placeholder { color: var(--faint); }
.composer button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pip); color: #0b0b0b; font-size: 17px; font-weight: 800; cursor: pointer; }
.composer button:disabled { opacity: 0.4; cursor: default; }
.composer .hint { max-width: 760px; margin: 8px auto 0; text-align: center; font-size: 12px; color: var(--faint); }

/* ---- phones ---- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(310px, 86vw); z-index: 20; transform: translateX(-100%); transition: transform 0.25s; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5); }
  .app.menu .side { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, 0.5); display: none; }
  .app.menu .scrim { display: block; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
  .topbar button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 18px; }
  .topbar .title { font-weight: 800; color: var(--pip); }
  .room { height: 26vh; min-height: 170px; }
  /* During a game the question gets the screen: Pip's room shrinks to a strip she walks along,
     between the thread and the message box. */
  .main.playing .thread { order: 1; }
  .main.playing .room { order: 2; height: 104px; min-height: 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .main.playing .composer { order: 3; padding-top: 10px; padding-bottom: 12px; }
  .main.playing .composer .hint { display: none; }
  .main.playing .levelup { top: 10px; }
  .main.playing .thread { padding-top: 16px; }
  .card .q { font-size: 20px; }
  .slot { width: 34px; height: 44px; font-size: 20px; }
  .tile { width: 42px; height: 42px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .thread { scroll-behavior: auto; } .typing span { animation: none; } }

/* ---- your results ---- */
.results-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.results-dialog h3 { font-size: 15px; margin: 20px 0 10px; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat .value { font-size: 34px; font-weight: 800; color: var(--pip); margin: 4px 0; font-variant-numeric: tabular-nums; }
.stat .value.long { font-size: 22px; line-height: 1.2; margin: 8px 0; }
.stat .note { font-size: 13px; line-height: 1.4; color: var(--muted); }
.tips { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.result-games { display: grid; gap: 8px; }
.result-game { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.result-game .level { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.settled { color: var(--pip); border-color: rgba(163, 230, 53, 0.35); }
.chip.climbing { color: var(--amber); border-color: rgba(249, 171, 0, 0.35); }
.results-dialog .fine { font-size: 12px; line-height: 1.5; color: var(--faint); margin-top: 10px; }
.traits { display: grid; gap: 14px; }
.trait .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.trait .score { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.trait .bar { position: relative; height: 8px; margin: 8px 0 5px; border-radius: 999px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14)); }
.trait .dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--pip); border: 2px solid var(--panel); transform: translate(-50%, -50%); }
.trait .ends { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); }
.trait.empty .bar { opacity: 0.5; }
@media (max-width: 480px) { .result-stats { grid-template-columns: 1fr; } .result-game { grid-template-columns: 1fr auto; } .result-game .chip { grid-column: 1 / -1; justify-self: start; } }
