/* あすカップ エントリー｜画面の並べ方だけ。色と部品は /asu/（あす共通デザイン v001、data-site="cup"）。
   色は変数だけで使う（QRの白地だけは読み取りのため固定）。クラスは c- で始める（asu- は共通デザインの部品）。 */

html { background: var(--asu-bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
/* 会場の光は画面に固定（background-attachment: fixed は重いので、固定の板を1枚敷く） */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--asu-bg-art); pointer-events: none; }
a { color: var(--asu-accent-ink); text-underline-offset: 3px; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--asu-bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--asu-grad-brand); opacity: .55; }
.brand { flex: none; display: grid; line-height: 1.05; text-decoration: none; white-space: nowrap; }
.brand__eyebrow { font-size: .6rem; font-weight: 800; letter-spacing: .2em; color: var(--asu-muted); }
.brand__name {
  font-size: 1.2rem; font-weight: 900; letter-spacing: .02em;
  background: var(--asu-grad-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#nav { display: flex; align-items: center; gap: 0; min-width: 0; }
#nav .asu-btn { white-space: nowrap; font-size: .82rem; }
#nav .asu-btn--ghost { padding: 0 9px; color: var(--asu-text); }
#nav .asu-btn--primary { margin-left: 4px; }

/* ---------- 画面 ---------- */
main { max-width: 480px; margin: 0 auto; padding: 18px 16px calc(64px + env(safe-area-inset-bottom)); }
.c-page { display: grid; gap: 14px; animation: asu-fade-up 240ms var(--asu-ease); }
.c-page > * { margin: 0; min-width: 0; }
.c-page > .asu-h2 { margin-top: 18px; font-size: 1.08rem; }
.c-page > .asu-btn--block + .asu-btn--block { margin-top: -4px; }
.c-ph { display: grid; gap: 4px; }
.c-ph .asu-h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
.c-ph__sub { margin: 0; color: var(--asu-muted); font-size: .9rem; }
.c-ph__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.c-lead { color: var(--asu-muted); font-size: .9rem; }
.c-empty { padding: 18px 16px; border: 1px dashed var(--asu-line); border-radius: var(--asu-radius-l); color: var(--asu-muted); font-size: .9rem; text-align: center; }
.c-links { display: grid; gap: 4px; justify-items: center; }
.c-links .asu-btn { color: var(--asu-accent-ink); }

/* トップの大きな札（AEOS NOVAの会場） */
.c-hero {
  position: relative; overflow: hidden; padding: 22px 18px 20px; border-radius: var(--asu-radius-l);
  background:
    radial-gradient(80% 90% at 0% 100%, rgb(155 92 255 / 55%), transparent 60%),
    radial-gradient(80% 90% at 100% 100%, rgb(255 138 42 / 50%), transparent 60%),
    linear-gradient(180deg, var(--asu-surface-2), var(--asu-bg));
  box-shadow: 0 0 0 1.5px var(--asu-silver-lo), -10px 10px 30px rgb(155 92 255 / 26%), 10px 10px 30px rgb(255 138 42 / 22%);
}
.c-hero__label { font-size: .7rem; font-weight: 800; letter-spacing: .2em; color: var(--asu-silver); }
.c-hero__title {
  margin: 4px 0 8px; font-size: 1.9rem; font-weight: 900; line-height: 1.15;
  background: var(--asu-grad-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 70%));
}
.c-hero__text { position: relative; z-index: 1; margin: 0; max-width: 64%; font-size: .88rem; line-height: 1.6; }
.c-hero__mascot { position: absolute; right: -8px; bottom: -10px; width: 112px; height: auto; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 45%)); }

/* ---------- カード ---------- */
.asu-card > * { margin: 0; }
.asu-card > * + * { margin-top: 10px; }
/* 共通デザインの [data-site="cup"] .asu-card が縁のグラデーションを上書きするので、ここで戻す */
[data-site="cup"] .asu-card--feature {
  border-color: transparent;
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), transparent 40%) padding-box, linear-gradient(var(--asu-surface), var(--asu-surface)) padding-box, var(--asu-grad-brand) border-box;
}
.c-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-row > :first-child { min-width: 0; }
.c-row .asu-btn { flex: none; }
.c-chev { flex: none; width: 10px; height: 10px; border: solid var(--asu-muted); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 4px; }
.c-meta { color: var(--asu-muted); font-size: .85rem; }
.c-name { font-weight: 800; overflow-wrap: anywhere; }
.c-list { display: grid; gap: 10px; }

