/*
 * 類名中的 legacy- 前綴表示「仿古介面」樣式，不代表已棄用或不再使用。
 */
@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;
  --font-body: "Times New Roman", "PMingLiU", "MingLiU", "新細明體", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  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);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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%);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

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%);
  font-family: "Trebuchet MS", "Gill Sans", "Microsoft Sans Serif", var(--font-body);
}

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;
}

.item-name-inline-content {
  display: inline-flex;
  align-items: flex-end;
  vertical-align: bottom;
}

.item-name-inline-image {
  display: inline-block;
  margin-left: 3px;
  vertical-align: bottom;
  object-fit: contain;
}

td:has(> .item-name-inline-content) {
  vertical-align: bottom;
}

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;
}

.progress-special-event-text {
  color: #f2df9a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.progress-hidden-event {
  color: #39ff39;
}

.progress-hack-success-name {
  color: #c89b46;
  font-weight: 700;
}

.progress-hack-success-text {
  color: #ff3a3a;
}

.progress-hack-success-speech {
  color: #f5f5f5;
  font-weight: 700;
}

.weather-chaos {
  color: #ffe85d;
}

.weather-tornado {
  color: #ff4a4a;
}

.weather-blizzard {
  color: #54d8ff;
}

.weather-hail {
  color: #3f8cff;
}

.weather-holy-light {
  background: #d9b45f;
  color: #ffffff;
  font-weight: 700;
  padding: 0 3px;
}

.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;
  box-sizing: border-box;
  flex: 0 0 auto;
  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-brand::before {
  content: "■ ";
}

.index-title-brand::after {
  content: " ■";
}

