/* Landing page: one request form on the board's own tokens (board-tokens.css). The painted mascot in a brush ring is the only Japanese touch. */
body { display: flex; flex-direction: column; }
.defs { position: absolute; }

.stage { overflow-x: clip; flex: 1; display: flex; align-items: center; padding: clamp(24px, 5vw, 64px) 0; background: radial-gradient(60% 70% at 78% 45%, #1f2022 0%, transparent 70%); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 112px); }

.request-panel { padding: clamp(24px, 4.5vw, 44px); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-l); background: var(--color-side); box-shadow: 0 24px 64px #0008; }
.request-panel h1 { color: var(--color-text-strong); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.lede { margin: 12px 0 28px; max-width: 28em; }
.field label, .interest-field legend { display: block; margin-bottom: 8px; padding: 0; color: var(--color-text-strong); font-size: 13px; font-weight: 650; }
.field { margin-bottom: 22px; }
.interest-field { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.legend-hint { margin-left: 4px; color: var(--color-text-muted); font-weight: 500; }
.interest-options { display: grid; gap: 8px; }
.interest-options label { position: relative; display: block; cursor: pointer; }
.interest-options input { position: absolute; opacity: 0; pointer-events: none; }
.choice { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-s); background: var(--color-field); transition: border-color .15s, background .15s, transform .15s; }
.txt { display: flex; flex-direction: column; gap: 2px; }
.txt strong { color: var(--color-text-strong); font-size: 15px; font-weight: 650; }
.txt small { font-size: 13px; line-height: 1.4; color: var(--color-text-muted); }
.radio { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--color-border); border-radius: 50%; transition: background .15s, border-color .15s; }
.radio svg { width: 14px; height: 14px; fill: none; stroke: var(--color-on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .25s ease .05s; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-s); background: var(--color-canvas); color: var(--color-text); transition: background .15s, color .15s, border-color .15s; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.interest-options label:hover .choice { border-color: var(--color-border); }
.interest-options label:active .choice { transform: scale(.992); }
.interest-options input:checked + .choice { background: var(--color-accent-soft); border-color: var(--color-accent); box-shadow: inset 3px 0 var(--color-accent); }
.interest-options input:checked + .choice .radio { background: var(--color-accent); border-color: var(--color-accent); }
.interest-options input:checked + .choice .radio svg { stroke-dashoffset: 0; }
.interest-options input:checked + .choice .ico { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.interest-options input:focus-visible + .choice { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.note-field { margin: 0 0 22px; }
.note-field summary { display: inline-block; cursor: pointer; color: var(--color-text-muted); font-size: 14px; text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 5px; }
.note-field summary:hover { color: var(--color-text-strong); }
.note-field textarea { margin-top: 10px; }
.bot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--color-danger-soft); color: var(--color-danger); font-size: 14px; }
.submit { width: 100%; min-height: 52px; font-size: 15px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--color-text-muted); }

.success-panel { padding: 4px 0; outline: 0; }
.success-panel p { margin-top: 14px; font-size: 15.5px; }
.success-panel .success-lead { margin-top: 0; color: var(--color-text-strong); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.success-panel strong { color: var(--color-text-strong); overflow-wrap: anywhere; }

/* painted mascot in a brush ring */
.art { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1; }
.enso { position: absolute; inset: -4%; width: 108%; height: 108%; color: var(--color-text); overflow: visible; }
.enso-a { opacity: .8; }
.enso-b { color: var(--color-border); opacity: .9; }
.enso-a, .enso-b { stroke-dasharray: 1; stroke-dashoffset: 0; }
.m { position: absolute; display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.m-main { inset: 10%; width: 80%; height: 80%; filter: drop-shadow(0 24px 44px #000a); }
.m-a { right: -3%; bottom: 5%; width: 29%; filter: drop-shadow(0 12px 22px #0009); }
.m-b { left: -3%; top: 8%; width: 24%; filter: drop-shadow(0 12px 22px #0009); }

.members { padding: 22px 0 28px; border-top: 1px solid var(--color-border-subtle); background: var(--color-nav); text-align: center; }
.love { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); }
.heart { width: 14px; height: 14px; color: var(--color-danger); }
@media (prefers-reduced-motion: no-preference) { .heart { animation: beat 2.4s ease-in-out infinite; } }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.22); } 90% { transform: scale(1.05); } }

@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drift { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .request-panel, .art { animation: settle .7s cubic-bezier(.16, 1, .3, 1) both; }
  .art { animation-delay: .1s; }
  .enso-a { animation: draw 1.6s cubic-bezier(.5, .1, .3, 1) .2s both; }
  .enso-b { animation: draw .5s ease 1.4s both; }
  .m-a, .m-b { animation: drift 9s ease-in-out infinite alternate; }
  .m-b { animation-duration: 11s; animation-delay: -4s; }
}

@media (max-width: 860px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); }
  .request-panel { order: 2; max-width: 32rem; width: 100%; margin-inline: auto; }
  .art { order: 1; max-width: 240px; }
}
@media (max-width: 380px) {
  .choice { grid-template-columns: 22px minmax(0, 1fr); }
  .ico { display: none; }
}

/* sign-in dropdown in the nav bar */
.signin-menu { position: relative; }
.signin-menu summary { cursor: pointer; list-style: none; }
.signin-menu summary::-webkit-details-marker { display: none; }
.signin-menu[open] summary { background: var(--color-surface-2); }
.signin-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-m); background: var(--color-surface-1); box-shadow: 0 16px 40px #000a; }
.signin-pop a { display: block; padding: 11px 12px; border-radius: var(--radius-s); color: var(--color-text-strong); font-size: 14px; font-weight: 600; }
.signin-pop a:hover { background: var(--color-surface-2); }

/* the scene answers the choice: the matching mascot steps forward, the others rest */
.m { transition: scale .5s cubic-bezier(.16, 1, .3, 1), opacity .4s, filter .4s; }
.stage:has(input[value="board"]:checked):not(:has(input[value="spotify"]:checked)) .m-main,
.stage:has(input[value="board"]:checked):not(:has(input[value="spotify"]:checked)) .m-b,
.stage:has(input[value="spotify"]:checked):not(:has(input[value="board"]:checked)) .m-a,
.stage:has(input[value="spotify"]:checked):not(:has(input[value="board"]:checked)) .m-b { opacity: .38; filter: grayscale(.7) drop-shadow(0 12px 22px #0009); }
.stage:has(input[value="board"]:checked):not(:has(input[value="spotify"]:checked)) .m-a { scale: 1.45; }
.stage:has(input[value="spotify"]:checked):not(:has(input[value="board"]:checked)) .m-main { scale: 1.05; }
.record, .notes, .snaps { position: absolute; pointer-events: none; }
.record { inset: -7%; z-index: 0; border-radius: 50%; opacity: 0; scale: .8; transition: opacity .5s, scale .6s cubic-bezier(.16, 1, .3, 1);
  background:
        repeating-radial-gradient(circle, #232326 0 3px, #2f2f33 3px 4px),
    conic-gradient(from 20deg, transparent 0 8%, #ffffff3a 14%, transparent 24% 55%, #ffffff2a 64%, transparent 74%);
  box-shadow: 0 0 0 2px #3c3c41, 0 24px 60px #000c;
  background-blend-mode: normal, normal, normal;
}
.m { z-index: 1; }
.notes { inset: 0; z-index: 2; }
.notes i { position: absolute; width: 10%; color: var(--color-success); opacity: 0; transition: opacity .4s; }
.notes svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.notes .head { fill: currentColor; }
.notes i:nth-child(1) { right: 4%; top: 20%; }
.notes i:nth-child(2) { right: -4%; top: 40%; width: 8%; }
.notes i:nth-child(3) { right: 15%; top: 6%; width: 9%; }

.snaps { inset: 0; z-index: 3; }
.snap { position: absolute; width: 22%; padding: 3.5% 3.5% 9%; background: #f1ebde; border-radius: 2px; box-shadow: 0 10px 24px #000b; opacity: 0; translate: 0 -30px; rotate: 0deg; transition: opacity .3s, translate .55s cubic-bezier(.34, 1.56, .64, 1), rotate .55s cubic-bezier(.34, 1.56, .64, 1); }
.snap img { width: 100%; background: #e2dac8; }
.snap::before { content: ''; position: absolute; left: 50%; top: -7%; width: 38%; height: 14%; translate: -50% 0; background: #d8cba099; transform: rotate(-4deg); }
.snap.s1 { left: -7%; top: 46%; --r: -9deg; }
.snap.s2 { left: 3%; bottom: -5%; --r: 6deg; transition-delay: .08s; }
.snap.s3 { right: -4%; top: 3%; --r: 8deg; transition-delay: .16s; }

/* choice -> scene */
.stage:has(input[value="spotify"]:checked) .record { opacity: 1; scale: 1; }
.stage:has(input[value="spotify"]:checked) .notes i { opacity: 1; }
.stage:has(input[value="board"]:checked) .snap { opacity: 1; translate: 0 0; rotate: var(--r); }
.stage:has(input[value="board"]:checked) .enso { opacity: .55; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes note { 0% { translate: 0 14px; rotate: -8deg; opacity: 0; } 20% { opacity: .9; } 100% { translate: 10px -70px; rotate: 14deg; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .record { animation: spin 7s linear infinite; }
  .stage:has(input[value="spotify"]:checked) .notes i, .stage:has(input[value="both"]:checked) .notes i { animation: note 3.6s ease-out infinite; }
  .notes i:nth-child(2) { animation-delay: 1.2s !important; }
  .notes i:nth-child(3) { animation-delay: 2.4s !important; }
  .interest-options input:checked + .choice .ico { animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
}
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
