#ot-container {
  --ot-bg: #020402;
  --ot-bg-soft: #061106;
  --ot-panel: rgba(0, 0, 0, 0.84);
  --ot-border: #2cff75;
  --ot-border-soft: rgba(44, 255, 117, 0.28);
  --ot-text: #9dffb9;
  --ot-text-dim: #62c27f;
  --ot-text-soft: #cbffd8;
  --ot-accent: #f6d667;
  --ot-danger: #ff8e8e;
  --ot-shadow: rgba(0, 255, 102, 0.18);
  position: relative;
  min-height: 100dvh;
  padding: clamp(16px, 4vw, 36px);
  background:
    radial-gradient(circle at top, #0b1f0b 0%, var(--ot-bg-soft) 30%, var(--ot-bg) 72%, #000 100%);
  color: var(--ot-text);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.03em;
  overflow: hidden;
}

#ot-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.16;
  pointer-events: none;
}

#ot-container * {
  box-sizing: border-box;
}

#ot-container a {
  color: var(--ot-text-soft);
}

#ot-container button,
#ot-container input,
#ot-container select {
  font: inherit;
}

#ot-container .ot-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

#ot-container .ot-frame {
  border: 2px solid var(--ot-border);
  background: var(--ot-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 32px var(--ot-shadow);
  padding: clamp(16px, 3vw, 28px);
}

#ot-container .ot-topline,
#ot-container .ot-action-row,
#ot-container .ot-setting-row,
#ot-container .ot-store-row,
#ot-container .ot-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

#ot-container .ot-topline {
  margin-bottom: 18px;
}

#ot-container .ot-home-link,
#ot-container .ot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--ot-border-soft);
  background: rgba(7, 23, 7, 0.9);
  text-decoration: none;
  text-transform: uppercase;
}

#ot-container .ot-home-link:hover,
#ot-container .ot-button:hover,
#ot-container .ot-store-button:hover {
  filter: brightness(1.08);
}

#ot-container .ot-kicker {
  margin: 0 0 10px;
  color: var(--ot-accent);
  text-transform: uppercase;
}

#ot-container .ot-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  color: var(--ot-text-soft);
  text-shadow: 0 0 14px rgba(157, 255, 185, 0.34);
}

#ot-container .ot-subtitle,
#ot-container .ot-copy,
#ot-container .ot-note,
#ot-container .ot-muted {
  margin: 0;
  color: var(--ot-text-dim);
  line-height: 1.6;
}

#ot-container .ot-subtitle {
  margin-top: 10px;
}

#ot-container .ot-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 16px;
  margin-top: 20px;
}

#ot-container .ot-grid--trail {
  grid-template-columns: 1.2fr 0.8fr;
}

#ot-container .ot-panel {
  border: 1px solid var(--ot-border-soft);
  background: rgba(3, 10, 3, 0.86);
  padding: 16px;
}

#ot-container .ot-panel-title {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--ot-text-soft);
}

#ot-container .ot-form-grid,
#ot-container .ot-store-grid,
#ot-container .ot-party-grid,
#ot-container .ot-stat-grid {
  display: grid;
  gap: 12px;
}

#ot-container .ot-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 14px;
}

#ot-container .ot-store-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

#ot-container .ot-party-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 16px;
}

#ot-container .ot-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 16px;
}

#ot-container .ot-field {
  display: grid;
  gap: 8px;
}

#ot-container .ot-label {
  color: var(--ot-text-soft);
  text-transform: uppercase;
  font-size: 0.9rem;
}

#ot-container .ot-input,
#ot-container .ot-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ot-border-soft);
  background: rgba(0, 0, 0, 0.78);
  color: var(--ot-text-soft);
}

#ot-container .ot-select {
  min-width: 180px;
}

#ot-container .ot-button,
#ot-container .ot-store-button {
  border: 1px solid var(--ot-border);
  background: rgba(6, 30, 10, 0.96);
  color: var(--ot-text-soft);
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.08) inset;
}

#ot-container .ot-button--primary {
  color: #101b0f;
  background: var(--ot-accent);
  border-color: #ffe9a6;
  box-shadow: none;
}

#ot-container .ot-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ot-text-dim);
  line-height: 1.7;
}