.index-title-rebirth {
  font-family: var(--font-body);
  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-classic {
  color: #f2d28b;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 700;
  line-height: 1;
  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 {
  width: min(620px, 100%);
  margin: 0 auto 10px;
  padding: 0;
  text-align: left;
  line-height: 1.45;
  font-size: 13px;
  font-weight: 700;
}

.index-notice {
  width: min(500px, 100%);
  margin: 0 auto 10px;
  padding: 10px 14px;
  text-align: center;
  color: #e8a080;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

body.index-page .index-stats.panel,
body.index-page .index-notice.panel {
  background: transparent;
  border-width: 2px;
  border-color: rgba(155, 165, 220, 0.72);
  box-shadow: none;
}

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

.index-notice a {
  color: #ff1f1f;
  font-weight: 700;
}

.index-notice a:hover {
  color: #ff6666;
}

.index-notice-terms-line {
  line-height: 1.8;
}

.index-terms-btn {
  margin: 0 4px;
  padding: 2px 10px;
  border: 1px solid #d8d8d8;
  background: #efefef;
  color: #111111;
  font: inherit;
  line-height: 1.3;
  vertical-align: baseline;
  cursor: pointer;
}

.index-terms-btn:hover {
  background: #fafafa;
}

.index-stat-value {
  color: #39ff39;
}

.index-version-value {
  color: #ffffff;
}

.index-round-status {
  color: #ffff66;
  font-size: 17px;
  text-decoration: underline;
}

.index-stat-label {
  color: #d8d32b;
}

.index-stat-link {
  color: #38e6ff;
}

.index-stat-separator {
  color: #ffffff;
}

.index-stat-maintainer {
  color: #ffffff;
  text-decoration: underline;
}

.index-stat-limit {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.index-special-announcement {
  width: min(620px, 100%);
  margin: 8px auto 8px;
  border: 1px solid #9ca7e8;
  background: #f8f8f8;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}

.index-special-announcement-title {
  padding: 2px 8px;
  background: #9ca7f0;
  color: #ffffff;
  font-weight: 700;
}

.index-special-announcement-body {
  padding: 7px 14px 8px;
  color: #c96d55;
  font-weight: 700;
}

.index-next-round-wait {
  width: min(620px, 100%);
  margin: 8px auto 8px;
  color: #39ff39;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.index-next-round-wait label {
  display: inline-block;
}

.index-next-round-special {
  color: #ffff66;
  font-weight: 700;
  text-decoration: underline;
}

.index-next-round-countdown-input {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.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;
}

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

.admin-execute-field select {
  min-width: 280px;
  max-width: 100%;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: #111111;
}

.admin-execute-confirm-panel {
  margin-top: 12px;
}

.admin-execute-confirm-actions {
  display: flex;
  gap: 12px;
}

.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;
}

.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;
}

body.index-page.register-page::before {
  background-position: 50% 56%;
  background-size: min(82vw, 760px);
  opacity: 0.78;
}

.register-legacy-shell {
  position: relative;
  z-index: 1;
  width: min(580px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 22px 0 30px;
  text-align: center;
  --register-content-width: 480px;
}

.register-legacy-title {
  color: #ff2f2f;
  font-family: var(--font-body);
  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(var(--register-content-width), 100%);
  margin: 0 auto 14px;
}

.register-legacy-intro-box {
  width: min(var(--register-content-width), 100%);
  margin: 0 auto 18px;
  border: 1px solid #ffffff;
  padding: 10px 12px 8px;
  text-align: left;
}

.register-legacy-intro-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.register-legacy-intro-copy {
  flex: 1;
  line-height: 1.7;
  font-size: 15px;
}

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

.register-legacy-intro-warning {
  margin: 10px 0 0;
  color: #fff064;
  font-size: 13px;
  line-height: 1.5;
}

.register-legacy-guide-image {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 1px solid #9aa6d4;
}

.register-legacy-form {
  width: min(var(--register-content-width), 100%);
  margin: 0 auto;
}

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

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

.register-legacy-account-table {
  margin-top: 6px;
  margin-bottom: 14px;
  table-layout: fixed;
}

.register-legacy-account-input {
  width: 130px;
}

.register-legacy-account-col-label {
  width: 86px;
}

.register-legacy-account-col-input {
  width: 138px;
}

.register-legacy-account-col-password-label {
  width: 92px;
}

.register-legacy-account-label {
  padding-right: 2px;
}

.register-legacy-password-label {
  padding-left: 28px;
  padding-right: 8px;
}

.register-legacy-invite-optional-row {
  text-align: center;
  white-space: nowrap;
}

.register-legacy-invite-label {
  display: inline-block;
  margin-right: 4px;
}

.register-legacy-invite-optional-row .register-legacy-invite-input {
  width: 150px;
  margin-right: 8px;
}

.register-legacy-optional-table {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid #ffffff;
  border-collapse: collapse;
}

.register-legacy-optional-head {
  padding: 4px 8px;
  background: #808080;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #ffffff;
}

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

.register-legacy-label-inline {
  display: inline-block;
  margin-right: 4px;
  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: center;
}

.register-legacy-help--warning {
  color: #fff064;
}

.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: 150px;
}

.register-legacy-invite-input {
  width: 200px;
}

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

.register-legacy-long-input {
  width: min(340px, calc(100vw - 120px));
}

.register-legacy-avatar-select {
  width: min(190px, calc(100vw - 80px));
}

.register-legacy-avatar-block {
  margin: 4px auto 10px;
}

.register-legacy-avatar-stage {
  width: 112px;
  height: 112px;
  margin: 0 auto 10px;
  border: 1px solid #ffffff;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.register-legacy-avatar-controls {
  margin-bottom: 4px;
  font-size: 15px;
}

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

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

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

.register-legacy-rules {
  color: #fff064;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px auto 14px;
  max-width: var(--register-content-width);
  text-align: center;
}

.register-user-agreement {
  width: min(var(--register-content-width), 100%);
  margin: 8px auto 14px;
  border-left: 2px solid #777777;
  border-right: 2px solid #777777;
  border-top: 1px solid #777777;
  border-bottom: 1px solid #777777;
  background: rgba(0, 0, 0, 0.68);
  text-align: left;
}

.register-user-agreement-title {
  margin: 8px 12px 6px;
  padding: 2px 8px;
  background: #d0d0d0;
  color: #222222;
  font-weight: 700;
  text-align: center;
}

.register-user-agreement-body {
  padding: 0 16px 12px;
  color: #ffe13d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.register-user-agreement-body p {
  margin: 4px 0;
}

.register-user-agreement-lead {
  color: #d6a02b;
}

.register-user-agreement-warning {
  color: #ffe13d;
}

.register-user-agreement-body ul {
  margin: 2px 0 0 22px;
  padding: 0;
}

.register-user-agreement-body li {
  margin: 1px 0;
}

.register-user-agreement-body li:nth-child(6) {
  color: #31dfff;
}

.register-user-agreement-body a {
  color: #ff2f2f;
  font-weight: 700;
}

.register-user-agreement-button {
  padding: 2px 10px;
  border: 1px solid #9b9b9b;
  background: #efefef;
  color: #333333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.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-table-width: 580px;
}

.register-story-shell {
  width: min(920px, calc(100vw - 24px));
}

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

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

.register-complete-label {
  width: 22%;
  white-space: nowrap;
}

.register-complete-value {
  width: 28%;
}

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

.register-story-copy {
  width: min(880px, 100%);
}

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

.register-story-blank {
  height: 1.1em;
}

.register-story-teacher-portrait {
  margin: 8px 0 0;
  text-align: center;
}

.register-story-teacher-image {
  width: 100px;
  height: auto;
  display: inline-block;
}

.register-story-br-title {
  margin: 12px auto;
}

.register-story-decree {
  width: min(880px, 100%);
  margin: 14px auto;
}

.register-story-decree-line {
  color: #ff2a2a;
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  text-shadow: 0 0 8px rgba(255, 40, 40, 0.35);
}

.register-story-decree-line--step-1 {
  text-align: left;
}

.register-story-decree-line--step-2 {
  text-align: center;
}

.register-story-decree-line--step-3 {
  text-align: right;
}

.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;
}

.register-error-shell {
  color: #ffffff;
}

.register-error-table {
  margin-top: 18px;
}

.register-error-copy {
  width: min(520px, 100%);
  margin: 16px auto 0;
  color: #d8d8d8;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.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-name-opponent {
  font-weight: 400;
}

.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: var(--font-body);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

.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-white {
  color: #ffffff;
}

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

.death-journal-battle {
  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;
}

.victory-story-shell {
  width: 760px;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  padding-top: 12px;
  text-align: center;
}

.victory-story-title {
  font-size: 30px;
}

.victory-story-scroll {
  width: 100%;
  height: calc(100vh - 122px);
  margin: 12px auto 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  padding: 18px 24px;
  box-sizing: border-box;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.85;
  font-size: 15px;
  scrollbar-color: #888 #111;
}

.victory-story-line {
  min-height: 1.85em;
  text-align: center;
  white-space: pre-wrap;
}

.victory-story-blank {
  min-height: 1.2em;
}

.victory-story-home {
  margin-top: 10px;
}

.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;
}

.legacy-portrait:has(.legacy-portrait-dead),
.battle-face-avatar:has(.battle-avatar-dead) {
  background: #000;
}

.legacy-portrait-dead,
.battle-avatar-dead {
  filter: grayscale(100%) invert(100%) contrast(1.2);
}

.battle-avatar-unknown {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #0c1228;
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.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, #3b0b68 0%, #7a1fd1 100%);
  box-shadow: 0 0 6px rgba(122, 31, 209, 0.85);
}

.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-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%;
  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;
  height: 52px;
  line-height: 0;
}

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

