:root {
  color-scheme: dark;
  --touch-scale: 1;
  --touch-opacity: 0.6;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #09090d;
  touch-action: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  color: #e8d9c4;
  font: 16px/1.5 system-ui, sans-serif;
  background: rgba(9, 9, 13, 0.9);
  z-index: 100;
}

.overlay[hidden],
.debug[hidden] {
  display: none;
}

.debug {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: calc(8px + env(safe-area-inset-left, 0px));
  padding: 6px 10px;
  color: #e8d9c4;
  font: 12px/1.4 ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.5);
  white-space: pre;
  pointer-events: none;
}

.hud {
  position: fixed;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 220px;
  color: #e8d9c4;
  font: 12px/1.4 system-ui, sans-serif;
  pointer-events: none;
}

.hp {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.hp-fill {
  height: 100%;
  background: #b8321a;
  transform-origin: left center;
  transition: transform 0.15s ease-out;
}

.hp-label {
  margin-top: 4px;
}

.touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.touch button,
.stick-base,
.stick-knob {
  transition: opacity 0.15s ease;
}

.stick-base,
.stick-knob {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  border-radius: 50%;
  box-sizing: border-box;
}

.stick-base {
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 2px solid rgba(232, 217, 196, 0.35);
  background: rgba(232, 217, 196, 0.06);
}

.stick-knob {
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  background: rgba(232, 217, 196, 0.35);
}

.touch.enabled .stick-base,
.touch.enabled .stick-knob {
  display: block;
}

.touch.enabled .stick-base {
  opacity: var(--touch-opacity);
}

.touch button {
  zoom: var(--touch-scale);
}

.touch.mirror .attack-btn {
  right: auto;
  left: calc(24px + env(safe-area-inset-left, 0px));
}

.touch.mirror .interact-btn {
  right: auto;
  left: calc(132px + env(safe-area-inset-left, 0px));
}

.touch.mirror .potion-btn {
  right: auto;
  left: calc(204px + env(safe-area-inset-left, 0px));
}

.touch.mirror .skill-row {
  right: auto;
  left: calc(24px + env(safe-area-inset-left, 0px));
}

.touch.mirror .inventory-btn {
  right: auto;
  left: calc(16px + env(safe-area-inset-left, 0px));
}

.touch.enabled .stick-base:active,
.touch.enabled.active .stick-base {
  opacity: 1;
}

.attack-btn,
.interact-btn,
.inventory-btn {
  display: none;
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 96px;
  height: 96px;
  padding: 0;
  border: 2px solid rgba(232, 217, 196, 0.5);
  border-radius: 50%;
  color: #e8d9c4;
  font: 600 14px system-ui, sans-serif;
  background: rgba(184, 50, 26, 0.45);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.touch.enabled .attack-btn,
.touch.enabled .interact-btn,
.touch.enabled .inventory-btn {
  display: block;
}

.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floater {
  position: absolute;
  left: 0;
  top: 0;
  font: 700 16px/1 system-ui, sans-serif;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
  will-change: transform, opacity;
}

.floater-hit {
  color: #ffd27a;
}

.floater-player {
  color: #ff6b5a;
}

.interact-btn,
.inventory-btn {
  position: fixed;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid rgba(232, 217, 196, 0.45);
  border-radius: 50%;
  color: #e8d9c4;
  font: 600 12px system-ui, sans-serif;
  background: rgba(20, 20, 28, 0.6);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.interact-btn {
  right: calc(132px + env(safe-area-inset-right, 0px));
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

.inventory-btn {
  right: calc(16px + env(safe-area-inset-right, 0px));
  top: calc(16px + env(safe-area-inset-top, 0px));
  width: 56px;
  height: 56px;
}

.hud-stats {
  margin-top: 4px;
  white-space: nowrap;
}

.hud-hotbar {
  margin-top: 4px;
  white-space: nowrap;
}

.hud-prompt {
  margin-top: 6px;
  padding: 4px 8px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
}

.hud-prompt[hidden] {
  display: none;
}

.inventory {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(9, 9, 13, 0.94);
  color: #f2e8d8;
  font: 15px/1.4 system-ui, sans-serif;
  z-index: 20;
}

.inventory[hidden] {
  display: none;
}

.inventory-panel {
  width: min(480px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 16px;
  box-sizing: border-box;
  background: #14131a;
  border: 1px solid rgba(232, 217, 196, 0.2);
  border-radius: 6px;
}

.inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inventory-title {
  margin: 0;
  font-size: 20px;
}

.inventory-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  color: #e8d9c4;
  background: transparent;
  border: 1px solid rgba(232, 217, 196, 0.35);
  border-radius: 4px;
}

.inventory-stats {
  margin: 8px 0 12px;
  opacity: 0.8;
}

.inventory-section {
  margin: 12px 0 6px;
  font-weight: 600;
}

.inventory-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 8px 10px;
  box-sizing: border-box;
  flex-direction: column;
  text-align: left;
  color: #e8d9c4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 4px;
  font: inherit;
}

button.inventory-item {
  cursor: pointer;
}

.inventory-item-detail {
  font-size: 12px;
  opacity: 0.75;
}

.inventory-empty {
  opacity: 0.6;
}

.rarity-common {
  border-left-color: #b3b3b3;
}

.rarity-rare {
  border-left-color: #4d8cf2;
}

.rarity-epic {
  border-left-color: #a659e6;
}

.rarity-legendary {
  border-left-color: #ff9926;
}

.rarity-mythic {
  border-left-color: #ff4066;
}

.floater-essence {
  color: #ffc74d;
}

.floater-level {
  color: #9fe8ff;
}

.floater-info {
  color: #e8d9c4;
}

.forge-section {
  margin-bottom: 14px;
}

.forge-section-title {
  margin-bottom: 6px;
  font-weight: 600;
}

.forge-action {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 8px 10px;
  box-sizing: border-box;
  text-align: left;
  color: #e8d9c4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.forge-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.forge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.forge-filters .forge-action {
  width: auto;
  margin: 0;
}

.forge-filter-active {
  border-color: #ffc74d;
  color: #ffc74d;
}

.forge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 6px 6px 0;
  padding: 2px 8px 2px 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.forge-chip .start-glyph {
  width: 18px;
  height: 18px;
}

#story {
  z-index: 45;
}

.story-panel {
  width: min(560px, 100%);
  text-align: left;
}

.story-progress {
  color: rgba(232, 217, 196, 0.55);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.story-text {
  margin: 14px 0 18px;
  font-size: 17px;
  line-height: 1.6;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-actions button {
  min-height: 44px;
  padding: 0 14px;
  color: #f2e8d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 217, 196, 0.35);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.story-actions button[hidden] {
  display: none;
}

.story-next,
.story-direct {
  color: #120a0b !important;
  background: linear-gradient(180deg, #ffc74d, #d9531e) !important;
  border-color: transparent !important;
  font-weight: 700;
}

.story-skip {
  margin-left: auto;
  opacity: 0.7;
}

.tutorial {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100% - 24px));
  padding: 10px 14px;
  box-sizing: border-box;
  transform: translateX(-50%);
  color: #f2e8d8;
  background: rgba(20, 19, 26, 0.9);
  border: 1px solid rgba(255, 199, 77, 0.45);
  border-radius: 6px;
  font: 15px/1.4 system-ui, sans-serif;
}

.tutorial[hidden] {
  display: none;
}

.tutorial-text {
  margin: 0;
}

.tutorial-skip {
  flex: none;
  min-height: 36px;
  padding: 0 10px;
  color: #e8d9c4;
  background: transparent;
  border: 1px solid rgba(232, 217, 196, 0.35);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.skills-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.shop-confirm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 199, 77, 0.35);
  border-radius: 4px;
  background: rgba(255, 199, 77, 0.06);
}

.potion-btn,
.skill-row {
  display: none;
}

.potion-btn {
  position: fixed;
  right: calc(204px + env(safe-area-inset-right, 0px));
  bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(232, 217, 196, 0.45);
  border-radius: 50%;
  color: #e8d9c4;
  font: 600 11px system-ui, sans-serif;
  background: rgba(40, 90, 50, 0.6);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.skill-row {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  gap: 6px;
}

.skill-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(232, 217, 196, 0.45);
  border-radius: 50%;
  color: #e8d9c4;
  font: 600 13px system-ui, sans-serif;
  background: rgba(20, 20, 28, 0.7);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.touch.enabled .potion-btn {
  display: block;
}

.touch.enabled .skill-row {
  display: flex;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.screen-text {
  margin: 8px 0 14px;
  opacity: 0.8;
}

.screen-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-action {
  min-height: 44px;
  padding: 8px 12px;
  color: #e8d9c4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 217, 196, 0.35);
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.start {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  overflow-y: auto;
  box-sizing: border-box;
  padding: calc(24px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px));
  color: #e8d9c4;
  font: 16px/1.5 system-ui, sans-serif;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(217, 83, 30, 0.35), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 199, 77, 0.1), transparent 70%),
    linear-gradient(180deg, #120a0b 0%, #09090d 60%, #050407 100%);
}

.start[hidden] {
  display: none;
}

.start-inner {
  counter-reset: section;
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.start-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #ffc74d;
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.start-title {
  margin: 0;
  color: #f6ecdc;
  font: 800 clamp(44px, 10vw, 96px)/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(217, 83, 30, 0.55), 0 2px 0 #000;
}

.start-lead {
  max-width: 560px;
  margin: 0;
  color: rgba(232, 217, 196, 0.8);
  font-size: 18px;
}

.start-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(9, 9, 13, 0.97) 70%, rgba(9, 9, 13, 0));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.start-play,
.start-secondary {
  min-height: 56px;
  border-radius: 4px;
  cursor: pointer;
}

.start-play {
  min-width: 220px;
  padding: 0 32px;
  border: 0;
  color: #120a0b;
  background: linear-gradient(180deg, #ffc74d, #d9531e);
  box-shadow: 0 8px 24px rgba(217, 83, 30, 0.35);
  font: 700 18px system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-secondary {
  padding: 0 22px;
  color: #e8d9c4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 217, 196, 0.35);
  font: 600 15px system-ui, sans-serif;
}

.start-secondary[hidden] {
  display: none;
}

.start-play:hover,
.start-secondary:hover {
  filter: brightness(1.12);
}

.start-play:focus-visible,
.start-secondary:focus-visible {
  outline: 2px solid #ffc74d;
  outline-offset: 3px;
}

.start-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.start-features li {
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(217, 83, 30, 0.14), rgba(20, 19, 26, 0.75) 45%);
  border: 1px solid rgba(232, 217, 196, 0.12);
  border-top: 2px solid #d9531e;
  border-radius: 6px;
}

.start h2 {
  margin: 0 0 6px;
  color: #f6ecdc;
  font: 700 15px/1.3 system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.start-features p {
  margin: 0;
  color: rgba(232, 217, 196, 0.75);
  font-size: 14px;
}

.start-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
}

.start-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.start-stats dd {
  margin: 0;
  color: #ffc74d;
  font: 800 32px/1 system-ui, sans-serif;
}

.start-stats dt {
  margin-top: 6px;
  color: rgba(232, 217, 196, 0.7);
  font-size: 13px;
}

.start-controls {
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(20, 19, 26, 0.7);
  border: 1px solid rgba(232, 217, 196, 0.12);
  border-radius: 6px;
}

.start-controls h2 {
  text-align: center;
}

.start table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.start th,
.start td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(232, 217, 196, 0.1);
}

.start th {
  color: rgba(232, 217, 196, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.start-controls td:nth-child(2) {
  color: #ffc74d;
  font: 600 14px ui-monospace, monospace;
  white-space: nowrap;
}

.start-info {
  display: grid;
  gap: 6px;
  width: 100%;
  color: rgba(232, 217, 196, 0.7);
  font-size: 14px;
}

.start-info p {
  margin: 0;
}

.start-notice {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  box-sizing: border-box;
  color: #120a0b;
  background: #ffc74d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.start-notice[hidden] {
  display: none;
}

#settings {
  z-index: 40;
}

.settings-panel {
  width: min(560px, 100%);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 217, 196, 0.08);
  font-size: 14px;
}

.settings-row > span {
  flex: 1;
  min-width: 0;
}

.settings-row > input[type='range'],
.settings-row > select {
  flex: 0 0 50%;
  max-width: 50%;
}

.settings-row > input[type='checkbox'] {
  flex: none;
  width: 22px;
  height: 22px;
}

.settings-row select {
  min-height: 36px;
  padding: 4px 8px;
  color: #f2e8d8;
  background: #14131a;
  border: 1px solid rgba(232, 217, 196, 0.3);
  border-radius: 4px;
  font: inherit;
}

.settings-keys {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.settings-keys legend {
  margin-bottom: 4px;
  color: #f6ecdc;
  font-weight: 700;
}

.settings-key {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 40px;
  padding: 6px 12px;
  color: #ffc74d;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 199, 77, 0.35);
  border-radius: 4px;
  font: 600 14px ui-monospace, monospace;
  cursor: pointer;
}

.settings-key:focus-visible {
  outline: 2px solid #ffc74d;
  outline-offset: 2px;
}

.start-status {
  width: 100%;
  margin: 0;
  color: #ff8a7a;
  font-size: 14px;
}

.start-status[hidden] {
  display: none;
}

.start-section {
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid rgba(232, 217, 196, 0.08);
  text-align: left;
}

.start-section > h2 {
  counter-increment: section;
  margin-bottom: 10px;
  font-size: 22px;
  text-align: center;
}

.start-section > h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  color: #d9531e;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.25em;
}

.start-section h3 {
  margin: 18px 0 8px;
  color: #ffc74d;
  font: 600 13px/1 system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.start-note {
  margin: 0;
  color: rgba(232, 217, 196, 0.7);
  font-size: 14px;
}

.start-world-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.start-world-list li {
  padding: 12px 14px;
  background: rgba(20, 19, 26, 0.7);
  border: 1px solid rgba(232, 217, 196, 0.12);
  border-radius: 6px;
}

.start-world-list strong {
  color: #f6ecdc;
  font-size: 15px;
}

.start-tag {
  margin-left: 8px;
  color: #ffc74d;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.start-world-list p {
  margin: 4px 0 0;
  color: rgba(232, 217, 196, 0.75);
  font-size: 14px;
}

.start-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(232, 217, 196, 0.8);
  font-size: 15px;
}

.start-list li {
  margin-bottom: 6px;
}

.start-count {
  color: #ffc74d;
  font-weight: 700;
}

.start-tiers {
  margin-top: 12px;
}

.start-specials {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.start-special {
  background: rgba(20, 19, 26, 0.7);
  border: 1px solid rgba(232, 217, 196, 0.12);
  border-radius: 6px;
}

.start-special summary {
  padding: 10px 14px;
  color: #f6ecdc;
  font-weight: 700;
  cursor: pointer;
}

.start-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px;
  list-style: none;
}

.start-chips li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.start-chips strong {
  color: #f6ecdc;
  font-size: 14px;
}

.start-chips small {
  color: rgba(232, 217, 196, 0.6);
  font-size: 12px;
}

.start-recipe-chips {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.start-glyph {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

.start-kicker::before,
.start-kicker::after {
  content: '';
  width: 32px;
  height: 1px;
}

.start-kicker::before {
  background: linear-gradient(90deg, transparent, #ffc74d);
}

.start-kicker::after {
  background: linear-gradient(90deg, #ffc74d, transparent);
}

.start-features li,
.start-world-list li {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.start-features li:hover,
.start-world-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 199, 77, 0.45);
  box-shadow: 0 10px 24px rgba(217, 83, 30, 0.18);
}

.start::before,
.start::after {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.start::before {
  height: calc(100% + 260px);
  background-image:
    radial-gradient(circle 2px at 20px 40px, #ffc74d, transparent),
    radial-gradient(circle 1.5px at 120px 180px, #ff9a3c, transparent),
    radial-gradient(circle 2.5px at 200px 90px, #ffe08a, transparent),
    radial-gradient(circle 1.5px at 60px 230px, #d9531e, transparent),
    radial-gradient(circle 2px at 230px 210px, #ffc74d, transparent);
  background-size: 260px 260px;
}

.start::after {
  height: calc(100% + 380px);
  background-image:
    radial-gradient(circle 1.5px at 90px 60px, #ff9a3c, transparent),
    radial-gradient(circle 2px at 300px 150px, #ffc74d, transparent),
    radial-gradient(circle 1px at 180px 300px, #ffe08a, transparent),
    radial-gradient(circle 2px at 340px 320px, #d9531e, transparent),
    radial-gradient(circle 1.5px at 40px 260px, #ffc74d, transparent);
  background-size: 380px 380px;
  opacity: 0.6;
}

@keyframes ember-rise-a {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -260px, 0); }
}

@keyframes ember-rise-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -380px, 0); }
}

@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 22px rgba(217, 83, 30, 0.45), 0 2px 0 #000; }
  50% { text-shadow: 0 0 40px rgba(255, 199, 77, 0.6), 0 2px 0 #000; }
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(217, 83, 30, 0.35); }
  50% { box-shadow: 0 8px 34px rgba(255, 199, 77, 0.55); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .start::before {
    animation: ember-rise-a 20s linear infinite;
  }

  .start::after {
    animation: ember-rise-b 30s linear infinite;
  }

  .start-title {
    animation: title-glow 5s ease-in-out infinite;
  }

  .start-play {
    animation: play-pulse 2.8s ease-in-out infinite;
  }

  .start-inner > * {
    animation: rise 0.8s ease both;
  }

  .start-inner > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .start-inner > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .start-inner > :nth-child(4) {
    animation-delay: 0.3s;
  }
}
