:root {
  --ink: #2d1f16;
  --paper: #fff6e4;
  --accent: #d8452f;
  --navy: #27407a;
  --gold: #f1c232;
  font-size: clamp(13px, calc(1.9vmin + 5px), 22px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f4e4c4; }
body {
  font-family: ui-rounded, "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
#stage { position: fixed; inset: 0; }
#stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button { pointer-events: auto; }

.top {
  position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.chip {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.3rem 0.8rem; font-weight: 700; box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35);
  white-space: nowrap;
}
.chip .k { font-weight: 600; opacity: 0.75; }
.chip b { font-size: 1.1em; }
.objective {
  margin: 0 auto; white-space: normal; text-align: center; max-width: 60%;
  background: #fff; line-height: 1.25;
}
.icon {
  width: 2.5rem; height: 2.5rem; min-width: 40px; min-height: 40px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35); padding: 0;
}
.icon svg { width: 60%; height: 60%; }
.icon .x { display: none; }
.icon.off .x { display: inline; }
.icon.off .wave { display: none; }

.bottom {
  position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.7rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem;
}
.bottom .spacer, .bottom .legend { flex: 1 1 0; }
.legend {
  display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.78rem; font-weight: 700;
  align-self: flex-end;
}
.legend span {
  background: rgba(255, 246, 228, 0.92); border: 1.5px solid rgba(45, 31, 22, 0.55);
  border-radius: 0.5rem; padding: 0.12rem 0.4rem; transition: transform 0.2s, background 0.2s;
}
.legend span.on { background: var(--gold); border-color: var(--ink); transform: translateY(-3px); }

.primary {
  background: var(--accent); color: #fff; border: 3px solid var(--ink); border-radius: 1rem;
  padding: 0.55rem 1.4rem; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em;
  box-shadow: 0 5px 0 var(--ink); min-height: 48px;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.2s;
}
.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.primary:disabled { filter: grayscale(0.7) brightness(1.1); opacity: 0.6; cursor: default; }
.primary .key { font-size: 0.55em; font-weight: 700; opacity: 0.85; }
#throwBtn { flex: 0 0 auto; }
#throwBtn:not(:disabled) { animation: nudge 1.6s ease-in-out infinite; }
#throwBtn.bonus { background: var(--navy); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

#toast {
  position: absolute; top: 3.6rem; left: 50%; transform: translate(-50%, -10px);
  background: var(--ink); color: #fff; padding: 0.35rem 0.9rem; border-radius: 0.6rem;
  font-weight: 700; opacity: 0; transition: opacity 0.25s, transform 0.25s; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.steps { position: absolute; right: 0.6rem; bottom: 5.2rem; }

#pop {
  position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%) scale(0.6);
  text-align: center; opacity: 0; pointer-events: none;
}
#pop .name {
  font-size: 2.6rem; font-weight: 900; color: #fff; letter-spacing: 0.04em;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}
#pop .ko { font-size: 0.6em; color: var(--gold); }
#pop .sub {
  display: inline-block; margin-top: 0.3rem; background: var(--paper); border: 2px solid var(--ink);
  border-radius: 999px; padding: 0.2rem 0.9rem; font-weight: 800; font-size: 1.05rem;
}
#pop.bonus .sub { background: var(--gold); }
#pop.show { animation: pop 1.6s ease-out forwards; }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  25% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

.rot {
  position: absolute; top: 50%; left: 0.6rem; transform: translateY(-50%);
  width: 3.2rem; height: 3.2rem; min-width: 48px; min-height: 48px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); font-size: 1.3rem; padding: 0;
  box-shadow: 0 4px 0 var(--ink);
}
.rot.right { left: auto; right: 0.6rem; }
.rot.pulse { animation: pulse 1s ease-in-out infinite; background: var(--gold); }
@keyframes pulse { 50% { transform: translateY(-50%) scale(1.15); } }

#pullTag {
  position: absolute; transform: translate(-50%, calc(-100% - 18px));
  background: var(--gold); border: 3px solid var(--ink); border-radius: 0.8rem;
  padding: 0.3rem 0.8rem; font-weight: 900; font-size: 1.1rem; min-height: 40px;
  box-shadow: 0 4px 0 var(--ink); animation: bob 0.8s ease-in-out infinite;
}
#pullTag::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--ink);
}
@keyframes bob { 50% { margin-top: -5px; } }

