@font-face { font-family: "Lilita One"; src: url("fonts/lilitaone-latin.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin.woff2") format("woff2"); font-weight: 400 700; font-display: block; }

:root {
  --ink: #2b0f1c; --cream: #fff6e3; --cream2: #f3e3c2; --pink: #ff6f9f; --pink2: #c6336a; --pinkL: #ffc2d6;
  --blue: #4a95ff; --blue2: #1f4fb0; --yellow: #ffd21f; --yellow2: #c08a00; --green: #5bd33f; --green2: #2a8a1a;
  --sl: 0px; --sr: 0px; --st: 0px; --sb: 0px;
  --outline: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink);
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #2f6fc2; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; font-family: "Fredoka", system-ui, sans-serif; color: var(--ink); }
#stage { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
#stage.rotated { width: 100vh; width: 100dvh; height: 100vw; transform-origin: 0 0; transform: translateX(100vw) rotate(90deg); }
canvas#game { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ------------------------------------------------------------------ screens */
#ui { position: absolute; inset: 0; display: none; z-index: 5; }
#ui.show { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#ui.overlay { background: rgba(20, 8, 30, 0.45); backdrop-filter: blur(3px); }
#ui button { font: inherit; cursor: pointer; }
#ui input, #ui select { font: inherit; color: var(--ink); }

.btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.05em;
  font-family: "Lilita One", sans-serif !important; letter-spacing: 0.02em; border: 0.18rem solid var(--ink); border-radius: 1rem;
  background: linear-gradient(#ffffff, #eadcc0); box-shadow: 0 0.32rem 0 var(--ink); color: var(--ink); padding: 0.45em 1.2em;
  transition: transform 0.06s, box-shadow 0.06s, filter 0.1s; min-height: 2.9rem; }
