/* =========================================================
   Design Tokens
   ========================================================= */

:root {
  --page_bg: #fbfcf8;
  --paper: rgba(255, 255, 255, 0.74);
  --ink: #293630;
  --ink_soft: #75817c;
  --line: rgba(46, 77, 64, 0.10);
  --sfx: #22ef88;
  --sfx_bright: #78ffb8;
  --sft: #5de1f3;
  --sft_bright: #b7f8ff;
  --lavender: #e0cbff;
  --curtain_left_shift: 0%;
  --curtain_right_shift: 0%;
  --reveal_alpha: 0.06;
  --gong_size: clamp(86px, 28vw, 118px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page_bg);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--page_bg);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 90%, rgba(224, 203, 255, 0.18), transparent 30%),
    radial-gradient(circle at 94% 10%, rgba(183, 248, 255, 0.22), transparent 34%),
    radial-gradient(circle at 48% 40%, rgba(120, 255, 184, 0.08), transparent 34%),
    var(--page_bg);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

/* =========================================================
   Event Shell
   ========================================================= */

.event_shell {
  width: min(100%, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(8px, env(safe-area-inset-top))
    clamp(8px, 2.6vw, 24px)
    max(7px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: minmax(282px, 53svh) minmax(174px, 1fr) auto;
  gap: clamp(5px, 1svh, 10px);
}

/* =========================================================
   Curtain Gate
   ========================================================= */

.gate_stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 108, 82, 0.13);
  border-radius: clamp(18px, 5vw, 30px);
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98), rgba(249, 253, 250, 0.86) 48%, rgba(246, 251, 249, 0.80)),
    var(--page_bg);
  box-shadow:
    0 26px 70px rgba(73, 117, 96, 0.085),
    0 0 42px rgba(34, 239, 136, 0.045),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88);
  isolation: isolate;
}

.reveal_field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98) 0 24%, rgba(244, 255, 250, 0.74) 42%, transparent 70%);
}

.reveal_wordmark {
  width: clamp(148px, 51vw, 268px);
  height: auto;
  opacity: var(--reveal_alpha);
  filter:
    drop-shadow(0 0 14px rgba(34, 239, 136, 0.11))
    drop-shadow(0 0 22px rgba(93, 225, 243, 0.09));
  transform: translateY(-4px) scale(1);
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms ease;
}

.reveal_field p {
  margin: -6px 0 0;
  color: rgba(80, 102, 93, calc(0.20 + (var(--reveal_alpha) * 0.62)));
  font-size: clamp(9px, 2.8vw, 12px);
  font-weight: 470;
  letter-spacing: 0.085em;
  transition: color 900ms ease;
}

.reveal_bloom {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: calc(var(--reveal_alpha) * 0.40);
  filter: blur(42px);
  transition: opacity 900ms ease;
}

.reveal_bloom_sfx {
  left: 18%;
  background: rgba(34, 239, 136, 0.34);
}

.reveal_bloom_sft {
  right: 18%;
  background: rgba(93, 225, 243, 0.32);
}

.curtain {
  position: absolute;
  top: -2%;
  bottom: -2%;
  z-index: 4;
  width: 51.2%;
  overflow: hidden;
  transition: transform 1150ms cubic-bezier(0.22, 0.78, 0.24, 1);
  will-change: transform;
}

.curtain_left {
  left: -0.4%;
  transform: translateX(var(--curtain_left_shift));
  border-right: 1px solid rgba(84, 176, 137, 0.16);
  border-radius: 20px 7px 7px 20px;
  background:
    linear-gradient(90deg, rgba(240, 252, 246, 1), rgba(205, 255, 229, 0.98) 58%, rgba(159, 250, 204, 0.97) 88%, rgba(118, 241, 184, 0.98));
  box-shadow: 16px 0 44px rgba(34, 239, 136, 0.14), inset -12px 0 30px rgba(34, 239, 136, 0.08);
}

.curtain_right {
  right: -0.4%;
  transform: translateX(var(--curtain_right_shift));
  border-left: 1px solid rgba(94, 182, 194, 0.16);
  border-radius: 7px 20px 20px 7px;
  background:
    linear-gradient(270deg, rgba(248, 253, 254, 0.99), rgba(237, 253, 255, 0.96) 72%, rgba(222, 249, 253, 0.99));
  box-shadow: -12px 0 38px rgba(93, 225, 243, 0.055);
}

.curtain_folds {
  position: absolute;
  inset: 0;
  opacity: 0.74;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.62) 0 8%,
      rgba(97, 141, 121, 0.035) 10% 14%,
      rgba(255, 255, 255, 0.30) 17% 23%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 16%, transparent 82%, rgba(169, 217, 197, 0.10));
}

.curtain_right .curtain_folds {
  transform: scaleX(-1);
}

.curtain_mark {
  position: absolute;
  top: 22%;
  width: clamp(54px, 17vw, 88px);
  height: auto;
  opacity: 0.22;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  animation: curtain_mark_breathe 4200ms ease-in-out infinite alternate;
}

.curtain_left .curtain_mark {
  right: 11%;
}

.curtain_right .curtain_mark {
  left: 11%;
  animation-delay: -1900ms;
}

