/* ================================================================
   所属者画面 — "Spotlight" ダークテーマ（スマートフォン優先）
   ================================================================ */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080d;
  --ink: #f4f5fa;
  --ink-2: #a9afc2;
  --ink-3: #737a8f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .075);
  --amber: #ffcb6b;
  --coral: #ff8a5b;
  --pink: #ff4f8b;
  --violet: #9a8cff;
  --ok: #3ee0a1;
  --danger: #ff6177;
  --sat: #8dbbff;
  --sun: #ff8d9c;
  --grad: linear-gradient(115deg, #ffd27a 0%, #ff8a5b 48%, #ff4f8b 100%);
  --radius: 22px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --display: "Outfit", var(--font);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
a { color: var(--amber); }
.icon { flex: none; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- 舞台照明 */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stage::before {
  content: "";
  position: absolute;
  inset: -30vh -20vw auto;
  height: 95vh;
  background:
    radial-gradient(38% 55% at 20% 18%, rgba(154, 140, 255, .30), transparent 70%),
    radial-gradient(34% 50% at 82% 14%, rgba(255, 79, 139, .24), transparent 70%),
    radial-gradient(28% 40% at 52% 8%, rgba(255, 203, 107, .16), transparent 70%);
  filter: blur(8px);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}
.beam {
  position: absolute;
  top: -12vh;
  width: 34vw;
  min-width: 220px;
  height: 115vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 45%, transparent 70%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  filter: blur(6px);
  animation: sway 14s ease-in-out infinite alternate;
}
.beam.l { left: -4vw; transform: rotate(-24deg); }
.beam.r { right: -4vw; transform: rotate(24deg); animation-delay: -7s; }
@keyframes sway {
  from { transform: rotate(var(--r, -24deg)); }
  to { transform: rotate(calc(var(--r, -24deg) + 7deg)); }
}
.beam.l { --r: -26deg; }
.beam.r { --r: 22deg; }

.app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- ヘッダー */
.top {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.brand-name { font-weight: 800; font-size: 15px; line-height: 1.2; letter-spacing: .06em; }
.top-link {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  cursor: pointer;
  white-space: nowrap;
}
.top-link:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- レイアウト */
.main { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 8px 16px calc(130px + var(--safe-b)); }
/* fill-mode は backwards にする（both だと transform が残り、子の position:fixed が画面基準にならない） */
.screen { animation: rise .38s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stack { display: grid; gap: 14px; }
.gap-lg { gap: 22px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }

.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .36em; color: var(--amber); text-transform: uppercase; }
.title { font-size: 22px; font-weight: 800; letter-spacing: .05em; line-height: 1.4; margin: 4px 0 2px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- ヒーロー */
.hero { padding: 26px 2px 6px; }
.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: .04em;
}
.hero .lead { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- カード */
.card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.card.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 210, 122, .65), rgba(255, 79, 139, .35) 40%, rgba(255, 255, 255, .04) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.dash { border: 0; border-top: 1px dashed var(--line-2); margin: 18px -20px; }

/* 月度ステータス */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.open { color: var(--ok); border-color: rgba(62, 224, 161, .35); }
.status.open::before { animation: pulse 1.6s ease-in-out infinite; }
.status.preview, .status.scheduled { color: var(--amber); border-color: rgba(255, 203, 107, .35); }
.status.paused, .status.closed { color: var(--danger); border-color: rgba(255, 97, 119, .35); }
@keyframes pulse { 50% { opacity: .35; } }

.month-name { font-size: 26px; font-weight: 900; letter-spacing: .05em; margin: 10px 0 2px; }
.month-name .num { font-size: 30px; }
.period { font-size: 13px; color: var(--ink-2); }
.remain { display: flex; align-items: baseline; gap: 6px; }
.remain b { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; }

/* カウントダウン */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.cd-cell { padding: 10px 4px 8px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: center; }
.cd-cell b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd-cell span { font-family: var(--display); font-size: 9px; letter-spacing: .26em; color: var(--ink-3); }

/* ---------------------------------------------------------------- ボタン */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .25s ease, opacity .2s, background .2s, border-color .2s;
  user-select: none;
}
.btn-primary {
  color: #1d0d14;
  background: var(--grad);
  box-shadow: 0 14px 34px -12px rgba(255, 79, 139, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255, 79, 139, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, .28); }
.btn-text { background: none; color: var(--ink-2); min-height: 44px; padding: 8px 12px; font-weight: 700; }
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .25); border-top-color: #1d0d14; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- フォーム */
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .05em; }
.input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--line-2);
  color: var(--ink);
  outline: none;
  font-size: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.input.big { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: .28em; padding: 14px 18px; }
