@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap");

:root {
  --bg: #020202;
  --panel: rgba(0, 0, 0, 0.96);
  --line: #6f79a6;
  --line-bright: #c8d3ff;
  --blue: #0b1650;
  --blue-2: #071137;
  --red: #d84a3f;
  --red-2: #8f1d18;
  --text: #f0f0f0;
  --muted: #c8d1ee;
  --gold: #ffd95e;
  --green: #1dbb52;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Times New Roman", serif;
  background:
    radial-gradient(circle at 50% 30%, rgba(180, 30, 30, 0.18), transparent 22%),
    radial-gradient(circle at 50% 70%, rgba(180, 30, 30, 0.08), transparent 25%),
    linear-gradient(180deg, #060606 0%, #010101 100%);
  color: var(--text);
}

body.game-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(165, 34, 34, 0.3), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(90, 20, 20, 0.14), transparent 30%),
    linear-gradient(180deg, #080808 0%, #020202 100%);
}

body.index-page {
  background:
    radial-gradient(circle at 50% 16%, rgba(173, 44, 44, 0.22), transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(150, 32, 20, 0.18), transparent 28%),
    linear-gradient(180deg, #050505 0%, #010101 100%);
}

body.battle-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(165, 34, 34, 0.28), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(90, 20, 20, 0.14), transparent 30%),
    linear-gradient(180deg, #050505 0%, #010101 100%);
}

body.index-page::before,
body.game-page::before,
body.battle-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/BRU.gif");
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.index-page::before {
  background-position: 50% 74%;
  background-size: min(92vw, 700px);
  opacity: 0.82;
}

body.game-page::before,
body.battle-page::before {
  background-position: 50% 50%;
  background-size: min(78vw, 760px);
  opacity: 0.58;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: #ff6464;
  text-decoration: none;
}