.gate_seam {
  position: absolute;
  top: 8%;
  bottom: 9%;
  left: 50%;
  z-index: 5;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(143, 239, 207, 0.54), rgba(143, 223, 238, 0.56), transparent);
  box-shadow:
    0 0 6px rgba(120, 255, 184, 0.26),
    0 0 14px rgba(183, 248, 255, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.gate_stage.is_shifting .curtain_left,
.gate_stage.is_shifting .curtain_right {
  animation: curtain_tremor 640ms ease-out;
}

.gate_stage.is_shifting .gate_seam {
  animation: seam_flash 820ms ease-out;
}

.gate_stage.is_threshold .gate_seam {
  width: 2px;
  box-shadow:
    0 0 10px rgba(120, 255, 184, 0.52),
    0 0 24px rgba(93, 225, 243, 0.34),
    0 0 40px rgba(224, 203, 255, 0.20);
}


.gate_progress {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 9;
  min-width: 58px;
  padding: 5px 8px 4px;
  display: grid;
  justify-items: center;
  gap: 0;
  border: 1px solid rgba(46, 137, 101, 0.12);
  border-radius: 999px;
  color: rgba(50, 84, 71, 0.72);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 24px rgba(71, 116, 94, 0.07), 0 0 22px rgba(93, 225, 243, 0.05);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.gate_progress strong {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 620;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}


.gate_progress.is_struck {
  animation: gate_progress_strike 1350ms cubic-bezier(0.18, 0.85, 0.18, 1);
}

.gate_progress.is_self_strike {
  animation: gate_progress_self_strike 1450ms cubic-bezier(0.16, 0.88, 0.16, 1);
}

.gate_progress span {
  margin-top: -1px;
  color: rgba(91, 111, 102, 0.46);
  font-size: 6.5px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

/* =========================================================
   Gong
   ========================================================= */

.gong_cluster {
  position: absolute;
  left: 50%;
  bottom: clamp(31px, 6.5svh, 51px);
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
}

.gong_button {
  position: relative;
  width: var(--gong_size);
  height: var(--gong_size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: 0;
  cursor: pointer;
  touch-action: manipulation;
  background: transparent;
  filter: drop-shadow(0 14px 24px rgba(62, 101, 83, 0.12));
  transition:
    filter 220ms ease,
    transform 160ms ease;
}

.gong_button:active:not(:disabled) {
  transform: scale(0.955);
}

.gong_button:focus-visible {
  box-shadow: 0 0 0 4px rgba(93, 225, 243, 0.18);
}

.gong_button:disabled {
  cursor: default;
}

.gong_face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(87, 139, 116, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 1) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.96) 0 19%, rgba(229, 255, 244, 0.88) 20% 39%, rgba(218, 249, 248, 0.82) 59%, rgba(244, 238, 255, 0.68) 78%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.48),
    inset 0 0 27px rgba(93, 225, 243, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.86),
    0 0 32px rgba(34, 239, 136, 0.08);
}

.gong_face::before,
.gong_face::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.gong_face::before {
  inset: 13%;
  border: 1px solid rgba(74, 135, 108, 0.11);
}

.gong_face::after {
  inset: 31%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(117, 255, 197, 0.13) 46%, rgba(93, 225, 243, 0.12));
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.84);
}

.gong_text {
  position: relative;
  z-index: 2;
  color: #527267;
  font-size: clamp(10px, 3.2vw, 13px);
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.gong_ripple {
  position: absolute;
  inset: 2%;
  z-index: -1;
  border: 1px solid rgba(34, 239, 136, 0.44);
  border-radius: 50%;
  opacity: 0;
}

/* Strike gesture: sharp impact, rebound, then two expanding resonance waves. */
.gong_button.is_struck {
  animation: gong_strike_body 1500ms cubic-bezier(0.16, 0.84, 0.18, 1);
}

.gong_button.is_struck::before,
.gong_button.is_struck::after {
  position: absolute;
  inset: -3%;
  z-index: -2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(34, 239, 136, 0.72);
  border-radius: 50%;
  opacity: 0;
}

.gong_button.is_struck::before {
  animation: gong_strike_wave_primary 1380ms cubic-bezier(0.12, 0.72, 0.18, 1);
}

.gong_button.is_struck::after {
  border-color: rgba(93, 225, 243, 0.64);
  animation: gong_strike_wave_secondary 1540ms 105ms cubic-bezier(0.12, 0.72, 0.18, 1);
}

.gong_button.is_struck .gong_face {
  animation: gong_face_strike 1240ms cubic-bezier(0.16, 0.86, 0.2, 1);
}

.gong_button.is_struck .gong_face::after {
  animation: gong_strike_core_flash 920ms ease-out;
}

.gong_button.is_struck .gong_ripple {
  animation: gong_ripple 1320ms ease-out;
}

.gong_button.is_struck .gong_text {
  animation: gong_strike_text 1180ms ease-out;
}

.gong_button.is_struck .strike_marks i {
  animation: gong_strike_mark 1040ms ease-out;
}

.gong_button.is_struck .strike_marks i:nth-child(2),
.gong_button.is_struck .strike_marks i:nth-child(4) {
  animation-delay: 45ms;
}

.gong_button.is_struck .strike_marks i:nth-child(1),
.gong_button.is_struck .strike_marks i:nth-child(5) {
  animation-delay: 90ms;
}

.gong_button.is_busy {
  cursor: wait;
  filter: saturate(0.7) drop-shadow(0 14px 24px rgba(62, 101, 83, 0.10));
}

.gong_button.is_complete {
  filter:
    drop-shadow(0 0 14px rgba(34, 239, 136, 0.19))
    drop-shadow(0 0 26px rgba(93, 225, 243, 0.14));
}

/* Ready gong: persistent invitation while a strike is actually available. */
.gong_button.is_ready:not(.is_awakened):not(.is_busy):not(.is_struck) {
  filter:
    drop-shadow(0 0 10px rgba(34, 239, 136, 0.20))
    drop-shadow(0 0 22px rgba(93, 225, 243, 0.12));
}

.gong_button.is_ready:not(.is_awakened):not(.is_busy):not(.is_struck) .gong_face {
  animation: gong_ready_idle_face 2800ms ease-in-out infinite;
}

.gong_button.is_ready:not(.is_awakened):not(.is_busy):not(.is_struck) .gong_ripple {
  animation: gong_ready_idle_ripple 2800ms ease-out infinite;
}

.gong_button.is_ready:not(.is_awakened):not(.is_busy):not(.is_struck) .gong_text {
  animation: gong_ready_idle_text 2800ms ease-in-out infinite;
}

.gong_button.is_awakened {
  animation: gong_awaken 2400ms cubic-bezier(0.16, 0.86, 0.2, 1);
}

.gong_button.is_awakened .gong_face {
  animation: gong_ready_face 2400ms ease-out;
}

.gong_button.is_awakened .gong_ripple {
  animation: gong_ready_ripple 2200ms ease-out;
}

.strike_marks {
  position: absolute;
  inset: -8px;
  z-index: 3;
  pointer-events: none;
}

.strike_marks i {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 9px;
  margin-left: -1.5px;
  border-radius: 99px;
  background: rgba(66, 91, 80, 0.13);
  transform-origin: 1.5px calc((var(--gong_size) / 2) + 6px);
  transition:
    background 300ms ease,
    box-shadow 300ms ease,
    height 300ms ease;
}

.strike_marks i:nth-child(1) { transform: rotate(-48deg); }
.strike_marks i:nth-child(2) { transform: rotate(-24deg); }
.strike_marks i:nth-child(3) { transform: rotate(0deg); }
.strike_marks i:nth-child(4) { transform: rotate(24deg); }
.strike_marks i:nth-child(5) { transform: rotate(48deg); }

.gong_button[data-smashes="1"] .strike_marks i:nth-child(-n+1),
.gong_button[data-smashes="2"] .strike_marks i:nth-child(-n+2),
.gong_button[data-smashes="3"] .strike_marks i:nth-child(-n+3),
.gong_button[data-smashes="4"] .strike_marks i:nth-child(-n+4),
.gong_button[data-smashes="5"] .strike_marks i:nth-child(-n+5) {
  height: 12px;
  background: linear-gradient(180deg, var(--sfx_bright), var(--sft));
  box-shadow: 0 0 7px rgba(70, 238, 185, 0.54);
}

.gong_status {
  width: min(74vw, 340px);
  min-height: 12px;
  margin: 0;
  color: #718079;
  font-size: clamp(8.5px, 2.7vw, 10.5px);
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-align: center;
}

.share_card_button {
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  border-bottom: 1px solid rgba(70, 102, 89, 0.24);
  color: #557066;
  background: transparent;
  cursor: pointer;
  font-size: 8.5px;
  letter-spacing: 0.055em;
}

.gate_whisper {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 7;
  max-width: calc(100% - 34px);
  margin: 0;
  opacity: 1;
  color: rgba(94, 112, 104, 0.56);
  filter: blur(0);
  font-size: clamp(8px, 2.45vw, 10px);
  letter-spacing: 0.075em;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%) translateY(0);
  transition: opacity 900ms ease, filter 900ms ease, transform 900ms ease;
  pointer-events: none;
}

