:root {
  color-scheme: light;
  --ink: #191d4b;
  --dark: #252957;
  --paper: #ffedba;
  --sun: #fff087;
  --peach: #f7a184;
  --blue: #2b3a82;
  --head: 72px;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--peach); }
button, a { -webkit-tap-highlight-color: transparent; }
button {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
  border: 0;
}
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #fff9d1; box-shadow: 0 0 0 5px #212555; outline-offset: 2px; }

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  height: calc(var(--head) + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  background: var(--ink);
  color: var(--paper);
}
.masthead .wordmark {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  font-weight: 950;
  letter-spacing: -.077em;
  line-height: .96;
}
.masthead .wordmark span { color: #ff9a76; }
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  border: 1px solid #ffdcaa4a;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon:hover, .icon:active { background: #39479b; }
.mast-menu { border-color: #ffd5ab58; }
.site-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: max(12px, env(safe-area-inset-right));
  min-width: 200px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - var(--head) - env(safe-area-inset-top));
  overflow: auto;
  display: grid;
  padding: 10px 18px 14px;
  gap: 2px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 0 #191d4b3b;
  border-radius: 0 0 12px 12px;
}
.site-menu a { display: flex; align-items: center; min-height: 44px; }
.language-list { margin-top: 6px; border-top: 1px solid #ffd5ab58; padding-top: 10px; }
.language-list strong { font-size: .875rem; color: #ffb493; }
.language-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.language-links [aria-current="page"] { color: #ffb493; font-weight: 900; }
.english-notice { margin-top: 5px; font-size: .875rem; color: #ffb493; }

#game {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: calc(100dvh - var(--head) - env(safe-area-inset-top));
  min-height: 312px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: #ee947e;
  --edge-left: max(16px, env(safe-area-inset-left));
  --edge-right: max(16px, env(safe-area-inset-right));
  --edge-top: 14px;
  --edge-bottom: max(16px, env(safe-area-inset-bottom));
}
#game:focus { outline: none; }
#game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#game:fullscreen, #game.fullscreen-fallback {
  height: 100dvh;
  min-height: 0;
  background: #ee947e;
  --edge-top: max(14px, env(safe-area-inset-top));
  --edge-bottom: max(16px, env(safe-area-inset-bottom));
}
#game.fullscreen-fallback { position: fixed; inset: 0; z-index: 9; }
html.court-fullscreen { overflow: hidden; overscroll-behavior: none; }
.shrink, #game[data-fullscreen="true"] .expand { display: none; }
#game[data-fullscreen="true"] .shrink { display: initial; }

.game-tools {
  position: absolute;
  z-index: 4;
  right: var(--edge-right);
  top: var(--edge-top);
  display: flex;
  gap: 6px;
}
.game-tools button[aria-pressed="false"] { color: #ff9a76; }
.game-tools button[aria-pressed="false"]::after {
  content: "";
  width: 23px;
  height: 2px;
  position: absolute;
  background: currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px var(--ink);
}
.fixture {
  position: absolute;
  top: var(--edge-top);
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
}
.practice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 3px 4px 3px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: #d7edcf;
  box-shadow: 0 4px 0 #191d4b55;
  font-weight: 900;
}
.practice b {
  min-width: 35px;
  padding: 6px;
  border-radius: 7px;
  color: #e7f5d9;
  background: #263d43;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.scoreline {
  display: flex;
  min-height: 53px;
  gap: 3px;
  border-radius: 14px;
  padding: 3px;
  background: var(--ink);
  box-shadow: 0 4px 0 #191d4b55;
  line-height: 1;
}
.scoreline .team, .scoreline .time { display: flex; align-items: center; justify-content: center; }
.scoreline .team { min-width: 106px; gap: .55rem; padding: 0 12px; font-size: .875rem; font-weight: 900; }
.team b { font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.team-home { color: var(--ink); background: var(--sun); border-radius: 10px 3px 3px 10px; }
.team-away { color: var(--ink); background: var(--away-shirt,#ff9a76); border-radius: 3px 10px 10px 3px; }
.time {
  width: 50px;
  font-weight: 900;
  background: #30366b;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.time[data-extra="true"] { color: var(--sun); border-bottom: 3px solid var(--sun); }

.placard {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 16%;
  width: min(390px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 16px 21px 14px;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px 20px 23px 23px;
  box-shadow: 0 6px 0 var(--ink), 0 13px 15px #47284740;
}
.placard::before, .placard::after {
  content: "";
  position: absolute;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2b070;
  border: 1px solid #aa603d;
}
.placard::before { left: 13px; }
.placard::after { right: 13px; }
.kickoff { width: min(436px, calc(100% - 32px)); padding-top: 12px; }
.ticket-title {
  margin: 0 0 10px;
  font-weight: 950;
  font-size: clamp(2.35rem, 6vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.076em;
}
.kickoff-actions, .action-row { display: flex; gap: 8px; justify-content: center; }
.button {
  min-height: 48px;
  padding: 8px 19px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  line-height: 1.07;
}
.button.primary { color: var(--paper); background: var(--ink); }
.button.outlined { color: var(--ink); background: #ffe5ac; }
.button:hover { background: #3a4699; color: #fff4d1; }
.button:active { box-shadow: inset 0 3px 0 #191d4b65; }
.kickoff-actions .primary { flex: 1.14; }
.kickoff-actions .outlined { flex: 1; }
.difficulty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  font-size: .875rem;
  margin-top: 8px;
}
.difficulty span { margin-right: 5px; font-weight: 900; }
.difficulty button {
  padding: 0 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}
.difficulty button:hover { border-color: #9c523c; }
.difficulty button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cup-entry { width: 100%; margin-top: 5px; background: #d7edcf; }
.cup-card {
  top: max(67px, 11%);
  width: min(475px, calc(100% - 24px));
  max-height: calc(89% - 14px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-inline: clamp(12px, 4vw, 21px);
}
.cup-card h2 { margin: 0 0 2px; }
.cup-card [data-ui="cup-progress"] { margin: 0 0 10px; font-size: .9rem; font-weight: 750; }
.cup-card h3 { margin: 9px 0 5px; font-size: 1rem; text-align: left; }
.cup-stages { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.cup-stages button { background: #ffe0a2; border: 1px solid #aa7348; border-radius: 9px; }
.cup-stages button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cup-roster { display: grid; gap: 5px; }
.cup-roster button {
  display: grid;
  grid-template-columns: minmax(49px,auto) minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-left: 9px solid var(--kit);
  border-radius: 8px;
  background: #fff3d4;
  text-align: left;
}
.cup-roster button[data-status="cupPlay"] { background: #d7edcf; }
.cup-roster button:disabled { background: #f5e1b5; border-color: #896f59; border-left-color: var(--kit); cursor: default; }
.cup-tactic { font-size: .875rem; font-weight: 650; line-height: 1.15; }
.cup-status { font-size: .875rem; text-align: right; }
.cup-actions { display: flex; justify-content: space-between; gap: 6px; margin-top: 3px; }
.cup-tasks { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; text-align: left; }
.cup-tasks li {
  position: relative;
  border-radius: 7px;
  background: #fff3d4;
  padding: 6px 8px 6px 29px;
  font-size: .875rem;
  line-height: 1.25;
}
.cup-tasks li::before {
  position: absolute;
  top: 8px;
  left: 9px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  content: "";
}
.cup-tasks li[data-done="true"] { background: #d7edcf; }
.cup-tasks li[data-done="true"]::before { background: #47704a; box-shadow: inset 0 0 0 2px #d7edcf; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }

.pitch-message, .hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  place-content: center;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  color: var(--paper);
  background: var(--ink);
  font-size: .9375rem;
  font-weight: 800;
  text-align: center;
}
.pitch-message {
  top: 29%;
  padding: 5px 16px 7px;
  border: 2px solid var(--sun);
  border-radius: 10px;
  box-shadow: 0 5px 0 #191d4b48;
  font-size: clamp(1.3rem, 4vw, 2.45rem);
  letter-spacing: -.04em;
}
.hint {
  display: grid;
  grid-template-columns: 29px minmax(0,1fr);
  gap: 10px;
  top: max(77px,13%);
  max-width: min(440px,calc(100% - 32px));
  padding: 9px 13px;
  border: 1px solid #fff2bd99;
  border-radius: 11px;
  box-shadow: 0 3px 0 #191d4b6b;
  text-align: left;
  line-height: 1.26;
  pointer-events: none;
}
.hint strong { display: block; margin-bottom: 3px; color: var(--sun); }
.hint [data-ui="coach-text"] { display: block; font-size: .875rem; font-weight: 700; }
#game[data-compact-court] .hint {
  top: var(--coach-line);
  transform: translate(-50%,-100%);
}
.coach-cue {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, var(--sun) 0 3px, transparent 4px);
  border: 2px dashed var(--sun);
  border-radius: 50%;
}
#game[data-mode="tutorial"] .hint { border-color: #d7edcf; }
#game[data-coach="defend"] .coach-cue {
  height: 19px;
  background: transparent;
  border: 3px solid var(--sun);
  border-bottom-width: 1px;
  border-radius: 3px 3px 0 0;
}

.controls {
  position: absolute;
  z-index: 1;
  bottom: var(--edge-bottom);
  left: var(--edge-left);
  right: var(--edge-right);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
#game[data-format="duel"] .controls { justify-content: space-between; }
.control-group {
  display: grid;
  grid-template-columns: repeat(6,minmax(44px,1fr));
  gap: 5px;
  width: min(100%,500px);
  min-width: 0;
}
#game[data-format="duel"] .control-group { max-width: 450px; }
.control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 47px;
  padding: 3px 6px;
  border: 2px solid #b6a9da;
  border-radius: 11px;
  box-shadow: 0 3px 0 #151c47;
  background: #262e68;
  color: #fff3d4;
  line-height: 1;
  font-size: .875rem;
  white-space: nowrap;
}
.control[data-input="left"] { order: 0; }
.control[data-input="right"] { order: 1; }
.control[data-input="jump"] { order: 2; }
.control[data-input="slide"] { order: 3; }
.control[data-input="kick"] { order: 4; }
.control[data-input="super"] { order: 5; border-color: #a7a5bc; }
.control[data-input="super"][data-ready="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.control-group[data-player="1"] .control { border-color: #f7a184; }
.control-group[data-player="1"] .control[data-input="super"][data-ready="true"] { background: #ff9a76; border-color: #ff9a76; }
.control:is(:hover,[data-down]):not([data-ready="true"]) { background: #434f9f; }
.control[data-down] { box-shadow: inset 0 3px 0 #191d4b88; border-color: #ffdd96; }
#game[data-compact-court] .control[data-input="kick"]:not([data-down]) {
  background: #39447f;
  border-color: #efcf97;
}
#game[data-compact-court] .control-group[data-player="1"] .control[data-input="kick"]:not([data-down]) {
  border-color: #fab498;
}
.control kbd {
  margin-top: 1px;
  color: inherit;
  line-height: 1;
  font: inherit;
  font-size: .75rem;
  opacity: .85;
}
.control-group .control:nth-child(-n+2) kbd { display: none; }
.control svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#game[data-big="true"] .control { min-height: 59px; }

.pause-card, .key-card, .final-card { top: 14%; }
.placard h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4.5vw, 2.2rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.058em;
}
.pause-card .action-row > *, .final-card .action-row > * { flex: 1; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-top: 9px; }
.settings-grid button, .binding-button {
  border: 1px solid #846043;
  border-radius: 9px;
  background: #f7d69f;
  padding: 3px 7px;
  font-size: .875rem;
}
.settings-grid button:hover, .binding-button:hover { background: #ffc184; }
.settings-grid button[aria-pressed="true"] { background: #fff0b0; }
.text-button {
  display: inline-block;
  margin: 2px auto -5px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .22em;
  font-size: .9rem;
}
.key-card { width: min(470px,calc(100% - 32px)); }
.key-card h2 { margin-bottom: 5px; }
.key-card p { margin: 0 0 8px; font-size: .875rem; line-height: 1.2; min-height: 1.2em; }
.binding-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 9px; }
.binding-team { display: grid; gap: 3px; }
.binding-team strong { font-size: .875rem; }
.binding-button { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.binding-button kbd { font: inherit; }
.binding-button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.final-card .result-mark { margin: 2px 0 5px; font-size: .875rem; font-weight: 900; }
.final-card h2 { margin-bottom: 4px; }
.cup-next { grid-column: 1 / -1; width: 100%; margin-bottom: 7px; }
.final-score {
  width: fit-content;
  margin-inline: auto;
  padding: .04em .23em .08em;
  border-radius: 11px;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(2.7rem, 8vw, 4rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  line-height: 1;
}
#game[data-mode="won"] .final-score { color: var(--ink); background: var(--sun); }
#game[data-motion="true"] .final-card { animation: final-arrival .22s ease-out both; }
@keyframes final-arrival {
  from { opacity: .65; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.best, .share-note { margin: 7px 0; font-size: .875rem; font-weight: 750; }
.best:empty { margin: 8px; }
.share-note { margin-bottom: 0; }

.copy { width: min(100% - 40px, 640px); margin-inline: auto; padding: 54px 0 40px; font-size: 1.0625rem; line-height: 1.65; }
.copy > h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; letter-spacing: -.055em; }
.copy h2 { line-height: 1.13; font-size: clamp(1.6rem, 4vw, 2rem); margin: 37px 0 12px; letter-spacing: -.042em; }
.copy h3 { font-size: 1.075rem; line-height: 1.25; margin: 20px 0 4px; }
.copy p { margin: 0 0 16px; }
.copy .lead { font-size: clamp(1.2rem, 3vw, 1.52rem); line-height: 1.42; font-weight: 800; letter-spacing: -.02em; }
.copy ul { padding-inline-start: 1.2em; }
.copy li { margin-bottom: 9px; }
.copy dt { font-weight: 900; line-height: 1.3; }
.copy dd { margin: 3px 0 16px; }
.copy kbd { font: inherit; font-weight: 900; }
.legal-page { min-height: calc(100dvh - var(--head)); }
.legal-page h1 { font-size: clamp(2.5rem,9vw,4rem); line-height: 1; letter-spacing: -.065em; margin: 0 0 30px; }
.home-link { font-weight: 900; text-decoration: none; font-size: 1.3rem; }
.footer { position: relative; overflow: hidden; background: #191d4b; color: var(--paper); padding: 0 16px max(16px,env(safe-area-inset-bottom)); text-align: center; }
.footer svg { display: block; position: relative; width: calc(100% + 32px); margin: 0 -16px; height: clamp(64px, 11vw, 130px); background: var(--peach); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(12px, 4vw, 55px); }
.footer a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 700px) {
  :root { --head: 58px; }
  .masthead { padding-inline: max(15px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  #game { --edge-left: max(10px, env(safe-area-inset-left)); --edge-right: max(10px, env(safe-area-inset-right)); }
  .fixture { left: var(--edge-left); transform: none; }
  .scoreline { min-height: 44px; }
  .scoreline .team { min-width: 64px; padding: 0 5px; gap: 4px; }
  .team b { font-size: 1.35rem; }
  .time { width: 31px; font-size: .875rem; }
  .game-tools { gap: 4px; }
  .controls { gap: 9px; }
  .control kbd { display: none; }
  .control-group { grid-template-columns: repeat(3,minmax(44px,1fr)); max-width: 298px; gap: 7px; }
  #game[data-format="duel"] .control-group { flex: 1; max-width: 250px; gap: 4px; }
  #game[data-format="duel"] .control { padding-inline: 1px; border-radius: 9px; }
  .placard { top: 13%; }
  .cup-card { top: 65px; max-height: calc(100% - 80px); }
  .final-card { top: 10%; }
}

@media (max-width: 700px) and (orientation: portrait) {
  #game:not(:fullscreen, .fullscreen-fallback) {
    height: calc(100dvh - var(--head) - env(safe-area-inset-top) - 22px);
  }
}

@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait),
       (max-height: 530px) and (orientation: landscape) {
  .final-card {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    column-gap: 12px;
    top: 63px;
    text-align: left;
    padding: 10px 16px 7px;
  }
  .final-card::before, .final-card::after { display: none; }
  .final-card .result-mark,
  .final-card .best,
  .final-card .action-row,
  .final-card .text-button,
  .final-card .share-note { grid-column: 1 / -1; }
  .final-card .result-mark { margin: 0 0 4px; }
  .final-card h2 { margin: 0; }
  .final-card .best { margin: 5px 0 8px; }
}

@media (min-width: 701px) and (hover: none) and (orientation: portrait) {
  .controls { bottom: max(28px, env(safe-area-inset-bottom)); }
  .control-group { max-width: 450px; }
  #game[data-format="duel"] .control-group { grid-template-columns: repeat(3,minmax(44px,1fr)); max-width: 275px; }
}

@media (max-height: 530px) and (orientation: landscape) {
  :root { --head: 48px; }
  .masthead .wordmark { font-size: 2.45rem; }
  #game { --edge-bottom: max(9px, env(safe-area-inset-bottom)); --edge-top: max(7px, env(safe-area-inset-top)); }
  .placard { top: 15px; padding: 8px 13px 6px; }
  .cup-card { max-height: calc(100% - 28px); }
  .cup-card h2 { font-size: 1.4rem; }
  .cup-card [data-ui="cup-progress"] { margin-bottom: 5px; }
  .cup-card h3 { margin-top: 5px; }
  .pause-card { top: 55px; }
  .pause-card .settings-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .final-card { top: 29px; }
  .ticket-title { font-size: 2.45rem; margin-bottom: 6px; }
  .difficulty { margin-top: 4px; }
  .key-card { width: min(572px,calc(100% - 32px)); }
  .binding-team { grid-template-columns: 1fr 1fr; }
  .binding-team strong { grid-column: 1 / -1; }
  .pitch-message { top: 23%; }
  .hint { top: 61px; }
  #game[data-format="duel"] .control-group { grid-template-columns: repeat(3,minmax(44px,1fr)); max-width: 280px; gap: 3px; }
  #game[data-format="duel"] .control { min-height: 44px; }
  #game[data-format="duel"] .control kbd { display: none; }
  #game[data-big="true"][data-format="duel"] .control { min-height: 50px; }
}

#game[data-coach="slide"] .control[data-input="slide"],
#game[data-coach="super"] .control[data-input="super"] { box-shadow: inset 0 0 0 2px var(--sun); }

@media (min-width: 760px) and (max-height: 530px) and (orientation: landscape) {
  .hint {
    top: var(--edge-top);
    left: var(--edge-left);
    max-width: calc((100% - 279px) / 2 - 25px);
    transform: none;
  }
}

@media (max-width: 365px) {
  .control-group { gap: 5px; }
  .difficulty button { padding-inline: 9px; }
  .kickoff-actions .button { padding-inline: 9px; white-space: nowrap; }
}
@media (max-width: 345px) {
  .scoreline .team { min-width: 40px; }
  .scoreline .team span { display: none; }
}

html:not([lang="en"]) .control {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html:not([lang="en"]) .control kbd { overflow-wrap: normal; }
html:not([lang="en"]) .settings-grid,
html:not([lang="en"]) .binding-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not([lang="en"]) .binding-button { text-align: left; }
html:not([lang="en"]) .binding-button span { flex-shrink: 0; }
html:not([lang="en"]) .binding-button kbd {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
html:not([lang="en"]) .settings-grid button,
html:not([lang="en"]) .final-card h2,
html:not([lang="en"]) .share-note { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  html:not([lang="en"]) #game[data-format="duel"] .control-group {
    grid-template-columns: minmax(44px, 1.3fr) repeat(2, minmax(44px, 1fr));
  }
  html:not([lang="en"]) #game[data-format="duel"] .control { font-size: .75rem; }
  html:not([lang="en"]) .action-row .button { padding-inline: 8px; }
}
@media (max-width: 365px) {
  html:not([lang="en"]) .binding-button { gap: 2px; padding-inline: 5px; }
}
