/* Anime: a twilight sakura world around real, accessible game controls. */
html[data-style="anime"] {
  color-scheme: dark;
  --bg: #081529;
  --surface: #101e37;
  --muted: #c4cbe0;
  --accent: #ffcf84;
  --mint: #94bcff;
  --line: #dcae683d;
  color: #fff7e8;
  background: #081529;
  font-family: Georgia, "Noto Serif", "Yu Mincho", serif;
}
html[data-style="anime"] body {
  min-height: 100vh;
  background: url("/anime-night.jpg") center top / cover fixed no-repeat;
}
html[data-style="anime"] .shell {
  width: min(1120px, calc(100% - 380px));
  max-width: none;
  min-width: 0;
  padding: 0 0 18px;
}
html[data-style="anime"] main { padding: 26px 0 15px; }
html[data-style="anime"] button { font-family: inherit; border-radius: 3px; }
html[data-style="anime"] button:focus-visible,
html[data-style="anime"] a:focus-visible,
html[data-style="anime"] input:focus-visible { outline: 3px solid #ffdb8d; outline-offset: 3px; }

/* The reference has a full-width dark masthead, with a gold mark. */
html[data-style="anime"] .masthead {
  position: relative;
  z-index: 10;
  left: 50%;
  width: 100vw;
  min-height: 76px;
  transform: translateX(-50%);
  gap: clamp(10px, 2vw, 30px);
  padding: 9px clamp(20px, 5vw, 84px);
  border: 0;
  border-bottom: 1px solid #e8b96d;
  background: linear-gradient(90deg,#07152bd1,#0a1830c9);
  box-shadow: 0 5px 28px #0009;
}
html[data-style="anime"] .masthead .brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff5e0;
  font-size: clamp(1.7rem, 2.55vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
html[data-style="anime"] .masthead .brand .spark {
  width: clamp(39px, 3.5vw, 58px);
  height: clamp(39px, 3.5vw, 58px);
  flex: 0 0 clamp(39px, 3.5vw, 58px);
  margin: 0;
  background: url("/triangle-anime.svg") center / contain no-repeat;
}
html[data-style="anime"] .brand-wordmark { display: inline-flex; white-space: nowrap; }
html[data-style="anime"] .brand-wordmark span:nth-child(5),
html[data-style="anime"] .brand-wordmark span:nth-child(6) { color: #ffcf84; }
html[data-style="anime"] .edition { margin-left: 0; color: #f2dec1; font-size: .75rem; letter-spacing: .1em; word-spacing: .15em; white-space: nowrap; }
html[data-style="anime"] .masthead #rating-open { margin-left: auto; }
html[data-style="anime"] .masthead .quiet {
  padding: 8px 7px;
  color: #fff1d4;
  background: none;
  font-weight: 400;
  white-space: nowrap;
}
html[data-style="anime"] .masthead #rating-open,
html[data-style="anime"] .masthead #account-open,
html[data-style="anime"] .masthead #style-toggle,
html[data-style="anime"] .masthead #language-toggle { font-size: 1.2rem; }
html[data-style="anime"] .masthead #rating-open,
html[data-style="anime"] .masthead #account-open,
html[data-style="anime"] .masthead .style-picker,
html[data-style="anime"] .masthead .language-picker { flex: 0 0 auto; }
html[data-style="anime"] .masthead .quiet:hover { color: #ffd88c; background: #ffd6841d; }
html[data-style="anime"] .style-options {
  padding: 5px;
  border: 1px solid #d5a864;
  border-radius: 2px;
  background: #101e38;
  color: #fff6e5;
  box-shadow: 0 12px 24px #020714bc;
}
html[data-style="anime"] .style-options button { color: #fff6e5; }
html[data-style="anime"] .style-options button:hover,
html[data-style="anime"] .style-options button[aria-pressed="true"] { color: #101e38; background: #f5c77f; }

/* Setup, ranking and profile all share the same midnight-and-gold surface. */
html[data-style="anime"] .panel,
html[data-style="anime"] dialog {
  color: #fff6e5;
  border: 1px solid #e2b775;
  border-radius: 7px;
  background: linear-gradient(145deg,#0b19319e,#10182f8f);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 3px #c8913433, 0 16px 36px #020616a8;
}
html[data-style="anime"] .setup-grid { gap: 18px; }
html[data-style="anime"] .intro {
  padding: 24px;
  border: 1px solid #ddb47680;
  border-radius: 6px;
  background: linear-gradient(120deg,#06152d80,#07163263);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 14px 35px #04091570;
}
html[data-style="anime"] .intro h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: .01em;
  text-shadow: 0 3px 9px #010711;
}
html[data-style="anime"] .intro h1 span { color: #fff3d8; }
html[data-style="anime"] .eyebrow { color: #ffd894; }
html[data-style="anime"] .lead,
html[data-style="anime"] .help { color: #d2d8e7; }
html[data-style="anime"] .intro-bottom strong { color: #fff2d7; }
html[data-style="anime"] .mini-icon { border-color: #e4b871; color: #f6d393; }
html[data-style="anime"] .settings { gap: 18px; }
html[data-style="anime"] legend { color: #fff2db; }
html[data-style="anime"] legend>span:first-child { color: #f8bd78; }
html[data-style="anime"] input {
  color: #fff7e8;
  border: 1px solid #bd9660;
  border-radius: 3px;
  background: #0a1930;
}
html[data-style="anime"] .primary,
html[data-style="anime"] .segmented button[aria-pressed="true"],
html[data-style="anime"] .targets button[aria-pressed="true"],
html[data-style="anime"] .modes button[aria-pressed="true"],
html[data-style="anime"] .rating-tabs button[aria-pressed="true"],
html[data-style="anime"] .profile-tabs button[aria-pressed="true"],
html[data-style="anime"] .rating-periods button[aria-pressed="true"] {
  color: #08162e;
  background: linear-gradient(#ffdb9e,#d9a45f);
  border: 1px solid #ffdb96;
}
html[data-style="anime"] .primary:hover:not(:disabled) { background: #ffe3ac; }
html[data-style="anime"] .segmented button,
html[data-style="anime"] .targets button,
html[data-style="anime"] .modes button,
html[data-style="anime"] .rating-periods button,
html[data-style="anime"] .profile-tabs button,
html[data-style="anime"] .history-item {
  color: #fff3df;
  border: 1px solid #d9ae6d7a;
  background: #13213ba8;
}
html[data-style="anime"] .trio { gap: 9px; margin: 25px 0; }
html[data-style="anime"] .trio>div,
html[data-style="anime"] .trio>div:nth-child(2) {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 4;
  transform: none;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #071630 center / 333% 111% no-repeat;
  box-shadow: 0 8px 18px #0009;
}
html[data-style="anime"] .trio>div:first-child { background-image: url("/anime-cards-aligned.jpg"); background-position: 3.5% 29%; }
html[data-style="anime"] .trio>div:nth-child(2) { background-image: url("/anime-cards-aligned.jpg"); background-position: 49.6% 29%; }
html[data-style="anime"] .trio>div:last-child { background-image: url("/anime-cards-aligned.jpg"); background-position: 96.5% 29%; }
html[data-style="anime"] .trio .move-symbol { display: none; }
html[data-style="anime"] .trio b {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 0;
  left: 4px;
  display: flex;
  height: 20%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .35em;
  color: #fff2d5;
  font-size: clamp(.68rem, 1.1vw, .9rem);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 5px #000;
}
html[data-style="anime"] .trio b::after { color: #fff9ec; font-size: 1.87em; line-height: 1; text-shadow: 0 2px 4px #06142c, 0 0 8px #06142c; }
html[data-style="anime"] .trio>div:first-child b::after { content: "石"; }
html[data-style="anime"] .trio>div:nth-child(2) b::after { content: "鋏"; }
html[data-style="anime"] .trio>div:last-child b::after { content: "紙"; }
/* The playing field remains open to the background, as in the sketch. */
html[data-style="anime"] .match-grid {
  grid-template-columns: minmax(0, 2.08fr) minmax(300px, .92fr);
  gap: 16px;
}
html[data-style="anime"] .arena {
  position: relative;
  min-width: 0;
  padding: 15px 4px 18px;
  color: #fff5df;
  background: linear-gradient(#05132929,#0513291f);
  border: 1px solid #e9b66f54;
  border-radius: 7px;
  box-shadow: 0 15px 36px #02061572;
}
html[data-style="anime"] .match-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #fff5df;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px #000;
}
html[data-style="anime"] .match-round {
  justify-self: start;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
}
html[data-style="anime"] .match-target {
  justify-self: center;
  color: #fff3d9;
  font-size: .875rem;
  letter-spacing: .14em;
  white-space: nowrap;
}
html[data-style="anime"] .match-meta #exit {
  position: static;
  justify-self: end;
  margin: 0;
  padding: 6px 8px;
  color: #f4d295;
  background: transparent;
  border: 1px solid transparent;
  font-size: .8rem;
  letter-spacing: .02em;
}
html[data-style="anime"] .match-meta #exit:hover,
html[data-style="anime"] .match-meta #exit:focus-visible {
  color: #fff1d4;
  background: #071a35d9;
  border-color: #e3b66eaa;
  box-shadow: inset 0 0 0 1px #e3b66e40;
}
html[data-style="anime"] .arena .move-heading {
  margin: 13px 0 0;
  color: #fff1d6;
  text-align: center;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-style: italic;
  letter-spacing: .02em;
  text-shadow: 0 0 9px #ff744b, 0 2px 8px #030719;
}
html[data-style="anime"] .turn-stage { margin-top: 23px; }
html[data-style="anime"] .turn-stage.mode-image,
html[data-style="anime"] .turn-stage.mode-voice,
html[data-style="anime"] .turn-stage.mode-visual,
html[data-style="anime"] .turn-stage.match-ended { height: 365px; }
html[data-style="anime"] .turn-stage:has(.turn-feedback),
html[data-style="anime"] .turn-stage.match-ended { height: auto; min-height: 365px; }
html[data-style="anime"] .turn-stage:has(.turn-feedback) .turn-feedback,
html[data-style="anime"] .turn-stage:has(.turn-feedback) .turn-feedback>.result-panel,
html[data-style="anime"] .turn-stage:has(.turn-feedback) .turn-feedback>.waiting,
html[data-style="anime"] .turn-stage.match-ended .result-panel { min-height: 365px; }
html[data-style="anime"] .move-buttons {
  --anime-card-max-width: 273.75px;
  width: 100%;
  height: 100%;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
html[data-style="anime"] .move-buttons button {
  position: relative;
  flex: 0 0 auto;
  width: min(calc((100% - 20px) / 3), var(--anime-card-max-width));
  height: auto;
  max-height: 100%;
  aspect-ratio: 3 / 4;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  justify-content: flex-end;
  gap: 0;
  border: 0;
  border-radius: 5px;
  background-color: #0a1831;
  background-size: 333% 111%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 22px #020717b8;
}
html[data-style="anime"] .move-buttons button[data-move="rock"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 3.5% 29%; }
html[data-style="anime"] .move-buttons button[data-move="scissors"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 49.6% 29%; }
html[data-style="anime"] .move-buttons button[data-move="paper"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 96.5% 29%; }
html[data-style="anime"] .move-buttons button:hover { transform: translateY(-5px); box-shadow: 0 15px 26px #020717dd, 0 0 0 2px #ffe0a3; }
html[data-style="anime"] .move-buttons button:active { transform: translateY(1px); }
html[data-style="anime"] .turn-stage.mode-image .move-buttons button { height: auto; justify-content: flex-end; }
html[data-style="anime"] .move-buttons .move-symbol { display: none; }
html[data-style="anime"] .turn-stage.mode-image .move-buttons b {
  position: absolute;
  z-index: 2;
  right: 5px;
  bottom: 0;
  left: 5px;
  display: flex;
  height: 20%;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .35em;
  width: auto;
  margin: 0;
  color: #fff2d5;
  font-size: 1.0625rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 7px #000;
  white-space: nowrap;
}
html[data-style="anime"] .move-buttons b::after {
  color: #fff9ec;
  font-size: 1.4em;
  line-height: 1;
  text-shadow: 0 2px 4px #06142c, 0 0 8px #06142c;
}
html[data-style="anime"] .move-buttons button[data-move="rock"] b::after { content: "石"; }
html[data-style="anime"] .move-buttons button[data-move="scissors"] b::after { content: "鋏"; }
html[data-style="anime"] .move-buttons button[data-move="paper"] b::after { content: "紙"; }
html[data-style="anime"] .scoreboard {
  width: min(100% - 26px, 560px);
  max-width: none;
  margin: 24px auto 0;
  padding: 10px 22px;
  border: 1px solid #e6b876;
  border-radius: 5px;
  background: linear-gradient(95deg,#09244899,#1b172d8f 65%,#3a19338c);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 3px #dba55b36, 0 9px 22px #0207189c;
}
html[data-style="anime"] .score-player .name { color: #fff5e5; font-size: 1rem; }
html[data-style="anime"] .score-player strong { color: #f5f8ff!important; font-size: 2.85rem; line-height: 1.1; text-shadow: 0 0 8px #4f93fa; }
html[data-style="anime"] .score-player:last-child strong { text-shadow: 0 0 8px #ee627f; }
html[data-style="anime"] .scoreboard .colon { color: #ffe1a8; font-size: 2rem; }
html[data-style="anime"] .scoreboard .track { display: none; }

/* History stays a working table with its own scrollable contents. */
html[data-style="anime"] .history {
  padding: 18px 15px;
  border: 1px solid #e2b775;
  background: linear-gradient(150deg,#08162e99,#101b3485);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 4px #c8913438, 0 16px 36px #020616a8;
}
html[data-style="anime"] .history h2 {
  margin: 0 0 18px;
  padding: 2px 0 16px;
  border-bottom: 1px solid #c89b62;
  color: #fff4dd;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  font-weight: 700;
  text-align: center;
}
html[data-style="anime"] .history-section h3 { margin-bottom: 7px; color: #fbd49b; font-size: 1.15rem; text-align: center; }
html[data-style="anime"] .history-section .help {
  margin: 7px 0 13px;
  padding: 10px 5px;
  border: 1px solid #cca2716b;
  color: #f6e7d6;
  background: #18253f91;
  text-align: center;
}
html[data-style="anime"] .history .winner { color: #a8d5ff; text-align: center; }
html[data-style="anime"] .history table,
html[data-style="anime"] .history-detail table { border: 1px solid #c8a473; background: #0e1c3491; }
html[data-style="anime"] .history th,
html[data-style="anime"] .history td,
html[data-style="anime"] .history-detail th,
html[data-style="anime"] .history-detail td { padding: 8px 3px; border: 1px solid #d4b07947; text-align: center; }
html[data-style="anime"] .history th,
html[data-style="anime"] .history-detail th { color: #fbe5bf; background: #17243ca8; }
html[data-style="anime"] .win,
html[data-style="anime"] .connected { color: #9bd2ff; }
html[data-style="anime"] .loss { color: #fa98ab; }
html[data-style="anime"] .draw { color: #f5dcaa; }

/* Gesture marks outside the results tables use the compact hand artwork. */
html[data-style="anime"] .move-symbol {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  font-size: 0!important;
  vertical-align: middle;
  background-image: url("/anime-hands.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
}
html[data-style="anime"] .move-symbol[data-move="rock"] { background-position: left center; }
html[data-style="anime"] .move-symbol[data-move="scissors"] { background-position: center center; }
html[data-style="anime"] .move-symbol[data-move="paper"] { background-position: right center; }
html[data-style="anime"] .history td .move-symbol,
html[data-style="anime"] .history-detail td .move-symbol {
  width: clamp(32px, 5vw, 44px);
  height: auto;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 2px;
  background-color: #0b1c35;
  background-size: 333% 111%;
  background-position: center;
}
html[data-style="anime"] .history td .move-symbol[data-move="rock"],
html[data-style="anime"] .history-detail td .move-symbol[data-move="rock"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 3.5% 29%; }
html[data-style="anime"] .history td .move-symbol[data-move="scissors"],
html[data-style="anime"] .history-detail td .move-symbol[data-move="scissors"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 49.6% 29%; }
html[data-style="anime"] .history td .move-symbol[data-move="paper"],
html[data-style="anime"] .history-detail td .move-symbol[data-move="paper"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 96.5% 29%; }
html[data-style="anime"] .reveal .move-symbol {
  width: min(100%, 160px);
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0 auto 6px;
  border: 0;
  border-radius: 3px;
  background-color: #0b1c35;
  background-size: 333% 111%;
  background-position: center;
}
html[data-style="anime"] .reveal .move-symbol[data-move="rock"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 3.5% 29%; }
html[data-style="anime"] .reveal .move-symbol[data-move="scissors"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 49.6% 29%; }
html[data-style="anime"] .reveal .move-symbol[data-move="paper"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 96.5% 29%; }
html[data-style="anime"] .result-panel,
html[data-style="anime"] .waiting {
  color: #fff5e5;
  border: 1px solid #e4b771;
  border-radius: 5px;
  background: linear-gradient(#0c1b359e,#17172f91);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: inset 0 0 0 3px #e3ad5933;
}
html[data-style="anime"] .turn-stage .result-panel h2 { color: #ffdeaa; }
html[data-style="anime"] .reveal small { color: #e3d5c8; }
html[data-style="anime"] .match-end-actions .quiet { color: #ffdc9c; background: #fff1d419; }
html[data-style="anime"] .waiting .lock { color: #ffda9b; }

html[data-style="anime"] .profile-stat-card,
html[data-style="anime"] .history-detail,
html[data-style="anime"] .rating-table-wrap { border: 1px solid #d8aa6b86; border-radius: 4px; background: #0d1a348f; }
html[data-style="anime"] .profile-metrics strong,
html[data-style="anime"] .room-code { color: #ffd294; }
html[data-style="anime"] .rating-table th { color: #fff0d2; background: #1a2945a8; }
html[data-style="anime"] .rating-table tr.self { background: #b78d4f40; }
html[data-style="anime"] .rating-page-heading h1,
html[data-style="anime"] .profile-page h1 { color: #fff2d9; text-shadow: 0 3px 9px #000; }
html[data-style="anime"] .rating-page-heading .quiet { color: #fff0d4; background: #0c19319e; border: 1px solid #d5a666; }
html[data-style="anime"] #rules-footer {
  margin-top: 10px;
  padding: 10px 18px;
  gap: 12px;
  border: 1px solid #d6a862;
  background: linear-gradient(90deg, #07152bd1, #17213ca8, #07152bd1);
  color: #ffe8c1;
  font-size: 1rem;
  box-shadow: inset 0 0 0 2px #d6a86229;
}
html[data-style="anime"] #rules-footer .footer-rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
html[data-style="anime"] #rules-footer .move-symbol {
  --anime-footer-card-width: clamp(24px, 5vw, 36px);
  width: var(--anime-footer-card-width);
  height: calc(var(--anime-footer-card-width) * 4 / 3);
  background-size: 333% 111%;
  background-position: center;
}
html[data-style="anime"] #rules-footer .move-symbol[data-move="rock"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 3.5% 29%; }
html[data-style="anime"] #rules-footer .move-symbol[data-move="scissors"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 49.6% 29%; }
html[data-style="anime"] #rules-footer .move-symbol[data-move="paper"] { background-image: url("/anime-cards-aligned.jpg"); background-position: 96.5% 29%; }
html[data-style="anime"] #rules-footer i {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #e8b96d;
  box-shadow: 0 0 5px #e8b96d99;
}
html[data-style="anime"] .web1-banner { display: none; }
html[data-style="anime"] dialog::backdrop { background: #030917ca; }
html[data-style="anime"] .account-dialog,
html[data-style="anime"] .rating-dialog { background: #101e37a8; color: #fff6e5; }
html[data-style="anime"] .account-dialog .dialog-heading { padding: 6px 10px; background: #09152ba8; }
html[data-style="anime"] .account-dialog .dialog-heading h2 { color: #fff3dc; }
html[data-style="anime"] .account-dialog .dialog-heading button,
html[data-style="anime"] #leave-dialog .quiet { color: #ffdea3; }
html[data-style="anime"] dialog p { color: #cbd2e3; }

@media (max-width: 1450px) {
  html[data-style="anime"] .shell { width: min(1100px, calc(100% - 300px)); }
}
@media (max-width: 1150px) {
  html[data-style="anime"] .shell { width: calc(100% - 56px); }
  html[data-style="anime"] body { background-image: linear-gradient(#06132942,#06132942),url("/anime-night.jpg"); }
}
@media (max-width: 1000px) {
  html[data-style="anime"] .match-grid,
  html[data-style="anime"] .setup-grid { grid-template-columns: 1fr; }
  html[data-style="anime"] .history { max-height: none; }
  html[data-style="anime"] .masthead .brand { margin-right: auto; }
}
@media (max-width: 720px) {
  html[data-style="anime"] .shell { width: calc(100% - 20px); }
  html[data-style="anime"] body { background-image: linear-gradient(#06132991,#06132991),url("/anime-night.jpg"); background-attachment: scroll; }
  html[data-style="anime"] main { padding-top: 12px; }
  html[data-style="anime"] .masthead { min-height: 62px; padding: 5px 9px; gap: 2px; }
  html[data-style="anime"] .masthead .brand { gap: 2px; font-size: clamp(.95rem, 3.4vw, 1.65rem); }
  html[data-style="anime"] .masthead .brand .spark { width: clamp(22px, 6vw, 38px); height: clamp(22px, 6vw, 38px); flex-basis: clamp(22px, 6vw, 38px); }
  html[data-style="anime"] .masthead .quiet { padding: 6px 3px; }
  html[data-style="anime"] .intro { padding: 16px; }
  html[data-style="anime"] .arena { padding: 14px 7px; }
  html[data-style="anime"] .match-meta { padding: 0 6px; }
  html[data-style="anime"] .match-round { font-size: .75rem; letter-spacing: .04em; }
  html[data-style="anime"] .match-target { font-size: .75rem; letter-spacing: .04em; }
  html[data-style="anime"] .match-meta #exit { font-size: .72rem; }
  html[data-style="anime"] .arena .move-heading { margin-top: 10px; }
  html[data-style="anime"] .turn-stage { margin-top: 15px; }
  html[data-style="anime"] .turn-stage.mode-image { height: 240px; }
  html[data-style="anime"] .move-buttons { --anime-card-max-width: 180px; gap: 5px; }
  html[data-style="anime"] .turn-stage.mode-image .move-buttons b { right: 3px; left: 3px; font-size: clamp(.65rem, 2.6vw, .85rem); }
  html[data-style="anime"] .scoreboard { margin-top: 15px; }
  html[data-style="anime"] .score-player strong { font-size: 2.3rem; }
  html[data-style="anime"] .trio b { font-size: clamp(.57rem, 2vw, .75rem); }
}
@media (max-width: 600px) {
  html[data-style="anime"] .masthead #rating-open,
  html[data-style="anime"] .masthead #account-open,
  html[data-style="anime"] .masthead #style-toggle,
  html[data-style="anime"] .masthead #language-toggle { font-size: clamp(.8rem, calc(3.6vw - .16rem), 1.2rem); }
}
@media (max-width: 600px) {
  html[data-style="anime"] .match-meta { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  html[data-style="anime"] .match-round { grid-column: 1; grid-row: 1; }
  html[data-style="anime"] .match-target { grid-column: 1 / -1; grid-row: 2; }
  html[data-style="anime"] .match-meta #exit { grid-column: 2; grid-row: 1; }
}
@media (max-width: 380px) {
  html[data-style="anime"] .move-buttons { --anime-card-max-width: 156px; }
  html[data-style="anime"] .match-meta { padding: 0 3px; }
  html[data-style="anime"] .turn-stage.mode-image { height: 208px; }
  html[data-style="anime"] .turn-stage.mode-image:has(.turn-feedback),
  html[data-style="anime"] .turn-stage.mode-image.match-ended { height: auto; }
  html[data-style="anime"] .turn-stage.mode-image .move-buttons b { gap: 0; font-size: .48rem; letter-spacing: -.02em; }
  html[data-style="anime"] .turn-stage:has(.turn-feedback),
  html[data-style="anime"] .turn-stage.match-ended { min-height: 324px; }
}