#ot-container .ot-store-card,
#ot-container .ot-party-card,
#ot-container .ot-stat,
#ot-container .ot-summary-card {
  border: 1px solid var(--ot-border-soft);
  background: rgba(0, 0, 0, 0.68);
  padding: 14px;
}

#ot-container .ot-store-card h3,
#ot-container .ot-party-card h3,
#ot-container .ot-summary-card h3 {
  margin: 0 0 10px;
  color: var(--ot-text-soft);
  font-size: 1rem;
  text-transform: uppercase;
}

#ot-container .ot-store-meta,
#ot-container .ot-summary-card p,
#ot-container .ot-party-card p {
  margin: 0;
  color: var(--ot-text-dim);
  line-height: 1.5;
}

#ot-container .ot-store-row {
  margin-top: 12px;
}

#ot-container .ot-store-price {
  color: var(--ot-accent);
  text-transform: uppercase;
}

#ot-container .ot-progress {
  margin-top: 14px;
  border: 1px solid var(--ot-border-soft);
  height: 18px;
  background: rgba(0, 0, 0, 0.75);
}

#ot-container .ot-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1f873c 0%, #98ff7f 100%);
  box-shadow: 0 0 14px rgba(152, 255, 127, 0.3);
}

#ot-container .ot-stat {
  min-height: 88px;
}

#ot-container .ot-stat-label {
  display: block;
  color: var(--ot-text-dim);
  text-transform: uppercase;
  font-size: 0.86rem;
}

#ot-container .ot-stat-value {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: var(--ot-text-soft);
}

#ot-container .ot-log {
  margin-top: 16px;
  border: 1px solid var(--ot-border-soft);
  background: rgba(0, 0, 0, 0.72);
  padding: 14px;
}

#ot-container .ot-log-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--ot-text-soft);
}

#ot-container .ot-party-card--dead {
  border-color: rgba(255, 142, 142, 0.42);
}

#ot-container .ot-party-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#ot-container .ot-status-chip {
  padding: 4px 8px;
  border: 1px solid var(--ot-border-soft);
  text-transform: uppercase;
  color: var(--ot-text-soft);
  font-size: 0.84rem;
}

#ot-container .ot-status-chip--dead {
  border-color: rgba(255, 142, 142, 0.42);
  color: var(--ot-danger);
}

#ot-container .ot-meter {
  margin-top: 10px;
  border: 1px solid var(--ot-border-soft);
  height: 12px;
  background: rgba(0, 0, 0, 0.72);
}

#ot-container .ot-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #157f38 0%, #8dff95 100%);
}

#ot-container .ot-meter-fill--danger {
  background: linear-gradient(90deg, #7f1515 0%, #ff8e8e 100%);
}

#ot-container .ot-summary-row {
  margin-top: 18px;
}

#ot-container .ot-end-banner {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--ot-border-soft);
  background: rgba(6, 25, 8, 0.78);
  color: var(--ot-text-soft);
}

#ot-container .ot-end-banner--loss {
  border-color: rgba(255, 142, 142, 0.42);
  color: var(--ot-danger);
}

#ot-container .ot-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
}

#ot-container .ot-modal {
  width: min(520px, 100%);
  border: 2px solid var(--ot-accent);
  background: rgba(6, 10, 4, 0.96);
  box-shadow: 0 0 28px rgba(246, 214, 103, 0.18);
  padding: 22px;
}

#ot-container .ot-modal h2 {
  margin: 0 0 12px;
  color: var(--ot-accent);
  text-transform: uppercase;
}

#ot-container .ot-modal p {
  margin: 0 0 18px;
  color: var(--ot-text-soft);
  line-height: 1.7;
}

@media (max-width: 860px) {
  #ot-container .ot-grid,
  #ot-container .ot-grid--trail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #ot-container {
    padding: 12px;
  }

  #ot-container .ot-frame {
    padding: 14px;
  }

  #ot-container .ot-topline,
  #ot-container .ot-action-row,
  #ot-container .ot-setting-row,
  #ot-container .ot-store-row,
  #ot-container .ot-summary-row {
    flex-direction: column;
    align-items: stretch;
  }
}
