/* ============================================================
   Prank Port · PLAY 之后的首次设置（导航 / 字号 / 字幕 / 亮度 /
   完成 / 法务 / 条款），坐标体系与参考站一致：1920×1080 画布，
   整块按 --menu-scale 缩放到当前画框。
   ============================================================ */

#menu {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 66% 18%, #74507f 0%, #5b3f63 46%, #452d4b 78%, #3a2740 100%);
  color: #f2edf2;
  font-family: var(--sans);
  -webkit-text-stroke: 0;
}

#menu[hidden] { display: none; }

#menu .menu-layout,
#menu > .scenery {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  margin: 0;
  transform: translate(var(--menu-x, 0px), var(--menu-y, 0px)) scale(var(--menu-scale, 1));
  transform-origin: top left;
}

#menu button,
#menu .arrow,
#menu .dot,
#menu .control-row,
#menu .next-row {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* 场景：按参考站的元素清单自绘的 CSS 插画（1920×1080 坐标系） */
#menu .scenery {
  inset: 0;
  background:
    radial-gradient(120% 85% at 66% 18%, #74507f 0%, #5b3f63 46%, #452d4b 78%, #3a2740 100%);
  pointer-events: none;
  overflow: hidden;
}

#menu .scenery > i {
  position: absolute;
  display: block;
  pointer-events: none;
}

#menu .scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(70% 60% at 80% 10%, #ffffff1a, transparent 70%);
}

/* 泳池：暮色天空 + 池水 + 钢梯 + 浮鸭 */
#menu .scenery--pool {
  background: linear-gradient(180deg, #3a2740 0%, #553a55 34%, #7a5164 58%, #8d5f6b 68%, #2a4766 68.4%, #1d3a5e 100%);
}

.scenery--pool .scene-water-edge {
  inset: 640px 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #9aa0a8 0%, #6f7684 28%, #2a4c72 100%);
  opacity: .75;
}