.gate_whisper.is_changing {
  opacity: 0;
  filter: blur(3px);
  transform: translateX(-50%) translateY(4px);
}

/* =========================================================
   World Map and History
   ========================================================= */

.world_section {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(124px, 1fr) auto;
  gap: 3px;
}

.map_frame {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid rgba(42, 104, 77, 0.075);
  border-radius: clamp(15px, 4.5vw, 22px);
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 82%, rgba(224, 203, 255, 0.22), transparent 32%),
    radial-gradient(circle at 22% 46%, rgba(34, 239, 136, 0.11), transparent 27%),
    radial-gradient(circle at 78% 24%, rgba(93, 225, 243, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 255, 252, 0.74) 47%, rgba(246, 252, 255, 0.78));
  box-shadow:
    0 18px 52px rgba(58, 108, 85, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    inset 0 -24px 50px rgba(93, 225, 243, 0.025);
}

.map_frame::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  opacity: 0.55;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 7%, rgba(120, 255, 184, 0.08) 34%, transparent 52%, rgba(183, 248, 255, 0.10) 72%, transparent 93%);
  background-size: 210% 100%;
  animation: map_light_sweep 11s ease-in-out infinite alternate;
}

.map_aurora {
  position: absolute;
  z-index: 0;
  width: 48%;
  aspect-ratio: 1.7 / 1;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(26px);
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform;
}

.map_aurora_sfx {
  left: 5%;
  bottom: -26%;
  background: radial-gradient(circle, rgba(34, 239, 136, 0.44), rgba(120, 255, 184, 0.09) 52%, transparent 72%);
  animation: map_aurora_sfx 9s ease-in-out infinite alternate;
}

.map_aurora_sft {
  top: -22%;
  right: 3%;
  background: radial-gradient(circle, rgba(93, 225, 243, 0.42), rgba(183, 248, 255, 0.10) 51%, transparent 73%);
  animation: map_aurora_sft 10.5s ease-in-out infinite alternate;
}

.map_surface {
  position: absolute;
  inset: 6% 2%;
  z-index: 1;
}

.map_grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  border-radius: 42%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(64, 171, 126, 0.16) 0 1px, transparent 1px 19%),
    repeating-linear-gradient(90deg, rgba(71, 178, 198, 0.14) 0 1px, transparent 1px 12.5%);
  mask-image: radial-gradient(ellipse at center, #000 20%, rgba(0, 0, 0, 0.82) 63%, transparent 99%);
  animation: map_grid_breathe 7s ease-in-out infinite alternate;
}

.world_map,
.map_energy_canvas,
.map_points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world_map {
  z-index: 2;
  object-fit: fill;
  opacity: 1;
  filter:
    drop-shadow(0 0 4px rgba(34, 239, 136, 0.30))
    drop-shadow(0 0 11px rgba(93, 225, 243, 0.24));
  animation: world_map_breathe 7.5s ease-in-out infinite alternate;
}

.map_energy_canvas {
  z-index: 3;
  pointer-events: none;
}

.map_points {
  z-index: 4;
  pointer-events: none;
}