.input::placeholder { color: rgba(255, 255, 255, .22); letter-spacing: .12em; }
.input:focus { border-color: rgba(255, 203, 107, .75); box-shadow: 0 0 0 4px rgba(255, 203, 107, .14); }
.input.err { border-color: rgba(255, 97, 119, .7); }
.hint { font-size: 12px; color: var(--ink-3); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #ff8a5b; flex: none; }

/* ---------------------------------------------------------------- お知らせ */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.65; border: 1px solid; }
.alert .icon { margin-top: 3px; }
.alert.err { background: rgba(255, 97, 119, .1); border-color: rgba(255, 97, 119, .38); color: #ffd3da; }
.alert.info { background: rgba(154, 140, 255, .1); border-color: rgba(154, 140, 255, .35); color: #e1dcff; }
.alert.warn { background: rgba(255, 203, 107, .1); border-color: rgba(255, 203, 107, .35); color: #ffe7bd; }
.alert.ok { background: rgba(62, 224, 161, .1); border-color: rgba(62, 224, 161, .35); color: #c9f7e4; }
.alert b { color: #fff; }
.notice { white-space: pre-wrap; }

/* ---------------------------------------------------------------- ステップ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 18px; }
.step .bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.step.done .bar, .step.active .bar { background: var(--grad); }
.step .lbl { display: block; margin-top: 7px; font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; }
.step .lbl i { font-style: normal; font-family: var(--display); margin-right: 4px; }
.step.active .lbl { color: var(--ink); }

.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -8px; padding: 6px 8px; background: none; border: 0; color: var(--ink-2); cursor: pointer; font-size: 13px; font-weight: 700; }
.back:hover { color: var(--ink); }

/* ---------------------------------------------------------------- 所属者カード */
.member-card { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 58px; height: 58px; border-radius: 18px; flex: none;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 900;
  color: #1d0d14; background: var(--grad);
  box-shadow: 0 10px 26px -10px rgba(255, 79, 139, .8);
}
.member-name { font-size: 24px; font-weight: 900; letter-spacing: .06em; line-height: 1.3; }
.member-kana { font-size: 12px; color: var(--ink-2); letter-spacing: .14em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip .num { color: var(--ink); }

/* ---------------------------------------------------------------- 月タブ */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink-2); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.tab.on { color: #1d0d14; background: var(--grad); border-color: transparent; }

/* ---------------------------------------------------------------- 審査員 */
.judges { display: grid; gap: 12px; }
.judge {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--jc-soft), rgba(255, 255, 255, .025) 55%);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, border-color .2s, background .2s;
}
.judge::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--jc); box-shadow: 0 0 18px var(--jc); }
.judge:hover:not([disabled]) { border-color: var(--jc-line); transform: translateY(-1px); }
.judge:active:not([disabled]) { transform: scale(.99); }
.judge[disabled] { cursor: not-allowed; opacity: .5; }
.judge .jmark { width: 48px; height: 48px; border-radius: 15px; flex: none; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: var(--jc); background: var(--jc-soft); border: 1px solid var(--jc-line); }
.judge .jname { font-size: 16px; font-weight: 900; letter-spacing: .02em; line-height: 1.35; }
.judge .jsub { font-size: 12px; color: var(--ink-2); }
.judge .jcount { margin-left: auto; text-align: right; flex: none; }
.judge .jcount b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.judge .jcount span { font-size: 11px; color: var(--ink-2); }
.judge .jcount.full b { font-size: 15px; color: var(--ink-3); font-family: var(--font); }
.judge .chev { color: var(--ink-3); flex: none; }

/* ---------------------------------------------------------------- 日時選択 */
.picked-judge { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jc); box-shadow: 0 0 12px var(--jc); flex: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-3); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.live.off::before { background: var(--ink-3); box-shadow: none; animation: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: #ff8a5b; width: 18px; height: 18px; }

.days { display: grid; gap: 10px; }
.day {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 14px 14px 14px 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
}
.day-date { text-align: center; font-family: var(--display); align-self: start; padding-top: 2px; }
.day-date .m { display: block; font-size: 10px; letter-spacing: .26em; color: var(--ink-3); font-weight: 600; }
.day-date .d { display: block; font-size: 32px; font-weight: 700; line-height: 1.02; }
.day-date .w { display: inline-block; margin-top: 4px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--glass-2); font-family: var(--font); }
.day-date.sat .w { color: var(--sat); }
.day-date.sun .w { color: var(--sun); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; align-content: center; }
.time {
  position: relative;
  padding: 10px 6px 8px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  text-align: center;
  font-family: var(--display);
  transition: transform .12s ease, border-color .15s, background .15s, box-shadow .2s;
}
.time b { display: block; font-size: 19px; font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.time small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .04em; font-family: var(--font); }
.time:hover:not([disabled]):not(.sel) { border-color: rgba(255, 203, 107, .7); background: rgba(255, 203, 107, .07); }
.time:active:not([disabled]) { transform: scale(.97); }
.time.sel { color: #1d0d14; background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px -10px rgba(255, 79, 139, .85); }
.time.sel small { color: rgba(29, 13, 20, .7); }
.time[disabled] { cursor: not-allowed; opacity: .32; }
.time[disabled] b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.empty { padding: 34px 18px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 18px; }

/* 画面下の操作バー */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 18px 12px calc(12px + var(--safe-b)); background: linear-gradient(180deg, rgba(7, 8, 13, 0), rgba(7, 8, 13, .9) 35%); pointer-events: none; }
.actionbar-inner {
  pointer-events: auto;
  max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(22, 24, 34, .88);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise .3s ease backwards;
}
.actionbar-inner .sum { flex: 1; min-width: 0; line-height: 1.35; }
.actionbar-inner .sum b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar-inner .sum span { font-size: 11.5px; color: var(--ink-2); }
.actionbar-inner .btn { min-height: 50px; padding: 12px 20px; flex: none; }

/* ---------------------------------------------------------------- 確認・完了（チケット） */
.ticket { padding: 0; overflow: hidden; }
.ticket-head { padding: 20px 20px 16px; display: flex; align-items: center; gap: 12px; background: linear-gradient(110deg, var(--jc-soft, rgba(255, 255, 255, .05)), transparent 70%); }
.ticket-body { padding: 4px 20px 22px; }
.when { font-family: var(--display); }
.when .d { font-size: 15px; color: var(--ink-2); font-family: var(--font); font-weight: 700; }
.when .t { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.when .t small { font-size: 20px; color: var(--ink-2); font-weight: 500; }
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 10px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 700; font-size: 12.5px; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 700; }
.perforation { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, .14); margin: 0 18px; }
.code-box { text-align: center; padding: 18px 20px 22px; }
.code { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: .22em; margin-top: 2px; }