.re-status-monitor {
  position: relative;
  width: 100%;
  height: 52px;
  background: #000;
  overflow: hidden;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.re-status-monitor::before,
.re-status-monitor::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.re-status-monitor::before {
  top: 0;
  left: 0;
  background: radial-gradient(circle at 0 0, rgba(120, 0, 0, 0.9) 0%, transparent 70%);
}

.re-status-monitor::after {
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 100%, rgba(120, 0, 0, 0.85) 0%, transparent 70%);
}

.re-status-body {
  position: absolute;
  left: 3px;
  top: 0;
  width: 12px;
  height: 52px;
  z-index: 2;
}

.re-status-body rect {
  shape-rendering: crispEdges;
}

.re-status-ecg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.re-status-label {
  position: absolute;
  right: 4px;
  bottom: 1px;
  z-index: 3;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-shadow: 0 0 2px currentColor;
}

.re-status-monitor[data-state='fine'] .re-status-label {
  color: #3dff3d;
}

.re-status-monitor[data-state='caution'] .re-status-label {
  color: #ffff00;
}

.re-status-monitor[data-state='poison'] .re-status-label {
  color: #b86cff;
}

.re-status-monitor[data-state='danger'] .re-status-label {
  color: #ff3030;
}

.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 {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.winners-skill-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 2px;
  padding: 4px;
  border: 1px solid #333333;
}

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