.map_horizon {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  z-index: 3;
  height: 1px;
  opacity: 0.15;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 255, 184, 0.44), rgba(183, 248, 255, 0.48), transparent);
  box-shadow: 0 0 9px rgba(93, 225, 243, 0.13);
  animation: map_horizon_drift 8s ease-in-out infinite alternate;
}

.map_point {
  --dot_size: 5px;
  --self_dot_size: 0px;
  --render_dot_size: max(var(--dot_size), var(--self_dot_size));
  --point_glow: 0.28;
  --breathe_duration: 3.8s;
  position: absolute;
  width: var(--render_dot_size);
  height: var(--render_dot_size);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120, 255, 184, 0.99), rgba(34, 239, 136, 0.96) 48%, rgba(93, 225, 243, 0.98));
  box-shadow:
    0 0 5px rgba(34, 239, 136, var(--point_glow)),
    0 0 11px rgba(93, 225, 243, calc(var(--point_glow) * 0.68));
  transform: translate(-50%, -50%);
  animation:
    map_point_arrive 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
    map_point_breathe var(--breathe_duration) ease-in-out 540ms infinite alternate;
}

.map_point::before,
.map_point::after,
.map_point_energy,
.map_point_energy::before,
.map_point_energy::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map_point::before {
  width: calc(var(--render_dot_size) + 8px);
  height: calc(var(--render_dot_size) + 8px);
  border: 1px solid rgba(34, 239, 136, 0.17);
  box-shadow: 0 0 7px rgba(93, 225, 243, 0.08);
  animation: map_ring_breathe 3.2s ease-in-out infinite;
}

.map_point::after {
  width: calc(var(--render_dot_size) + 14px);
  height: calc(var(--render_dot_size) + 14px);
  border: 1px solid rgba(93, 225, 243, 0.09);
  opacity: 0.32;
  background: transparent;
}

.map_point.is_growing {
  z-index: 6;
  animation: region_grow 1100ms cubic-bezier(0.18, 0.9, 0.2, 1), map_point_breathe var(--breathe_duration) ease-in-out 1100ms infinite alternate;
}

.map_point.is_growing::before {
  animation: region_wave 1300ms ease-out;
}

.map_point.is_evolving {
  z-index: 9;
  animation: region_evolve_core 2500ms cubic-bezier(0.16, 0.86, 0.22, 1), map_point_breathe var(--breathe_duration) ease-in-out 2500ms infinite alternate;
}

.map_point.is_evolving .map_point_energy::after {
  animation: region_evolve_wave 2500ms ease-out;
}

.map_point.is_self {
  z-index: 7;
  outline: 1px solid rgba(183, 248, 255, 0.52);
  outline-offset: 3px;
  box-shadow:
    0 0 7px rgba(34, 239, 136, 0.75),
    0 0 18px rgba(93, 225, 243, 0.55),
    0 0 28px rgba(224, 203, 255, 0.16);
}

.map_point.is_self::before {
  border-color: rgba(93, 225, 243, 0.40);
  animation: self_region_ring 2.6s ease-out infinite;
}

.map_point.is_self.is_ready {
  outline-color: rgba(120, 255, 184, 0.92);
  box-shadow:
    0 0 10px rgba(34, 239, 136, 0.92),
    0 0 22px rgba(93, 225, 243, 0.72),
    0 0 34px rgba(120, 255, 184, 0.22);
}

.map_point.is_self.is_ready::before {
  animation-duration: 1.35s;
}

.map_point.is_self.is_waiting {
  filter: saturate(0.82);
}

/* Region footprint is based on broad unique-participant bands and stops growing early. */
.map_point.region_size_1 { --dot_size: 5px; --point_glow: 0.30; }
.map_point.region_size_2 { --dot_size: 6.5px; --point_glow: 0.38; }
.map_point.region_size_3 { --dot_size: 8px; --point_glow: 0.48; }
.map_point.region_size_4 { --dot_size: 9px; --point_glow: 0.60; }

.map_point.is_self.self_strength_1 { --self_dot_size: 5px; }
.map_point.is_self.self_strength_2 { --self_dot_size: 6.5px; }
.map_point.is_self.self_strength_3 { --self_dot_size: 8px; }
.map_point.is_self.self_strength_4 { --self_dot_size: 10px; }
.map_point.is_self.self_strength_5 { --self_dot_size: 11.5px; }

/* Evolved regions keep the same hard-capped core and express growth as green/cyan energy. */
.map_point_energy {
  z-index: -1;
  width: var(--evolution_ring_size, 18px);
  height: var(--evolution_ring_size, 18px);
  opacity: var(--evolution_opacity, 0);
  border: 1px solid rgba(34, 239, 136, 0.34);
  box-shadow:
    0 0 var(--evolution_glow, 10px) rgba(34, 239, 136, 0.20),
    0 0 calc(var(--evolution_glow, 10px) * 1.3) rgba(93, 225, 243, 0.15);
  animation: evolved_ring_breathe var(--evolution_duration, 4s) ease-in-out infinite;
}

.map_point_energy::before {
  width: calc(var(--evolution_ring_size, 18px) + 6px);
  height: calc(var(--evolution_ring_size, 18px) + 6px);
  border: 1px solid transparent;
  border-top-color: rgba(34, 239, 136, var(--evolution_green, 0.42));
  border-right-color: rgba(93, 225, 243, var(--evolution_cyan, 0.38));
  border-bottom-color: rgba(183, 248, 255, calc(var(--evolution_cyan, 0.38) * 0.52));
  animation: evolved_orbit var(--evolution_orbit, 8s) linear infinite;
}

.map_point_energy::after {
  width: calc(var(--evolution_ring_size, 18px) + 12px);
  height: calc(var(--evolution_ring_size, 18px) + 12px);
  border: 1px solid rgba(93, 225, 243, calc(var(--evolution_cyan, 0.38) * 0.56));
  opacity: 0.42;
  animation: evolved_echo var(--evolution_echo, 4.8s) ease-out infinite;
}