.scenery--pool .scene-pool-tiles {
  inset: 700px 0 0;
  background:
    repeating-linear-gradient(90deg, #ffffff14 0 3px, transparent 3px 168px),
    repeating-linear-gradient(180deg, #ffffff10 0 2px, transparent 2px 120px),
    repeating-linear-gradient(180deg, #2c5c85 0 40%, #1f4166 100%);
  clip-path: polygon(0 0, 1920 0, 1920 100%, 0 100%);
  opacity: .9;
}

.scenery--pool .scene-pool-chrome {
  inset: 690px 0 auto;
  height: 8px;
  background: linear-gradient(90deg, transparent, #d9e4f0aa 22%, #d9e4f0cc 50%, #d9e4f099 78%, transparent);
  filter: blur(.5px);
}

.scenery--pool .scene-ladder-steel {
  left: 132px;
  top: 300px;
  width: 250px;
  height: 720px;
  background:
    repeating-linear-gradient(90deg, #25385b 0 14px, transparent 14px 84px),
    repeating-linear-gradient(180deg, #25385b 0 12px, transparent 12px 96px);
  clip-path: polygon(0 0, 14px 0, 18px 88%, 4px 100%, 0 92%);
  transform: rotate(3deg);
  opacity: .92;
}

.scenery--pool .scene-float-wash {
  left: 1430px;
  top: 746px;
  width: 430px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #cfe6ff4d, transparent 72%);
  filter: blur(6px);
}

.scenery--pool .scene-float-shadow {
  left: 1470px;
  top: 874px;
  width: 340px;
  height: 52px;
  border-radius: 50%;
  background: #14304a;
  filter: blur(16px);
  opacity: .5;
}

.scenery--pool .scene-float-shadow-deep {
  left: 1502px;
  top: 892px;
  width: 250px;
  height: 34px;
  border-radius: 50%;
  background: #0d2237;
  filter: blur(10px);
  opacity: .55;
}

.scenery--pool .scene-float-body {
  left: 1500px;
  top: 726px;
  width: 318px;
  height: 168px;
  border-radius: 58% 42% 50% 50% / 62% 58% 42% 38%;
  background: linear-gradient(165deg, #fbf1e2 0%, #f0ddc6 44%, #d9bd9c 100%);
  box-shadow: inset -20px -26px 46px #a5825c66;
}

.scenery--pool .scene-float-neck {
  left: 1650px;
  top: 610px;
  width: 96px;
  height: 150px;
  border-radius: 44% 44% 32% 32%;
  background: linear-gradient(180deg, #f3e2cc, #dfc3a0);
  transform: rotate(-8deg);
}

.scenery--pool .scene-float-beak {
  left: 1706px;
  top: 624px;
  width: 72px;
  height: 34px;
  background: linear-gradient(180deg, #f7c46a, #e2943c);
  clip-path: polygon(0 12%, 100% 46%, 0 88%);
}

/* 林荫道：暮色天空 + 楼体立面 + 亮窗 */
#menu .scenery--boulevard {
  background: linear-gradient(180deg, #241a2e 0%, #3d2a45 40%, #63415a 68%, #8a5b6c 100%);
}

.scenery--boulevard .scene-facade-outline {
  left: 0;
  top: 120px;
  width: 1920px;
  height: 960px;
  background: #2a1a33;
  clip-path: polygon(0 26%, 12% 26%, 12% 12%, 21% 12%, 21% 0, 47% 0, 47% 16%, 58% 16%, 58% 34%, 74% 34%, 74% 20%, 88% 20%, 88% 40%, 100% 40%, 100% 100%, 0 100%);
  opacity: .92;
}

.scenery--boulevard .scene-facade-windows {
  left: 40px;
  top: 150px;
  width: 1860px;
  height: 900px;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, #ffcf985e 34px 78px, transparent 78px 118px),
    repeating-linear-gradient(180deg, transparent 0 40px, #ffcf985e 40px 96px, transparent 96px 132px);
  clip-path: polygon(0 24%, 11.5% 24%, 11.5% 10%, 20.5% 10%, 20.5% 0, 46.5% 0, 46.5% 14%, 57.5% 14%, 57.5% 32%, 73.5% 32%, 73.5% 18%, 87.5% 18%, 87.5% 38%, 100% 38%, 100% 100%, 0 100%);
  opacity: .55;
  mix-blend-mode: screen;
}

.scenery--boulevard .scene-facade-stone {
  left: 0;
  top: 640px;
  width: 1920px;
  height: 440px;
  background:
    repeating-linear-gradient(180deg, #ffffff12 0 2px, transparent 2px 42px),
    linear-gradient(180deg, #2f2038, #1d1424);
  opacity: .8;
}

.scenery--boulevard .scene-facade-fins {
  left: 1180px;
  top: 120px;
  width: 740px;
  height: 960px;
  background: repeating-linear-gradient(90deg, #140d1a99 0 16px, transparent 16px 92px);
  clip-path: polygon(0 30%, 100% 22%, 100% 100%, 0 100%);
  opacity: .6;
}

#menu[data-page="brightness"] { background: #3c3e3b; }
#menu[data-page="brightness"] > .scenery { display: none; }

/* ---------- 标题 / 选项 / 圆点 ---------- */
#menu .title {
  position: absolute;
  top: 444px;
  left: 50%;
  width: max-content;
  max-width: 1600px;
  margin: 0;
  font: 500 68px/80px var(--cond);
  letter-spacing: .24px;
  text-transform: uppercase;
  text-align: center;
  transform: translateX(-50%);
}

#menu .choices {
  position: absolute;
  top: 539px;
  left: 50%;
  width: 612px;
  height: 72px;
  padding-top: 2px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#menu .choices::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #eadbe047, transparent);
}

#menu .arrow {
  height: 70px;
  width: 50px;
  display: grid;
  place-items: center;
  padding: 0;
}

#menu .arrow b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #302035e6;
  border: 1px solid #251b29;
}

#menu .arrow b::after {
  content: "";
  width: 11px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(-45deg);
  margin-left: -4px;
}

#menu .arrow.prev b::after { transform: rotate(135deg); margin-left: 4px; }

#menu .choice-value {
  position: relative;
  top: -2px;
  font: 400 24.5px/1.1 var(--sans);
  text-align: center;
}

#menu .dots {
  position: absolute;
  top: 606px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu .dot {
  width: 21px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
}

#menu .dot::before {
  content: "";
  display: block;
  border-radius: 50%;
  height: 9px;
  width: 9px;
  background: #b9aabd;
  box-shadow: 0 0 0 2px #423247;
}

#menu .dot[aria-pressed="true"]::before {
  height: 13px;
  width: 13px;
  background: #fff;
}

/* ---------- 左下预览框 / 说明 ---------- */
#menu .minimap {
  position: absolute;
  left: 30px;
  bottom: 75px;
  width: 344px;
  height: 202px;
  border: 2px solid #ddccdf5c;
  border-radius: 25px;
  box-shadow: inset 0 1px 3px #291e3760;
}

#menu .map-pin {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  width: 27px;
  height: 27px;
  border: 2px solid #d9d3df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 16px/1 var(--sans);
}

#menu .help {
  position: absolute;
  left: 33px;
  top: 1038px;
  transform: translateY(-50%);
  max-width: 1150px;
  margin: 0;
  font: 400 25px/1.25 var(--sans);
  letter-spacing: .52px;
}

/* 选项页的提示：这些设置只是片头观感，别让人以为调错了 */
#menu .setup-note {
  position: absolute;
  left: 50%;
  top: 692px;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  max-width: 920px;
  margin: 0;
  text-align: center;
  font: 400 18px/1.5 var(--sans);
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .34);
}