.btn::before { content: ""; position: absolute; left: 0.5em; right: 0.5em; top: 0.18em; height: 38%; border-radius: 1rem; background: rgba(255, 255, 255, 0.4); pointer-events: none; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(0.25rem); box-shadow: 0 0.07rem 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; filter: saturate(0.4); }
.btn b { font-weight: 400; }
.btn small { font-family: "Fredoka", sans-serif; font-size: 0.62em; font-weight: 600; opacity: 0.85; }
.btn.pink { background: linear-gradient(#ffb0cb, #ff5d93 60%, #e2457c); color: #fff; text-shadow: var(--outline); }
.btn.blue { background: linear-gradient(#a8d0ff, #4a95ff 60%, #2f77e6); color: #fff; text-shadow: var(--outline); }
.btn.yellow { background: linear-gradient(#fff3a0, #ffd21f 60%, #f0b400); }
.btn.go { background: linear-gradient(#b8f59a, #5bd33f 60%, #3cb22a); color: #fff; text-shadow: var(--outline); }
.btn.big { font-size: 1.45rem; width: 100%; min-height: 3.6rem; }
.btn.mid { font-size: 1.15rem; }
.btn.small { font-size: 1rem; padding: 0.3em 0.8em; min-height: 2.75rem; border-radius: 0.8rem; }
.btn.tiny { font-size: 0.85rem; padding: 0.15em 0.6em; min-height: 2.75rem; min-width: 2.75rem; border-radius: 0.7rem; box-shadow: 0 0.2rem 0 var(--ink); }

.card { background: var(--cream); border: 0.2rem solid var(--ink); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 rgba(43, 15, 28, 0.35); padding: 1.1rem 1.4rem; max-height: calc(100% - 2rem); overflow: auto; }
.card.narrow { width: min(30rem, calc(100% - 2rem)); }
.card h2, .bar h2 { font-family: "Lilita One", sans-serif; font-weight: 400; margin: 0 0 0.6rem; font-size: 1.7rem; letter-spacing: 0.02em; }
.card .actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.card .actions.col { flex-direction: column; align-items: stretch; }
.hint { font-size: 0.82rem; line-height: 1.35; opacity: 0.75; margin: 0.8rem 0 0; }

.seg { display: inline-flex; border: 0.16rem solid var(--ink); border-radius: 0.8rem; overflow: hidden; background: #fff; box-shadow: 0 0.18rem 0 var(--ink); }
.seg button { border: 0; background: transparent; padding: 0.35em 0.75em; font-family: "Lilita One", sans-serif !important; font-size: 0.95rem; min-height: 2.6rem; min-width: 2.75rem; }
.seg button + button { border-left: 0.12rem solid var(--ink); }
.seg button.on { background: linear-gradient(#ffd0e0, #ff7aa8); color: #fff; text-shadow: var(--outline); }
.seg button:disabled { opacity: 0.45; cursor: default; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.55rem 0; font-weight: 600; flex-wrap: wrap; }

/* main menu */
#ui.main { flex-direction: row; gap: 3vw; padding: calc(var(--st) + 1rem) calc(var(--sr) + 2rem) calc(var(--sb) + 1rem) calc(var(--sl) + 2rem); box-sizing: border-box; }
.title-wrap { display: flex; flex-direction: column; align-items: center; }
.title-worm { width: 9rem; height: 9rem; margin-bottom: -2.2rem; position: relative; z-index: 1; filter: drop-shadow(0 0.3rem 0 rgba(43, 15, 28, 0.3)); }
.logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 0.92; font-weight: 400; transform: rotate(-3deg); }
.logo .l1 { font-family: "Lilita One", sans-serif; font-size: 5.2rem; color: var(--pink); letter-spacing: 0.03em;
  text-shadow: 0 0.1em 0 var(--pink2), -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink), 4px 4px 0 var(--ink), 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 0 0.24em 0 var(--ink); }
.logo .l2 { font-family: "Lilita One", sans-serif; font-size: 1.9rem; color: var(--yellow); background: var(--ink); padding: 0.18em 0.8em 0.14em; border-radius: 0.6rem; margin-top: 0.5rem; transform: rotate(2deg); text-shadow: 0 0.08em 0 #b07a00; letter-spacing: 0.06em; box-shadow: 0 0.3rem 0 rgba(43, 15, 28, 0.35); }
.menu-col { display: flex; flex-direction: column; gap: 0.75rem; width: min(19rem, 42vw); }
.menu-col .btn.mid { align-self: center; min-width: 60%; }
.credit { position: absolute; bottom: calc(var(--sb) + 0.4rem); left: 0; right: 0; text-align: center; margin: 0; font-size: 0.75rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); opacity: 0.85; }
.build-id { font-size: 0.68rem; opacity: 0.7; letter-spacing: 0.02em; white-space: nowrap; }
.card > .build-id { margin: 0.6rem 0 0; text-align: center; color: inherit; opacity: 0.5; }

/* setup */
#ui.setup { justify-content: flex-start; align-items: stretch; padding: calc(var(--st) + 0.6rem) calc(var(--sr) + 0.8rem) calc(var(--sb) + 0.6rem) calc(var(--sl) + 0.8rem); box-sizing: border-box; background: linear-gradient(rgba(30, 14, 50, 0.35), rgba(30, 14, 50, 0.55)); }
.bar { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.bar h2 { flex: 1; margin: 0; color: #fff; text-shadow: var(--outline), 0 0.2rem 0 var(--ink); font-size: 2rem; text-align: center; }
.cols { flex: 1; display: flex; gap: 0.8rem; min-height: 0; }
.col { background: var(--cream); border: 0.2rem solid var(--ink); border-radius: 1.2rem; box-shadow: 0 0.4rem 0 rgba(43, 15, 28, 0.35); padding: 0.7rem; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; min-height: 0; }
.teams-col { flex: 1.45; }
.side-col { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.steppers { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.stepper button { width: 2.75rem; height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.7rem; background: linear-gradient(#fff, #eadcc0); box-shadow: 0 0.18rem 0 var(--ink); font-family: "Lilita One", sans-serif !important; font-size: 1.3rem; }
.stepper b { min-width: 1.6rem; text-align: center; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.4rem; }
.team { border: 0.16rem solid var(--ink); border-left: 0.6rem solid var(--tc); border-radius: 0.9rem; background: #fff; padding: 0.45rem 0.55rem; margin-bottom: 0.55rem; box-shadow: 0 0.2rem 0 rgba(43, 15, 28, 0.25); }
.team-head { display: flex; align-items: center; gap: 0.5rem; }
.swatch { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; border: 0.18rem solid var(--ink); background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 20%), var(--tc); box-shadow: 0 0.18rem 0 var(--ink); }
.tname { flex: 1; min-width: 0; height: 2.6rem; border: 0.14rem solid var(--ink); border-radius: 0.7rem; padding: 0 0.6rem; font-family: "Lilita One", sans-serif !important; font-size: 1.1rem; background: var(--cream); color: var(--tcd) !important; }
.team .seg button { font-size: 0.85rem; padding: 0.3em 0.55em; }
.worms { display: none; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-top: 0.45rem; }
.worms.open { display: grid; }
.wname { min-width: 0; height: 2.4rem; border: 0.12rem solid var(--ink); border-radius: 0.6rem; padding: 0 0.45rem; font-size: 0.95rem; font-weight: 600; background: var(--cream); }
.wname.off { opacity: 0.4; }
.worms .dice { grid-column: span 4; justify-self: center; }
.field { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; }
.field select, .land-row select { height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.8rem; padding: 0 0.6rem; background: #fff; font-family: "Lilita One", sans-serif !important; font-size: 1.05rem; box-shadow: 0 0.18rem 0 var(--ink); }
.land-card { display: flex; flex-direction: column; gap: 0.55rem; }
.preview { width: 100%; aspect-ratio: 480 / 174; border: 0.2rem solid var(--ink); border-radius: 0.8rem; image-rendering: auto; background: #3a78c9; box-sizing: border-box; }
.land-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.land-row select { flex: 1; min-width: 7rem; }
.newland { align-self: stretch; }

/* loading */
.progress { height: 1.2rem; border: 0.18rem solid var(--ink); border-radius: 1rem; background: #fff; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(#ffd0e0, #ff6f9f); transition: width 0.15s; }

/* results */
.result-card { width: min(36rem, calc(100% - 2rem)); text-align: center; }
.trophy { width: 4.2rem; height: 4.2rem; margin: -0.2rem auto 0.2rem; }
.win { color: var(--tc); text-shadow: var(--outline), 0 0.18rem 0 var(--ink); font-size: 2.1rem !important; }
.win-label { font-family: "Lilita One", sans-serif; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; margin-bottom: -0.3rem; }
.summary { width: 100%; border-collapse: collapse; font-weight: 600; font-size: 0.95rem; }
.summary th { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 0.85rem; opacity: 0.7; padding: 0.2rem; }
.summary td { padding: 0.35rem 0.3rem; border-top: 0.12rem dashed rgba(43, 15, 28, 0.2); }
.summary td:first-child { text-align: left; }
.dot { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--tc); border: 0.12rem solid var(--ink); margin-right: 0.45rem; vertical-align: -0.1rem; }

/* compact screens (phones in landscape) */
#stage.short .logo .l1 { font-size: 3.6rem; }
#stage.short .logo .l2 { font-size: 1.3rem; }
#stage.short .title-worm { width: 6rem; height: 6rem; margin-bottom: -1.5rem; }
#stage.short .btn.big { font-size: 1.15rem; min-height: 2.9rem; }
#stage.short .menu-col { gap: 0.5rem; }
#stage.short .bar h2 { font-size: 1.5rem; }
#stage.short .card h2 { font-size: 1.35rem; }
#stage.sq #ui.main { flex-direction: column; gap: 1.2rem; }
#stage.sq .menu-col { width: min(22rem, 80%); }
#stage.sq .cols { flex-direction: column; }
#stage.sq .teams-col { flex: 1.2; }
#stage.sq .side-col { flex: none; }

/* ------------------------------------------------------------------ touch controls */
#touch { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
#touch.on { display: block; }
#touch .tb { pointer-events: auto; position: absolute; display: flex; align-items: center; justify-content: center; border: 0.18rem solid rgba(43, 15, 28, 0.9);
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16) 70%); color: #fff; box-shadow: 0 0.18rem 0 rgba(43, 15, 28, 0.55);
  font-family: "Lilita One", sans-serif; font-size: 0.95rem; text-shadow: var(--outline); touch-action: none; -webkit-user-select: none; user-select: none; padding: 0; backdrop-filter: blur(2px); }
#touch .tb.down { transform: scale(0.92); background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.75), rgba(255, 210, 230, 0.45) 70%); }
#touch .tb svg { width: 55%; height: 55%; fill: #fff; stroke: var(--ink); stroke-width: 1.6; paint-order: stroke; }
#touch .tpad { position: absolute; left: calc(var(--sl) + 0.6rem); bottom: calc(var(--sb) + 0.5rem); width: 10.2rem; height: 10.2rem; pointer-events: none; }
#touch .tpad .tb { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
#touch .tpad .up { left: 3.35rem; top: 0; } #touch .tpad .down { left: 3.35rem; bottom: 0; }
#touch .tpad .left { left: 0; top: 3.35rem; } #touch .tpad .right { right: 0; top: 3.35rem; }
#touch .tact { position: absolute; right: calc(var(--sr) + 0.6rem); bottom: calc(var(--sb) + 0.5rem); width: 11rem; height: 9.6rem; pointer-events: none; }
#touch .fire { right: 0; bottom: 0; width: 5.6rem; height: 5.6rem; font-size: 1.25rem; background: radial-gradient(circle at 50% 35%, #ffb0b0, #ff4a3d 70%); }
#touch .fire.down { background: radial-gradient(circle at 50% 35%, #ffe0a0, #ff7a1a 70%); }
#touch .jump { right: 5.9rem; bottom: 0.2rem; width: 3.7rem; height: 3.7rem; background: radial-gradient(circle at 50% 35%, #b8f59a, #3cb22a 75%); }
#touch .flip { right: 4.4rem; bottom: 5.4rem; width: 3.4rem; height: 3.4rem; font-size: 0.85rem; background: radial-gradient(circle at 50% 35%, #a8d0ff, #2f77e6 75%); }
#touch .ttop { position: absolute; top: calc(var(--st) + 0.5rem); left: calc(var(--sl) + 0.5rem); right: calc(var(--sr) + 0.5rem); height: 0; pointer-events: none; }
#touch .pause { left: 0; top: 0; width: 2.9rem; height: 2.9rem; border-radius: 0.9rem; }
#touch .weap { right: 0; top: 0; width: 4rem; height: 4rem; border-radius: 1.1rem; flex-direction: column; background: rgba(43, 22, 72, 0.72); }
#touch .weap canvas { width: 2.8rem; height: 2.8rem; }
#touch .weap .tw-name { position: absolute; top: 100%; margin-top: 0.15rem; right: 0; white-space: nowrap; font-size: 0.72rem; }
#touch .chip { position: absolute; border-radius: 0.8rem; height: 2.75rem; padding: 0 0.7rem; font-size: 0.85rem; background: rgba(43, 22, 72, 0.72); top: 5.3rem; right: 0; }
#touch .chip.bounce { top: 8.3rem; }
#touch .chip.tab { right: 4.4rem; top: 0; }
#touch .chip[hidden] { display: none; }
#touch.idle .tpad, #touch.idle .tact, #touch.idle .weap, #touch.idle .chip { opacity: 0.35; }
#touch.panel .tpad, #touch.panel .tact, #touch.panel .chip { visibility: hidden; }
#touch.cursor .fire span { font-size: 0.8rem; }
#stage.tiny #touch .tpad { transform: scale(0.85); transform-origin: 0 100%; }
#stage.tiny #touch .tact { transform: scale(0.85); transform-origin: 100% 100%; }

/* ------------------------------------------------------------------ online play (ui/online*.js) */
.card .center, .center { text-align: center; }
.card .actions.stack { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 0.9rem; }
.card .actions.stack .btn { width: 100%; box-sizing: border-box; }
.card .actions.stack .join-row .btn { width: auto; }
.online-hub, .online-join, .online-msg { }
.field input.tname { flex: none; width: 100%; box-sizing: border-box; font-size: 1.15rem; }
.join-row { display: flex; gap: 0.6rem; align-items: center; justify-content: center; }
.code-in { flex: none !important; width: 8.5rem; text-align: center; letter-spacing: 0.25em; text-transform: uppercase; font-size: 1.3rem !important; }
.room-code { font-family: "Lilita One", sans-serif; font-size: 3.2rem; letter-spacing: 0.22em; text-align: center; color: var(--pink2); text-shadow: 0 0.1em 0 var(--ink); margin: -0.2rem 0 0.2rem; padding-left: 0.22em; }
.net-error { color: #b0123c; font-weight: 700; margin: 0.5rem 0; text-align: center; }
.net-note { text-align: center; margin-top: 0.7rem; }
.card .progress[hidden] { display: none; }
.online-lobby .bar h2 { font-size: 1.8rem; }
.online-lobby .bar h2 .code { color: var(--yellow); letter-spacing: 0.12em; }
.chatbtn { position: relative; padding: 0.3em 0.7em; }
.chatbtn svg { fill: var(--pink); }
.net-chip svg { fill: #fff; }
.chatbtn svg, .net-chip svg { width: 1.4rem; height: 1.4rem; stroke: var(--ink); stroke-width: 1.6; paint-order: stroke; }
.badge { position: absolute; top: -0.4rem; right: -0.35rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.2rem; border-radius: 0.6rem; background: #ff3b3b; border: 0.12rem solid var(--ink); color: #fff;
  font: 400 0.72rem/1.05rem "Lilita One", sans-serif; text-align: center; box-sizing: border-box; font-style: normal; }
.badge[hidden] { display: none; }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; border: 0.16rem solid var(--ink); border-radius: 0.9rem; background: #fff; padding: 0.35rem 0.6rem; margin-bottom: 0.6rem; box-shadow: 0 0.2rem 0 rgba(43, 15, 28, 0.25); }
.invite-code { font-family: "Lilita One", sans-serif; font-size: 2rem; letter-spacing: 0.2em; color: var(--pink2); padding-left: 0.1em; }
.invite-btns { display: flex; gap: 0.5rem; }
.invite-btns [hidden] { display: none; }
.lobby-note { border: 0.14rem solid var(--ink); border-radius: 0.7rem; background: #fff3c4; padding: 0.4rem 0.65rem; font-weight: 600; margin-bottom: 0.6rem; }
.lobby-note[hidden] { display: none; }
.member { margin-bottom: 0.7rem; }
.member.away .mname { opacity: 0.55; }
.member-head { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.3rem; min-height: 2.75rem; }
.mname { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; }
.live { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #b9b0a0; border: 0.12rem solid var(--ink); flex: none; }
.live.on { background: var(--green); }
.badge-host, .badge-ready, .badge-wait { font-family: "Lilita One", sans-serif; font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.12rem 0.55rem; border-radius: 1rem; border: 0.12rem solid var(--ink); }
.badge-host { background: var(--yellow); }
.badge-ready { background: #b8f59a; }
.badge-wait { background: #e8dcc0; opacity: 0.85; }
.member-head .btn { margin-left: auto; }
.team .tlabel { flex: 1; min-width: 0; font-family: "Lilita One", sans-serif; font-size: 1.1rem; color: var(--tcd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-head small { font-weight: 600; opacity: 0.7; white-space: nowrap; }
i.swatch { display: inline-block; width: 2rem; height: 2rem; box-shadow: 0 0.12rem 0 var(--ink); }
.my-actions { display: flex; gap: 0.6rem; margin: 0 0 0.7rem; flex-wrap: wrap; }
.host-only { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-weight: 700; margin-top: 0.3rem; }
.online-lobby .field select:disabled, .online-lobby .land-row select:disabled { opacity: 0.6; }
.online-lobby .normal-only[hidden] { display: none !important; }
.online-lobby .mode-field .gamekind { display: flex; }
.online-lobby .mode-field .gamekind button { flex: 1; }
.online-lobby .mode-field .multisel { width: 100%; margin-top: 0.4rem; }
.online-lobby .multi-info { margin-top: 0.4rem; background: #fff; border: 0.12rem solid rgba(43, 15, 28, 0.25); border-radius: 0.6rem; padding: 0.4rem 0.6rem; }
.online-lobby .multi-info .mi-text { margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 600; }
.online-lobby .multi-info .mi-goal { font-weight: 700; opacity: 0.8; }

#netlayer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
#netlayer > * { pointer-events: auto; }
.net-banner { position: absolute; top: calc(var(--st) + 0.6rem); left: 50%; transform: translateX(-50%); pointer-events: none !important; padding: 0.3rem 1.1rem; border-radius: 1.2rem; border: 0.18rem solid var(--ink);
  background: var(--cream); font-family: "Lilita One", sans-serif; font-size: 1.15rem; box-shadow: 0 0.25rem 0 rgba(43, 15, 28, 0.4); white-space: nowrap; }
.net-banner[hidden], .net-hud[hidden], .net-chat[hidden], .net-modal[hidden] { display: none; }
.net-toasts { position: absolute; top: calc(var(--st) + 3.6rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.35rem; pointer-events: none !important; max-width: 90%; }
.net-toast { padding: 0.25rem 0.9rem; border-radius: 0.9rem; border: 0.16rem solid var(--ink); background: rgba(255, 246, 227, 0.96); font-weight: 600; font-size: 0.92rem; box-shadow: 0 0.2rem 0 rgba(43, 15, 28, 0.35); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-hud { position: absolute; top: calc(var(--st) + 0.5rem); left: calc(var(--sl) + 0.5rem); display: flex; align-items: center; gap: 0.45rem; pointer-events: none !important; }
#stage.coarse .net-hud { left: calc(var(--sl) + 8.4rem); }
#stage.coarse .net-hud [data-act="menu"] { display: none; }
.net-chip { pointer-events: auto; position: relative; height: 2.75rem; min-width: 2.75rem; padding: 0 0.7rem; border-radius: 0.8rem; border: 0.18rem solid rgba(43, 15, 28, 0.9); background: rgba(43, 22, 72, 0.72); color: #fff;
  font-family: "Lilita One", sans-serif; font-size: 0.95rem; text-shadow: var(--outline); box-shadow: 0 0.18rem 0 rgba(43, 15, 28, 0.55); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.net-chip:active { transform: translateY(0.12rem); }
.net-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 0.13rem solid var(--ink); background: #b9b0a0; display: inline-block; }
.net-dot[data-s="open"] { background: var(--green); }
.net-dot[data-s="connecting"], .net-dot[data-s="reconnecting"] { background: var(--yellow); }
.net-dot[data-s="closed"] { background: #ff4a3d; }
.net-chat { position: absolute; right: calc(var(--sr) + 0.8rem); bottom: calc(var(--sb) + 0.8rem); width: min(25rem, calc(100% - 1.6rem)); max-height: calc(100% - 3.5rem); display: flex; flex-direction: column; padding: 0.7rem 0.9rem; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.chat-head h2 { margin: 0; font-size: 1.4rem; }
.chat-log { flex: 1; min-height: 5rem; max-height: 13rem; overflow-y: auto; background: #fff; border: 0.14rem solid var(--ink); border-radius: 0.7rem; padding: 0.35rem 0.5rem; font-size: 0.92rem; scrollbar-width: thin; }
#stage.short .chat-log { max-height: 7rem; min-height: 3.5rem; }
.chat-msg { margin: 0.15rem 0; line-height: 1.3; word-break: break-word; }
.chat-msg b { font-family: "Lilita One", sans-serif; font-weight: 400; color: var(--blue2); }
.chat-msg.mine b { color: var(--pink2); }
.chat-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.chat-in { flex: 1; min-width: 0; height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.8rem; padding: 0 0.7rem; background: #fff; font-size: 1rem; font-family: "Fredoka", sans-serif; -webkit-user-select: text; user-select: text; }
.net-modal { position: absolute; inset: 0; background: rgba(20, 8, 30, 0.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.picker { width: min(30rem, calc(100% - 2rem)); display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; }
.picker .hint { margin: -0.2rem 0 0.5rem; }
.picker-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.picker .team-head .btn { margin-left: auto; }
#stage.short .room-code { font-size: 2.2rem; }
#stage.short .invite-code { font-size: 1.5rem; }
#stage.short .online-lobby .bar h2 { font-size: 1.4rem; }

/* ------------------------------------------------------------------ schemes (ui/schemes.js: manager + editor) */
.scheme-row { display: flex; gap: 0.5rem; align-items: center; }
.scheme-row select { flex: 1; min-width: 0; }
.scheme-info { list-style: none; margin: 0.35rem 0 0; padding: 0; font-size: 0.82rem; font-weight: 600; line-height: 1.35; opacity: 0.8; }
.scheme-info:empty { display: none; }
.scheme-info li + li { margin-top: 0.1rem; }
.scheme-screen .sec { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: 0.03em; margin: 0.2rem 0 0.4rem; color: var(--pink2); }
.scheme-list .sec:not(:first-child) { margin-top: 0.9rem; }
.scheme-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; width: 100%; box-sizing: border-box; text-align: left; min-height: 2.9rem; padding: 0.35rem 0.7rem;
  margin-bottom: 0.4rem; border: 0.16rem solid var(--ink); border-radius: 0.9rem; background: #fff; box-shadow: 0 0.2rem 0 rgba(43, 15, 28, 0.25); color: var(--ink); }
.scheme-item b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.1rem; }
.scheme-item small { font-size: 0.78rem; font-weight: 600; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.scheme-item.on { background: linear-gradient(#ffe6ef, #ffc2d6); box-shadow: 0 0.2rem 0 var(--pink2); }
.scheme-detail { gap: 0.4rem; }
.scheme-title { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.6rem; margin: 0; word-break: break-word; }
.scheme-detail .tag { margin: -0.2rem 0 0; }
.scheme-sum { list-style: none; margin: 0.3rem 0; padding: 0; font-weight: 600; font-size: 0.92rem; line-height: 1.4; }
.scheme-sum li { padding: 0.15rem 0; border-top: 0.1rem dashed rgba(43, 15, 28, 0.2); }
.scheme-sum li:first-child { border-top: 0; }
.scheme-msg { margin: 0.3rem 0; padding: 0.35rem 0.6rem; border: 0.14rem solid var(--ink); border-radius: 0.7rem; background: #fff3c4; font-weight: 600; font-size: 0.9rem; }
.scheme-msg[hidden] { display: none; }
.bar-msg { margin: -0.2rem 0 0.5rem; }
.scheme-detail .actions { margin-top: 0.4rem; }
.scheme-detail .pair { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.namebox { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.scheme-name { flex: 1; min-width: 8rem; height: 2.75rem; box-sizing: border-box; border: 0.16rem solid var(--ink); border-radius: 0.8rem; padding: 0 0.7rem; background: var(--cream);
  font-family: "Lilita One", sans-serif !important; font-size: 1.15rem; color: var(--ink) !important; -webkit-user-select: text; user-select: text; }
.bar .scheme-name { background: #fff; }
.tabs { margin-bottom: 0.7rem; }
.tabs button { min-width: 6rem; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr)); gap: 0.7rem; align-items: start; }
.opt-card { border: 0.16rem solid var(--ink); border-radius: 0.9rem; background: #fff; padding: 0.5rem 0.7rem 0.4rem; box-shadow: 0 0.2rem 0 rgba(43, 15, 28, 0.25); margin-bottom: 0.7rem; }
.opt-grid .opt-card { margin-bottom: 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.25rem 0; border-top: 0.1rem dashed rgba(43, 15, 28, 0.2); flex-wrap: wrap; }
.opt-card .sec + .opt { border-top: 0; }
.opt-l { font-weight: 700; flex: 1 1 8rem; }
.opt-l small { font-weight: 600; opacity: 0.7; }
.opt .seg button { font-size: 0.85rem; padding: 0.3em 0.55em; }
.stp { display: inline-flex; align-items: center; gap: 0.2rem; }
.stp button { width: 2.75rem; height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.7rem; background: linear-gradient(#fff, #eadcc0); box-shadow: 0 0.18rem 0 var(--ink);
  font-family: "Lilita One", sans-serif !important; font-size: 1.3rem; padding: 0; color: var(--ink); }
.stp button:active:not(:disabled) { transform: translateY(0.14rem); box-shadow: 0 0.04rem 0 var(--ink); }
.stp button:disabled { opacity: 0.35; cursor: default; box-shadow: 0 0.1rem 0 var(--ink); }
.stp b { min-width: 2.6rem; text-align: center; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; }
.more-btn { margin: 0.2rem 0 0.7rem; }
.wtable { border: 0.16rem solid var(--ink); border-radius: 0.9rem; background: #fff; overflow: hidden; }
.wrow { display: grid; grid-template-columns: minmax(9rem, 1.3fr) repeat(4, minmax(8.3rem, 1fr)); align-items: center; gap: 0.3rem; padding: 0.2rem 0.5rem; border-top: 0.1rem dashed rgba(43, 15, 28, 0.2); }
.wrow:nth-child(odd) { background: rgba(255, 246, 227, 0.7); }
.whead { position: sticky; top: 0; z-index: 1; border-top: 0; background: var(--cream2) !important; font-family: "Lilita One", sans-serif; font-size: 0.85rem; opacity: 1; text-align: center; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.whead span:first-child { text-align: left; }
.wep-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; min-width: 0; }
.wicon { width: 2rem; height: 2rem; flex: none; }
.wrow .stp { justify-content: center; }
#stage.sq .opt-grid { grid-template-columns: 1fr; }
#stage.short .scheme-title { font-size: 1.3rem; }
#stage.short .scheme-sum { font-size: 0.85rem; }
.edit-col { flex: 1; min-width: 0; }

/* CPU teams (M4): the Human / CPU switch, the skill row, the CPU chip and the online lobby's computer section */
.cpu-tag { display: inline-block; font-family: "Lilita One", sans-serif; font-size: 0.7rem; letter-spacing: 0.05em; line-height: 1; padding: 0.18rem 0.4rem; border-radius: 0.4rem; border: 0.1rem solid var(--ink); background: var(--tcd, #5a3a6e); color: #fff; text-shadow: var(--outline); vertical-align: middle; }
.cpu-row { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.45rem; flex-wrap: wrap; }
.cpu-row small { flex: 1 1 8rem; min-width: 0; font-weight: 600; opacity: 0.7; }
.cpu-row select, .cpu-add select { height: 2.5rem; border: 0.14rem solid var(--ink); border-radius: 0.7rem; padding: 0 0.5rem; background: #fff; font-family: "Lilita One", sans-serif !important; font-size: 0.98rem; box-shadow: 0 0.14rem 0 var(--ink); }
.cpu-row select:disabled { opacity: 0.7; box-shadow: none; }
.team.cpu { background: #f4eefc; }
.member.cpus .mname { color: var(--pink2); }
.quick .row .seg button { min-width: 2.6rem; }
.level-blurb { min-height: 1.2em; }
.picker.cpu-add .seg { display: flex; }
.picker.cpu-add .seg button { flex: 1; }
.swatches { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.swatches .swatch { width: 2.5rem; height: 2.5rem; }
.swatches .swatch.on { outline: 0.2rem solid var(--ink); outline-offset: 0.12rem; }
.team-head .cpu-skill { max-width: 9.5rem; min-width: 0; }
.my-actions [hidden] { display: none; }

/* ------------------------------------------------------------------ single player (ui/singleplayer.js, M5) */
#ui.sp:not(.overlay) { justify-content: flex-start; align-items: stretch; padding: calc(var(--st) + 0.6rem) calc(var(--sr) + 0.8rem) calc(var(--sb) + 0.6rem) calc(var(--sl) + 0.8rem); box-sizing: border-box; background: linear-gradient(rgba(30, 14, 50, 0.35), rgba(30, 14, 50, 0.55)); }
.bar-spacer { width: 5.5rem; flex: none; }
.bar .lbbtn, .actions .lbbtn { padding: 0.25em 0.7em; }
.lbbtn svg { width: 1.6rem; height: 1.6rem; }
.sp-hub-body, .sp-list-body, .sp-dm-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; display: flex; flex-direction: column; gap: 0.7rem; }
.sp-label { font-family: "Lilita One", sans-serif; font-size: 0.95rem; color: #fff; text-shadow: var(--outline); white-space: nowrap; }
.card .sp-label { color: var(--ink); text-shadow: none; opacity: 0.75; display: block; margin-bottom: 0.2rem; }
.sp-team-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sp-team-pick { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sp-team { display: inline-flex; align-items: center; gap: 0.35rem; border: 0.16rem solid var(--ink); border-radius: 2rem; background: #fff; padding: 0.25rem 0.75rem 0.25rem 0.4rem; min-height: 2.75rem; font-family: "Lilita One", sans-serif !important; font-size: 0.95rem; box-shadow: 0 0.18rem 0 var(--ink); }
.sp-team .dot { margin: 0; }
.sp-team.on { background: linear-gradient(#fff6c0, #ffd21f); transform: translateY(-0.08rem); }
.sp-teamchip { display: inline-flex; align-items: center; gap: 0.3rem; font-family: "Lilita One", sans-serif; color: var(--tcd); }
.sp-teamchip .dot { margin: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.sp-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.15rem; min-height: 6.4rem; border: 0.2rem solid var(--ink); border-radius: 1.2rem; padding: 0.7rem 0.9rem; text-align: left;
  box-shadow: 0 0.38rem 0 var(--ink); color: #fff; text-shadow: var(--outline); overflow: hidden; transition: transform 0.06s, box-shadow 0.06s; }
.sp-tile::after { content: ""; position: absolute; right: -1.2rem; top: -1.2rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.sp-tile:active { transform: translateY(0.25rem); box-shadow: 0 0.1rem 0 var(--ink); }
.sp-tile b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.45rem; line-height: 1.05; }
.sp-tile small { font-weight: 600; font-size: 0.82rem; }
.sp-tile.mission { background: linear-gradient(#ffb0cb, #ff5d93 60%, #e2457c); }
.sp-tile.training { background: linear-gradient(#b8f59a, #5bd33f 60%, #3cb22a); }
.sp-tile.timeattack { background: linear-gradient(#fff3a0, #ffc21f 60%, #f0a400); }
.sp-tile.deathmatch { background: linear-gradient(#ffb59a, #ff6a3d 60%, #d9472a); }
.sp-tile.multi { background: linear-gradient(#a8d0ff, #4a95ff 60%, #2f77e6); }
.sp-tile.quick { background: linear-gradient(#d8c8ff, #8e6ff0 60%, #6a4fd0); }
.sp-meter { display: block; width: 100%; height: 0.6rem; border: 0.14rem solid var(--ink); border-radius: 1rem; background: rgba(255, 255, 255, 0.55); overflow: hidden; margin-top: 0.2rem; }
.sp-meter i { display: block; height: 100%; background: linear-gradient(#fff6c0, #ffd21f); }
.sp-meter.big { height: 1rem; margin: 0.4rem 0; }
.sp-career { display: flex; gap: 0.5rem 1.2rem; flex-wrap: wrap; justify-content: center; background: var(--cream); border: 0.18rem solid var(--ink); border-radius: 1rem; padding: 0.5rem 0.8rem; box-shadow: 0 0.3rem 0 rgba(43, 15, 28, 0.35); font-weight: 600; font-size: 0.9rem; }
.sp-career b, .dm-stats b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; }
.sp-note { margin: 0; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); font-weight: 600; font-size: 0.9rem; text-align: center; }
.sp-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.6rem; }
.sp-entry { display: flex; align-items: center; gap: 0.6rem; border: 0.18rem solid var(--ink); border-radius: 1rem; background: var(--cream); padding: 0.45rem 0.6rem; min-height: 3.6rem; text-align: left; box-shadow: 0 0.28rem 0 rgba(43, 15, 28, 0.45); transition: transform 0.06s; }
.sp-entry:active { transform: translateY(0.18rem); }
.sp-entry .num { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 0.16rem solid var(--ink); background: linear-gradient(#ffd0e0, #ff7aa8); color: #fff; text-shadow: var(--outline); display: flex; align-items: center; justify-content: center; font-family: "Lilita One", sans-serif; font-size: 1.05rem; }
.sp-list.training .sp-entry .num { background: linear-gradient(#d8ffc8, #5bd33f); }
.sp-list.timeattack .sp-entry .num { background: linear-gradient(#fff6c0, #ffc21f); }
.sp-list.multi .sp-entry .num { background: linear-gradient(#cfe4ff, #4a95ff); }
.sp-entry .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-entry .txt b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-entry .txt small { font-weight: 600; font-size: 0.78rem; opacity: 0.7; }
.sp-entry .side { flex: none; display: flex; align-items: center; }
.sp-entry.locked { background: #d9ccb4; color: rgba(43, 15, 28, 0.6); box-shadow: 0 0.18rem 0 rgba(43, 15, 28, 0.3); }
.sp-entry.locked .num { background: #a99a86; }
.sp-entry.shake { animation: sp-shake 0.35s; }
@keyframes sp-shake { 20% { transform: translateX(-0.3rem); } 40% { transform: translateX(0.3rem); } 60% { transform: translateX(-0.2rem); } 80% { transform: translateX(0.15rem); } }
.medal { width: 2.2rem; height: 2.2rem; }
.medal.big { width: 3.2rem; height: 3.2rem; flex: none; }
.medal.huge { width: 4.6rem; height: 4.6rem; flex: none; animation: sp-pop 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sp-pop { from { transform: scale(0.2) rotate(-25deg); opacity: 0; } }
.lock { width: 1.9rem; height: 1.9rem; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: 0.2em; }
.best { font-family: "Lilita One", sans-serif; font-size: 0.95rem; white-space: nowrap; }
.best.none { opacity: 0.4; }
/* briefing */
.brief-card { width: min(36rem, calc(100% - 2rem)); }
.brief-kicker { font-family: "Lilita One", sans-serif; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.brief-card h2 { margin-bottom: 0.4rem; }
.objective { margin: 0 0 0.5rem; background: #fff3c4; border: 0.14rem solid var(--ink); border-radius: 0.7rem; padding: 0.4rem 0.65rem; font-weight: 600; }
.briefing { margin: 0 0 0.6rem; line-height: 1.4; font-size: 0.95rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.chip { display: inline-flex; align-items: center; font-weight: 700; font-size: 0.8rem; background: #fff; border: 0.12rem solid var(--ink); border-radius: 1rem; padding: 0.15rem 0.6rem; }
.sp-status { display: flex; align-items: center; gap: 0.7rem; margin: 0.3rem 0 0.5rem; }
.sp-status b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; display: block; }
.sp-status small { display: block; font-weight: 600; font-size: 0.8rem; opacity: 0.7; }
.sp-status.times, .res-times { justify-content: center; gap: 1.6rem; display: flex; flex-wrap: wrap; text-align: center; }
.res-times { margin: 0.4rem 0; }
.res-times b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.6rem; display: block; }
.res-times small { font-weight: 700; font-size: 0.78rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; }
.sp-help { margin: 0.4rem 0; background: #d8ffc8; border: 0.14rem solid var(--ink); border-radius: 0.7rem; padding: 0.4rem 0.65rem; font-weight: 600; font-size: 0.9rem; }
.sp-help.soft { background: #fff; opacity: 0.85; }
.sp-players { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.sp-players > div { flex: 1; min-width: 10rem; }
.sp-select { width: 100%; height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.8rem; padding: 0 0.6rem; background: #fff; font-family: "Lilita One", sans-serif !important; font-size: 1.05rem; box-shadow: 0 0.18rem 0 var(--ink); }
/* deathmatch */
.sp-dm-body { align-items: center; }
.dm-card { width: min(34rem, 100%); box-sizing: border-box; max-height: none; }
.dm-card h3 { font-family: "Lilita One", sans-serif; font-weight: 400; margin: 0.8rem 0 0.2rem; font-size: 1.2rem; }
.dm-rank { display: flex; flex-direction: column; align-items: center; }
.dm-rank small { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; font-size: 0.8rem; }
.dm-rank b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 2.3rem; color: var(--pink2); text-shadow: 0 0.08em 0 var(--ink); line-height: 1.1; }
.dm-rank span { font-weight: 700; opacity: 0.7; }
.dm-rank.small b { font-size: 1.8rem; }
.dm-stats { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; }
.dm-foes { margin: 0.2rem 0 0; padding-left: 1.2rem; font-weight: 600; line-height: 1.7; }
/* results */
.sp-res.is-lose .win { color: #8a96a6; }
.sp-res.is-win .win { color: var(--green); }
.res-medal { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.3rem 0; text-align: left; }
.res-medal b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.4rem; display: block; }
.res-medal small { font-weight: 600; opacity: 0.7; }
.res-best { font-family: "Lilita One", sans-serif; font-size: 1.3rem; color: var(--pink2); margin: 0.2rem 0; animation: sp-pop 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.res-stats { display: flex; justify-content: center; gap: 0.4rem 1.2rem; flex-wrap: wrap; font-weight: 600; font-size: 0.85rem; margin: 0.5rem 0 0.2rem; opacity: 0.85; }
.res-awards { text-align: left; margin-top: 0.5rem; border-top: 0.12rem dashed rgba(43, 15, 28, 0.25); padding-top: 0.4rem; }
.res-awards summary { font-family: "Lilita One", sans-serif; font-size: 1.05rem; cursor: pointer; line-height: 2.5rem; min-height: 2.5rem; }
.res-awards ul { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.res-awards li { display: flex; flex-direction: column; border-left: 0.35rem solid var(--yellow); background: #fff; border-radius: 0.5rem; padding: 0.25rem 0.55rem; }
.res-awards li.bad { border-left-color: #b9b0a0; }
.res-awards li b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 0.95rem; }
.res-awards li span { font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
#stage.short .sp-tile { min-height: 4.6rem; padding: 0.5rem 0.7rem; }
#stage.short .sp-tile b { font-size: 1.15rem; }
#stage.short .sp-tile small { font-size: 0.72rem; }
#stage.short .sp-career { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
#stage.short .sp-entry { min-height: 3rem; padding: 0.3rem 0.5rem; }
#stage.short .res-times b { font-size: 1.3rem; }
#stage.short .medal.huge { width: 3.4rem; height: 3.4rem; }
#stage.short .dm-rank b { font-size: 1.8rem; }
#stage.sq .sp-grid { grid-template-columns: repeat(2, 1fr); }
.land-card .landsel { height: 2.75rem; border: 0.16rem solid var(--ink); border-radius: 0.8rem; padding: 0 0.6rem; background: #fff3c4; font-family: "Lilita One", sans-serif !important; font-size: 1.05rem; box-shadow: 0 0.18rem 0 var(--ink); }
.sp-res .actions .btn.mid { font-size: 1.02rem; padding: 0.4em 0.95em; }