.winners-header {
  margin-bottom: 6px;
  text-align: center;
}

.winners-header h1 {
  display: inline-block;
  margin: 0;
  color: var(--red);
  font-size: 36px;
  letter-spacing: 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 0 6px rgba(255, 120, 80, 0.45);
}

.winner-skill-badge {
  display: inline-block;
  min-width: 118px;
  padding: 2px 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.winner-skill-badge-melee {
  background: #833;
}

.winner-skill-badge-sword {
  background: #338;
}

.winner-skill-badge-gun {
  background: #383;
}

.winner-skill-badge-throw {
  background: #388;
}

.winner-skill-badge-bomb {
  background: #333;
}

.winner-skill-badge-hack {
  background: #777;
}

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

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

.winners-table {
  width: 100%;
}

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

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

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

.winners-special-cell,
.winners-version-cell {
  white-space: nowrap;
}

.winners-time-cell {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
}

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

.winners-catchphrase-none-cell {
  text-align: center;
}

.winners-actions {
  width: 97%;
  text-align: center;
}

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

.winners-page-summary {
  margin-top: 24px;
  color: #ffffff;
}

.winners-page-nav {
  margin-top: 4px;
  line-height: 1.9;
}

.winners-page-latest,
.winners-page-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.winners-page-nav hr {
  width: 97%;
  margin: 6px auto;
  border: 0;
  border-top: 1px solid #777777;
}

.winners-page-btn {
  display: inline-block;
  min-width: 9em;
  margin: 2px;
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  background: #e8e8e8;
  color: #111111;
  font: inherit;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.winners-page-btn.is-active {
  background: #d0d0d0;
}

.legacy-kills-label {
  color: #ffe14a;
}

.legacy-kills-value {
  color: #ff4a4a;
}

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

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

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

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

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

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

.winner-detail-command {
  padding: 28px 12px 0;
  color: #fff;
  text-align: center;
}

.winner-detail-command-title {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.winner-detail-command-name {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 26px;
  color: #f0f0f0;
}

.winner-archive-record-shell {
  padding: 0;
  text-align: left;
  font-size: 12px;
}

.winner-archive-layout-table {
  width: 750px;
}

.winner-archive-record-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.winner-archive-record-top,
.winner-archive-record-middle,
.winner-archive-record-bottom {
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}

.winner-archive-record-top,
.winner-archive-record-middle {
  border-bottom: 1px solid #5d67a7;
}

.winner-archive-record-top {
  min-height: 94px;
}

.winner-archive-record-middle,
.winner-archive-record-bottom {
  font-size: 12px;
}

.winner-archive-record-middle {
  min-height: 40px;
}

.winner-archive-battle-line,
.winner-archive-info-line,
.winner-archive-subtitle,
.winner-archive-placeholder {
  font-size: inherit;
  line-height: 1.3;
}

.winner-archive-info-line,
.winner-archive-subtitle {
  color: #fff;
  text-align: left;
}

.winner-archive-battle-line {
  margin: 0 0 2px;
  white-space: normal;
  text-align: left;
}

.winner-archive-battle-line-passive {
  color: #ffdd55;
}

.winner-archive-battle-line-damage {
  padding-left: 4ch;
}

.winner-archive-subtitle-gap {
  margin-top: 6px;
}

.winner-archive-meta-line {
  white-space: nowrap;
}

.winner-archive-placeholder {
  color: #ffe14a;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}

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

body.logs-full-page {
  background: #000;
}

.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;
}

button.progress-classic-tool-btn {
  cursor: pointer;
  font-family: inherit;
}

.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-team-login {
  margin: 0 0 8px;
}

.progress-classic-team-login-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
}

.progress-classic-team-login-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-classic-team-login-field input {
  background: #fff;
  border: 1px solid #888;
  color: #000;
  padding: 1px 4px;
  min-width: 120px;
  font-family: inherit;
  font-size: 13px;
}

.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: #7fd4ff;
  margin: 0 6px 0 4px;
}

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

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

.progress-classic-team-event-blue {
  color: #54d8ff;
}

.progress-classic-team-event-red {
  color: #ff4a4a;
}

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

.progress-classic-status-label,
.progress-classic-next-title {
  font-weight: 700;
}

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

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

.progress-classic-status-value.weather-chaos {
  color: #ffe85d;
}

.progress-classic-status-value.weather-tornado {
  color: #ff4a4a;
}

.progress-classic-status-value.weather-blizzard {
  color: #54d8ff;
}

.progress-classic-status-value.weather-hail {
  color: #3f8cff;
}

.progress-classic-status-value.weather-holy-light {
  background: #d9b45f;
  color: #ffffff;
  font-weight: 700;
  padding: 0 3px;
}

.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: 400;
}

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

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