/* バッジ（状態） */
.asu-badge.c-ok { --_bg: var(--asu-success-soft); --_fg: var(--asu-success); --_dot: var(--asu-success); }
.asu-badge.c-ng { --_bg: var(--asu-danger-soft); --_fg: var(--asu-danger); --_dot: var(--asu-danger); }
.asu-badge.c-wait { --_bg: var(--asu-warning-soft); --_fg: var(--asu-warning); --_dot: var(--asu-warning); }
.asu-badge.c-off { --_bg: var(--asu-surface-2); --_fg: var(--asu-muted); --_dot: var(--asu-muted); }
.c-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* 静かな「解除」「外す」（一覧の中で赤く塗りつぶさない） */
.asu-btn.c-quiet-danger { --_bg: transparent; --_fg: var(--asu-danger); --_bd: color-mix(in srgb, var(--asu-danger) 55%, transparent); box-shadow: none; }

/* ---------- 手順 ---------- */
.c-steps { list-style: none; counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; }
.c-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.c-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--asu-grad-button); color: var(--asu-on-primary); font-family: var(--asu-font-num); font-weight: 900; font-size: .85rem;
}

/* ---------- 入力 ---------- */
.c-form { display: grid; gap: 16px; }
.c-form .asu-check { align-items: flex-start; font-weight: 700; font-size: .92rem; }
.c-form .asu-check input { margin-top: 1px; }
.c-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-two > .asu-field { min-width: 0; }
.c-inline { display: flex; gap: 8px; align-items: center; }
.c-inline > :first-child { flex: 1; min-width: 0; }

/* ---------- チームのメンバー ---------- */
.c-member { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--asu-line); }
.c-member:first-of-type { border-top: 0; padding-top: 4px; }
.c-member__main { min-width: 0; display: grid; gap: 6px; }
.c-member small { display: block; color: var(--asu-danger); font-size: .8rem; line-height: 1.5; }
.c-member small.c-plain { color: var(--asu-muted); }
.c-count { font-family: var(--asu-font-num); font-weight: 900; }

/* ---------- QR・URL ---------- */
.c-share { display: grid; gap: 12px; }
.c-qr { width: 216px; margin: 0 auto; padding: 10px; border-radius: var(--asu-radius); background: #fff; box-shadow: 0 0 0 1.5px var(--asu-silver-lo), 0 10px 30px rgb(155 92 255 / 22%); }
.c-qr svg { display: block; width: 100%; height: auto; }
.c-url, .c-idbox {
  padding: 10px 12px; border: 1px solid var(--asu-line); border-radius: var(--asu-radius-s);
  background: var(--asu-surface-2); font-size: .82rem; word-break: break-all;
}
.c-idbox { font-size: .9rem; }
.c-idbox b { display: block; font-family: var(--asu-font-num); font-size: 1.25rem; letter-spacing: .06em; }

/* ---------- 本人確認 ---------- */
.c-arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-arts figure { margin: 0; padding: 8px 6px 6px; border: 1px solid var(--asu-line); border-radius: var(--asu-radius); background: var(--asu-surface); text-align: center; }
.c-arts svg { display: block; width: 100%; height: auto; }
.c-arts figcaption { margin-top: 4px; font-size: .7rem; font-weight: 700; line-height: 1.4; color: var(--asu-muted); }
input[type=file].asu-input { padding: 10px; font-size: 14px; }
input[type=file].asu-input::file-selector-button {
  margin-right: 10px; padding: 6px 12px; border: 1px solid var(--asu-silver-lo); border-radius: var(--asu-radius-pill);
  background: transparent; color: var(--asu-text); font: inherit; font-weight: 800;
}
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: var(--asu-radius-pill); overflow: hidden; background: var(--asu-surface-2); }
progress::-webkit-progress-bar { background: var(--asu-surface-2); }
progress::-webkit-progress-value { background: var(--asu-grad-button); }
progress::-moz-progress-bar { background: var(--asu-grad-button); }
video { display: block; width: 100%; max-height: 60vh; border-radius: var(--asu-radius); background: #000; }

/* ---------- 運営 ---------- */
.c-tabs { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 5; }
.c-tabs .asu-tab { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.c-tabs .asu-tab[aria-current="page"] { background: var(--asu-grad-button); color: var(--asu-on-primary); box-shadow: 0 4px 12px rgb(200 0 58 / 22%); }
.c-log { padding: 12px 14px; font-size: .88rem; }
details > summary { cursor: pointer; color: var(--asu-accent-ink); font-weight: 800; min-height: 36px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: 8px; }
details > * + * { margin-top: 10px; }
.asu-card > .c-steps { margin-top: 14px; }
/* ブラウザの自動入力で入力欄が白くならないように */
.asu-input:-webkit-autofill { -webkit-text-fill-color: var(--asu-text); box-shadow: 0 0 0 100px var(--asu-surface-2) inset; caret-color: var(--asu-text); }