.overlay {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(244, 228, 196, 0.25), rgba(60, 40, 20, 0.35));
}
.card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 1.2rem;
  padding: 1.1rem 1.8rem 1.3rem; text-align: center; max-width: min(28rem, 88vw);
  box-shadow: 0 8px 0 rgba(45, 31, 22, 0.8);
}
.card h1 { margin: 0 0 0.3rem; font-size: 2.6rem; color: var(--navy); letter-spacing: 0.02em; }
.card h1 + .subtitle {
  margin: -0.1rem 0 0.6rem; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
}
@media (max-height: 520px), (max-width: 480px) {
  .card h1 { font-size: 2.1rem; }
  .card h1 + .subtitle { font-size: 1rem; letter-spacing: 0.22em; }
}
.card h2 { margin: 0 0 0.3rem; font-size: 2rem; color: var(--accent); }
.card p { margin: 0.2rem 0 0.8rem; line-height: 1.35; }
.card .small { font-size: 0.8rem; opacity: 0.7; margin: 0.7rem 0 0; }
.primary.big { font-size: 1.4rem; padding: 0.55rem 2.2rem; }
.stats { display: flex; justify-content: center; gap: 1.6rem; margin: 0.2rem 0 1rem; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 1.8rem; color: var(--navy); }
.stats span { font-size: 0.85rem; opacity: 0.75; }

/* ---------------- ?slice=windmill experiment ---------------- */
.throwwrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.throwhint {
  font-size: 0.78rem; font-weight: 800; background: rgba(255, 246, 228, 0.95); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 0.08rem 0.6rem; white-space: nowrap;
}
#throwBtn.held { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); animation: none; }
#throwBtn { touch-action: none; }
.wallet span { margin: 0 0.15rem; }
.wallet span:first-child { color: var(--accent); }
.wallet span:last-child { color: #a8740a; }
.wallet b { color: var(--ink); }
.bonustag { position: absolute; right: 0.6rem; bottom: 7.4rem; background: var(--navy); color: #fff; border-color: var(--ink); }
.steps { z-index: 1; }

#gauge {
  position: absolute; left: 50%; bottom: 6.6rem; transform: translateX(-50%);
  width: min(20rem, 70vw); text-align: center; pointer-events: none;
}
#gauge .glabel {
  display: inline-block; font-weight: 900; font-size: 1.2rem; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0.6rem; padding: 0.05rem 0.7rem; margin-bottom: 0.3rem;
}
#gauge .track {
  position: relative; display: grid; grid-template-columns: 30fr 40fr 30fr; height: 2rem;
  border: 3px solid var(--ink); border-radius: 0.7rem; overflow: hidden; box-shadow: 0 4px 0 var(--ink);
}
#gauge .z { display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: var(--ink); opacity: 0.8; }
#gauge .soft { background: #cfe3f5; }
#gauge .steady { background: #fff1c4; border-left: 2px dashed var(--ink); border-right: 2px dashed var(--ink); }
#gauge .strong { background: #f7c0b0; }
#gauge .z.on { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
#gauge .needle {
  position: absolute; top: -3px; bottom: -3px; width: 6px; margin-left: -3px; left: 0;
  background: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px #fff;
}

#roomHud { position: absolute; inset: 0; pointer-events: none; }
#roomHud button { pointer-events: auto; }
.roomcoins { position: absolute; top: 3.6rem; left: 0.6rem; }
.pad {
  position: absolute; left: 0.8rem; bottom: 0.8rem; width: 9.6rem; height: 9.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 0.2rem;
}
.pd {
  pointer-events: auto; border: 3px solid var(--ink); border-radius: 0.8rem; background: rgba(255, 246, 228, 0.9);
  font-size: 1.1rem; padding: 0; min-width: 40px; min-height: 40px; touch-action: none;
  box-shadow: 0 3px 0 var(--ink);
}
.pd.on { background: var(--gold); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pd.up { grid-column: 2; grid-row: 1; }
.pd.left { grid-column: 1; grid-row: 2; }
.pd.right { grid-column: 3; grid-row: 2; }
.pd.down { grid-column: 2; grid-row: 3; }
.small-btn {
  position: absolute; top: 3.6rem; right: 0.6rem; background: var(--paper); border: 2px solid var(--ink);
  border-radius: 0.7rem; padding: 0.2rem 0.8rem; font-weight: 800; min-height: 40px; box-shadow: 0 3px 0 var(--ink);
}
.act { position: absolute; right: 1rem; bottom: 1rem; font-size: 1.25rem; min-width: 8rem; min-height: 56px; touch-action: none; }
.act.ready { background: var(--navy); animation: nudge 1s ease-in-out infinite; }

#fade { position: fixed; inset: 0; background: #fff3dc; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
#fade.on { opacity: 1; }

@media (max-height: 520px) {
  .pad { width: auto; height: auto; bottom: 0.4rem; left: 0.4rem; grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); gap: 3px; }
  .pd { min-width: 38px; min-height: 38px; font-size: 0.9rem; border-width: 2px; }
  .act { bottom: 0.6rem; }
  #gauge { bottom: 6.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  #throwBtn:not(:disabled), .act.ready, .rot.pulse, #pullTag { animation: none; }
  #fade { transition: none; }
}
body[data-mode="room"] .steps, body[data-mode="roomExit"] .steps { top: 6.3rem; bottom: auto; left: 0.6rem; right: auto; }
body[data-mode="room"] .bonustag, body[data-mode="roomExit"] .bonustag { top: 8.8rem; bottom: auto; left: 0.6rem; right: auto; }