.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;
}

.legacy-command-row select option.item-unequip-option {
  color: #888;
}

.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-register-flag {
  width: 20px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  vertical-align: -2px;
}

.progress-damage-line {
  font-weight: 700;
}

.progress-damage-number {
  color: #ffe85d;
}

.progress-damage-tier-100 {
  color: #fff3a0;
}

.progress-damage-tier-151 {
  color: #54d8ff;
}

.progress-damage-tier-201 {
  color: #54d8ff;
}

.progress-damage-tier-251 {
  color: #f7d8ff;
}

.progress-damage-tier-301 {
  color: #f7d8ff;
}

.progress-damage-tier-351 {
  color: #dca5ff;
}

.progress-damage-tier-blue-bg,
.progress-damage-tier-purple-bg,
.progress-damage-tier-red-bg,
.progress-damage-tier-dark-red-bg {
  color: #ffffff;
  display: inline-block;
  padding: 0 3px;
}

.progress-damage-tier-blue-bg {
  background: #143faf;
}

.progress-damage-tier-purple-bg {
  background: #5b238f;
}

.progress-damage-tier-red-bg {
  background: #a40000;
}

.progress-damage-tier-dark-red-bg {
  background: #540000;
}

.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;
}

.legacy-non-transferable-item {
  color: #c8c8c8 !important;
}

td.b3.legacy-inventory-type-value,
td.b3.legacy-item-type-label {
  color: #7fd4ff;
}

td.b3.legacy-item-type-label.legacy-non-transferable-item {
  color: #7fd4ff !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-outer-cell,
.legacy-command-cell {
  vertical-align: top !important;
}

.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-radio-row:has(.item-name-inline-content) .radio-face {
  align-self: flex-end;
}

.legacy-item-choice-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legacy-item-choice-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.legacy-item-choice-stats {
  white-space: nowrap;
}

.legacy-command-item-list .legacy-radio-row {
  flex-wrap: nowrap;
  text-align: left;
}

.legacy-command-item-list .legacy-item-choice-label {
  text-align: left;
}

.legacy-shop-radio-row {
  align-items: center;
  flex-wrap: nowrap;
}

.legacy-radio-row-return-gap {
  margin-top: 14px;
}

.legacy-shop-radio-row .radio-face {
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  max-width: 14px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  border-width: 1px;
}

.legacy-shop-radio-row input[type="radio"]:checked + .radio-face::after {
  inset: 3px;
}

.legacy-shop-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  column-gap: 10px;
  align-items: start;
  flex: 1 1 auto;
  min-width: 0;
}

.legacy-shop-item-name {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-align: left;
  justify-self: start;
}

.legacy-shop-item-price {
  white-space: nowrap;
  text-align: left;
  justify-self: start;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.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;
}