a:hover {
  color: #fff0a8;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid #d9d9d9;
  background: #e8e8e8;
  color: #111;
  padding: 4px 12px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input,
select {
  border: 1px solid #9a9a9a;
  background: #f1f1f1;
  color: #111;
  padding: 4px 6px;
}

.game-shell {
  width: min(980px, calc(100vw - 14px));
  margin: 0 auto;
  padding: 8px 0 16px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.panel-dark {
  color: var(--text);
}

.top-banner {
  text-align: center;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #050a26 0%, #02040d 100%);
  border-color: #a4b0da;
  padding: 7px 10px 9px;
}

.top-banner h1 {
  margin: 0;
  color: var(--red);
  font-size: 30px;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(255, 120, 80, 0.45);
}

.site-nav {
  margin-top: 4px;
  color: #c88f8f;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.site-nav a {
  color: #ff7b7b;
}

.site-nav span {
  color: #c88f8f;
  padding: 0 2px;
}

.subnav {
  margin-top: 4px;
  color: #efb3b3;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.message {
  margin: 8px 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
}

.message-notice {
  background: rgba(20, 52, 26, 0.82);
  color: #d4ffd9;
}

.message-error {
  background: rgba(74, 16, 16, 0.86);
  color: #ffd2d2;
}

/* Kill log styling */
.log-attacker {
  color: #ff9fcf; /* lighter pink */
  font-weight: 600;
}

.log-defender {
  color: #ff4a4a; /* red */
  font-weight: 600;
}

.log-death-quote {
  color: #ff4a4a; /* same red as defender */
  font-style: normal;
  font-weight: 600;
}

.log-forbidden-area {
  color: #4cff4c;
  font-weight: 700;
}

.log-forbidden-victim {
  color: #ff4a4a;
  font-weight: 700;
}

.log-forbidden-death-text {
  color: #f5f5f5;
  font-weight: 400;
}

.log-forbidden-death-highlight {
  color: #ff4a4a;
  font-weight: 400;
}

.log-poison-damage {
  color: #ff4a4a;
  font-weight: 700;
}

.log-poison-player {
  color: #ff4a4a;
  font-weight: 700;
}

.log-player-poisoned {
  color: #888;
}

.legacy-status-poisoned {
  color: #cc66ff;
}

.status-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.9fr;
  gap: 6px;
  align-items: stretch;
}

.status-card {
  min-height: 214px;
}

.status-head {
  display: flex;
  gap: 8px;
}

.avatar-box {
  width: 116px;
  min-width: 116px;
  padding-right: 8px;
  border-right: 1px solid rgba(150, 170, 220, 0.35);
}

.avatar-placeholder {
  width: 100px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid #a8b5e8;
  background: linear-gradient(180deg, #111b35 0%, #060b16 100%);
  color: #f1f1f1;
  font-size: 30px;
}

.avatar-alpha {
  background: linear-gradient(180deg, #111b35 0%, #060b16 100%);
}

.avatar-beta {
  background: linear-gradient(180deg, #251635 0%, #09050f 100%);
}

.avatar-gamma {
  background: linear-gradient(180deg, #14313b 0%, #061015 100%);
}

.avatar-delta {
  background: linear-gradient(180deg, #302015 0%, #110a06 100%);
}

.avatar-epsilon {
  background: linear-gradient(180deg, #38310f 0%, #141004 100%);
}

.avatar-zeta {
  background: linear-gradient(180deg, #1f3030 0%, #071010 100%);
}

.status-meta,
.status-bars {
  flex: 1;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(150, 170, 220, 0.18);
  padding: 2px 0;
  font-size: 13px;
  line-height: 1.25;
}

.status-row span {
  color: #c8d1ee;
}

.status-row strong {
  color: #fff6c7;
  font-weight: normal;
}

.bar-block {
  margin-top: 10px;
}

.bar-label {
  margin-bottom: 4px;
  color: #bcd7ff;
  font-size: 12px;
}

.bar-track {
  height: 14px;
  border: 1px solid #6780b5;
  background: #111722;
}

.bar-fill {
  height: 100%;
}

.bar-fill-hp {
  background: linear-gradient(90deg, #a33ac4 0%, #ef72ea 100%);
}

.bar-fill-sp {
  background: linear-gradient(90deg, #6b0000 0%, #ff4b4b 100%);
}

.command-card h2,
.panel-title {
  margin: 0 0 8px;
  color: #f3f6ff;
  border-bottom: 1px solid #7582ad;
  padding-bottom: 4px;
  font-size: 17px;
}

.small-title {
  margin-top: 8px;
  font-size: 15px;
}

.confirm-box {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #7784b0;
  background: rgba(255, 255, 255, 0.03);
}

.confirm-title {
  margin: 0 0 6px;
  color: #fff0ac;
}

.confirm-subtitle {
  margin: 0 0 8px;
  color: #dfe6ff;
  font-size: 13px;
}

.confirm-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.radio-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: #fff;
}

.radio-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-face {
  width: 18px;
  height: 18px;
  border: 2px solid #f4f4f4;
  border-radius: 50%;
  background: #f5f5f5;
  display: inline-block;
  position: relative;
}

.radio-choice input[type="radio"]:checked + .radio-face::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #000;
  border-radius: 50%;
}

.legacy-radio-row input[type="radio"]:checked + .radio-face,
.legacy-command-row input[type="radio"]:checked + .radio-face {
  background: #fff;
  border-color: #fff0ac;
  box-shadow: 0 0 0 1px rgba(255, 240, 172, 0.45);
}

.legacy-radio-row input[type="radio"]:checked + .radio-face::after,
.legacy-command-row input[type="radio"]:checked + .radio-face::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #000;
  border-radius: 50%;
}

.command-form label {
  display: block;
  margin-bottom: 8px;
  color: #dfe6ff;
}

.command-form select,
.command-form button,
.secondary-action button {
  width: 100%;
}

.command-note {
  margin: 8px 0 10px;
  color: #c4ccec;
  font-size: 12px;
  line-height: 1.45;
}

.secondary-action {
  display: inline-block;
  margin-right: 6px;
}

.middle-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 0.9fr;
  gap: 6px;
}

.log-card,
.world-card,
.info-card,
.inventory-card,
.footer-card {
  min-height: 148px;
}

.log-line {
  margin: 0 0 4px;
  color: #f3e18a;
  font-size: 12px;
  line-height: 1.35;
}

.world-box {
  display: flex;
  gap: 10px;
}

.ground-box {
  margin-top: 10px;
  border-top: 1px solid rgba(150, 170, 220, 0.35);
  padding-top: 8px;
}

.world-name {
  min-width: 112px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #e25d5d;
  letter-spacing: 2px;
  border: 1px solid #67769e;
  background: rgba(20, 20, 30, 0.74);
}

.world-desc,
.info-box {
  font-size: 12px;
  color: #dbe3ff;
  line-height: 1.45;
}

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

.inventory-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid rgba(125, 138, 182, 0.85);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  font-size: 12px;
}

.inventory-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inventory-actions form {
  display: inline-block;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #d8def2;
}

.footer-links {
  margin-top: 8px;
}

.index-shell {
  width: min(860px, calc(100vw - 20px));
  margin: 0 auto;
  padding: 24px 0 28px;
  text-align: center;
}

.index-title {
  margin: 10px 0 16px;
}

.index-title-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em 0.45em;
}

.index-title-brand {
  color: #ff3b28;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 173, 80, 0.45);
}

.index-title-rebirth {
  font-family: "Times New Roman", "Palatino Linotype", Georgia, serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8c890;
  text-shadow: 0 0 6px rgba(255, 190, 120, 0.25);
  transform: translateY(-2px);
}

.index-title-sub {
  margin-top: 6px;
  color: #e2c8c8;
  font-size: 13px;
}

.index-stats,
.index-notice {
  width: min(620px, 100%);
  margin: 0 auto 10px;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.55;
}

body.index-page .index-stats.panel,
body.index-page .index-notice.panel {
  background: transparent;
  border-color: rgba(111, 121, 166, 0.42);
  box-shadow: none;
}

.index-stats p,
.index-notice p {
  margin: 0;
}

.index-stat-value {
  color: #f4d18f;
}

.auth-card {
  padding: 12px 14px 14px;
  text-align: left;
}

.auth-card h2 {
  margin: 0 0 10px;
  color: #f4d18f;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
}

.auth-card input {
  width: 100%;
  margin-top: 4px;
}

.register-shell {
  width: min(960px, calc(100vw - 20px));
}

.register-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 12px 14px 14px;
  text-align: left;
}

.register-intro {
  margin-bottom: 12px;
  color: #dde4ff;
  font-size: 13px;
  line-height: 1.55;
}

.register-intro p {
  margin: 0 0 4px;
}

.register-form {
  display: grid;
  gap: 14px;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.register-grid label {
  display: block;
  color: #dfe6ff;
  font-size: 13px;
}

.register-grid input {
  width: 100%;
  margin-top: 4px;
}

.avatar-picker-title {
  margin-bottom: 8px;
  color: #f3f6ff;
  border-bottom: 1px solid #7582ad;
  padding-bottom: 4px;
  font-size: 17px;
}

.register-icon-select select {
  width: 100%;
  margin-top: 4px;
}

.register-icon-note {
  margin-top: 6px;
  color: #b7c2e6;
  font-size: 12px;
  line-height: 1.45;
}

.avatar-picker-subtitle {
  margin: 8px 0 6px;
  color: #f3f6ff;
  font-size: 13px;
}

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

.avatar-choice {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice-face {
  width: 100%;
  height: 82px;
  border: 1px solid #9aa6d4;
  display: block;
  overflow: hidden;
  background: #0c1228;
}

.avatar-choice-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-choice input:checked + .avatar-choice-face {
  outline: 2px solid #fff0ac;
  box-shadow: 0 0 0 2px rgba(255, 240, 172, 0.3);
}

.avatar-choice-label {
  color: #d8def2;
  font-size: 12px;
}

.register-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.index-player-counts {
  position: relative;
  z-index: 2;
  margin: 12px auto 14px;
  color: #24e060;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(36, 224, 96, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

.index-error {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin: 0 auto 8px;
}

.index-emblem-zone {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 10px 18px;
}

.index-login-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  width: 100%;
  margin: 0 auto 10px;
  padding: 8px 0 4px;
  background: transparent;
}

.index-login-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #ececec;
  font-size: 15px;
}

.index-login-label {
  white-space: nowrap;
}

.index-login-field input {
  width: 148px;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: #111111;
}

.index-login-submit {
  min-width: 92px;
  padding: 4px 14px;
  border: 1px solid #d8d8d8;
  background: #efefef;
  color: #111111;
  font-size: 15px;
}

.index-hero-nav {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 260px;
  margin: 0;
  padding: 16px 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: transparent;
}

.index-hero-nav-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 34px;
}

.index-hero-nav a,
.index-hero-nav .index-nav-disabled {
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", "DFKai-SB", serif;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: 2px;
  color: #8c0f0f;
  text-decoration: none;
  text-shadow:
    0 0 1px rgba(255, 210, 170, 0.45),
    0 2px 0 rgba(40, 0, 0, 0.85),
    0 0 18px rgba(170, 24, 24, 0.55),
    0 0 36px rgba(120, 12, 12, 0.35);
  transition: color 0.15s ease, text-shadow 0.15s ease, transform 0.15s ease;
}

.index-hero-nav a:hover {
  color: #ffd2a0;
  text-shadow:
    0 0 2px rgba(255, 240, 200, 0.8),
    0 2px 0 rgba(40, 0, 0, 0.85),
    0 0 22px rgba(255, 120, 60, 0.75),
    0 0 40px rgba(200, 40, 20, 0.45);
  transform: scale(1.03);
}

.index-hero-nav .index-nav-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.index-hero-nav-rule {
  position: relative;
  z-index: 1;
  width: min(680px, 92%);
  margin: 10px 0 0;
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
}

.register-back-link,
.register-back-link:visited {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #c9d3ff;
  background: #e8e8e8;
  color: #111;
  text-decoration: none;
  text-align: center;
}

.battle-avatar {
  width: 70px;
  height: 70px;
  border: 1px solid #9aa6d4;
  margin: 0 auto;
  overflow: hidden;
  background: #0c1228;
}

.battle-combatant-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: start;
}

.battle-combatant-card .battle-avatar {
  margin: 0;
  width: 76px;
  height: 92px;
  font-size: 32px;
}

.battle-combatant-meta {
  color: #ffffff;
  text-align: left;
  line-height: 1.35;
  font-size: 13px;
}

.battle-combatant-class {
  color: #d9e5ff;
  white-space: nowrap;
}

.battle-combatant-name {
  color: #ffffff;
  font-weight: 700;
}

.battle-combatant-stat,
.battle-combatant-weapon {
  color: #ffffff;
}

.battle-combatant-status {
  color: #9fe7ff;
  font-weight: 700;
}

.battle-vs-cell {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.battle-face-table {
  color: #fff;
  width: 360px;
  table-layout: fixed;
}

.battle-face-title-row {
  text-align: center;
  padding-bottom: 6px;
}

.battle-face-title-row font {
  display: inline-block;
  line-height: 1;
}

.battle-face-avatar-wrap {
  text-align: center;
}

.register-page {
  color: #ffffff;
}

.register-legacy-shell {
  width: min(820px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 22px 0 30px;
  text-align: center;
}

.register-legacy-title {
  color: #ff2f2f;
  font-family: Verdana, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 215, 90, 0.55);
  margin-bottom: 18px;
}

.register-legacy-error {
  width: min(620px, 100%);
  margin: 0 auto 14px;
}

.register-legacy-intro {
  max-width: 620px;
  margin: 0 auto 18px;
  line-height: 1.7;
  font-size: 15px;
}

.register-legacy-intro p {
  margin: 0;
}

.register-legacy-guide-image {
  width: 70px;
  height: 70px;
  display: block;
  margin: 0 auto 14px;
  border: 1px solid #9aa6d4;
}

.register-legacy-form {
  max-width: 720px;
  margin: 0 auto;
}

.register-legacy-form-table,
.register-legacy-quote-table {
  margin: 0 auto;
  color: #ffffff;
  font-size: 15px;
}

.register-legacy-form-table {
  margin-bottom: 14px;
}

.register-legacy-quote-table {
  margin-bottom: 12px;
}

.register-legacy-label,
.register-legacy-quote-label {
  text-align: right;
  padding: 2px 6px 2px 0;
  white-space: nowrap;
}

.register-legacy-inline-label {
  display: inline-block;
  margin-left: 10px;
}

.register-legacy-help,
.register-legacy-quote-help {
  padding: 3px 0 10px;
  font-size: 13px;
}

.register-legacy-help {
  text-align: left;
}

.register-legacy-quote-help {
  text-align: center;
}

.register-legacy-input,
.register-legacy-long-input,
.register-legacy-short-input,
.register-legacy-select {
  border: 1px solid #a5a5a5;
  background: #f5f5f5;
  color: #111;
  height: 24px;
  padding: 2px 6px;
}

.register-legacy-input {
  width: 160px;
}

.register-legacy-short-input {
  width: 90px;
}

.register-legacy-long-input {
  width: 320px;
}

.register-legacy-avatar-select {
  width: 190px;
}

.register-legacy-avatar-preview-wrap {
  margin-top: 10px;
  width: 96px;
  text-align: center;
}

.register-legacy-avatar-preview-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #95a1d3;
  display: block;
  margin: 0 auto 4px;
}

.register-legacy-avatar-preview-text {
  color: #d9e5ff;
  font-size: 11px;
  line-height: 1.25;
}

.register-legacy-rules {
  color: #fff064;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px auto 14px;
  max-width: 720px;
}

.register-legacy-actions {
  margin: 6px 0 22px;
}

.register-legacy-actions input {
  margin: 0 6px;
}

.register-legacy-back {
  text-align: center;
  font-size: 26px;
}

.register-legacy-back a {
  color: #ff2f2f;
}

.register-complete-shell,
.register-story-shell {
  width: min(760px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 26px 0 32px;
  text-align: center;
}

.register-complete-title,
.register-story-title {
  margin-bottom: 16px;
}

.register-complete-table {
  width: min(420px, 100%);
  margin: 0 auto 18px;
}

.register-complete-label {
  width: 96px;
  white-space: nowrap;
}

.register-complete-copy,
.register-story-copy {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.register-complete-copy p,
.register-story-copy p {
  margin: 0;
}

.register-complete-highlight {
  color: #ffe85d;
  font-weight: 700;
}

.register-complete-action,
.register-story-action {
  margin-top: 20px;
}

.register-complete-action button,
.register-story-action button {
  min-width: 140px;
  padding: 3px 12px;
}

.battle-face-avatar-wrap-right {
  text-align: center;
}

.battle-face-avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  font-size: 34px;
}

.battle-face-center-top {
  text-align: center;
  vertical-align: middle;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.battle-face-center-label {
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  width: 58px;
  font-weight: 700;
}

.battle-face-side,
.battle-face-name,
.battle-face-value {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}

.battle-face-name {
  font-weight: 700;
}

.battle-face-side-right {
  text-align: center;
}

.battle-command-panel {
  padding: 6px 8px 0;
}

.battle-command-title {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.battle-command-panel .radio-choice {
  color: #ffffff;
  font-size: 13px;
}

.battle-command-message {
  margin-bottom: 12px;
}

.battle-command-message-label {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
}

.battle-command-message-input {
  width: 100%;
  height: 22px;
  padding: 1px 4px;
  border: 1px solid #8f8f8f;
  background: #ffffff;
  color: #000000;
}

.battle-command-panel button {
  margin-left: 0;
}


.battle-shell {
  width: min(980px, calc(100vw - 14px));
}

.battle-grid {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 6px;
}

.battle-main {
  min-height: 314px;
}

.battle-vs {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 10px;
  align-items: center;
}

.combatant {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px;
  align-items: start;
}

.combatant-portrait {
  width: 100px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid #a8b5e8;
  background: linear-gradient(180deg, #101d39 0%, #060b16 100%);
  color: #f5f5f5;
  font-size: 30px;
}

.combatant-portrait.enemy {
  background: linear-gradient(180deg, #38181d 0%, #140709 100%);
}

.combatant-meta h2 {
  margin: 0 0 5px;
  color: #e8f0ff;
  font-size: 18px;
}

.combatant-meta p {
  margin: 0 0 3px;
  font-size: 12px;
}

.battle-center {
  text-align: center;
}

.battle-title {
  color: var(--red);
  font-size: 30px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.battle-state {
  color: var(--gold);
  font-size: 12px;
}

.battle-info {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}

.battle-command,
.battle-log,
.battle-message {
  min-height: 160px;
}

.battle-command h2 {
  margin-bottom: 10px;
}

.battle-form {
  align-items: center;
}

.battle-result {
  font-size: 13px;
}

.bottom-grid {
  margin-top: 6px;
  grid-template-columns: 1fr 1fr;
}

body.legacy-page {
  background: #000;
  color: #fff;
  font-family: "Times New Roman", serif;
}

.legacy-shell {
  width: 760px;
  margin: 0 auto;
  padding: 8px 0 16px;
}

.legacy-head {
  text-align: center;
  margin: 8px 0 10px;
}

.legacy-title {
  color: #ff2f2f;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: underline;
  text-shadow: 0 0 7px rgba(255, 215, 90, 0.55);
}

.death-page {
  text-align: center;
}

.death-header {
  margin: 16px 0 12px;
}

.death-title {
  color: #00ff00;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: underline;
  text-decoration-color: #ff0000;
  text-underline-offset: 4px;
  text-shadow: 0 0 7px rgba(255, 215, 90, 0.55);
}

.death-journal {
  width: 757px;
  margin: 0 auto 14px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.death-journal-line {
  margin: 2px 0;
}

.death-journal-yellow {
  color: #ffdd55;
}

.death-journal-final {
  color: #ff0000;
}

.death-corpse-label {
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  text-shadow: none;
  letter-spacing: normal;
}

.death-shell {
  margin-bottom: 16px;
}

.death-status-table {
  width: 550px;
}

.death-home-link {
  margin: 18px 0 24px;
}

.death-home-link a {
  color: #ff0000;
  font-weight: 700;
}

.legacy-subnav {
  margin-top: 6px;
  font-weight: 700;
  color: #ff0000;
}

.legacy-message {
  width: 757px;
  margin: 0 auto 8px;
}

.legacy-shell table {
  color: #fff;
}

.legacy-portrait {
  width: 72px;
  height: 74px;
  margin: 0 auto;
  border: 1px solid #8f97c4;
  overflow: hidden;
  background: #0c1228;
}

.legacy-portrait-image,
.battle-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-avatar-dead {
  filter: grayscale(100%) brightness(0.6);
}

.legacy-bars {
  padding: 6px;
}

.legacy-main-table {
  font-size: 12px;
  line-height: 1;
}

.legacy-stat-block-wrap {
  padding: 0;
  vertical-align: top;
}

.legacy-stat-block {
  width: 100%;
  border-collapse: collapse;
}

.legacy-stat-block td {
  padding: 0;
}

.legacy-left-rail {
  padding: 0;
  vertical-align: top;
}

.legacy-left-rail-table {
  width: 100%;
  border-collapse: collapse;
}

.legacy-left-portrait-cell {
  padding: 4px 0;
}

.legacy-stat-block td:first-child {
  display: none;
}

.legacy-stat-block td:last-child {
  width: 100%;
  display: table-cell;
}

.legacy-life-bars {
  width: 100%;
  padding: 18px 8px 10px;
}

.legacy-life-row {
  display: block;
  align-items: center;
  margin-bottom: 10px;
}

.legacy-life-label {
  color: #fff;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  display: none;
}

.legacy-life-track {
  height: 8px;
  border: 1px solid #69739c;
  background: #0b0f1a;
  overflow: hidden;
}

.legacy-life-track-stacked {
  position: relative;
}

.legacy-life-fill-sp-recovery,
.legacy-life-fill-hp-recovery {
  position: absolute;
  top: 0;
  height: 100%;
}

.legacy-life-fill-sp-recovery {
  background: linear-gradient(90deg, #b8860b 0%, #ffd700 100%);
}

.legacy-life-fill-hp-recovery {
  background: linear-gradient(90deg, #6a0dad 0%, #da70d6 100%);
}

.legacy-life-track-sp {
  background: linear-gradient(90deg, #7b0f10 0%, #d73236 100%);
  box-shadow: inset 0 0 0 1px rgba(113, 164, 255, 0.18);
}

.legacy-life-track-hp {
  background: linear-gradient(90deg, #8a2d74 0%, #f06dcb 100%);
  box-shadow: inset 0 0 0 1px rgba(111, 227, 129, 0.18);
}

.legacy-life-fill {
  height: 100%;
}

.legacy-life-fill-sp {
  background: linear-gradient(90deg, #0d3f9d 0%, #4d99ff 100%);
}

.legacy-life-fill-hp {
  background: linear-gradient(90deg, #116e2c 0%, #3edb64 100%);
}

.legacy-inline-bar-cell {
  min-width: 252px;
  padding: 0 2px;
  line-height: 1;
  vertical-align: middle;
}

.legacy-inline-split-cell {
  padding: 0;
}

.legacy-inline-split-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  height: 100%;
}

.legacy-inline-split-label,
.legacy-inline-split-value {
  display: block;
  white-space: nowrap;
  padding: 0 5px;
}

.legacy-inline-split-label {
  background: #10175f;
  color: #f2f2f2;
  border-right: 1px solid #8d95be;
}

.legacy-inline-split-value {
  text-align: center;
}

.legacy-inline-meta-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.legacy-inline-meta-table td {
  width: 16.66%;
  white-space: nowrap;
  text-align: center;
}

.legacy-skill-meta-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.legacy-skill-label-cell {
  width: 16.66%;
  min-width: 16.66%;
  white-space: nowrap;
  text-align: center;
}

.legacy-skill-value-cell {
  width: 83.34%;
  text-align: left;
  padding-left: 8px;
  white-space: nowrap;
}

.legacy-weapon-row-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.legacy-weapon-power-cell {
  width: 50%;
  text-align: center;
  white-space: nowrap;
}

.legacy-weapon-count-cell {
  width: 50%;
  text-align: center;
  white-space: nowrap;
}


.legacy-profile-value {
  white-space: nowrap;
  min-width: 214px;
}

.legacy-profile-label {
  width: 82px;
  min-width: 82px;
  white-space: nowrap;
}

.legacy-spaced-label {
  letter-spacing: 0.18em;
}

.legacy-combat-mid-label {
  width: 74px;
  min-width: 74px;
  white-space: nowrap;
}

.legacy-team-name-cell {
  min-width: 260px;
}

.legacy-profile-filler {
  width: 48px;
  min-width: 48px;
}

.legacy-top-status-cell {
  padding: 0;
  vertical-align: top;
}

.legacy-top-status-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.legacy-top-status-table td {
  padding: 0 1px;
  height: 15px;
}

.legacy-top-col-label {
  width: 17%;
}

.legacy-top-col-value {
  width: 33%;
}

.legacy-top-status-label {
  white-space: nowrap;
  text-align: center;
}

.legacy-top-status-state-label-cell {
  padding: 0;
  width: 46px;
  min-width: 46px;
  max-width: 46px;
}

.legacy-top-status-state-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 60px;
}

.legacy-top-status-state-title,
.legacy-top-status-state-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13px;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.legacy-top-status-value {
  white-space: nowrap;
  text-align: center;
}

.legacy-top-status-exp-cell {
  padding: 0 2px 1px;
}

.legacy-top-status-exp-number {
  line-height: 1;
  margin-bottom: 0;
}

.legacy-top-status-figure-cell {
  padding: 0;
  vertical-align: top;
}

.legacy-top-status-figure-placeholder {
  min-height: 32px;
  height: 100%;
  background: rgba(5, 6, 13, 0.42);
}

.survivors-panel {
  padding: 8px 10px 14px;
}

.survivors-title {
  text-align: center;
  color: #ff2f2f;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(255, 120, 80, 0.35);
}

.survivors-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.survivors-table td {
  padding: 4px 6px;
  vertical-align: middle;
}

.survivors-head-cell {
  text-align: center;
  white-space: nowrap;
}

.survivors-name-cell,
.survivors-level-cell,
.survivors-kill-cell,
.survivors-team-cell {
  text-align: center;
}

.survivors-name-cell {
  line-height: 1.4;
}

.survivors-avatar-cell {
  text-align: center;
}

.survivors-avatar {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 0;
  display: inline-block;
}

.survivors-comment-cell {
  color: #f0f0f0;
  line-height: 1.45;
  word-break: break-word;
}

.survivors-summary {
  margin-top: 8px;
  text-align: center;
  color: #f6f1cb;
}

.winners-panel {
  padding: 12px 14px 16px;
}

.winners-empty {
  margin: 0;
  text-align: center;
  color: #f6f1cb;
}

.winners-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.winners-table {
  width: min(620px, 100%);
}

.winners-radio-head {
  padding: 0;
}

.winners-radio-cell {
  text-align: center;
  vertical-align: middle;
}

.winners-round-cell,
.winners-name-cell {
  text-align: center;
}

.winners-catchphrase-cell {
  text-align: left;
  color: #f0f0f0;
  line-height: 1.45;
  word-break: break-word;
}

.winners-actions {
  width: min(620px, 100%);
  text-align: center;
}

.winners-detail-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.winners-table tr.winners-row-none td {
  background: transparent;
  color: #d0d0d0;
}

.winners-table tr.winners-row-skill-melee td {
  background: #5a1818;
}

.winners-table tr.winners-row-skill-sword td {
  background: #1a3058;
}

.winners-table tr.winners-row-skill-throw td {
  background: #3a6fa8;
}

.winners-table tr.winners-row-skill-gun td {
  background: #1f5c32;
}

.winners-table tr.winners-row-skill-bomb td {
  background: #3a3a3a;
}

.progress-classic-shell {
  padding-top: 0;
}

.progress-classic-page {
  min-height: calc(100vh - 40px);
  padding: 8px 0 18px;
  color: #f4f4f4;
}

.progress-classic-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.progress-classic-teacher {
  width: 100px;
  height: auto;
  display: block;
}

.progress-classic-speech {
  color: #fff;
  line-height: 1.4;
}

.progress-classic-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 8px;
}

.progress-classic-tool-btn {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #888;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.progress-classic-tool-btn:hover {
  background: #f0f0f0;
}

.progress-classic-tool-btn.is-active {
  background: #ddd;
}

.progress-classic-toolbar-rule {
  height: 1px;
  background: #fff;
  margin-bottom: 10px;
}

.progress-classic-public-empty {
  color: #ccc;
  margin: 8px 0 16px;
}

.progress-classic-public-list {
  margin-top: 4px;
}

.progress-classic-public-item {
  display: block;
  margin-bottom: 6px;
}

.progress-classic-public-name {
  color: #ffd166;
  margin: 0 6px 0 4px;
}

.progress-classic-public-text {
  color: #f4f4f4;
}

.progress-classic-status-line {
  color: #39ff39;
  font-weight: 700;
  line-height: 1.3;
}

.progress-classic-status-label {
  margin-right: 6px;
}

.progress-classic-status-value {
  color: #ffffff;
}

.progress-classic-next-title {
  margin-top: 2px;
}

.progress-classic-next-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 10px;
  color: #ffffff;
  font-weight: 700;
}

.progress-classic-next-item {
  white-space: nowrap;
}

.progress-classic-next-time {
  color: #4cff4c;
}

.progress-classic-next-item-applied {
  color: #888;
}

.progress-classic-highlight-title {
  margin: 14px 0 8px;
  color: #4cff4c;
  font-size: 18px;
  font-weight: 700;
}

.progress-classic-highlight-list {
  margin-bottom: 14px;
}

.progress-classic-highlight-item {
  color: #4cff4c;
}

.progress-classic-highlight-text {
  color: #4cff4c;
  font-weight: 700;
}

.index-nav-disabled {
  color: #888;
}

.legacy-command-row select.move-area-select option.move-area-upcoming {
  color: #888 !important;
}

.progress-classic-list {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: disc;
}

.progress-classic-item {
  margin: 0 0 1px;
  color: #f5f5f5;
  line-height: 1.42;
}

.progress-classic-item::marker {
  color: #ffffff;
}

.progress-classic-time {
  color: #ffffff;
  margin-right: 4px;
  white-space: nowrap;
}

.progress-classic-content {
  color: #f5f5f5;
}

.progress-classic-home {
  margin-top: 28px;
  text-align: center;
}

.progress-classic-footer-actions {
  margin-top: 16px;
}

.progress-classic-full-log-btn {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #888;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.progress-classic-full-log-btn:hover {
  background: #f0f0f0;
}

.progress-classic-home a {
  color: #ff2f2f;
  font-weight: 700;
}

.legacy-top-status-exp-bar-cell {
  padding: 2px 6px;
}

.legacy-top-status-empty-cell {
  height: 14px;
  background: rgba(5, 6, 13, 0.42);
}

.legacy-storage-layout {
  vertical-align: top;
  height: 100%;
}

.legacy-equipment-cell {
  vertical-align: top;
  padding-top: 6px;
  padding-bottom: 10px;
  width: auto;
  white-space: nowrap;
}

.legacy-equipment-table {
  margin-top: 2px;
  width: auto;
  table-layout: auto;
  white-space: nowrap;
}

.legacy-storage-gap {
  min-width: 16px;
  width: 16px;
  max-width: 16px;
}

.legacy-inventory-cell {
  vertical-align: top;
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
}

.legacy-inventory-table {
  margin-top: 0;
  margin-bottom: 0;
  width: auto;
  table-layout: auto;
  height: 100%;
}

.legacy-equip-col-slot {
  width: 14px;
}

.legacy-equip-col-name {
  width: auto;
}

.legacy-equip-name-cell {
  white-space: nowrap;
}

.legacy-equip-col-stat {
  width: 12px;
}

.legacy-item-col-name,
.legacy-item-col-eff,
.legacy-item-col-count,
.legacy-item-col-type {
  width: auto;
}

td.b3.legacy-inventory-type-value {
  color: #54d8ff !important;
}

.legacy-exp-track {
  height: 5px;
  border: 1px solid #69739c;
  background: linear-gradient(90deg, #6e5a12 0%, #b59a2f 100%);
  overflow: hidden;
}

.legacy-stat-row td {
  height: 18px;
}

.legacy-combo-active {
  color: #ff0000;
  font-weight: bold;
}

td.b3.legacy-combo-active {
  color: #ff0000;
}

.legacy-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #d8aa22 0%, #fff0a8 100%);
}

.legacy-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.legacy-bar-row span {
  color: #cbd6ff;
}

.legacy-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #dfe6ff;
}

.legacy-command-panel {
  padding: 6px 4px;
}

.legacy-command-text,
.legacy-command-label {
  margin-bottom: 8px;
  color: #e9e9e9;
}

.legacy-command-form {
  margin: 0;
}

.legacy-command-row,
.legacy-radio-row {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 9px;
  color: #fff;
  flex-wrap: wrap;
  cursor: pointer;
}

.legacy-command-row select {
  flex: 0 1 122px;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  font-size: 12px;
  border: 1px solid #bfbfbf;
  background: #fff;
  color: #000;
}

.legacy-command-subrows {
  display: grid;
  gap: 6px;
  margin: -2px 0 10px 25px;
  justify-items: center;
}

.legacy-command-subrows-standalone {
  margin: 4px auto 12px;
}

.craft-recipe-reference {
  margin-top: 8px;
  padding: 6px 8px;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #666;
  color: #ddd;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.craft-recipe-reference-title {
  margin-bottom: 4px;
  color: #fff;
  font-weight: bold;
}

.craft-recipe-line {
  white-space: normal;
}

.rule-page-section {
  padding: 14px 16px;
  line-height: 1.6;
}

.rule-craft-recipe-reference {
  max-width: none;
  max-height: none;
  margin-top: 16px;
}

.legacy-command-tactics {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.legacy-command-tactics-label {
  color: #e9e9e9;
  line-height: 1.2;
  text-align: center;
}

.legacy-command-subselect {
  width: 122px;
  height: 22px;
  padding: 0 4px;
  font-size: 12px;
  border: 1px solid #bfbfbf;
  background: #fff;
  color: #000;
}

.legacy-command-textonly {
  display: inline-block;
  color: #fff;
  line-height: 22px;
  white-space: nowrap;
}

.legacy-command-row input[type="radio"],
.legacy-radio-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.legacy-command-disabled {
  opacity: 0.55;
}

.legacy-command-row-offset {
  margin-top: 12px;
}

.legacy-command-submit {
  margin-top: 18px;
  text-align: left;
}

.legacy-command-cancel {
  margin-top: 8px;
}

.legacy-log-box {
  padding: 4px 6px;
  text-align: left;
  overflow: hidden;
  line-height: 1.08;
}

.legacy-record-box {
  min-height: 138px;
}

.legacy-public-box {
  min-height: 138px;
  padding-left: 4px;
  overflow-x: hidden;
  overflow-y: auto;
}

.legacy-public-empty {
  color: #ccc;
}

.legacy-public-chat-entry {
  margin-bottom: 6px;
}

.legacy-public-chat-meta {
  line-height: 1.1;
}

.legacy-public-chat-time {
  color: #fff;
}

.legacy-public-chat-name {
  color: #7fd4ff;
  margin-left: 6px;
}

.legacy-public-chat-text {
  color: #00ff00;
  line-height: 1.15;
  word-break: break-all;
}

.legacy-ground-item-line {
  padding-left: 8px;
}

.legacy-message-box {
  padding: 6px 8px;
}

.legacy-message-box textarea {
  width: 100%;
  height: 48px;
  resize: none;
  background: #fff;
  border: 1px solid #999;
}

.legacy-message-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.b1 {
  background: #07104b;
  border-right: #6f79a4 1px solid;
  border-top: #9aa4cb 1px solid;
  border-left: #9aa4cb 1px solid;
  border-bottom: #6f79a4 1px solid;
  color: #fff;
  text-align: center;
  line-height: 1;
}

.b2 {
  background: #111a68;
  border-right: #6f79a4 1px solid;
  border-top: #9aa4cb 1px solid;
  border-left: #9aa4cb 1px solid;
  border-bottom: #6f79a4 1px solid;
  color: #fff;
  text-align: center;
  line-height: 1;
}

.b3 {
  background: rgba(0, 0, 0, 0.56);
  border-right: #6f79a4 1px solid;
  border-top: #9aa4cb 1px solid;
  border-left: #9aa4cb 1px solid;
  border-bottom: #6f79a4 1px solid;
  color: #fff;
  text-align: center;
  line-height: 1;
}

@media (max-width: 980px) {
  .status-grid,
  .middle-grid,
  .battle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .battle-vs {
    grid-template-columns: 1fr;
  }

  .combatant {
    grid-template-columns: 96px 1fr;
  }

  .game-shell,
  .battle-shell {
    width: min(100vw - 10px, 980px);
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .register-grid,
  .avatar-picker-grid {
    grid-template-columns: 1fr;
  }
}