/* ---------------- ?slice=puzzle experiment ---------------- */
.scorechip b { color: var(--navy); }
.rulechip {
  position: absolute; left: 0.6rem; bottom: 3.4rem; max-width: min(24rem, 46vw);
  background: rgba(255, 246, 228, 0.95); border: 1.5px solid var(--ink); border-radius: 0.7rem;
  padding: 0.2rem 0.6rem; font-size: 0.74rem; font-weight: 800; line-height: 1.25;
}
#branchBox {
  position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: max-content; max-width: 96vw;
}
#branchBox .blabel {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0.7rem; padding: 0.15rem 0.8rem;
  font-weight: 900; box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35);
}
.brrow { display: flex; gap: 0.6rem; }
.brbtn { font-size: 1.1rem; padding: 0.45rem 1rem; color: var(--ink); }
.brbtn.a { background: #f1c232; }
.brbtn.b { background: #5b8ee6; }
.roomcoins small { font-size: 0.7em; opacity: 0.7; font-weight: 700; }
body[data-mode="pzroom"] .steps, body[data-mode="roomExit"] .steps { top: 6.3rem; bottom: auto; left: 0.6rem; right: auto; }
body[data-mode="pzroom"] .bonustag { top: 8.8rem; bottom: auto; left: 0.6rem; right: auto; }
@media (max-height: 520px) {
  .rulechip { bottom: 3rem; font-size: 0.68rem; }
  .brbtn { font-size: 0.95rem; padding: 0.3rem 0.8rem; }
}

/* ?slice=puzzle: power throw (Nak zone) + axis mirror */
#gauge .nakzone {
  position: absolute; top: 0; bottom: 0; right: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #d8452f 0 6px, #f08a73 6px 12px);
  color: #fff; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.04em; border-left: 2px solid var(--ink);
  text-shadow: 0 1px 0 var(--ink);
}
#gauge.risk .glabel { background: #d8452f; color: #fff; }
#pop.nak .name { color: #d8452f; }
.act.mir { bottom: 5rem; background: #b87333; }
.act.mir.ready { background: #b87333; animation: nudge 1s ease-in-out infinite; }
.roomcoins b.dark { color: #51607a; }
.roomcoins b.lit { color: #c77d00; }
@media (max-height: 520px) {
  /* puzzle room only: two stacked buttons with fixed heights -> 12px gap, both fully on screen */
  body[data-slice="puzzle"] .act {
    bottom: 0.6rem; height: 48px; min-height: 48px; font-size: 1.05rem; padding: 0.2rem 1rem;
    justify-content: center; overflow: hidden;
  }
  body[data-slice="puzzle"] .act.mir { bottom: calc(0.6rem + 48px + 12px); }
}

/* ?slice=puzzle v2: turns vs the rival + separate throwing yard (only these ids/body[data-slice="puzzle"] use it) */
.turnchip {
  position: absolute; left: 0.6rem; top: 3.5rem; display: flex; flex-direction: column; gap: 0.05rem;
  background: var(--navy); color: #fff; border: 2px solid var(--ink); border-radius: 0.7rem;
  padding: 0.2rem 0.7rem; font-weight: 900; box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35); max-width: 46vw;
}
.turnchip small { font-weight: 700; font-size: 0.72rem; opacity: 0.9; white-space: normal; }
.turnchip.rival { background: #3f6f3a; }
.yardtag {
  position: absolute; left: 50%; top: 3.5rem; transform: translateX(-50%); width: max-content; max-width: min(30rem, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem; text-align: center;
  background: rgba(255, 246, 228, 0.96); border: 2px solid var(--ink); border-radius: 0.8rem; padding: 0.25rem 0.8rem;
  box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35); font-size: 0.8rem; font-weight: 700; line-height: 1.25;
}
.yardtag b { font-size: 1.05rem; color: var(--navy); }
.yardtag.rival b { color: #3f6f3a; }
body[data-yard="on"] .turnchip { display: none; }
body[data-yard="on"] .objective, body[data-yard="on"] .rulechip, body[data-yard="on"] #toast { visibility: hidden; }
#gauge .over { background: #f7c0b0; color: #8a2b1a; border-left: 2px dashed var(--ink); }
#gauge .safe { background: #cdeec0; }
#pop .turnend {
  display: block; margin-top: 0.3rem; font-size: 0.5em; background: #d8452f; color: #fff; border-radius: 0.5rem;
  padding: 0.1rem 0.6rem; text-transform: none;
}
@media (max-height: 520px), (max-width: 560px) {
  .yardtag { font-size: 0.7rem; top: 3.1rem; padding: 0.15rem 0.6rem; }
  .yardtag b { font-size: 0.9rem; }
  .turnchip { top: 3.1rem; font-size: 0.85rem; }
}
#pop.nak.show { animation-duration: 2.6s; }

/* ?slice=puzzle: left-side in-room guide (next action + key). Sits between the room chips and the move pad;
   in the room the "Bonus Throw kept" state is shown in the guide header (the chip is hidden there by main.js). */
.roomguide {
  position: absolute; left: 0.6rem; top: 8.8rem; width: max-content; max-width: min(18rem, 30vw);
  max-height: calc(100% - 8.8rem - 11rem); overflow: hidden;
  background: #111a2e; color: #fff; border: 2px solid #fff; outline: 2px solid var(--ink); border-radius: 0.7rem;
  padding: 0.35rem 0.55rem; font-size: 0.8rem; font-weight: 700; line-height: 1.25; pointer-events: none;
  box-shadow: 0 3px 0 rgba(45, 31, 22, 0.45);
}
.roomguide .rg-head { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.roomguide ol { margin: 0; padding: 0; list-style: none; counter-reset: rg; display: flex; flex-direction: column; gap: 0.2rem; }
.roomguide li { counter-increment: rg; display: flex; align-items: center; gap: 0.4rem; opacity: 0.72; font-size: 0.9em; }
.roomguide li::before { content: counter(rg); flex: 0 0 auto; width: 1.2em; text-align: center; font-weight: 900; }
.roomguide li .rg-t { flex: 1 1 auto; }
.roomguide li.now { opacity: 1; font-size: 1em; background: rgba(241, 194, 50, 0.18); border-radius: 0.4rem; padding: 0.15rem 0.2rem; font-weight: 900; }
.roomguide kbd {
  flex: 0 0 auto; font: inherit; font-weight: 900; white-space: nowrap; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0.35rem; padding: 0 0.35rem; box-shadow: 0 2px 0 var(--ink);
}
.roomguide li.now kbd { background: var(--gold); }
.roomguide .rg-note { margin-top: 0.25rem; font-size: 0.72rem; color: #ffe08a; font-weight: 700; }
.roomguide .rg-bonus {
  display: inline-block; margin-left: 0.4rem; background: var(--navy); color: #fff; border: 1.5px solid #fff;
  border-radius: 999px; padding: 0 0.4rem; font-size: 0.95em; letter-spacing: 0.02em; text-transform: none; white-space: nowrap;
}
.roomguide .rg-wait { font-size: 0.95rem; font-weight: 900; }
.roomguide.wait { border-color: var(--gold); }
@media (max-height: 520px) {
  .roomguide { top: 8.8rem; max-height: calc(100% - 8.8rem - 136px); font-size: 0.72rem; max-width: min(17rem, 32vw); padding: 0.25rem 0.45rem; }
  .roomguide ol { gap: 0.1rem; }
}

/* ---------------- ?slice=duel (Stage A local test) - everything scoped to #duel ---------------- */
#duel { position: fixed; inset: 0; pointer-events: none; }
#duel button { pointer-events: auto; }
#duel .dseats { position: absolute; top: 0.5rem; left: 0.5rem; right: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
#duel .dseat { background: var(--paper); border: 3px solid var(--c, var(--ink)); border-radius: 0.8rem; padding: 0.15rem 0.5rem; font-weight: 800; font-size: 0.72rem; white-space: nowrap; box-shadow: 0 3px 0 rgba(45, 31, 22, 0.35); display: flex; gap: 0.4rem; align-items: center; opacity: 0.8; }
#duel .dseat .sym { color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 0.5rem; padding: 0 0.35rem; }
#duel .dseat .cnt { font-weight: 700; font-size: 0.8rem; opacity: 0.85; }
#duel .dseat.on { opacity: 1; transform: translateY(2px); box-shadow: 0 0 0 3px var(--c), 0 4px 0 var(--ink); }
#duel .dmsg { position: absolute; top: 2.7rem; left: 50%; transform: translateX(-50%); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.25rem 1rem; font-weight: 800; text-align: center; max-width: 92vw; }
#duel .dmoves { position: absolute; right: 0.6rem; top: 6rem; display: flex; flex-direction: column; gap: 0.35rem; max-height: calc(100vh - 12rem); overflow: auto; pointer-events: auto; }
#duel .dmove { background: var(--paper); border: 3px solid var(--c, var(--ink)); border-radius: 0.7rem; padding: 0.3rem 0.7rem; font-weight: 800; text-align: left; min-height: 44px; box-shadow: 0 3px 0 var(--ink); }
#duel .dmove:hover, #duel .dmove:focus-visible { background: #fff; }
#duel .dmove small { display: block; font-weight: 700; opacity: 0.75; }
#duel .dbottom { position: absolute; left: 0; right: 0; bottom: 0.9rem; display: flex; justify-content: center; }
#duel #dThrow { touch-action: none; min-width: 11rem; background: var(--c, var(--accent)); }
#duel #dThrow.bonus { box-shadow: 0 0 0 4px var(--gold), 0 5px 0 var(--ink); }
#duel .dgauge { position: absolute; left: 50%; bottom: 5.6rem; transform: translateX(-50%); width: min(22rem, 80vw); }
#duel .dtrack { position: relative; height: 1.3rem; border: 3px solid var(--ink); border-radius: 999px; background: #7fc27f; overflow: hidden; }
#duel .dnak { position: absolute; top: 0; bottom: 0; right: 0; background: #d8452f; color: #fff; font-size: 0.7rem; font-weight: 900; display: grid; place-items: center; }
#duel .dneedle { position: absolute; top: -2px; bottom: -2px; width: 5px; background: var(--ink); left: 0; }
#duel .dmodes { display: grid; gap: 0.5rem; margin: 0.4rem 0; }
#duel .dmodes button b { display: block; font-size: 1.05rem; }
#duel .dmodes button small { display: block; font-weight: 700; font-size: 0.72rem; opacity: 0.9; }
#duel .dteam { display: flex; gap: 0.3rem; align-items: center; padding: 0.15rem 0.35rem; border: 3px dashed var(--t, var(--ink)); border-radius: 1rem; background: rgba(255, 246, 228, 0.55); }
#duel .dteam.on { border-style: solid; background: rgba(255, 246, 228, 0.9); }
#duel .dteam .tname { color: #fff; background: var(--t); border: 2px solid var(--ink); border-radius: 0.5rem; padding: 0 0.35rem; font-weight: 900; font-size: 0.72rem; white-space: nowrap; }
#duel .dteam .tcnt { font-weight: 800; font-size: 0.72rem; white-space: nowrap; }
#duel .dseat.fin { opacity: 0.55; }
#duel .dseats.teams { gap: 0.5rem; }
#duel .dseats.teams ~ .dmsg { top: 3.3rem; }
#duel .dseats.teams ~ .dmoves { top: 6.4rem; }
@media (max-width: 1150px) { #duel .dseats.teams { flex-direction: column; align-items: center; gap: 0.25rem; } #duel .dseats.teams ~ .dmsg { top: 7rem; } #duel .dseats.teams ~ .dmoves { top: 9.8rem; } }
#duel .dchal { display: inline-block; margin-left: 0.2rem; white-space: nowrap; background: #2d1f16; color: #fff6e4; border-radius: 0.4rem; padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.04em; }
#duel .overlay { pointer-events: auto; }
@media (max-width: 760px) { #duel .dseat .cnt { display: none; } #duel .dteam .tcnt { display: none; } #duel .dmsg { top: 4.6rem; font-size: 0.8rem; } #duel .dmoves { top: 7rem; } #duel .dseats.teams ~ .dmsg { top: 6.6rem; } #duel .dseats.teams ~ .dmoves { top: 9.4rem; } }
