/* DotsArena adaptation of the user-licensed Dotsbook local design system.
   Reference: ../dotsbook-local/assets/index-BM4BHRq9.css.
   The game layout stays independent; these tokens and primitives unify its voice. */

:root {
  --bg:#000; --fg:#fff; --fg-2:#b4b4b4; --fg-3:#7a7a7a;
  --line:#1f1f1f; --surface:#0d0d0d; --surface-2:#161616;
  --accent:#fff; --accent-fg:#000; --focus:#5ec8ff; --tip:#12b04c;
  --muted:var(--fg-2); --danger:#f23d3d;
  --font-body:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-data:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --radius-panel:20px; --radius-control:999px;
  color-scheme:dark; font-family:var(--font-body); background:var(--bg); color:var(--fg);
}
body {font-family:var(--font-body);background:var(--bg);color:var(--fg);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,.brand,strong {font-family:var(--font-body);font-weight:600;letter-spacing:-.02em}
h1 {font-size:40px;line-height:1.1}
h2 {font-size:22px;line-height:1.25}h3 {font-size:16px}p {font-size:15px;line-height:1.5;color:var(--fg-2)}
button,a,input,select {touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.skip {position:absolute;left:-999px;top:8px;padding:8px 14px;background:var(--fg);color:var(--bg);z-index:50;border-radius:999px}
.skip:focus {left:16px}
.beta-bar {padding:6px max(24px,calc((100vw - 1232px)/2));background:var(--bg);color:var(--fg-3);font-size:10px;gap:16px;border-bottom:1px solid var(--line)}
.beta-bar>span:first-child {display:none}.beta-bar>span:last-child {color:var(--fg-3)}
header {height:64px;padding:0 max(24px,calc((100vw - 1232px)/2));gap:22px;max-width:none;position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:saturate(180%) blur(12px);border-color:var(--line)}
.brand {font-size:19px;letter-spacing:-.03em;font-weight:600}.brand span {color:var(--fg);font-weight:600}
nav {gap:4px;margin-left:auto;margin-right:0;font-size:14px;color:var(--fg-2)}
nav a {padding:6px 12px;border-radius:999px;white-space:nowrap}nav a.active {background:var(--surface-2);color:var(--fg)}
.primary,.secondary {min-height:40px;padding:0 18px;border-radius:var(--radius-control);font-size:14px;line-height:1.4;font-weight:500;gap:8px;white-space:nowrap}
.primary {background:var(--fg);color:var(--bg);border:1px solid var(--fg)}.primary:hover {background:var(--fg);opacity:.88}
.secondary {border:1px solid var(--line);color:var(--fg);background:transparent}.secondary:hover {background:var(--surface-2)}
.primary.small {font-size:13px;min-height:34px;padding:0 14px}.text-button {font-size:13px;font-weight:500;color:var(--fg)}
.text-button:hover {text-decoration:underline;text-underline-offset:3px}
main {max-width:1280px;padding:8px 24px 0;min-height:70vh}
.hero {grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;min-height:0;padding:40px 0 38px}
.hero .launchpad-title {font-size:clamp(48px,5vw,72px);letter-spacing:-.035em;line-height:1.08;margin:0 0 12px;max-width:460px}
.hero p {font-size:19px;margin:0;line-height:1.5}.hero .first-game {font-size:13px;color:var(--fg-3);margin-top:18px}
.actions {margin-top:24px;gap:10px;flex-wrap:wrap}.hero-note {font-size:12px;line-height:1.5;color:var(--fg-3);margin-top:18px;max-width:350px}.hero-note .status-dot {display:none}
.hero-art {width:100%;max-width:none;height:auto;aspect-ratio:600/360;margin:0;isolation:isolate}
.hero-art .cluster-dot {position:absolute;display:block;aspect-ratio:1;border:0;padding:0;background:none;border-radius:50%;color:var(--fg);cursor:pointer}
.hero-art .cluster-dot .dot-face {position:static;width:100%;max-width:none;height:100%;filter:none;transform:none;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.cluster-name {position:absolute;bottom:-3px;left:50%;transform:translate(-50%,100%);font-size:12px;white-space:nowrap;color:var(--fg-2);opacity:0;pointer-events:none;transition:opacity .2s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){.cluster-dot:hover .cluster-name{opacity:1}}
.cluster-dot:focus-visible .cluster-name {opacity:1}
.dot-eyes {transform-box:fill-box;transform-origin:50%;animation:dot-blink var(--blink-dur,5s) var(--blink-delay,0s) infinite}
@keyframes dot-blink {0%,94%,100%{transform:scaleY(1)}97%{transform:scaleY(.1)}}
.metrics {grid-template-columns:repeat(4,1fr);padding:24px 0 28px;border-top:0;border-bottom:1px solid var(--line);gap:24px}
.metrics>div,.metrics>div:first-child {padding:0;border:0;gap:4px}.metrics span {font-size:12px;letter-spacing:0;color:var(--fg-3)}
.metrics strong {font-family:var(--font-body);font-size:25px;letter-spacing:-.02em;font-weight:600;font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:6px}
.metrics small,.metrics .text-button {font-size:12px;line-height:1.5}.metrics small {color:var(--fg-3)}.metrics em {font-size:17px;color:var(--fg-3)}
.tiny-pill {font-size:9px!important;border-color:var(--line);color:var(--fg-3)!important;letter-spacing:0!important;border-radius:999px}
.section-head {margin:28px 0 18px}.section-head h2 {font-size:22px;letter-spacing:-.025em}.section-head .eyebrow,.eyebrow {color:var(--fg-3);font-size:12px;letter-spacing:0;font-weight:400}
.section-head .muted {font-size:13px;color:var(--fg-3)}
.featured {background:var(--surface);border:0;border-radius:var(--radius-panel);padding:35px 24px 28px;min-height:245px}
.feature-label {font-size:11px;letter-spacing:0;color:var(--fg-3);top:18px;left:20px}
.feature-player {gap:12px}.feature-player .dot-face {width:108px;height:108px}.feature-player b {font-size:17px;font-weight:600}.feature-player small {font-size:12px;color:var(--fg-3)}
.feature-mid strong {font-size:36px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.feature-mid span {font-size:10px;letter-spacing:0;color:var(--fg-3)}
.bracket-top {align-items:center;margin-top:28px;border-bottom:1px solid var(--line);padding-bottom:0;flex-wrap:wrap}
.bracket-top h3 {font-size:15px;margin:0 0 10px}.bracket-top h3 span {font-size:12px;color:var(--fg-3)}
.round-tabs {gap:4px}.round-tabs button {font-family:var(--font-body);font-size:12px;border:0;border-radius:0;padding:12px 10px;color:var(--fg-3);position:relative;background:none}
.round-tabs button.active {color:var(--fg);background:none;border-color:transparent}.round-tabs button.active:after {content:'';position:absolute;bottom:-1px;left:10px;right:10px;height:3px;background:var(--fg);border-radius:3px}
.round-tabs button:disabled {cursor:default;opacity:.4}
.bracket-grid {gap:12px;margin-top:18px}.match {background:var(--surface);border:1px solid transparent;border-radius:14px;padding:12px}.match:hover {border-color:#383838;background:var(--surface-2)}
.match-line {font-size:13px;min-height:46px;gap:10px}.match-line .dot-face {width:30px;height:30px}.match-line.winner {color:var(--fg)}.match-line.loser {opacity:.5}.match-meta {color:var(--fg-3);font-size:10px;border-color:var(--line)}
.bracket-foot {font-size:12px;color:var(--fg-3);margin-top:14px}
.panel {border:0;background:var(--surface);border-radius:var(--radius-panel);padding:24px;min-width:0}.panel h2 {font-size:20px}
.two-columns {gap:24px;margin-top:32px}.leader-row {padding:12px 0;gap:12px;border-color:var(--line)}.leader-row .rank {font-size:12px}.leader-row .dot-face {width:40px;height:40px}
.identity b {font-size:14px;font-weight:600}.identity small {font-size:12px;color:var(--fg-3)}.leader-row>strong {font-size:14px;font-weight:500}
.invitation h2 {font-size:28px;line-height:1.2;margin:12px 0}.invitation p {font-size:15px}.invitation .primary {width:auto;margin-top:16px}
.key-row {font-size:13px;border-color:var(--line);gap:16px}.key-row span {color:var(--fg-3)}.key-row b {font-weight:500}
.funding {padding:32px 0 0;margin-top:36px;gap:56px}.funding h2 {font-size:30px;line-height:1.2;margin-top:10px}.funding .muted {font-size:13px;color:var(--fg-3)}
.page-title {padding:36px 0 24px}.page-title h1 {font-size:40px;letter-spacing:-.03em;margin:12px 0}.page-title p {font-size:17px;line-height:1.5;margin:8px 0 0}.page-title .eyebrow {display:none}
[data-page=connect] {max-width:760px;margin:auto}
.mcp-invite {display:block;background:none;padding:0;margin:0 0 24px}.mcp-invite>div:first-child {display:none}
.copy-field {display:flex;align-items:center;gap:18px;background:var(--surface);border:0;border-radius:20px;padding:16px 16px 16px 20px}
.copy-field code {flex:1;font-family:var(--font-data);font-size:14px;line-height:1.6;margin:0;color:var(--fg)}.copy-field .secondary {flex:none;background:var(--fg);color:var(--bg)}
.connect-grid {display:grid;grid-template-columns:1fr;gap:24px;margin:30px 0}.connect-grid .panel {position:relative;padding:0 0 0 44px;background:none;border-radius:0}.connect-grid h2 {font-size:16px;letter-spacing:-.02em;margin-bottom:3px}.connect-grid p {font-size:15px;min-height:0;margin:0;color:var(--fg-2)}
.step {position:absolute;left:0;top:0;background:var(--fg);color:var(--bg);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;font-family:var(--font-body);font-size:12px;font-weight:600;margin:0}
.mcp-setup {background:none;padding:24px 0 0;border-top:1px solid var(--line);border-radius:0}.mcp-setup>.eyebrow {display:none}.mcp-setup h2 {font-size:22px;margin-top:0}.mcp-setup>p {font-size:15px}.mcp-setup .key-row {font-size:12px}.mcp-setup .key-row b {font-family:var(--font-data);font-weight:400}
.input-action {background:var(--surface);border-radius:20px;padding:10px;gap:10px;align-items:center}.input-action input {background:none;border:0;font-family:var(--font-data);padding:8px 10px;font-size:14px}.input-action .secondary {background:var(--fg);color:var(--bg)}
.field-note {font-size:12px;line-height:1.6;color:var(--fg-3)}
input,select {background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:14px;color:var(--fg)}label {font-size:13px;color:var(--fg-2);margin-top:20px}
.checkbox input {accent-color:var(--fg)}.checkbox {font-size:13px}.wallet-address {border:0;background:var(--surface-2);border-radius:12px;color:var(--fg-2);font-size:12px}
.profile-card h2 {font-size:28px}.profile-card .dot-face {width:144px;height:144px}.profile-stats {gap:32px}.profile-stats strong {font-size:25px;font-weight:600}.profile-stats span {font-size:12px;color:var(--fg-3)}
.pill {border:0;background:var(--surface-2);color:var(--fg-3);border-radius:999px;font-size:10px;letter-spacing:0}.profile-card>.pill {font-size:11px}
th {font-size:11px;letter-spacing:0;color:var(--fg-3)}td {font-size:14px;border-color:var(--line)}.archive b {font-size:15px}.archive small {font-size:12px}
footer {max-width:1232px;padding:32px 0 42px;margin:48px auto 0;border-color:var(--line);gap:20px;flex-wrap:wrap}footer .brand {font-size:18px}footer>span {font-size:12px;color:var(--fg-3)}.footer-links {display:flex;gap:16px;align-items:center;font-size:12px}.footer-links .text-button {font-size:12px;color:var(--fg-2)}
dialog {background:var(--surface);border:1px solid #303030;border-radius:20px;max-width:540px;padding:32px}dialog h2 {font-size:30px;letter-spacing:-.03em}dialog::backdrop {background:#000b;backdrop-filter:blur(8px)}.close {color:var(--fg-3)}.rules {font-size:14px;color:var(--fg-2)}.rules li {padding:8px 0}.error {color:#ff7777}
#public-dot>.dot-face {width:120px;height:120px;margin:8px 0 24px}#public-dot .profile-stats {justify-content:flex-start}
#toast {background:var(--fg);color:var(--bg);border-radius:14px;font-size:13px;box-shadow:0 4px 24px #0005;transition:opacity .18s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1)}
.motion-paused .dot-eyes {animation-play-state:paused}.motion-paused .cluster-dot .dot-face,.motion-paused .cluster-name {transition:none}
@media(max-width:1023px) {
  .hero {grid-template-columns:1fr 1fr;gap:24px;padding:32px 0}.hero .launchpad-title {font-size:52px;letter-spacing:-.035em}.hero p {font-size:17px}
  nav a {padding:6px 9px;font-size:13px}header {gap:15px}.brand {font-size:18px}.primary.small {font-size:12px}
  .metrics {gap:18px}.metrics strong {font-size:23px}.bracket-grid {grid-template-columns:repeat(3,minmax(0,1fr))}footer {margin-inline:24px}
}
@media(max-width:760px) {
  .beta-bar {padding:6px 16px;font-size:10px}.beta-bar>span:last-child {display:none}
  header {height:auto;min-height:56px;flex-wrap:wrap;padding:12px 16px;gap:12px}header>.primary {margin-left:auto;min-height:30px}nav {order:3;width:100%;margin:0;justify-content:space-between;gap:0}nav a {font-size:12px;padding:6px 10px}
  main {padding:8px 16px 0}.hero {display:flex;flex-direction:column;align-items:stretch;padding:24px 0 8px;gap:20px}.hero .launchpad-title {font-size:40px;margin:0 0 8px;max-width:none;letter-spacing:-.025em}.hero p {font-size:17px}.hero .first-game {font-size:13px;margin-top:12px}.hero .hero-note {font-size:12px;max-width:none;margin-top:16px}.actions {margin-top:20px}
  .hero-art {width:100%;max-width:530px;aspect-ratio:600/360;height:auto;margin:0 auto 16px}.hero-art .cluster-dot .dot-face {width:100%;height:100%;max-width:none}
  .metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:8px 0 24px}.metrics>div,.metrics>div:nth-child(odd){padding:0}.metrics span{font-size:12px}.metrics small,.metrics .text-button{font-size:11px}.metrics strong{font-size:24px}.tiny-pill{display:none}
  .section-head {margin:24px 0 16px}.section-head h2 {font-size:20px}.section-head .muted {font-size:11px;max-width:130px}.featured{padding:42px 12px 24px;min-height:230px}.feature-player .dot-face{width:80px;height:80px}.feature-player b{font-size:14px}.feature-player small{font-size:10px}.feature-mid strong{font-size:28px}.feature-mid span{font-size:9px}.feature-label{font-size:11px;left:16px}
  .bracket-top{align-items:flex-start;gap:0}.bracket-top h3{width:100%;margin-bottom:2px}.round-tabs{flex-wrap:wrap;justify-content:flex-start;gap:0}.round-tabs button{font-size:11px;padding:12px 8px}.bracket-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.match{padding:10px}.match-line{font-size:12px;gap:7px}.match-line .dot-face{width:26px;height:26px}.match-meta{font-size:9px}.bracket-foot{font-size:11px}
  .two-columns,.funding,.profile-grid{grid-template-columns:1fr;gap:20px}.panel{padding:20px}.invitation h2{font-size:26px}.funding{gap:12px;margin-top:30px;padding-top:28px}.funding h2{font-size:28px}.funding p{font-size:14px}.funding .muted{font-size:12px}
  .page-title{padding:24px 0}.page-title h1{font-size:36px}.page-title p{font-size:15px}.copy-field{flex-direction:column;align-items:stretch;padding:16px}.copy-field code{font-size:13px}.mcp-invite{padding:0}.connect-grid .panel{padding:0 0 0 42px}.mcp-setup{padding:24px 0 0}.mcp-setup .key-row b{font-size:11px}.input-action{flex-wrap:wrap}.input-action input{font-size:12px}
  footer{margin:32px 16px 0;padding:28px 0 32px;gap:14px}footer>span{font-size:12px;order:2;width:100%}.footer-links{order:3}.profile-stats{gap:32px}.rules{font-size:13px}dialog{padding:26px}dialog h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.cluster-dot:hover .dot-face{transform:none}}
/* Spectator court: expressive characters, quiet controls, no whole-page motion. */
.watch-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 12px}.watch-toolbar label{margin:0;color:var(--fg-3);font-size:13px}.watch-toolbar select{width:auto;max-width:390px;flex:1;background:var(--bg);border-color:var(--line);border-radius:999px;padding:9px 14px;font-size:13px}.watch-toolbar .text-button{margin-left:auto;white-space:nowrap}
.featured{display:block;padding:20px 28px 0;min-height:360px;overflow:hidden}.spectator-heading{display:flex;justify-content:space-between;gap:15px;color:var(--fg-3);font-size:12px}.bout-stage{display:grid;grid-template-columns:1fr 120px 1fr;align-items:center;gap:22px;padding:20px 25px 24px}.bout-player{display:flex;align-items:center;flex-direction:column;gap:8px;min-width:0}.bout-player>b{font-size:17px;overflow-wrap:anywhere;text-align:center;margin-top:10px}.bout-player>small{font-size:12px;color:var(--fg-3)}.dot-with-hand{position:relative;width:125px;height:125px;margin-top:18px}.dot-with-hand>.dot-face{width:100%;height:100%}.rps-hand{width:70px;height:70px;display:block;flex-shrink:0;overflow:visible}.dot-with-hand>.rps-hand{position:absolute;right:-37px;bottom:-4px;transform-origin:30% 80%}.bout-player:last-child .dot-with-hand>.rps-hand{right:auto;left:-37px;transform:scaleX(-1);transform-origin:70% 80%}.bout-middle{text-align:center;padding-top:80px}.bout-middle>strong{font-size:38px;letter-spacing:-.03em;font-weight:600;font-variant-numeric:tabular-nums;display:block}.bout-middle>span{font-size:12px;color:var(--fg-2)}.throw-number{font-size:11px;color:var(--fg-3);margin-top:8px}.score-pips{display:flex;gap:7px;margin-top:5px}.score-pips i{display:block;width:7px;height:7px;border:1px solid #555;border-radius:50%}.score-pips .won{background:var(--fg);border-color:var(--fg)}
.speech-bubble{position:relative;background:var(--surface-2);border-radius:15px;padding:12px 16px;min-height:95px;width:100%;max-width:290px;display:flex;flex-direction:column;justify-content:center}.speech-bubble:after{content:'';position:absolute;width:10px;height:10px;background:var(--surface-2);left:calc(50% - 5px);bottom:-5px;transform:rotate(45deg)}.speech-bubble p{font-size:13px;line-height:1.5;color:var(--fg);margin:0;overflow-wrap:anywhere}.speech-bubble small{font-size:9px;color:var(--fg-3);margin-top:5px}
.bout-result{border-top:1px solid var(--line);padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}.bout-result b{font-size:14px;font-weight:500}.bout-result span{font-size:12px;color:var(--fg-3);font-variant-numeric:tabular-nums}.throw-strip{display:flex;gap:8px;margin-top:12px;overflow-x:auto;padding:0 0 8px;min-height:55px}.throw-strip>p{font-size:12px;color:var(--fg-3);margin:8px 0}.throw-chip{display:flex;align-items:center;gap:3px;padding:4px 8px;border:1px solid var(--line);border-radius:10px;flex-shrink:0}.throw-chip>span{color:var(--fg-3);font-size:10px;margin-right:3px}.throw-chip .rps-hand{width:27px;height:27px}.throw-chip>b{font-size:12px;font-weight:400;color:var(--fg-3)}
@keyframes hand-reveal{0%{transform:translateY(5px) rotate(-8deg)}100%{transform:translateY(0) rotate(0)}}
@keyframes hand-reveal-right{0%{transform:scaleX(-1) translateY(5px) rotate(-8deg)}100%{transform:scaleX(-1) translateY(0) rotate(0)}}
.is-reveal .dot-with-hand>.rps-hand{animation:hand-reveal .24s cubic-bezier(.16,1,.3,1) both}.is-reveal .bout-player:last-child .dot-with-hand>.rps-hand{animation-name:hand-reveal-right}
.motion-paused .rps-hand{animation:none!important}
@media(max-width:760px){.watch-toolbar{gap:8px;flex-wrap:wrap}.watch-toolbar label{font-size:12px}.watch-toolbar select{font-size:12px;min-width:150px}.watch-toolbar .text-button{font-size:11px}.featured{padding:16px 14px 0;min-height:350px}.spectator-heading{font-size:10px}.bout-stage{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);padding:16px 0 20px;gap:8px}.dot-with-hand{width:82px;height:82px;margin-top:15px}.dot-with-hand>.rps-hand{width:52px;height:52px;right:-22px;bottom:-3px}.bout-player:last-child .dot-with-hand>.rps-hand{left:-22px}.speech-bubble{padding:10px;min-height:117px;border-radius:12px}.speech-bubble p{font-size:11px;line-height:1.4}.speech-bubble small{font-size:8px}.bout-player>b{font-size:12px;line-height:1.3;margin-top:10px}.bout-player>small{font-size:10px}.bout-middle{padding-top:110px}.bout-middle>strong{font-size:23px;white-space:nowrap}.bout-middle>span{font-size:9px}.throw-number{font-size:9px;margin-top:6px}.bout-result{align-items:flex-start;flex-direction:column;gap:4px;padding:13px 0}.bout-result b{font-size:12px}.bout-result span{font-size:11px}.score-pips{gap:5px}.score-pips i{width:6px;height:6px}}
@media(prefers-reduced-motion:reduce){.rps-hand,.dot-eyes{animation:none!important}.cluster-dot .dot-face{transition:none!important}}
.move-caption{position:absolute;right:-43px;bottom:-26px;min-width:68px;text-align:center;font-size:10px;font-weight:500;text-transform:capitalize;color:var(--fg-2);background:var(--surface-2);border-radius:999px;padding:3px 9px;white-space:nowrap}.bout-player:last-child .move-caption{right:auto;left:-43px}
@keyframes hand-count-in{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-9px) rotate(-9deg)}75%{transform:translateY(2px) rotate(3deg)}}
@keyframes hand-count-in-right{0%,100%{transform:scaleX(-1) translateY(0) rotate(0)}40%{transform:scaleX(-1) translateY(-9px) rotate(-9deg)}75%{transform:scaleX(-1) translateY(2px) rotate(3deg)}}
.dot-with-hand>.rps-hand.concealed{animation:hand-count-in .8s cubic-bezier(.45,0,.2,1) 3}.bout-player:last-child .dot-with-hand>.rps-hand.concealed{animation-name:hand-count-in-right}
.bout-player>b{margin-top:28px}
@media(max-width:760px){.move-caption{right:-30px;bottom:-23px;min-width:58px;font-size:9px;padding:3px 7px}.bout-player:last-child .move-caption{left:-30px}.bout-player>b{margin-top:26px}}
.motion-paused .dot-with-hand>.rps-hand{animation:none!important}
@media(prefers-reduced-motion:reduce){.dot-with-hand>.rps-hand{animation:none!important}}
.dot-with-hand>.side-1 text{transform-box:fill-box;transform-origin:center;transform:scaleX(-1)}

/* A small companion for the wordmark. */
.brand{display:inline-flex;align-items:center;white-space:nowrap;line-height:1}
.brand-wordmark{display:inline-block;transform:translateY(-1px)}
.brand .brand-fun{color:#c4b5fd}
.brand-dot{width:30px;height:30px;flex:none;margin-right:8px;display:block}
.brand-eyes{transform-box:fill-box;transform-origin:center;animation:brand-blink 7s cubic-bezier(.22,1,.36,1) infinite}
@keyframes brand-blink{0%,30%,60%,79%,85%,100%{transform:translateX(0) scaleY(1)}38%,50%{transform:translateX(1.5px) scaleY(1)}82%{transform:translateX(0) scaleY(.12)}}
.motion-paused .brand-dot,.motion-paused .brand-eyes{animation:none}
@media(prefers-reduced-motion:reduce){.brand-dot,.brand-eyes{animation:none}}
@media(max-width:760px){.brand-dot{width:25px;height:25px;margin-right:6px}}

.dot-face.plush-face{object-fit:contain;border-radius:0;overflow:hidden;background:transparent;box-shadow:none}.cluster-dot .plush-face{max-width:100%;width:100%;height:100%}#avatar-upload{max-width:100%;font-size:13px}#avatar-feedback{font-size:13px;color:var(--fg-2)}

/* Individual character frames never share a crop with a neighboring Dot. */
.animated-plush{display:inline-block;position:relative;vertical-align:middle;flex-shrink:0}
.animated-plush>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.plush-open{opacity:1}.plush-blink{opacity:0}

.cluster-dot .plush-blink{animation:plush-blink-frame var(--dot-blink-duration) steps(1,end) var(--dot-blink-delay) infinite}

@keyframes plush-blink-frame{0%,98%,100%{opacity:0}96%{opacity:1}}
.plush-hand{display:inline-block;position:relative}.plush-hand>img{width:100%;height:100%;object-fit:contain;display:block}
.hidden-move{position:absolute;right:0;top:0;background:#fff;color:#171717;border-radius:50%;width:20px;height:20px;text-align:center;font-size:14px;line-height:20px;font-weight:600}
.bout-player:last-child .hidden-move{transform:scaleX(-1)}
.motion-paused .animated-plush>img{animation:none!important}
@media(prefers-reduced-motion:reduce){.animated-plush>img{animation:none!important}}

.brand .brand-logo{display:block;width:210px;height:auto;object-fit:contain}footer .brand .brand-logo{width:180px}@media(max-width:760px){.brand .brand-logo{width:172px}}

.hero-art .cluster-dot{cursor:default}.hero-art .cluster-dot .dot-face{transition:none;animation:none;transform:none}
@media(max-width:760px){nav a{min-height:44px;display:flex;align-items:center;justify-content:center}header>.primary{min-height:44px}}
@media(max-width:360px){nav{display:grid;grid-template-columns:1fr 1fr;gap:4px}nav a{padding:6px 8px}}

/* Position the standalone gloves beside each Dot. */
.dot-with-hand>.rps-hand{right:-12px;bottom:3px;width:62px;height:62px;transform-origin:5% 82%;z-index:2}
.bout-player:last-child .dot-with-hand>.rps-hand{left:-12px;right:auto;transform-origin:50% 82%}
@keyframes hand-count-in{0%,100%{transform:rotate(0)}45%{transform:rotate(-12deg)}75%{transform:rotate(3deg)}}
@keyframes hand-count-in-right{0%,100%{transform:scaleX(-1) rotate(0)}45%{transform:scaleX(-1) rotate(-12deg)}75%{transform:scaleX(-1) rotate(3deg)}}
@keyframes hand-reveal{from{transform:rotate(-10deg)}to{transform:rotate(0)}}
@keyframes hand-reveal-right{from{transform:scaleX(-1) rotate(-10deg)}to{transform:scaleX(-1) rotate(0)}}
@media(max-width:760px){.dot-with-hand>.rps-hand{width:45px;height:45px;right:-9px;bottom:1px}.bout-player:last-child .dot-with-hand>.rps-hand{left:-9px}}
@media(prefers-reduced-motion:reduce){.dot-with-hand>.rps-hand{animation:none!important}}

.avatar-choice .copy-field{display:flex;flex-direction:column;align-items:stretch;gap:16px}.avatar-choice .copy-field code{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:break-word}.avatar-choice .copy-field button{align-self:flex-start}


.dot-onboarding{border:1px solid var(--line);border-radius:24px;background:var(--surface);padding:28px 30px;margin-bottom:22px}
.onboarding-heading h2{font-size:24px;letter-spacing:-.035em;margin:0 0 6px}.onboarding-heading p{color:var(--fg-3);font-size:14px;margin:0 0 22px}
.onboarding-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:16px;padding:22px 0;border-top:1px solid var(--line)}
.onboarding-symbol{font-size:24px;color:#bca6ff;text-align:center}.onboarding-row h3{font-size:16px;font-weight:500;margin:0 0 6px}.onboarding-row p{font-size:13px;color:var(--fg-3);line-height:1.5;margin:0}.onboarding-row button{font-size:12px;white-space:nowrap}.onboarding-footnote{font-size:12px;line-height:1.5;color:var(--fg-3);margin:4px 0 0}
.agent-handoff{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0 30px;margin-bottom:20px;border-bottom:1px solid var(--line)}.agent-handoff .eyebrow{font-size:10px;letter-spacing:.1em;color:var(--fg-3)}.agent-handoff h2{font-size:20px;margin:10px 0 8px}.agent-handoff p{font-size:13px;color:var(--fg-3);line-height:1.5;max-width:390px;margin:0}.agent-handoff button{flex-shrink:0;font-size:12px}
@media(max-width:760px){.dot-onboarding{padding:22px 20px}.onboarding-row{grid-template-columns:28px minmax(0,1fr);gap:12px}.onboarding-row button{grid-column:2;justify-self:start}.agent-handoff{align-items:flex-start;flex-direction:column;gap:18px}.onboarding-heading h2{font-size:22px}}

.arena-token{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0 0 20px;padding:0;background:none;border:0}
.arena-token>b{font-size:15px;letter-spacing:.02em}
.arena-token>span{font-size:14px;color:var(--fg-3)}
.arena-token code{font-size:15px;line-height:1.5;overflow-wrap:anywhere;user-select:all;min-width:0}
.arena-token .secondary{padding:8px 12px;font-size:12px;background:transparent;border:1px solid var(--line)}
.arena-token button:disabled{opacity:.4;cursor:default}
.arena-token .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.metrics>div.gold-prize{position:relative;padding-right:80px;min-height:96px}
.gold-prize .prize-token-logo{position:absolute;right:0;top:0;width:56px;height:56px;object-fit:contain;border-radius:50%}
.metrics .gold-prize>span,.metrics .gold-prize #cup-prize-amount{color:#f2cc70}
.metrics .gold-prize strong{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
@media(max-width:760px){.arena-token{gap:8px 10px;margin-bottom:18px}.arena-token code{order:3;flex-basis:100%;font-size:14px}.metrics>div.gold-prize{padding-right:60px}.gold-prize .prize-token-logo{width:44px;height:44px}}
.metrics .gold-prize #cup-prize-amount{font-size:26px;line-height:1.2;letter-spacing:-.7px;text-transform:none;font-weight:600;display:inline}
@media(max-width:760px){.metrics .gold-prize #cup-prize-amount{font-size:23px}}

/* Keep the token identity with the prize, away from the spectator column. */
.metrics>div.gold-prize{padding-left:76px;padding-right:12px}
.gold-prize .prize-token-logo{left:10px;right:auto;top:6px}
@media(max-width:760px){.metrics>div.gold-prize{padding-left:58px;padding-right:8px}.gold-prize .prize-token-logo{left:0;top:4px}}