/* 亮度页的中部是滑块，提示改到左下角 */
#menu .setup-note--left {
  left: 33px;
  top: 1002px;
  transform: none;
  text-align: left;
  max-width: 880px;
}

/* ---------- 右下动作条 ---------- */
#menu .game-actions {
  --nav-height: 41px;
  position: absolute;
  right: 38px;
  bottom: 23px;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 17px;
}

#menu .game-actions.stack {
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}

#menu .prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: 5px 0;
  color: #f6f6f4;
  font: 500 22.5px/1 var(--cond);
  letter-spacing: 1.05px;
  text-transform: uppercase;
}

#menu .prompt .button-label { -webkit-text-stroke: .15em #000; paint-order: stroke fill; }

#menu .pc-key {
  min-width: 31px;
  height: 28px;
  padding: 0 6px;
  border: 2px solid #000;
  border-radius: 5px;
  background: #f6f4f5;
  color: #171719;
  font: 500 17px/1 var(--cond);
}

/* ---------- FINISH SETUP? ---------- */
#menu .finish-copy {
  position: absolute;
  left: 481px;
  top: 331px;
  width: 718px;
}

#menu .finish-copy h1 {
  margin: 0;
  font: 500 68px/80px var(--cond);
  text-transform: uppercase;
}

#menu .finish-copy h1::after {
  content: "";
  display: block;
  height: 2px;
  margin: 11px 0 25px;
  background: linear-gradient(90deg, #dceaff52, transparent);
}

#menu .finish-copy p {
  margin: 0;
  font: 400 24px/1.58 var(--sans);
  letter-spacing: .85px;
}

#menu .finish-copy p + p { margin-top: 1.4em; }
#menu .finish-copy strong { font-weight: 600; }

#menu .inline-settings,
#menu .prompt-phrase { white-space: nowrap; }
#menu .inline-settings { padding: 0; color: inherit; text-decoration: none; font: inherit; }

#menu .inline-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  vertical-align: middle;
}