.done-mark { width: 88px; height: 88px; margin: 6px auto 0; display: block; }
.done-mark circle { stroke: url(#doneGrad); stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .8s ease forwards; }
.done-mark path { stroke: #fff; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.booking-list { display: grid; gap: 10px; }
.booking-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.booking-item .bt { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.booking-item .bd { font-size: 12.5px; color: var(--ink-2); }

.contact { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.contact .tel { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.contact .icon-wrap { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #1d0d14; flex: none; }

.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: g; margin: 0; padding: 0; }
.guide li { list-style: none; text-align: center; padding: 14px 4px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.guide li::before { counter-increment: g; content: "0" counter(g); display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.rules { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 6px; }
.rules b { color: var(--ink); }

/* ---------------------------------------------------------------- トースト */
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(92vw, 520px); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(28, 30, 42, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: drop .32s cubic-bezier(.2, .7, .2, 1); }
.toast.err { border-color: rgba(255, 97, 119, .55); }
.toast.ok { border-color: rgba(62, 224, 161, .55); }
.toast.err .icon { color: var(--danger); }
.toast.ok .icon { color: var(--ok); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- フッター */
.foot { position: relative; z-index: 1; text-align: center; color: var(--ink-3); font-size: 11.5px; padding: 18px 16px calc(26px + var(--safe-b)); }
.foot a { color: var(--ink-2); text-decoration: none; }

.boot { min-height: 70vh; display: grid; place-items: center; }
.loader { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--amber); animation: spin .9s linear infinite; }
.skeleton { height: 82px; border-radius: 20px; background: linear-gradient(90deg, var(--glass) 0%, var(--glass-2) 50%, var(--glass) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* スマホ：長い審査員名（〜チーフディレクター 等）が1行に収まるよう、飾りの矢印を省いてアイコンを小さく */
@media (max-width: 480px) {
  .judge { gap: 12px; padding: 16px 14px 16px 16px; }
  .judge .chev { display: none; }
  .judge .jmark { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
}

@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .main { padding-top: 20px; }
  .judges { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 46px; }
}

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