.map_point.evolution_level_1 {
  --evolution_ring_size: 18px;
  --evolution_opacity: 0.58;
  --evolution_glow: 9px;
  --evolution_duration: 4.2s;
  --evolution_orbit: 11s;
  --evolution_echo: 5.2s;
  --evolution_green: 0.40;
  --evolution_cyan: 0.30;
}

.map_point.evolution_level_2 {
  --evolution_ring_size: 22px;
  --evolution_opacity: 0.66;
  --evolution_glow: 11px;
  --evolution_duration: 3.6s;
  --evolution_orbit: 8.5s;
  --evolution_echo: 4.4s;
  --evolution_green: 0.50;
  --evolution_cyan: 0.42;
  --breathe_duration: 3.2s;
}

.map_point.evolution_level_3 {
  --evolution_ring_size: 26px;
  --evolution_opacity: 0.74;
  --evolution_glow: 13px;
  --evolution_duration: 3.0s;
  --evolution_orbit: 6.2s;
  --evolution_echo: 3.6s;
  --evolution_green: 0.62;
  --evolution_cyan: 0.56;
  --breathe_duration: 2.8s;
}

.map_point.evolution_level_4 {
  --evolution_ring_size: 30px;
  --evolution_opacity: 0.82;
  --evolution_glow: 15px;
  --evolution_duration: 2.5s;
  --evolution_orbit: 4.8s;
  --evolution_echo: 3.0s;
  --evolution_green: 0.74;
  --evolution_cyan: 0.68;
  --breathe_duration: 2.3s;
}

.map_point.evolution_level_5 {
  --evolution_ring_size: 34px;
  --evolution_opacity: 0.90;
  --evolution_glow: 18px;
  --evolution_duration: 2.0s;
  --evolution_orbit: 3.6s;
  --evolution_echo: 2.4s;
  --evolution_green: 0.88;
  --evolution_cyan: 0.82;
  --breathe_duration: 1.9s;
  box-shadow:
    0 0 7px rgba(34, 239, 136, 0.84),
    0 0 16px rgba(93, 225, 243, 0.66);
}

.own_map_popup {
  position: absolute;
  z-index: 9;
  max-width: min(170px, 56vw);
  padding: 6px 9px;
  border: 1px solid rgba(53, 180, 131, 0.16);
  border-radius: 11px;
  opacity: 0;
  color: #41665a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 255, 249, 0.94) 54%, rgba(241, 252, 255, 0.95));
  box-shadow:
    0 10px 30px rgba(64, 104, 86, 0.12),
    0 0 20px rgba(93, 225, 243, 0.07);
  backdrop-filter: blur(10px);
  font-size: 8.5px;
  line-height: 1.25;
  letter-spacing: 0.035em;
  transform: translate(-50%, -50%) scale(0.94);
  pointer-events: none;
}

.own_map_popup.is_visible {
  animation: own_popup 3600ms ease both;
}

.map_joined_flash {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 8;
  padding: 3px 8px;
  border: 1px solid rgba(60, 178, 132, 0.09);
  border-radius: 999px;
  opacity: 0;
  color: rgba(69, 105, 91, 0.76);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 18px rgba(34, 239, 136, 0.07);
  backdrop-filter: blur(8px);
  font-size: 7.5px;
  letter-spacing: 0.095em;
  text-transform: lowercase;
  transform: translate(-50%, -8px);
  pointer-events: none;
}

.map_joined_flash.is_visible {
  animation: map_joined_flash 2800ms ease both;
}

.map_activity_flash {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 8;
  padding: 4px 9px;
  border: 1px solid rgba(72, 180, 140, 0.11);
  border-radius: 999px;
  opacity: 0;
  color: rgba(56, 96, 80, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 24px rgba(34, 239, 136, 0.12), 0 0 32px rgba(93, 225, 243, 0.08);
  backdrop-filter: blur(10px);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  transform: translate(-50%, 7px);
  pointer-events: none;
}

.map_activity_flash.is_visible {
  animation: map_activity_flash 2100ms ease both;
}

.map_note {
  min-height: 18px;
  padding: 1px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #89948f;
  font-size: 7.1px;
  letter-spacing: 0.035em;
}

.map_note span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map_note a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   Footer
   ========================================================= */

.site_footer {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #818d88;
  font-size: 7.5px;
}

.asset_marks,
.legal_links {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.asset_marks img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.asset_separator {
  opacity: 0.30;
}

.legal_links a {
  text-decoration: none;
}

.bot_field {
  position: fixed;
  top: -200vh;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* =========================================================
   Screenshot Card
   ========================================================= */

.share_dialog {
  width: min(calc(100% - 24px), 420px);
  padding: 0;
  border: 0;
  background: transparent;
}

.share_dialog::backdrop {
  background: rgba(241, 247, 244, 0.82);
  backdrop-filter: blur(12px);
}

.share_card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 12% 9%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(45, 80, 65, 0.08);
  border-radius: 24px;
  color: #304039;
  background:
    radial-gradient(circle at 18% 84%, rgba(224, 203, 255, 0.22), transparent 33%),
    radial-gradient(circle at 82% 18%, rgba(183, 248, 255, 0.35), transparent 36%),
    radial-gradient(circle at 50% 48%, rgba(120, 255, 184, 0.17), transparent 28%),
    #fbfcf8;
  box-shadow: 0 30px 80px rgba(61, 94, 80, 0.13);
}

.share_glow {
  position: absolute;
  inset: 24% 18%;
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(34, 239, 136, 0.18), rgba(93, 225, 243, 0.18));
  filter: blur(42px);
}

.share_wordmark,
.share_card > *:not(.share_glow) {
  position: relative;
  z-index: 2;
}

.share_wordmark {
  width: 58%;
  height: auto;
}

.share_network,
.share_statement,
.share_region,
.share_close_line,
.share_domain {
  margin: 0;
  text-align: center;
}

.share_network {
  margin-top: -10px;
  color: #708078;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.share_marks {
  display: flex;
  gap: 6px;
  margin: 14% 0 3%;
}

.share_marks i {
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sfx_bright), var(--sft));
  box-shadow: 0 0 8px rgba(62, 237, 185, 0.42);
}

