#ph01 {
  --bg0: #07050f;
  --bg1: #14081c;
  --ink: #f6f1ff;
  --dim: #b9a8c9;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff3d8a;
  --violet: #8b5cff;
  --gold: #ffc857;
  --glass: rgba(18, 10, 28, 0.55);
  --mx: 50%;
  --my: 30%;
  --spin: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  font-family: "Outfit", "Noto Sans KR", "Pretendard", system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at var(--mx) var(--my), rgba(255, 61, 138, 0.22), transparent 55%),
    radial-gradient(700px 420px at 80% 10%, rgba(139, 92, 255, 0.2), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #1a0b14);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-height: 720px;
}
#ph01 *, #ph01 *::before, #ph01 *::after { box-sizing: border-box; }
#ph01 h1, #ph01 h2, #ph01 h3, #ph01 p, #ph01 strong, #ph01 label, #ph01 span {
  margin: 0;
  color: inherit;
}
#ph01 a { color: #ffd0e6; }
#ph01 canvas.ph01-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
#ph01 .ph01-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from var(--spin), rgba(255, 61, 138, 0.12), transparent 20%, rgba(139, 92, 255, 0.14), transparent 55%, rgba(255, 200, 87, 0.08), transparent 80%);
  animation: ph01spin 28s linear infinite;
  filter: blur(30px);
  pointer-events: none;
}
@keyframes ph01spin { to { --spin: 360deg; } }
@property --spin {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

#ph01 .ph01-inner { position: relative; z-index: 1; display: grid; gap: 18px; }
#ph01 .ph01-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
#ph01 .ph01-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}
#ph01 h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 10%, #ffb3d0 45%, #c4b5ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#ph01 .ph01-sub { color: var(--dim); font-size: 14px; max-width: 42em; line-height: 1.5; }
#ph01 .ph01-cities { display: flex; flex-wrap: wrap; gap: 8px; }
#ph01 .ph01-chip {
  appearance: none !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--ink) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  min-height: 0 !important;
  font: 600 13px/1 Outfit, "Noto Sans KR", sans-serif !important;
  cursor: pointer;
}
#ph01 .ph01-chip.is-on {
  background: linear-gradient(135deg, var(--pink), var(--violet)) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
}

#ph01 .ph01-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#ph01 .ph01-gauge { position: relative; width: 220px; height: 220px; margin: 0 auto; }
#ph01 .ph01-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 16px rgba(255, 61, 138, 0.45)); }
#ph01 .ph01-gauge .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 12; }
#ph01 .ph01-gauge .val {
  fill: none;
  stroke: url(#ph01g);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 528;
  stroke-dashoffset: 528;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1);
}
#ph01 .ph01-gnum {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  transform: none;
}
#ph01 .ph01-gnum b {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
#ph01 .ph01-gnum span { color: var(--dim); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
#ph01 .ph01-grade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 61, 138, 0.16);
  border: 1px solid rgba(255, 61, 138, 0.35);
  font-weight: 800;
  letter-spacing: 0.08em;
}
#ph01 .ph01-caster { font-size: 18px; line-height: 1.45; margin: 10px 0 12px; max-width: 36em; }
#ph01 .ph01-tide {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

#ph01 .ph01-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
#ph01 .ph01-stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
#ph01 .ph01-stat em { display: block; font-style: normal; color: var(--dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
#ph01 .ph01-stat b { display: block; margin-top: 6px; font-size: 15px; }
#ph01 .ph01-stat i { font-style: normal; color: var(--pink); font-size: 12px; font-weight: 700; }

#ph01 .ph01-panel {
  padding: 18px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
#ph01 .ph01-panel h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
#ph01 .ph01-hint { color: var(--dim); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
#ph01 .ph01-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
#ph01 .ph01-fields { display: grid; gap: 14px; }
#ph01 .ph01-field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
#ph01 .ph01-field label b { color: var(--ink); }
#ph01 input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  outline: none;
}
#ph01 input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pink);
}

#ph01 .ph01-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#ph01 .ph01-opt {
  appearance: none !important;
  display: grid !important;
  gap: 4px;
  text-align: left;
  padding: 10px !important;
  min-height: 0 !important;
  border-radius: 14px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,0.03) !important;
  color: var(--ink) !important;
  font: 600 13px/1.3 Outfit, "Noto Sans KR", sans-serif !important;
  cursor: pointer;
  transform: perspective(600px) rotateX(0);
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
#ph01 .ph01-opt small { color: var(--dim); font-weight: 400; font-size: 11px; }
#ph01 .ph01-opt.is-on {
  border-color: rgba(255, 61, 138, 0.7) !important;
  background: linear-gradient(160deg, rgba(255, 61, 138, 0.2), rgba(139, 92, 255, 0.12)) !important;
  transform: perspective(600px) rotateX(6deg) translateY(-2px);
}

#ph01 .ph01-success {
  position: sticky;
  top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  text-align: center;
}
#ph01 .ph01-success .ph01-gauge { width: 180px; height: 180px; }
#ph01 .ph01-success .ph01-gnum b { font-size: 46px; }
#ph01 .ph01-blurb { margin-top: 10px; font-size: 15px; line-height: 1.45; }
#ph01 .ph01-mission {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.25);
  color: #ffe7b0;
  font-size: 14px;
}

#ph01 .ph01-disc {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.55;
  padding: 12px 4px 0;
}
#ph01 .ph01-nav { font-size: 13px; color: var(--dim); }

@media (max-width: 860px) {
  #ph01 { padding: 14px; border-radius: 16px; }
  #ph01 .ph01-hero, #ph01 .ph01-grid, #ph01 .ph01-stats { grid-template-columns: 1fr; }
  #ph01 .ph01-opts { grid-template-columns: 1fr 1fr; }
  #ph01 .ph01-success { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #ph01 .ph01-mesh, #ph01 .ph01-gauge .val { animation: none; transition: none; }
}