.updates-page-version {
  margin-bottom: 14px;
  color: #f0f0f0;
  font-weight: bold;
}

.updates-entry + .updates-entry {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #555;
}

.updates-entry-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #f3c96a;
  font-weight: bold;
}

.updates-entry-title {
  margin-top: 4px;
  color: #fff;
  font-weight: bold;
}

.updates-entry-lines {
  margin-top: 8px;
  color: #ddd;
}

.updates-entry-line + .updates-entry-line {
  margin-top: 4px;
}

.visitor-stats-panel {
  padding: 14px 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

.visitor-stats-note {
  margin: 0 0 10px;
}

.visitor-stats-current {
  color: #f3c96a;
  font-weight: bold;
}

.visitor-stats-empty {
  color: #f3c96a;
  font-weight: bold;
}

.visitor-stats-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  text-align: center;
}

.visitor-stats-table td {
  padding: 4px 8px;
  border-color: #8b8fb8;
}

.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-prize-quiz-name,
.progress-prize-quiz-name {
  color: #ffff00;
  font-weight: bold;
}

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

.legacy-chat-loudspeaker {
  font-weight: bold;
  font-size: 1.12em;
}

.legacy-public-system-message {
  color: #00ff00;
  font-weight: bold;
}

.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;
}

.legacy-message-channel-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.legacy-channel-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}

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

.legacy-channel-choice 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-channel-choice input[type="radio"]:checked + .radio-face::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #000;
  border-radius: 50%;
}

.legacy-channel-label-public {
  color: #fff;
}

.legacy-channel-label-team {
  color: #ff3333;
}

.legacy-team-chat-box {
  margin-top: 6px;
  padding-left: 4px;
  overflow-x: hidden;
}

.legacy-team-chat-name {
  color: #ffff00;
  margin-left: 6px;
}

.legacy-team-chat-event-blue {
  color: #54d8ff;
}

.legacy-team-chat-event-red {
  color: #ff4a4a;
}

.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;
}

.map-shell {
  width: min(100vw - 10px, 620px);
}

.map-panel {
  padding: 14px 16px 18px;
  line-height: 1.6;
}

.map-intro {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.map-table {
  border-collapse: collapse;
  margin: 0 auto;
  width: 539px;
  height: 539px;
  table-layout: fixed;
}

.map-corner-cell,
.map-col-label,
.map-row-label {
  width: 49px;
  height: 49px;
  vertical-align: middle;
}

.map-cell {
  width: 49px;
  height: 49px;
  padding: 0;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 49px 49px;
}

.map-cell-link {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  line-height: 0;
}

.map-overlay {
  display: block;
  width: 46px;
  height: 46px;
}

.map-status-block {
  font-size: 0.92rem;
}

.map-status-block p {
  margin: 0 0 8px;
}

.map-schedule {
  margin-top: 8px;
}

.map-schedule-item {
  margin-left: 1em;
}

.map-schedule-done {
  color: #ccc;
}

.radar-page {
  background: #000;
}

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

.radar-panel {
  position: relative;
  background: #000;
  border-color: #333;
  padding: 0;
}

.radar-table-wrap {
  margin: 0;
}

.radar-table {
  background: #000;
  border-color: #666;
}

.radar-table .radar-corner-cell,
.radar-table .radar-col-label,
.radar-table .radar-row-label {
  background: #000;
  color: #fff;
  border-color: #666;
  text-align: center;
}

.radar-cell {
  background-color: #000 !important;
  border-color: #666;
  padding: 0;
  vertical-align: middle;
}

.radar-cell-clickable {
  cursor: pointer;
}

.radar-cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 49px;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
}

.radar-cell-count {
  font-size: 1rem;
  font-weight: bold;
}

.radar-cell-player {
  background-color: #3a3a00 !important;
  border-color: #ff0 !important;
}

.radar-cell-count-player {
  color: #ff0;
}

.radar-layout-table {
  width: 757px;
  margin: 0 auto;
}

.radar-layout-table td {
  padding: 0;
}

.radar-command-cell {
  width: 200px;
  padding-left: 0;
}

.radar-command-form {
  color: #fff;
  text-align: left;
}

