/* CS MUSIC H5 — Operalia-inspired tokens
   bg #FFFFFF | soft #F6F4EF | ink #1A1A1A | muted #8A847A | gold #C5A05A
   title: Cormorant Garamond / Noto Serif SC 22–34
   body: Noto Sans SC 13–15
   pad 20 | step 8 | btn 52 | radius 0
   ghost gold border CTA; solid gold only for pay / draw
*/

:root {
  --bg: #ffffff;
  --soft: #f6f4ef;
  --ink: #1a1a1a;
  --ink-2: #4a4640;
  --muted: #8a847a;
  --gold: #c5a05a;
  --gold-deep: #9d7d3d;
  --line: #e8e3d8;
  --danger: #8b3a32;
  --pad: 20px;
  --btn: 52px;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: #d8d4cb;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

img, svg, video { max-width: 100%; }

.device {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  body { padding: 24px 0; }
  .device {
    max-width: 430px;
    min-height: 844px;
    max-height: 900px;
    box-shadow: 0 24px 80px rgba(26, 26, 26, 0.12);
    overflow: auto;
    overflow-x: hidden;
  }
}

.view { display: none; min-height: 100vh; max-width: 100%; overflow-x: hidden; overflow-x: clip; padding-bottom: calc(28px + var(--safe-b)); }
.view.is-on { display: block; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad) 10px;
  min-height: 56px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.25; }
.brand-mini {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--ink);
}
.brand-mini i {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--gold);
  margin: 0 8px;
  vertical-align: -1px;
}
#view-home .home-top-logo {
  display: block;
  width: 96px;
  height: auto;
}