/* ---------- 亮度 ---------- */
#menu .calibration {
  position: absolute;
  left: 768.5px;
  top: 366px;
  width: 383.5px;
  height: 349px;
  pointer-events: none;
}

#menu .brightness-box {
  position: absolute;
  left: 32px;
  top: 28px;
  width: 520px;
  padding: 25px 24px 24px 16px;
  background: linear-gradient(100deg, #1e1e2b, #202029 62%, #2b2b2e);
}

#menu .brightness-box .small-title {
  margin: 0;
  height: 55px;
  padding: 6px 0 0 2px;
  font: 500 31px/1.12 var(--cond);
  letter-spacing: .3px;
  text-transform: uppercase;
}

#menu .range-panel {
  position: relative;
  height: 105px;
  padding: 16px;
  background: linear-gradient(108deg, #f6f9f6 0%, #f6f9f6 48%, #707274 97%, #6b6d70);
}

#menu .range-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff48;
  pointer-events: none;
}

#menu .range-caption {
  display: flex;
  justify-content: space-between;
  color: #1d1720;
  font: 400 25px/1.25 var(--sans);
}

#menu .brightness-box input[type="range"] {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  width: calc(100% - 32px);
  height: 14px;
  margin: 0;
  appearance: none;
  border: 2px solid #352a35;
  background: linear-gradient(to right, #ed85b1 var(--fill, 50%), #c8c9c7aa var(--fill, 50%));
}

#menu .brightness-box input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 6px;
  height: 22px;
  background: #ec93b6;
  border: 2px solid #30242d;
}

#menu .brightness-box p {
  margin: 0;
  padding: 19px 16px 0;
  color: #efe9f1;
  font: 400 25px/1.52 var(--sans);
}

#menu .brightness-adjust { display: inline-flex; align-items: center; gap: 12px; }
#menu .brightness-adjust .button-label { -webkit-text-stroke: .15em #000; paint-order: stroke fill; }

/* ---------- 法务 / 条款 ---------- */
#menu .legal-heading {
  position: absolute;
  left: 32px;
  top: 48px;
  margin: 0;
  font: 500 40px/1.12 var(--cond);
  letter-spacing: -.6px;
  text-transform: uppercase;
}

#menu .left-list {
  position: absolute;
  left: 32px;
  top: 174px;
  width: 720px;
}

#menu .control-row,
#menu .next-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 68px;
  padding: 12px 17px;
  border-bottom: 1px solid #e7d6e428;
  font: 400 24px/1.42 var(--sans);
  text-align: left;
}

#menu .control-row.is-active,
#menu .next-row.is-active {
  color: #18151a;
  background: linear-gradient(122deg, #f5f9f4 0%, #f5f9f4 49%, #e1dce19e 84%, #d6cbd862 100%);
  border-bottom-color: transparent;
}

#menu .next-row {
  justify-content: flex-start;
  margin-top: 64px;
  padding-inline: 16px 48px;
  font-weight: 700;
}

#menu .next-row:disabled { opacity: .19; }

#menu .reading {
  position: absolute;
  top: 181px;
  left: 980px;
  right: 44px;
  max-height: 744px;
  overflow: auto;
  scrollbar-width: thin;
}

#menu .reading h2 {
  margin: 0 0 16px;
  padding: 0 0 15px;
  font: 500 28px/1.1 var(--cond);
  letter-spacing: .3px;
  text-transform: uppercase;
  border-bottom: 1px solid #e7d6e43a;
}

#menu .reading p {
  margin: 0 0 16px;
  font: 400 24px/1.58 var(--sans);
  letter-spacing: .85px;
}

#menu .notice-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 41px;
  font: 500 23px/1 var(--cond);
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: .12em #000;
}

#menu .safe-note {
  position: absolute;
  left: 33px;
  right: 40px;
  bottom: 90px;
  max-width: 1400px;
  font: 400 20px/1.4 var(--sans);
  color: #e6d8e8;
  opacity: .8;
}