.share_statement {
  font-size: clamp(19px, 6vw, 27px);
  font-weight: 390;
  letter-spacing: -0.035em;
}

.share_map {
  position: relative;
  width: min(82%, 280px);
  aspect-ratio: 2 / 1;
  margin-top: 3%;
  overflow: hidden;
  border: 1px solid rgba(61, 139, 106, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 75%, rgba(34, 239, 136, 0.10), transparent 36%),
    radial-gradient(circle at 76% 28%, rgba(93, 225, 243, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.52);
}

.share_map img {
  position: absolute;
  inset: 7% 2%;
  width: 96%;
  height: 86%;
  opacity: 0.94;
}

.share_map_point {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  opacity: 0;
  background: linear-gradient(135deg, var(--sfx_bright), var(--sfx), var(--sft));
  box-shadow: 0 0 8px rgba(34, 239, 136, 0.60), 0 0 18px rgba(93, 225, 243, 0.42);
  transform: translate(-50%, -50%);
}

.share_map_point.is_visible {
  opacity: 1;
}

.share_region {
  color: #65766e;
  font-size: 11px;
}

.share_close_line {
  margin-top: 11%;
  color: #84908a;
  font-size: 9px;
  letter-spacing: 0.055em;
}

.share_domain {
  color: #566a61;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.share_actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d8a84;
  font-size: 9px;
}

.share_actions button {
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  color: #587167;
  background: rgba(255, 255, 255, 0.80);
  cursor: pointer;
}

/* =========================================================
   Legal Pages
   ========================================================= */

.legal_page {
  width: min(calc(100% - 28px), 680px);
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
}

.legal_page .wordmark {
  width: 148px;
  height: auto;
}

.legal_page h1 {
  margin: 28px 0 18px;
  font-size: 23px;
  font-weight: 420;
  letter-spacing: -0.03em;
}

.legal_page h2 {
  margin: 24px 0 7px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: lowercase;
}

.legal_page p,
.legal_page li {
  color: #5f6e67;
  font-size: 12px;
  line-height: 1.75;
}

.legal_page a {
  color: #4b6e60;
}

.legal_back {
  display: inline-block;
  margin-top: 24px;
  font-size: 10px;
  text-decoration: none;
}

/* =========================================================
   Animation
   ========================================================= */

@keyframes gate_progress_strike {
  0% { transform: translateX(-50%) scale(1); }
  16% { transform: translateX(-50%) scale(1.34); color: #2f6652; background: rgba(244, 255, 250, 0.97); box-shadow: 0 0 0 4px rgba(120, 255, 184, 0.16), 0 0 30px rgba(34, 239, 136, 0.33), 0 0 46px rgba(93, 225, 243, 0.24); }
  42% { transform: translateX(-50%) scale(1.12); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes gate_progress_self_strike {
  0% { transform: translateX(-50%) scale(1); }
  14% { transform: translateX(-50%) scale(1.48); color: #245d47; background: linear-gradient(135deg, rgba(241, 255, 248, 0.99), rgba(240, 253, 255, 0.99)); box-shadow: 0 0 0 5px rgba(120, 255, 184, 0.19), 0 0 34px rgba(34, 239, 136, 0.43), 0 0 58px rgba(93, 225, 243, 0.34); }
  36% { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes gong_ready_idle_face {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48), inset 0 0 27px rgba(93, 225, 243, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.86), 0 0 32px rgba(34, 239, 136, 0.08); }
  46% { transform: scale(1.022); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.62), inset 0 0 32px rgba(93, 225, 243, 0.16), 0 0 0 2px rgba(120, 255, 184, 0.30), 0 0 42px rgba(34, 239, 136, 0.24); }
}

@keyframes gong_ready_idle_ripple {
  0% { opacity: 0; transform: scale(0.94); }
  14% { opacity: 0.48; }
  68%, 100% { opacity: 0; transform: scale(1.55); }
}

@keyframes gong_ready_idle_text {
  0%, 100% { color: #527267; text-shadow: 0 0 0 rgba(34, 239, 136, 0); }
  46% { color: #2f7658; text-shadow: 0 0 12px rgba(34, 239, 136, 0.22); }
}

@keyframes gong_awaken {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 14px 24px rgba(62, 101, 83, 0.12)); }
  14% { transform: scale(1.07); filter: drop-shadow(0 0 14px rgba(34, 239, 136, 0.52)) drop-shadow(0 0 32px rgba(93, 225, 243, 0.38)); }
  29% { transform: scale(0.99); }
  44% { transform: scale(1.045); filter: drop-shadow(0 0 18px rgba(34, 239, 136, 0.42)) drop-shadow(0 0 38px rgba(93, 225, 243, 0.32)); }
  62% { transform: scale(1); }
}

@keyframes gong_ready_face {
  0%, 100% { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48), inset 0 0 27px rgba(93, 225, 243, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.86), 0 0 32px rgba(34, 239, 136, 0.08); }
  18%, 50% { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.70), inset 0 0 34px rgba(93, 225, 243, 0.18), 0 0 0 2px rgba(120, 255, 184, 0.44), 0 0 46px rgba(34, 239, 136, 0.30); }
}

@keyframes gong_ready_ripple {
  0% { opacity: 0; transform: scale(0.88); }
  12% { opacity: 0.78; }
  70%, 100% { opacity: 0; transform: scale(1.86); }
}

@keyframes curtain_mark_breathe {
  from { opacity: 0.07; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.78)); }
  to { opacity: 0.14; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1)); }
}

