.game-view {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.2vw, 62px) clamp(150px, 17vh, 190px);
}

.match-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 34px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.11em;
  transition: color 0.2s ease;
}

.text-button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.text-button:hover {
  color: var(--text);
}

.text-button:hover svg {
  transform: translateX(-2px);
}

.reset-button {
  justify-self: end;
}

.reset-button:hover svg {
  transform: rotate(-30deg);
}

.match-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-align: center;
}

.match-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  animation: soft-pulse 2.4s ease-in-out infinite;
}

.match-slash {
  color: var(--faint);
  opacity: 0.55;
}

.match-run {
  margin-left: 5px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--faint);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(18px, 3vw, 30px) 0 clamp(16px, 2.5vw, 24px);
}

.score-side {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.score-ai {
  justify-content: flex-end;
}

.score-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.score-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
}

.score-value.bump {
  animation: score-bump 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.score-center {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 26px);
  padding: 0 clamp(15px, 2.5vw, 28px);
}

.score-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.score-stat span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.13em;
}

.score-stat strong {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.score-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.streak-stat strong {
  display: flex;
  align-items: center;
  gap: 4px;
}

.streak-stat.is-hot strong {
  color: var(--text);
}

.streak-stat.is-hot strong::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: var(--text);
  animation: soft-pulse 1s ease-in-out infinite;
}

.arena-section {
  position: relative;
}

.arena-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 0;
  min-height: 334px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, var(--surface-raised), transparent 55%),
    var(--surface);
}

.arena-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px));
  opacity: 0.34;
}

.fighter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 334px;
  padding: clamp(15px, 2vw, 22px);
  overflow: hidden;
  transition: background-color 0.35s ease, opacity 0.35s ease;
}

.fighter-player {
  border-right: 1px solid var(--line);
}

.fighter::before,
.fighter::after {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  transition: opacity 0.35s ease, width 0.35s ease, height 0.35s ease;
}

.fighter::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--text);
  border-left: 1px solid var(--text);
}

.fighter::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}

.fighter[data-state="winner"] {
  background: var(--winner-glow);
}

.fighter[data-state="winner"]::before,
.fighter[data-state="winner"]::after {
  width: 23px;
  height: 23px;
  opacity: 0.8;
}

.fighter-head,
.fighter-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fighter-role,
.fighter-status,
.fighter-foot {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

.fighter-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.fighter-status::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.fighter[data-state="thinking"] .fighter-status::before {
  animation: think-pulse 0.75s ease-in-out infinite;
}

.fighter[data-state="winner"] .fighter-status {
  color: var(--text);
}

.fighter[data-state="winner"] .fighter-status::before {
  background: var(--text);
  box-shadow: 0 0 0 3px var(--surface);
}

.fighter-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 13px 0;
}

.fighter-foot {
  text-transform: uppercase;
}

.fighter-code {
  color: var(--faint);
  opacity: 0.6;
}

.fighter-empty,
.fighter-conceal,
.fighter-thinking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  animation: fade-in 0.35s ease both;
}