.hero {
  padding: 4px var(--pad) 28px;
  text-align: center;
  font-family: var(--serif);
}
.hero,
.hero h1,
.hero-en,
.hero .meta,
.hero .place,
.hero-orgs,
.hero-orgs span,
.hero-orgs b,
.hero-orgs small,
.hero .btn {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
.hero-ring {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  display: block;
  height: auto;
  background: #0a0a0a;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 500; }
.hero h1 {
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.hero-en {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 auto 20px;
  max-width: 22em;
}
.hero .meta {
  font-family: var(--serif);
  font-size: 15px;
  color: #b4483c;
  margin-bottom: 4px;
}
.hero .place {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: #b4483c;
  margin-bottom: 26px;
}
.hero-orgs {
  list-style: none;
  text-align: center;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 22px;
}
.hero-orgs li { padding: 0; }
.hero-orgs span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.hero-orgs b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.hero-orgs b + b { margin-top: 4px; }
.hero-orgs small {
  display: block;
  margin: 2px 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.lead {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 32em;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn);
  padding: 0 20px;
  border-radius: 0;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
}
.btn-solid {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fff;
}
.btn-text {
  border: 0;
  background: none;
  color: var(--muted);
  letter-spacing: 0.12em;
  min-height: 44px;
  font-size: 13px;
}
.btn[disabled], .btn.is-off {
  opacity: 0.38;
  pointer-events: none;
}
.actions {
  padding: 0 var(--pad);
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.band {
  background: var(--soft);
  margin-top: 36px;
  padding: 36px var(--pad);
}
.band h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.hairline {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 12px 0 20px;
}
.intro-lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.intro-photo { margin: 0 0 24px; }
.intro-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.intro-points {
  list-style: none;
  display: grid;
  gap: 18px;
}
.intro-points li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.intro-points span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 6px;
}
.intro-points b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}
.statute { padding: 0 var(--pad) 40px; }
.statute .btn { margin: 4px 0 8px; }
.statute-sub {
  margin-top: -8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.statute-sec { margin-top: 28px; }
.statute-sec h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.statute-sec h3 {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin: 18px 0 8px;
}
.statute-sec p,
.statute-sec li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.statute-sec li strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.statute-sec a {
  color: var(--gold-deep);
  word-break: break-all;
}
.statute-sec p + p { margin-top: 10px; }
.statute-sec ul,
.statute-sec ol {
  padding-left: 1.15em;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.statute-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.statute-block strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.statute-block p.keep-lines { white-space: pre-line; }
.seg-label.is-wrap {
  letter-spacing: 0.04em;
  line-height: 1.7;
  white-space: normal;
}

.course-form label.field > span,
.course-form .field > span,
.course-form .seg-label {
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: #000000;
  font-weight: 400;
}
.course-form .hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.course-form input[type="text"],
.course-form input[type="tel"],
.course-form input[type="email"],
.course-form input[type="number"],
.course-form textarea {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: #555555;
}
.course-form textarea { min-height: 52px; }
.course-form .statute-block {
  display: grid;
  gap: 14px;
}
.course-form .statute-block strong {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #000000;
  font-family: var(--sans);
}
.course-form .statute-block p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: #555555;
}
.course-form ::placeholder {
  font-size: 15px;
  font-weight: 400;
  color: #555555;
  opacity: 1;
}
.course-form .pill {
  font-size: 13px;
  color: #555555;
}
.course-form .pill.is-on {
  font-size: 16px;
  color: #000000;
  border-color: var(--gold);
}
.course-form .opt b {
  font-size: 13px;
  color: #555555;
}
.course-form .opt.is-on b {
  font-size: 16px;
  color: #000000;
}
#view-register .course-form .pill,
#view-register .course-form .pill.is-on {
  font-size: 13px;
}
.course-form .piano-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.gain-opts { display: grid; gap: 0; margin-top: 4px; }
.gain-other-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.gain-other-line b { display: inline; }
.gain-other-line input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 0;
  font: 15px var(--sans);
  color: var(--ink);
  outline: none;
  letter-spacing: 0;
}
.gain-other-line input:focus { border-bottom-color: var(--gold); }
.upload-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--muted);
}
.opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
}
.opt-check {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line);
  background: #fff;
  font-style: normal;
}
.opt.is-on .opt-check {
  border-color: var(--gold);
  background: #fff;
}
.opt.is-on .opt-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--gold-deep);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.opt b {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.opt em {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}
.opt.is-off {
  opacity: 0.38;
  pointer-events: none;
}
.statute-sign {
  margin-top: 32px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.intro-cats {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.page-title {
  padding: 8px var(--pad) 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.page-title h1 {
  font-size: 28px;
  line-height: 1.25;
}
.page-title p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.list { padding: 0 var(--pad); }
.row {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.row .en {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 6px;
}
.row h3 { font-size: 20px; font-weight: 500; }
.row .sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.row .st {
  float: right;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.row .st.is-reg { color: var(--gold); }
.row .st.is-up { color: var(--gold-deep); }
.row .st.is-out { color: var(--muted); }
.row.is-dim { opacity: 0.42; }

.companion {
  display: grid;
  gap: 18px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}
.companion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.companion-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--sans);
}
#companion-block .btn { margin-top: 4px; }

#semi-piano {
  display: grid;
  gap: 28px;
}
#semi-songs {
  display: grid;
  gap: 28px;
}
.piano-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.piano-title i,
i.req {
  font-style: normal;
  color: var(--danger);
  margin-right: 2px;
}
.piano-note {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.piano-opts {
  display: grid;
  gap: 10px;
}
.piano-opts .opt {
  grid-template-columns: 18px 1fr;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.piano-person {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}
.piano-opts .opt-check {
  border-radius: 50%;
  margin-top: 0;
}
.piano-opts .opt.is-on .opt-check::after {
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-deep);
  transform: none;
}
#pop-track-opts {
  margin-top: 10px;
}
#pop-track-opts .opt-check {
  border-radius: 2px;
}
#pop-track-opts .opt.is-on .opt-check::after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--gold-deep);
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0;
  background: none;
  transform: rotate(45deg);
}

.form { padding: 0 var(--pad); display: grid; gap: 22px; }
#semi-profile {
  display: grid;
  gap: 22px;
}
#semi-profile[hidden] {
  display: none;
}
#semi-teacher {
  display: grid;
  gap: 14px;
}
#semi-teacher .teacher-note {
  margin: 0;
}
label.field,
.field { display: grid; gap: 8px; }
label.field > span,
.field > span,
.seg-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 12px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus { border-bottom-color: var(--gold); }
textarea { min-height: 72px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }

.fee-box { padding-top: 4px; width: 100%; max-width: 100%; box-sizing: border-box; }
.fee-lines { margin: 4px 0 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.fee-lines li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.fee-lines em {
  font-style: normal;
  color: var(--muted);
  min-width: max-content;
  max-width: none;
  white-space: nowrap;
}
.fee-lines b {
  font-weight: 400;
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.fee-lines li:last-child b {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-deep);
}

.confirm-box {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.confirm-box .hint { margin: 8px 0 4px; }
.confirm-box .seg-label { margin-top: 18px; }
.confirm-box .kv {
  padding: 0;
  margin: 0;
}
.confirm-box .fee-lines { margin-top: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}
#roles .pill { padding: 0 10px; }
.pill.is-on {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.upload {
  position: relative;
  border: 1px dashed var(--line);
  min-height: 88px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
}
.upload:hover,
.upload.is-on { border-color: var(--gold); }
.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-face {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 16px;
  cursor: pointer;
}
.upload-done {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  letter-spacing: 0;
}
.upload-preview {
  width: 48px;
  height: 72px;
  object-fit: cover;
  background: var(--soft);
  flex: 0 0 auto;
}
.upload-info { flex: 1; min-width: 0; }
.upload-name {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-size {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.upload-clear {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  color: var(--gold-deep);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  font-family: var(--sans);
}

.oa-follow {
  margin: 8px var(--pad) 28px;
  padding: 28px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.oa-follow h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 8px 0 10px;
}
.oa-follow > p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.oa-qr-item {
  margin-top: 22px;
}
.oa-qr {
  display: block;
  width: 196px;
  height: 196px;
  margin: 0 auto 12px;
  object-fit: contain;
  background: #fff;
}
.oa-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}
.oa-follow .hint { margin-top: 4px; }
#view-course-follow .oa-follow,
#view-oa-follow .oa-follow {
  margin-top: 0;
  border-top: 0;
}
#view-course .page-title h1 {
  font-size: 37px;
  line-height: 1.25;
  color: #383838;
}
#view-course-ok .kv {
  font-size: 16px;
}
#view-course-ok .kv em {
  font-size: 16px;
  color: #000000;
}
#view-course-ok .kv b {
  font-size: 15px;
  color: #555555;
}
#view-course-ok .kv b.status-ok {
  color: var(--gold-deep);
}
#view-course-ok .kv b.status-wait {
  color: var(--muted);
}
#view-course-ok .fee-lines em {
  font-size: 16px;
  color: #000000;
}
#view-course-ok .fee-lines b {
  color: #555555;
}
#view-course-ok .fee-lines li:last-child b {
  color: var(--gold-deep);
}

.kv {
  padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) 0 var(--pad);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.kv li {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.kv em {
  font-style: normal;
  color: var(--muted);
  min-width: 0;
  max-width: 9.5em;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.kv b {
  font-weight: 400;
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.kv .ok-song-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
  padding: 2px 0;
  outline: none;
  box-sizing: border-box;
}
.kv li.is-song-edit {
  align-items: stretch;
  width: auto;
  max-width: none;
  background: #faf6ee;
  box-shadow: inset 3px 0 0 var(--gold);
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * max(var(--pad), env(safe-area-inset-right, 0px)));
  padding-left: var(--pad);
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}
.kv li.is-song-edit em {
  color: var(--gold-deep);
}
.kv li.is-song-edit em::after {
  content: "可改";
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 16px;
  vertical-align: 1px;
}
.kv li.is-song-edit .ok-song-input,
.kv .ok-song-input:not([readonly]) {
  border-bottom-color: transparent;
  color: var(--gold-deep);
  cursor: text;
  background: #faf6ee;
  padding: 0;
  min-height: 100%;
}
.kv .ok-song-input:not([readonly]):focus {
  border-bottom-color: var(--gold-deep);
}
.kv .ok-song-input[readonly] {
  pointer-events: none;
}
.ok-song-hint {
  padding: 12px var(--pad) 0;
}
.kv li.ok-song-dock-row {
  display: block;
  width: auto;
  max-width: none;
  align-items: stretch;
  background: #faf6ee;
  box-shadow: inset 3px 0 0 var(--gold);
  margin-left: calc(-1 * var(--pad));
  margin-right: calc(-1 * max(var(--pad), env(safe-area-inset-right, 0px)));
  padding: 12px var(--pad);
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--line);
}
.ok-song-dock-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  text-align: center;
}

.codes-box { padding: 20px var(--pad) 8px; }
.qr-card { margin-top: 18px; padding-bottom: 8px; }
.qr-card .qr-wrap { margin-left: 0; margin-right: 0; }
.qr-card .qr { width: 168px; height: 168px; }
.qr-card .note { margin-top: 8px; }