@keyframes curtain_tremor {
  0%, 100% { filter: blur(0); }
  18% { filter: blur(0.25px); }
  36% { filter: blur(0); }
  56% { filter: blur(0.18px); }
}

@keyframes seam_flash {
  0% { opacity: 0.55; }
  20% { opacity: 1; box-shadow: 0 0 10px rgba(120, 255, 184, 0.65), 0 0 28px rgba(93, 225, 243, 0.48); }
  100% { opacity: 0.76; }
}

@keyframes gong_strike_body {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 14px 24px rgba(62, 101, 83, 0.12)); }
  8% { transform: scale(0.91) rotate(-1.8deg); filter: drop-shadow(0 0 12px rgba(34, 239, 136, 0.34)); }
  18% { transform: scale(1.075) rotate(1.35deg); filter: drop-shadow(0 0 25px rgba(34, 239, 136, 0.58)) drop-shadow(0 0 42px rgba(93, 225, 243, 0.40)); }
  31% { transform: scale(0.985) rotate(-0.72deg); }
  46% { transform: scale(1.035) rotate(0.38deg); }
  66% { transform: scale(0.997) rotate(-0.16deg); }
  100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 14px 24px rgba(62, 101, 83, 0.12)); }
}

@keyframes gong_face_strike {
  0% { transform: scale(1); filter: brightness(1); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.48), inset 0 0 27px rgba(93, 225, 243, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.86), 0 0 32px rgba(34, 239, 136, 0.08); }
  8% { transform: scale(0.885); filter: brightness(1.12) saturate(1.12); }
  18% { transform: scale(1.08); filter: brightness(1.24) saturate(1.22); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.76), inset 0 0 42px rgba(93, 225, 243, 0.29), 0 0 0 3px rgba(120, 255, 184, 0.54), 0 0 52px rgba(34, 239, 136, 0.44), 0 0 76px rgba(93, 225, 243, 0.26); }
  34% { transform: scale(0.972); filter: brightness(1.08); }
  52% { transform: scale(1.026); }
  72% { transform: scale(0.995); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes gong_strike_core_flash {
  0% { transform: scale(0.76); opacity: 0.72; filter: brightness(1); }
  14% { transform: scale(1.24); opacity: 1; filter: brightness(1.42); box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.96), 0 0 28px rgba(120, 255, 184, 0.66), 0 0 42px rgba(93, 225, 243, 0.48); }
  48% { transform: scale(0.96); opacity: 0.86; }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

@keyframes gong_strike_wave_primary {
  0% { opacity: 0; transform: scale(0.74); border-width: 2px; }
  9% { opacity: 0.92; }
  58% { opacity: 0.38; border-width: 1px; }
  100% { opacity: 0; transform: scale(2.02); border-width: 1px; }
}

@keyframes gong_strike_wave_secondary {
  0% { opacity: 0; transform: scale(0.82); }
  12% { opacity: 0.74; }
  62% { opacity: 0.28; }
  100% { opacity: 0; transform: scale(2.34); }
}

@keyframes gong_ripple {
  0% { opacity: 0.86; transform: scale(0.76); border-color: rgba(34, 239, 136, 0.70); }
  42% { opacity: 0.46; border-color: rgba(93, 225, 243, 0.58); }
  100% { opacity: 0; transform: scale(1.78); border-color: rgba(93, 225, 243, 0.18); }
}

@keyframes gong_strike_text {
  0% { transform: scale(1); color: #527267; text-shadow: none; }
  12% { transform: scale(0.88); color: #277454; }
  22% { transform: scale(1.18); color: #1d8e5d; text-shadow: 0 0 10px rgba(34, 239, 136, 0.56), 0 0 18px rgba(93, 225, 243, 0.34); }
  52% { transform: scale(1.02); color: #36735d; }
  100% { transform: scale(1); color: #527267; text-shadow: none; }
}

@keyframes gong_strike_mark {
  0% { background: rgba(66, 91, 80, 0.13); box-shadow: none; height: 9px; }
  18% { background: rgba(120, 255, 184, 0.96); box-shadow: 0 0 8px rgba(34, 239, 136, 0.74), 0 0 14px rgba(93, 225, 243, 0.42); height: 14px; }
  52% { background: rgba(93, 225, 243, 0.50); height: 11px; }
  100% { background: rgba(66, 91, 80, 0.13); box-shadow: none; height: 9px; }
}

@keyframes map_point_arrive {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.12); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes region_grow {
  0% { transform: translate(-50%, -50%) scale(0.72); }
  40% { transform: translate(-50%, -50%) scale(1.58); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes own_popup {
  0% { opacity: 0; transform: translate(-50%, -42%) scale(0.94); }
  10%, 72% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -68%) scale(0.98); }
}

@keyframes map_light_sweep {
  from { background-position: 0% 50%; opacity: 0.32; }
  to { background-position: 100% 50%; opacity: 0.68; }
}

@keyframes map_aurora_sfx {
  from { transform: translate3d(-4%, 3%, 0) scale(0.94); opacity: 0.14; }
  to { transform: translate3d(13%, -9%, 0) scale(1.10); opacity: 0.28; }
}

@keyframes map_aurora_sft {
  from { transform: translate3d(6%, -4%, 0) scale(1.06); opacity: 0.14; }
  to { transform: translate3d(-15%, 11%, 0) scale(0.92); opacity: 0.29; }
}

@keyframes map_grid_breathe {
  from { opacity: 0.11; transform: scale(0.995); }
  to { opacity: 0.23; transform: scale(1.008); }
}

@keyframes world_map_breathe {
  from { opacity: 0.92; filter: drop-shadow(0 0 2px rgba(34, 239, 136, 0.10)) drop-shadow(0 0 5px rgba(93, 225, 243, 0.08)); }
  to { opacity: 1; filter: drop-shadow(0 0 4px rgba(34, 239, 136, 0.20)) drop-shadow(0 0 10px rgba(93, 225, 243, 0.15)); }
}

@keyframes map_horizon_drift {
  from { transform: translateY(-12px) scaleX(0.84); opacity: 0.08; }
  to { transform: translateY(12px) scaleX(1); opacity: 0.20; }
}

@keyframes map_point_breathe {
  from { filter: saturate(0.94) brightness(0.98); }
  to { filter: saturate(1.18) brightness(1.08); }
}

@keyframes map_ring_breathe {
  0%, 100% { opacity: 0.20; transform: translate(-50%, -50%) scale(0.84); }
  50% { opacity: 0.65; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes region_wave {
  0% { opacity: 0.88; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.6); }
}

@keyframes self_region_ring {
  0% { opacity: 0.70; transform: translate(-50%, -50%) scale(0.72); }
  72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.7); }
}

@keyframes evolved_ring_breathe {
  0%, 100% { opacity: 0.42; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes evolved_orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes evolved_echo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  22% { opacity: 0.55; }
  82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.36); }
}

@keyframes region_evolve_core {
  0% { filter: brightness(1); transform: translate(-50%, -50%) scale(1); }
  18% { filter: brightness(1.8); transform: translate(-50%, -50%) scale(0.76); }
  42% { filter: brightness(1.45); transform: translate(-50%, -50%) scale(1.42); }
  72% { filter: brightness(1.18); transform: translate(-50%, -50%) scale(0.96); }
  100% { filter: brightness(1); transform: translate(-50%, -50%) scale(1); }
}

@keyframes region_evolve_wave {
  0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.55); border-color: rgba(34, 239, 136, 0.82); }
  45% { opacity: 0.72; border-color: rgba(183, 248, 255, 0.76); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.45); border-color: rgba(93, 225, 243, 0.16); }
}

@keyframes map_joined_flash {
  0% { opacity: 0; transform: translate(-50%, -7px) scale(0.96); }
  12%, 68% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 5px) scale(0.98); }
}