.fighter-empty-mark {
  position: relative;
  display: grid;
  width: clamp(68px, 10vw, 94px);
  height: clamp(68px, 10vw, 94px);
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.fighter-empty-mark::before,
.fighter-empty-mark::after {
  position: absolute;
  background: var(--line);
  content: "";
}

.fighter-empty-mark::before {
  width: 17px;
  height: 1px;
}

.fighter-empty-mark::after {
  width: 1px;
  height: 17px;
}

.fighter-empty p {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.fighter-display {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  max-width: 100%;
  padding: 8px;
  animation: card-reveal 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fighter-glyph {
  display: grid;
  flex: 0 0 auto;
  width: clamp(75px, 9vw, 112px);
  height: clamp(75px, 9vw, 112px);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fighter-glyph svg {
  width: 60%;
  height: 60%;
}

.fighter-ident {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fighter-tag {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
}

.fighter-name {
  overflow: hidden;
  font-size: clamp(24px, 3.4vw, 41px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fighter-ident small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.fighter[data-state="winner"] .fighter-glyph {
  border-color: var(--text);
  box-shadow: 0 0 0 7px var(--winner-glow), 0 0 46px var(--winner-glow);
  transform: scale(1.055);
  animation: winner-pulse 0.65s ease both;
}

.fighter[data-state="loser"] {
  opacity: 0.52;
}

.fighter[data-state="loser"] .fighter-glyph {
  transform: scale(0.93);
}

.fighter[data-state="draw"] .fighter-glyph {
  box-shadow: 0 0 0 5px var(--line);
}

.fighter[data-state="thinking"] .fighter-thinking {
  width: 120px;
}

.scan-orbit {
  position: relative;
  width: 90px;
  height: 90px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.scan-orbit::before {
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  content: "";
  animation: slow-spin 4.5s linear infinite;
}

.scan-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  content: "";
  background: var(--text);
  box-shadow: 0 0 20px var(--text);
  animation: scan-sweep 2s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%, 100% { transform: translateX(-27px); opacity: 0.35; }
  50% { transform: translateX(27px); opacity: 1; }
}

.fighter-thinking p {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  animation: think-pulse 1.25s ease-in-out infinite;
}

.fighter-conceal {
  gap: 12px;
}

.conceal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 9px);
  grid-template-rows: repeat(3, 9px);
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.conceal-grid span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  animation: conceal-pulse 1.4s ease-in-out infinite;
}

.conceal-grid span:nth-child(2n) { animation-delay: 0.18s; }
.conceal-grid span:nth-child(3n) { animation-delay: 0.36s; }
.conceal-grid span:nth-child(5) { background: var(--text-soft); }

@keyframes conceal-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.fighter-conceal p {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.versus-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.versus-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(transparent, var(--line-strong));
}

.versus-line:last-of-type {
  background: linear-gradient(var(--line-strong), transparent);
}

.versus-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.versus-caption {
  position: absolute;
  bottom: 20px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: rotate(-90deg);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(6, 6, 7, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease both;
}

html[data-theme="light"] .countdown-overlay {
  background: rgba(238, 238, 233, 0.86);
}

.countdown-kicker {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.17em;
}

.countdown-value {
  min-width: 120px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(58px, 8vw, 92px);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 1;
  text-align: center;
  animation: count-punch 0.35s ease both;
}

.countdown-value.is-fight {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.countdown-progress {
  width: 100px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.countdown-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform-origin: left;
  animation: countdown-progress 0.72s linear both;
}

.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(13px, 2vw, 22px);
  align-items: center;
  min-height: 82px;
  margin-top: 12px;
  padding: 13px clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.verdict[data-state="win"] {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.verdict[data-state="thinking"] {
  border-style: dashed;
}

.verdict-badge {
  display: grid;
  min-width: 58px;
  min-height: 27px;
  padding: 0 9px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
}

.verdict[data-state="win"] .verdict-badge {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.verdict[data-state="loss"] .verdict-badge {
  border-color: var(--muted);
  color: var(--text-soft);
}

.verdict[data-state="draw"] .verdict-badge {
  border-style: dashed;
}

.verdict-copy {
  min-width: 0;
}

.verdict-copy strong {
  display: block;
  overflow: hidden;
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verdict-copy p {
  overflow: hidden;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verdict-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 54px;
}

.verdict-meta span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.11em;
}

.verdict-meta strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.arsenal {
  margin-top: clamp(24px, 3.6vw, 38px);
}

.arsenal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 13px;
}

.section-heading h2 {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.arsenal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.arsenal-count {
  color: var(--muted);
}

.arsenal-hint {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.intel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.9fr);
  gap: 20px;
  align-items: center;
  min-height: 75px;
  margin-bottom: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.intel.is-active {
  border-color: var(--line-strong);
}

.intel-empty {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.intel-empty::before {
  width: 6px;
  height: 6px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  content: "";
}

.intel-empty strong {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.intel-empty span {
  color: var(--faint);
}

.intel-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  animation: text-in 0.2s ease both;
}

.intel-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-raised);
}

.intel-glyph svg {
  width: 28px;
  height: 28px;
}

.intel-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.intel-tag {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.1em;
}

.intel-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.intel-name strong {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.intel-name span {
  overflow: hidden;
  color: var(--faint);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intel-relations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.intel-relation {
  min-width: 0;
}

.intel-relation span {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.1em;
}

.intel-relation strong {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 126px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.2s ease;
}

.item-card::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.item-card:hover {
  z-index: 1;
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
  transform: translateY(-2px);
}

.item-card:hover::after {
  opacity: 0.6;
}

.item-card.is-selected {
  border-color: var(--text);
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
}

.item-card.is-selected::after {
  border-color: var(--text);
  background: var(--text);
  opacity: 1;
}

.item-card:disabled {
  cursor: not-allowed;
}

.item-card.is-locked {
  opacity: 0.28;
}

.item-card.is-locked::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  content: "";
  background: var(--bg);
  opacity: 0.45;
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  margin-bottom: 4px;
}

.item-tag {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.07em;
}

.item-flag {
  overflow: hidden;
  max-width: 55%;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-card.is-selected .item-flag {
  color: var(--text-soft);
}

.item-glyph {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 0;
}

.item-glyph svg {
  width: clamp(30px, 3.2vw, 40px);
  height: clamp(30px, 3.2vw, 40px);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item-card:hover .item-glyph svg,
.item-card.is-selected .item-glyph svg {
  transform: scale(1.08) rotate(-2deg);
}

.item-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-count {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.01em;
}

.item-card.is-unlocked-pulse {
  animation: unlock-card 0.9s ease both;
}

.commit-dock {
  position: fixed;
  bottom: 17px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(640px, calc(100vw - 30px));
  min-height: 63px;
  padding: 8px 8px 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: 0 20px 54px var(--shadow-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  animation: dock-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes dock-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.commit-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.commit-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.commit-glyph svg {
  width: 22px;
  height: 22px;
}

.commit-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.commit-copy small {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.1em;
}

.commit-copy strong {
  overflow: hidden;
  max-width: 120px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-warning {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-align: center;
}

.commit-warning.is-ready {
  color: var(--text-soft);
}

.commit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 122px;
  min-height: 45px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--inverse);
  color: var(--inverse-text);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.commit-button span {
  font-size: 13px;
  line-height: 1;
  opacity: 0.55;
}

.commit-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.commit-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

body.in-game .commit-dock[hidden] {
  display: none !important;
}

body.in-game .site-header {
  position: relative;
}

@media (max-width: 1180px) {
  .item-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .fighter-glyph {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 900px) {
  .game-view {
    padding-right: 17px;
    padding-left: 17px;
  }

  .arena-stage {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    min-height: 290px;
  }

  .fighter {
    min-height: 290px;
    padding: 14px;
  }

  .fighter-display {
    flex-direction: column;
    gap: 9px;
    padding: 3px;
    text-align: center;
  }

  .fighter-glyph {
    width: 72px;
    height: 72px;
  }

  .fighter-ident {
    align-items: center;
  }

  .fighter-name {
    font-size: clamp(18px, 4vw, 27px);
  }

  .fighter-ident small {
    display: none;
  }

  .versus-caption {
    display: none;
  }

  .versus-mark {
    width: 28px;
    height: 28px;
    font-size: 6px;
  }

  .intel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intel-relations {
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .item-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .item-card {
    min-height: 116px;
  }
}

@media (max-width: 680px) {
  .game-view {
    padding-bottom: 132px;
  }

  .match-toolbar {
    min-height: 48px;
  }

  .match-id {
    gap: 5px;
    font-size: 6.5px;
  }

  .match-run {
    display: none;
  }

  .text-button {
    font-size: 6.5px;
  }

  .reset-button {
    width: 30px;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
    gap: 0;
  }

  .reset-button svg {
    flex: 0 0 auto;
    color: var(--faint);
  }

  .scoreboard {
    padding: 15px 1px 13px;
  }

  .score-value {
    font-size: 27px;
  }

  .score-center {
    gap: 12px;
    padding: 0 10px;
  }

  .score-side {
    gap: 6px;
  }

  .score-label {
    font-size: 6px;
  }

  .score-stat strong {
    font-size: 9px;
  }

  .arena-stage {
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    min-height: 244px;
    border-radius: 12px;
  }

  .fighter {
    min-height: 244px;
    padding: 11px 9px;
  }

  .fighter::before,
  .fighter::after {
    width: 10px;
    height: 10px;
  }

  .fighter::before { top: 7px; left: 7px; }
  .fighter::after { right: 7px; bottom: 7px; }

  .fighter-head {
    padding: 0 3px;
  }

  .fighter-role,
  .fighter-foot {
    font-size: 5.5px;
  }

  .fighter-status {
    font-size: 5px;
  }

  .fighter-code {
    display: none;
  }

  .fighter-glyph {
    width: 61px;
    height: 61px;
  }

  .fighter-name {
    max-width: 100%;
    font-size: clamp(15px, 4.4vw, 21px);
    white-space: normal;
  }

  .fighter-tag {
    font-size: 5px;
  }

  .fighter-empty-mark {
    width: 60px;
    height: 60px;
  }

  .fighter-empty p,
  .fighter-conceal p,
  .fighter-thinking p {
    max-width: 74px;
    font-size: 5px;
    line-height: 1.35;
    text-align: center;
  }

  .fighter-foot {
    gap: 4px;
  }

  .versus-column {
    gap: 5px;
  }

  .versus-line {
    height: 16px;
  }

  .versus-mark {
    width: 24px;
    height: 24px;
    font-size: 5.5px;
  }

  .scan-orbit {
    width: 60px;
    height: 60px;
  }

  .scan-orbit::before {
    inset: 7px;
  }

  .scan-orbit::after {
    animation-name: scan-sweep-sm;
  }

  @keyframes scan-sweep-sm {
    0%, 100% { transform: translateX(-15px); opacity: 0.35; }
    50% { transform: translateX(15px); opacity: 1; }
  }

  .conceal-grid {
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
    padding: 13px;
  }

  .conceal-grid span {
    width: 6px;
    height: 6px;
  }

  .verdict {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 70px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 9px;
  }

  .verdict-badge {
    min-width: 47px;
    min-height: 23px;
    font-size: 5.5px;
  }

  .verdict-copy strong {
    font-size: 11px;
    white-space: normal;
  }

  .verdict-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .verdict-meta {
    display: none;
  }

  .arsenal {
    margin-top: 22px;
  }

  .arsenal-head {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .arsenal-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding-top: 1px;
    font-size: 5.5px;
  }

  .arsenal-hint {
    padding: 0;
    border: 0;
  }

  .intel {
    min-height: 66px;
    margin-bottom: 7px;
    padding: 9px 10px;
    border-radius: 8px;
  }

  .intel-empty {
    align-items: flex-start;
    gap: 8px;
    font-size: 6px;
    line-height: 1.5;
  }

  .intel-glyph {
    width: 37px;
    height: 37px;
  }

  .intel-glyph svg {
    width: 23px;
    height: 23px;
  }

  .intel-name strong {
    font-size: 12px;
  }

  .intel-name span {
    font-size: 7.5px;
  }

  .intel-relations {
    gap: 8px;
  }

  .item-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .item-card {
    min-height: 108px;
    padding: 8px;
    border-radius: 7px;
  }

  .item-glyph svg {
    width: 31px;
    height: 31px;
  }

  .item-name {
    font-size: 9px;
  }

  .item-tag {
    font-size: 5px;
  }

  .item-flag {
    display: none;
  }

  .commit-dock {
    bottom: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 57px;
    padding: 6px;
    border-radius: 10px;
  }

  .commit-choice {
    padding-left: 4px;
  }

  .commit-glyph {
    width: 30px;
    height: 30px;
  }

  .commit-warning {
    display: none;
  }

  .commit-button {
    min-width: 108px;
    min-height: 44px;
    font-size: 6.5px;
  }

  .commit-copy strong {
    max-width: 105px;
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arena-stage {
    min-height: 228px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  }

  .fighter {
    min-height: 228px;
  }

  .fighter-glyph {
    width: 54px;
    height: 54px;
  }
}