.radar-view-buttons {
  display: block;
  margin: 4px 0 12px;
  text-align: left;
}

.radar-view-button {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  padding: 2px 10px;
  margin: 0 0 6px;
  border: 2px outset #f0f0f0;
  background: #e9e9e9;
  color: #111;
  cursor: pointer;
  text-align: left;
}

.radar-view-button.is-active {
  border-style: inset;
  background: #d7d7d7;
}

#radar-graphic-table .radar-cell {
  position: relative;
}

.radar-graphic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-graphic-count {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
}

@media (pointer: coarse), (max-width: 768px) {
  body.game-page .legacy-command-outer-cell,
  body.game-page .legacy-command-table,
  body.game-page .legacy-command-cell {
    width: 245px;
  }

  body.game-page .legacy-command-row,
  body.game-page .legacy-radio-row,
  body.battle-page .legacy-command-row,
  body.battle-page .legacy-radio-row,
  body.battle-page .radio-choice {
    gap: 12px;
    min-height: 44px;
    margin-bottom: 14px;
    align-items: center;
    font-size: 18px;
  }

  body.game-page .legacy-command-form > .legacy-command-row,
  body.battle-page .legacy-command-form > .legacy-command-row {
    flex-wrap: nowrap;
  }

  body.game-page .legacy-command-item-list .legacy-radio-row,
  body.battle-page .legacy-command-item-list .legacy-radio-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.game-page .legacy-command-item-list .legacy-radio-row > span:last-child,
  body.battle-page .legacy-command-item-list .legacy-radio-row > span:last-child {
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body.game-page .legacy-command-row .radio-face,
  body.game-page .legacy-radio-row .radio-face,
  body.game-page .legacy-channel-choice .radio-face,
  body.battle-page .legacy-command-row .radio-face,
  body.battle-page .legacy-radio-row .radio-face,
  body.battle-page .radio-choice .radio-face {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    border-width: 3px;
  }

  body.game-page .legacy-command-row input[type="radio"]:checked + .radio-face::after,
  body.game-page .legacy-radio-row input[type="radio"]:checked + .radio-face::after,
  body.game-page .legacy-channel-choice input[type="radio"]:checked + .radio-face::after,
  body.battle-page .legacy-command-row input[type="radio"]:checked + .radio-face::after,
  body.battle-page .legacy-radio-row input[type="radio"]:checked + .radio-face::after,
  body.battle-page .radio-choice input[type="radio"]:checked + .radio-face::after {
    inset: 7px;
  }

  body.game-page .legacy-command-row select,
  body.game-page .legacy-command-subselect,
  body.game-page .legacy-command-tactics-select,
  body.battle-page .legacy-command-row select,
  body.battle-page .legacy-command-subselect {
    flex: 0 0 165px;
    width: 165px;
    height: 52px;
    min-height: 52px;
    padding: 10px 12px;
    font-size: 18px;
    line-height: 28px;
  }

  body.game-page .legacy-command-subselect,
  body.game-page .legacy-command-tactics-select,
  body.battle-page .legacy-command-subselect {
    width: 210px;
  }

  body.game-page .legacy-command-textonly,
  body.battle-page .legacy-command-textonly {
    min-height: 44px;
    line-height: 44px;
  }

  body.game-page .legacy-command-submit,
  body.battle-page .legacy-command-submit {
    margin-top: 24px;
  }

  body.game-page .legacy-command-panel button,
  body.game-page .legacy-message-box button,
  body.game-page .radar-view-button,
  body.battle-page .battle-command-panel button,
  body.battle-page .legacy-command-panel button,
  body.battle-page .legacy-message-box button,
  body.battle-page button {
    min-height: 48px;
    padding: 12px 36px;
    font-size: 24px;
    line-height: 1.15;
  }

  body.game-page .legacy-message-channel-row,
  body.game-page .legacy-message-actions {
    gap: 12px;
    align-items: center;
  }

  body.game-page .legacy-channel-choice {
    gap: 10px;
    min-height: 44px;
    font-size: 18px;
  }
}

@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;
  }
}
