:root {
  --oat: #E7E5DB; --white: #FFFFFF; --ink: #191C1F; --ink-soft: #43434B; --muted: #6B6B76;
  --blue: #006AFF; --blue-deep: #005CDE; --pale: #BCD6FF; --yellow: #FFD900; --green: #289A5F;
  --loss: #A8370C; --border: #D0CEC5;
  --display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --r-card: 26px; --r-hero: 32px;
  --sticker: 0 5px 0 var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--oat); color: var(--ink); font-family: var(--body); }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink); }
h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; font-size: 18px; }

.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.045em; color: var(--ink); text-decoration: none; }
.brand span { background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; margin-left: 6px; font-size: 22px; }
.live-pill { font-size: 13px; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--white); }
.live-pill.live { background: var(--ink); color: var(--yellow); }
.wallet { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wallet .name { background: none; border: 0; font-weight: 600; text-decoration: underline dotted; }
.wallet .bal { background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.refill { border: 2px solid var(--ink); background: var(--white); border-radius: 999px; padding: 6px 12px; }

main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 0 24px 24px; max-width: 1400px; margin: 0 auto; }
.below { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 18px; }

/* scorebug */
.scorebug { display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--white); border-radius: 18px 18px 0 0; padding: 10px 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.scorebug #bugMid { color: var(--yellow); }

/* stage */
.stage { position: relative; aspect-ratio: 16 / 9; min-height: 360px; border: 2px solid var(--ink); border-top: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--blue) 0 55%, var(--pale) 55% 58%, var(--oat) 58% 100%); background-size: cover; background-position: center; }
.stage.has-art { background-image: var(--arena); }
/* Pokémon staging: opponent full-body on the far pad (top right), player seen from behind on the near pad (bottom left). */
.pad { position: absolute; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #F4F2EA 0 45%, var(--oat) 46% 100%); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.pad-opp { right: 8%; top: 49%; width: 30%; height: 11%; }
.pad-me { left: -4%; bottom: -7%; width: 50%; height: 20%; }
.fighter { position: absolute; z-index: 2; }
.fighter.opp { right: 12%; bottom: 46%; width: 22%; height: 46%; }
.fighter.me { left: 2%; bottom: 0; width: 42%; height: 62%; }
.fighter .body { position: absolute; inset: 0; transition: transform .25s; transform-origin: 50% 100%; }
.fighter .body > img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; animation: breathe 3.2s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(25,28,31,.25)); }
.fighter .body > .rig { position: absolute; left: 50%; bottom: 8%; width: min(100%, 78%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid var(--ink); }
.fighter.opp .body > img { animation-delay: -1.6s; }
.fighter .body > video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .2s; }
.body.has-loop:not(.posed) > video.loop { opacity: 1; }
.body.has-loop:not(.posed) > img { opacity: 0; }
@keyframes breathe { 0%,100% { transform: translateY(0) scaleY(1) } 50% { transform: translateY(-1.5%) scaleY(1.01) } }
.body.talk > img { animation: talk .32s ease-in-out infinite; }
@keyframes talk { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-2%) rotate(-1deg) } }
.body.think > img { animation: think 1.4s ease-in-out infinite; }
@keyframes think { 0%,100% { transform: rotate(0) } 50% { transform: rotate(2deg) } }
.body.flinch > img { animation: flinch .5s; filter: drop-shadow(0 4px 0 rgba(25,28,31,.25)) brightness(1.15); }
@keyframes flinch { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-5%) } 40% { transform: translateX(4%) } 60% { transform: translateX(-3%) } }
.body.cheer > img { animation: cheer .6s ease-in-out 3; }
@keyframes cheer { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8%) } }
.body.sad > img { filter: saturate(.6) brightness(.92); }
.body.lunge-a { transform: translate(10%, -8%) scale(1.04); } .body.lunge-b { transform: translate(-12%, 6%) scale(1.04); }
.body.hit { animation: shake .45s; }
.body.ko { transition: transform .9s ease-in, opacity .9s ease-in; transform: translateY(60%); opacity: 0; }
@keyframes shake { 0%,100% { translate: 0 } 20% { translate: -9px 0 } 40% { translate: 8px 0 } 60% { translate: -6px 0 } 80% { translate: 4px 0 } }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.stage .plate-opp { position: absolute; left: 3%; top: 7%; z-index: 4; }
.stage .plate-me { position: absolute; right: 3%; bottom: 8%; z-index: 4; }
.plate { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: var(--sticker); padding: 10px 14px; width: clamp(240px, 30vw, 340px); position: relative; }
.plate .tab { position: absolute; top: -12px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; }
.plate-me .tab { background: var(--blue); color: var(--white); } .plate-opp .tab { background: var(--yellow); }
.plate .row1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plate .icon { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); align-self: center; object-fit: cover; }
.plate .nm { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.plate .par { font-size: 11px; color: var(--muted); }
.chip { font-size: 11px; font-weight: 600; border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px; background: var(--white); }
.chip.vibe-SUIT { background: #D9E4F5 } .chip.vibe-HYPE { background: #FFD1C2 } .chip.vibe-MONEY { background: #FFF1A8 }
.chip.vibe-TECH { background: #C8F0D6 } .chip.vibe-SOCIAL { background: #E9D5FF } .chip.vibe-MEME { background: #EEE }
.egobar { margin-top: 8px; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.egobar i { display: block; height: 100%; background: var(--green); border-right: 2px solid var(--ink); transition: width .7s cubic-bezier(.3,.7,.3,1), background .3s; }
.egobar i.mid { background: var(--yellow); } .egobar i.low { background: var(--loss); background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.15) 6px 9px); }
.plate .row3 { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }

.banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 5; background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 18px 28px; text-align: center; max-width: 80%; }
.banner .big { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1; }
.banner .small { font-size: 14px; margin-top: 8px; font-weight: 500; }

.callout { position: absolute; font-family: var(--display); font-weight: 800; font-size: 24px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; animation: pop 1.6s forwards; }
.callout.dmg { background: none; border: 0; box-shadow: none; font-size: 44px; color: var(--ink); -webkit-text-stroke: 1.5px var(--white); paint-order: stroke; animation: rise 1.4s forwards; }
.callout.viral { background: var(--yellow); font-size: 28px; } .callout.dragged { background: var(--ink); color: var(--yellow); }
.callout.mid { background: var(--white); } .callout.miss { background: var(--oat); } .callout.status { background: var(--white); font-size: 18px; } .callout.heal { background: var(--green); }
@keyframes pop { 0% { transform: scale(.6) rotate(-4deg); opacity: 0 } 15% { transform: scale(1.06) rotate(-4deg); opacity: 1 } 25% { transform: scale(1) rotate(-4deg) } 85% { opacity: 1 } 100% { opacity: 0; transform: translateY(-10px) rotate(-4deg) } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0 } 10% { opacity: 1 } 100% { transform: translateY(-40px); opacity: 0 } }