.result-box { padding: 20px var(--pad) 8px; }
.result-val {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}
.result-val.is-wait { color: var(--gold-deep); }
.result-val.is-up { color: var(--gold-deep); }
.result-val.is-out { color: var(--muted); }

.qr-wrap {
  margin: 12px var(--pad) 8px;
  padding: 28px 20px;
  background: var(--soft);
  text-align: center;
}
.qr {
  width: 196px;
  height: 196px;
  margin: 0 auto 16px;
  background:
    linear-gradient(var(--ink) 0 0) 0 0 / 18px 18px no-repeat,
    linear-gradient(var(--ink) 0 0) 100% 0 / 18px 18px no-repeat,
    linear-gradient(var(--ink) 0 0) 0 100% / 18px 18px no-repeat,
    #fff;
  border: 1px solid var(--line);
  position: relative;
}
.qr::after {
  content: "";
  position: absolute;
  inset: 22px;
  background:
    repeating-conic-gradient(#1a1a1a 0 25%, #fff 0 50%) 0 0 / 12px 12px;
  opacity: 0.88;
}
.qr.is-real {
  background: #fff;
}
.qr.is-real::after { display: none; }
.qr.is-real img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.code {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  font-size: 15px;
}
.num-hero {
  text-align: center;
  padding: 48px var(--pad) 24px;
}
.num-hero strong {
  display: block;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 500;
  line-height: 0.9;
  color: var(--gold-deep);
  letter-spacing: -0.02em;
}
.num-hero span {
  display: block;
  margin-top: 16px;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  max-width: min(320px, 80%);
  text-align: center;
  z-index: 90;
}
.toast.is-on { opacity: 1; }
.reg-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.menu {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  display: none;
  padding: 18px var(--pad) 40px;
  overflow-y: auto;
}
.menu.is-on { display: block; }
.menu nav { margin-top: 28px; display: grid; gap: 2px; }
.menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
}
.menu a[hidden] { display: none; }
.menu a small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 4px;
}

.note {
  margin: 8px var(--pad) 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.foot-mark {
  text-align: center;
  padding: 36px 20px 16px;
}
.foot-logo {
  display: inline-block;
  width: 132px;
  max-width: 42%;
  height: auto;
}

.otp { display: grid; grid-template-columns: 1fr 108px; gap: 10px; align-items: end; }
.otp .link {
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.status-ok { color: var(--gold-deep); }
.status-wait { color: var(--muted); }

.masters { padding: 0 var(--pad) 28px; display: grid; gap: 28px; }
.master {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.master-top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}
.master-top img,
.avatar-letter {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
}
.avatar-letter {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 26px;
  filter: none;
}
.master .school {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.master h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.master .cat {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.master .bio {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 8px 0 14px;
}
.master .quota {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.master .quota strong { color: var(--gold-deep); font-weight: 500; }

.scan-box {
  margin: 8px var(--pad) 20px;
  background: var(--soft);
  padding: 28px 20px 24px;
  text-align: center;
}
.scan-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border: 1px solid var(--gold);
  position: relative;
  cursor: pointer;
}
.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}
.scan-frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.scan-frame::after { right: -1px; bottom: -1px; border-width: 0 1.5px 1.5px 0; }
.scan-hint {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.tabbar {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: #fff;
  padding-bottom: var(--safe-b);
  margin-top: 28px;
}
.tabbar button {
  min-height: 52px;
  border: 0;
  background: none;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.tabbar button.is-on { color: var(--gold-deep); }
.result-num {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold-deep);
  text-align: center;
  line-height: 1;
  margin: 8px 0 4px;
}
.video-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.video-tile:hover { border-color: var(--gold); color: var(--gold-deep); }

.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 16, 12, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pay-mask[hidden] { display: none; }
.pay-card {
  width: min(360px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px 22px;
  text-align: center;
}
.pay-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 4px 0 12px;
}
.pay-card .pay-fee {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-deep);
  margin: 8px 0 16px;
}
.pay-card img {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  -webkit-touch-callout: default;
  pointer-events: auto;
}
.pay-card .hint { margin-bottom: 16px; }
.pay-card .btn { width: 100%; }
.pay-card .btn + .btn { margin-top: 8px; }

#view-course-home,
#view-camp-home {
  padding-bottom: calc(16px + var(--safe-b));
}
#view-course-home .topbar,
#view-camp-home .topbar {
  justify-content: center;
  padding: 16px var(--pad) 12px;
}
#view-course-home .mc-top-logo,
#view-camp-home .mc-top-logo {
  display: block;
  width: 132px;
  max-width: 42%;
  height: auto;
}
#view-course-home .mc-cover,
#view-camp-home .mc-cover {
  overflow: hidden;
  background: #0a0a0a;
}
#view-course-home .mc-cover img,
#view-camp-home .mc-cover img {
  width: 100%;
  height: auto;
  display: block;
}
#view-course-home .mc-intro,
#view-camp-home .mc-intro {
  padding: 28px var(--pad) 0;
  text-align: center;
}
#view-course-home .mc-eyebrow,
#view-camp-home .mc-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
#view-course-home h1 {
  font-size: 37px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: #383838;
}
#view-course-home .mc-rule,
#view-camp-home .mc-rule {
  margin: 0 auto 16px;
}
#view-course-home .meta {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
#view-course-home .place {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
#view-course-home .place-en,
#view-camp-home .place-en {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
#view-course-home .mc-line,
#view-camp-home .mc-line {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 28px;
}
#view-camp-home .mc-intro {
  padding: 22px var(--pad) 36px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