@keyframes map_activity_flash {
  0% { opacity: 0; transform: translate(-50%, 7px) scale(0.97); }
  14%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -5px) scale(0.98); }
}

/* =========================================================
   Responsive Growth
   ========================================================= */

@media (min-width: 600px) {
  .event_shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .world_section {
    grid-template-rows: minmax(180px, 1fr) auto;
  }
}

@media (min-width: 860px) {
  .event_shell {
    width: min(100%, 1320px);
    grid-template-columns: minmax(0, 0.97fr) minmax(410px, 1.03fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: clamp(20px, 2.25vw, 34px);
    row-gap: 12px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-right: clamp(22px, 2.4vw, 34px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: clamp(22px, 2.4vw, 34px);
  }

  .gate_stage {
    width: 100%;
    height: clamp(500px, 60svh, 650px);
    min-height: 0;
    align-self: center;
    border-radius: 32px;
  }

  .world_section {
    position: relative;
    width: 100%;
    min-height: 0;
    align-self: center;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 8px;
  }

  .world_section::before {
    position: absolute;
    inset: -34% -18%;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
      radial-gradient(circle at 28% 52%, rgba(34, 239, 136, 0.11), transparent 36%),
      radial-gradient(circle at 76% 38%, rgba(93, 225, 243, 0.12), transparent 38%),
      radial-gradient(circle at 52% 68%, rgba(224, 203, 255, 0.08), transparent 44%);
    filter: blur(18px);
  }

  .map_frame {
    width: 100%;
    min-height: 0;
    aspect-ratio: 2 / 1;
    border-radius: 28px;
    box-shadow:
      0 28px 78px rgba(58, 108, 85, 0.08),
      0 0 58px rgba(34, 239, 136, 0.045),
      inset 0 0 0 1px rgba(255, 255, 255, 0.88),
      inset 0 -30px 64px rgba(93, 225, 243, 0.035);
  }

  .map_surface {
    inset: 2%;
  }

  .map_note {
    padding: 0 5px;
    font-size: 9px;
    letter-spacing: 0.015em;
  }

  .map_point.region_size_1 { --dot_size: 7px; --point_glow: 0.36; }
  .map_point.region_size_2 { --dot_size: 9px; --point_glow: 0.44; }
  .map_point.region_size_3 { --dot_size: 11px; --point_glow: 0.54; }
  .map_point.region_size_4 { --dot_size: 12px; --point_glow: 0.66; }

  .map_point.is_self.self_strength_1 { --self_dot_size: 9px; }
  .map_point.is_self.self_strength_2 { --self_dot_size: 11px; }
  .map_point.is_self.self_strength_3 { --self_dot_size: 12.5px; }
  .map_point.is_self.self_strength_4 { --self_dot_size: 13.5px; }
  .map_point.is_self.self_strength_5 { --self_dot_size: 14px; }

  .gate_progress {
    top: 22px;
    padding: 8px 12px 7px;
  }

  .gate_progress strong {
    font-size: 17px;
  }

  .gong_cluster {
    bottom: 43px;
  }

  .gate_whisper {
    top: 78px;
    max-width: calc(100% - 76px);
    color: rgba(82, 105, 95, 0.58);
    font-size: 10.5px;
    letter-spacing: 0.085em;
  }

  .reveal_wordmark {
    width: clamp(210px, 23vw, 300px);
  }

  .curtain_mark {
    width: 82px;
  }

  .site_footer {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  :root {
    --gong_size: 118px;
  }

  .event_shell {
    width: min(100%, 1360px);
  }
}

@media (min-width: 860px) and (max-height: 760px) {
  .gate_stage {
    height: min(560px, calc(100svh - 90px));
    min-height: 480px;
  }

  .event_shell {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 600px) and (max-width: 859px) {
  .event_shell {
    grid-template-rows: minmax(258px, 50svh) minmax(160px, 1fr) auto;
  }

  .gong_cluster {
    bottom: 26px;
  }

  .gate_whisper {
    top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