.watermark { position: absolute; right: 16px; top: 10px; text-align: right; font-size: 11px; font-weight: 600; color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.4); z-index: 4; max-width: 46%; }

/* roast meter */
.meter { display: flex; align-items: center; gap: 12px; background: var(--white); border: 2px solid var(--ink); border-top: 0; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.meter .track { flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--pale) 50%, var(--yellow)); border: 2px solid var(--ink); position: relative; }
.meter .puck { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: left .5s cubic-bezier(.3,1.4,.4,1); }

/* bottom band */
.bottom { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 12px; margin-top: 12px; }
.skills { border: 2px solid var(--ink); border-radius: 20px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.skills-a { background: var(--blue); color: var(--white); } .skills-b { background: var(--yellow); }
.skills .ttl { font-family: var(--display); font-weight: 800; font-size: 14px; }
.skill { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px; padding: 6px 10px; font-size: 13px; transition: transform .15s; }
.skill .sn { font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.skill .meta { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.skill.pick { background: var(--ink); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.skill.pick .meta { color: #ddd; } .skill.pick .chip { color: var(--ink); } .skill.pick .sn::before { content: '▶ '; }
.skill.empty { opacity: .45; text-decoration: line-through; }
.roastbox { background: var(--oat); border: 2px solid var(--ink); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.bubble { max-width: 88%; border: 2px solid var(--ink); border-radius: 18px; padding: 10px 14px; font-size: 17px; line-height: 1.35; font-weight: 500; position: relative; }
.bubble .who { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; margin-bottom: 2px; }
.bubble.a { background: var(--blue); color: var(--white); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.b { background: var(--yellow); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .score { position: absolute; top: -14px; right: -10px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; padding: 0 8px; transform: rotate(6deg); }
.bubble.bleep .txt { background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 800; padding: 0 8px; border-radius: 6px; }
.roastbox .hint { color: var(--muted); font-size: 14px; margin: auto; text-align: center; }

/* rail */
.rail { display: flex; flex-direction: column; gap: 16px; }
.betslip .count { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.betslip .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.side-btn { border: 2px solid var(--ink); border-radius: 18px; padding: 10px; text-align: left; background: var(--white); }
.side-btn .n { font-family: var(--display); font-weight: 800; font-size: 16px; display: block; }
.side-btn .m { font-size: 13px; font-variant-numeric: tabular-nums; }
.side-btn.a[aria-pressed=true] { background: var(--blue); color: var(--white); box-shadow: var(--sticker); }
.side-btn.b[aria-pressed=true] { background: var(--yellow); box-shadow: var(--sticker); }
.poolbar { display: flex; height: 12px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.poolbar .pa { background: var(--blue); } .poolbar .pb { background: var(--yellow); }
.amounts { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.amounts button { border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); padding: 4px 10px; font-size: 13px; }
.amounts input { width: 90px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px; font: inherit; }
.cta { width: 100%; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 12px; font-weight: 700; font-size: 16px; box-shadow: var(--sticker); }
.cta:disabled { opacity: .5; box-shadow: none; }
.fine { font-size: 12px; color: var(--muted); margin-top: 8px; }
.msg { font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 1em; }
.msg.err { color: var(--loss); } .msg.ok { color: #1D6B43; }
.pbp { flex: 1; min-height: 260px; display: flex; flex-direction: column; }
.pbp ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 420px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.pbp li b { font-weight: 700; }
.pbp li.t { font-family: var(--display); font-weight: 800; margin-top: 6px; }
.history, .leaders { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.history li { display: flex; justify-content: space-between; gap: 8px; }
.history button { border: 1.5px solid var(--ink); background: var(--white); border-radius: 999px; font-size: 12px; padding: 2px 8px; }
.leaders li { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.win { color: #1D6B43; font-weight: 600; } .lose { color: var(--loss); font-weight: 600; }
.foot { font-size: 12px; color: var(--muted); padding: 0 24px 24px; max-width: 1400px; margin: 0 auto; }
dialog { border: 2px solid var(--ink); border-radius: var(--r-card); max-width: min(720px, 92vw); }
dialog pre { white-space: pre-wrap; font-size: 12px; max-height: 60vh; overflow: auto; background: var(--oat); padding: 12px; border-radius: 12px; }

@media (max-width: 1100px) {
  main { grid-template-columns: 1fr; }
  .below { grid-template-columns: 1fr; }
  .bottom { grid-template-columns: 1fr 1fr; }
  .roastbox { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 600px) {
  .top { padding: 10px 16px; flex-wrap: wrap; } main { padding: 0 16px 16px; } .foot { padding: 0 16px 16px; }
  .stage { aspect-ratio: 4 / 5; }
  .plate { width: 176px; padding: 8px 10px; } .plate .nm { font-size: 14px; } .plate .par { display: none; }
  .pad-opp { right: 4%; top: 42%; width: 44%; height: 9%; } .fighter.opp { right: 6%; bottom: 53%; width: 40%; height: 36%; }
  .pad-me { left: -12%; bottom: -5%; width: 70%; height: 14%; } .fighter.me { left: -2%; width: 56%; height: 46%; }
  .stage .plate-opp { top: 4%; } .stage .plate-me { bottom: 3%; }
  .plate .row3 { gap: 6px; }
  .watermark { display: none; }
  .bottom { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- sign-in + wallet widget (web/wallet.jsx) ---- */
.pw-wallet { position: relative; }
.pw-btn { border: 2px solid var(--ink); border-radius: 999px; background: var(--white); padding: 6px 14px; font-weight: 600; }
.pw-btn:disabled { opacity: .5; }
.pw-signin, .pw-primary { background: var(--blue); color: var(--white); }
.pw-chip { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.pw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); }
.pw-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: min(380px, 92vw); background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pw-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pw-net { font-size: 12px; font-weight: 600; background: var(--pale); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.pw-addr { display: flex; gap: 8px; align-items: center; background: var(--oat); border-radius: 12px; padding: 8px 10px; }
.pw-addr code { font-size: 12px; overflow-wrap: anywhere; }
.pw-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pw-bals > div { border: 2px solid var(--ink); border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; }
.pw-bals > div:first-child { background: var(--pale); } .pw-bals > div:last-child { background: var(--yellow); }
.pw-bals b { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.pw-bals small { font-size: 11px; font-weight: 600; }
.pw-action { display: flex; gap: 8px; }
.pw-action input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; }
.pw-action .pw-btn { flex: 0 0 132px; }
.pw-wide { width: 100%; }
.pw-link { background: none; border: 0; text-decoration: underline; font-size: 13px; padding: 0; }
.pw-msg { margin: 0; font-size: 13px; font-weight: 600; color: #1D6B43; } .pw-err { color: var(--loss); }
.pw-fine { margin: 0; font-size: 12px; color: var(--muted); }

/* ---- nav + page transitions (landing <-> arena share fighter names) ---- */
.navlink { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }
@view-transition { navigation: auto; }
#ftr0 { view-transition-name: fighter-me; }
#ftr1 { view-transition-name: fighter-opp; }
.brand { view-transition-name: brand; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(fighter-me), ::view-transition-group(fighter-opp) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .9, .25, 1.1); }

/* ---- fight history ---- */
.below { grid-template-columns: 2fr 1fr 1fr; }
.fights-card { grid-row: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 12px; color: var(--muted); }
.fightlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-height: 620px; overflow: auto; padding: 4px 2px 6px; }
.fh { border: 2px solid var(--ink); border-radius: 18px; padding: 12px; background: var(--oat); box-shadow: 0 3px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; }
.fh-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.fh-side { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--display); font-size: 13px; position: relative; }
.fh-side img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); object-fit: cover; }
.fh-side.l img { filter: grayscale(1) opacity(.55); transform: rotate(-8deg); }
.fh-side.w img { box-shadow: 0 0 0 3px var(--yellow); }
.crownlet { position: absolute; top: -6px; right: 12%; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 800; padding: 0 6px; }
.fh-vs { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.fh-line { margin: 0; font-size: 14px; line-height: 1.35; background: var(--white); border-radius: 12px; padding: 8px 10px; border: 1.5px solid var(--border); }
.fh-line span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.fh-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 6px; }
.fh-foot button { border: 1.5px solid var(--ink); background: var(--white); border-radius: 999px; font-size: 12px; padding: 2px 10px; margin-left: 4px; }
dialog.replay { max-width: 640px; width: calc(100% - 32px); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 20px; }
dialog.replay form { display: flex; flex-direction: column; gap: 10px; max-height: 80vh; }
#replayOut { overflow: auto; }
.rp-turn { border-top: 1.5px dashed var(--border); padding: 10px 0; }
.rp-r { font-family: var(--display); font-weight: 800; font-size: 13px; }
.rp-line { display: flex; gap: 10px; margin-top: 6px; font-size: 14px; }
.rp-line img { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.rp-line p { margin: 2px 0 0; }
.rp-ego { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 1100px) { .below { grid-template-columns: 1fr; } .fights-card { grid-row: auto; } }

/* ---- alignment polish ---- */
.chip { display: inline-flex; align-items: center; justify-content: center; line-height: 1.3; white-space: nowrap; flex: none; align-self: center; height: auto; }
.skill .sn { align-items: center; }
.skill .sn > span:first-child { min-width: 0; }
.pbp ol { gap: 8px; padding-right: 4px; }
.pbp li.t { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pbp li.t::after { content: ''; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.pbp li.line { border-left: 4px solid var(--blue); padding: 6px 0 6px 10px; background: #F7F6F1; border-radius: 0 12px 12px 0; }
.pbp li.line.b { border-left-color: var(--yellow); }
.pbp li.line .who { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); padding-right: 8px; }
.pbp li.line .who b { color: var(--ink); }
.pbp li.line .q { margin: 3px 0 0; font-size: 14px; line-height: 1.4; padding-right: 8px; }
.pbp li.ev { font-size: 12.5px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.pbp li.ev::before { content: '›'; position: absolute; left: 3px; font-weight: 800; color: var(--ink); }
.chip.roast { background: var(--ink); color: var(--yellow); border-color: var(--ink); font-weight: 700; }
.sound { border: 2px solid var(--ink); background: var(--white); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.sound[aria-pressed="true"] { background: var(--yellow); }