#view-camp-home h1 {
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
#view-camp-home .mc-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
#view-camp-home .meta {
  font-size: 15px;
  color: #b4483c;
  margin-bottom: 4px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
#view-camp-home .place {
  font-size: 15px;
  line-height: 1.5;
  color: #b4483c;
  margin-bottom: 26px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
#view-camp-home .hero-orgs {
  margin: 0 0 32px;
}
#view-camp-home .hero-orgs,
#view-camp-home .hero-orgs span,
#view-camp-home .hero-orgs b,
#view-camp-home .hero-orgs small {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
#view-camp-home .camp-tel {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.camp-cover-panel {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 162, 90, 0.28), transparent 46%),
    linear-gradient(180deg, #161616 0%, #2a2418 100%);
  color: #f6efe0;
  text-align: center;
}
.camp-cover-panel p {
  letter-spacing: 0.22em;
  font-size: 11px;
  margin-bottom: 10px;
}
.camp-cover-panel h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.camp-cover-panel span {
  font-size: 12px;
  color: rgba(246, 239, 224, 0.62);
}
.camp-article {
  padding: 28px var(--pad) 8px;
}
.camp-article h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 22px 0 10px;
  color: #383838;
}
.camp-article p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.camp-org {
  padding-bottom: 36px;
}
.camp-org dl {
  margin: 0;
}
.camp-org dt {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-deep);
  margin: 16px 0 6px;
}
.camp-org dt:first-child {
  margin-top: 0;
}
.camp-org dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.camp-table-wrap {
  overflow: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
}
.camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.camp-table th,
.camp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.camp-table th {
  color: var(--gold-deep);
  font-weight: 500;
  background: #faf7f0;
}
.camp-teachers {
  display: grid;
  gap: 12px;
  margin: 8px 0 16px;
}
.camp-teacher {
  padding: 16px;
  border: 1px solid var(--line);
}
.camp-teacher b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
}
.camp-teacher em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.camp-teacher p {
  margin: 0;
  font-size: 13px;
}
.camp-level-pills {
  display: grid;
  gap: 8px;
}
.camp-level-pills .pill {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  height: auto;
  min-height: 40px;
  padding: 8px 12px;
}
#view-camp .course-form .pill,
#view-camp .course-form .pill.is-on {
  font-size: 13px;
}
#view-camp .pills:not(.camp-level-pills) {
  flex-wrap: nowrap;
  align-items: stretch;
}
#view-camp .pills:not(.camp-level-pills) .pill {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#camp-companion-count {
  min-height: 52px;
  padding: 14px 0 16px;
  font-size: 16px;
}
#draw-slots .row .btn {
  margin-top: 14px;
  height: 44px;
}
.kv li.ok-piano-invite-row {
  display: block;
  align-items: stretch;
}
.kv li.ok-piano-invite-row em {
  display: block;
  width: auto;
  padding-right: 0;
  margin-bottom: 8px;
}
.ok-piano-invite-url {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  word-break: break-all;
}
.ok-piano-invite .btn {
  height: 44px;
}
#piano-contestant[readonly] {
  background: var(--soft);
  color: var(--ink);
}
