/* VESPERNA site pages (top, sign-up, home). Same palette as the table app: night ground, lantern amber. */
:root {
  --bg: #14161d;
  --surface: #1c1f28;
  --border: #2e3240;
  --text: #ece8df;
  --muted: #a9a59b;
  --amber: #e8a33d;
  --amber-soft: #2b2416;
  --amber-text: #f2c46d;
  --teal: #6cc3b5;
  --red: #f0a397;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 'Noto Sans JP', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
a { color: var(--amber-text); }
:focus-visible { outline: 2px solid var(--amber-text); outline-offset: 2px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.logo { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.12em; color: var(--amber); text-decoration: none; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.site-header .user { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.site-header .user:hover img, .site-header .user:hover .initial { box-shadow: 0 0 0 2px var(--amber); }
.site-header .user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.site-header .user .initial { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-text); font-weight: 700; font-size: 15px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 24px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }

.flash { max-width: 1040px; margin: 16px auto 0; padding: 10px 16px; border-radius: 10px; }
.flash.error { background: #2e1d1b; color: var(--red); }
.flash.ok { background: #1f2e2c; color: var(--teal); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; border: 1px solid #4a4f60; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--amber); border-color: var(--amber); color: #1a1408; }
.button.x { background: #ece8df; border-color: #ece8df; color: #111; }
.button.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button.ghost { font-weight: 400; }

/* Top page: a night table under lantern light. */
.is-top main { max-width: none; padding: 0; }
.is-top .site-header { position: absolute; inset: 0 0 auto; z-index: 5; border-bottom: none; background: linear-gradient(rgba(10, 11, 16, 0.6), transparent); }
.is-top .flash { position: relative; z-index: 6; }

/* First view: a table stretching into the dark, lit by one hanging lantern. */
.night {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, 100vh);
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: #07080c;
}
.night-sky { position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 70% at 50% 0%, #161a2b 0%, #0a0c13 55%, #07080c 100%); }
/* The table top: a grid laid flat and receding into the dark. */
.night-floor {
  position: absolute; z-index: -2; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(242, 196, 109, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 196, 109, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(64deg); transform-origin: 50% 0%;
  mask-image: radial-gradient(42% 70% at 64% 8%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%);
}
/* Lantern light: warm, wide, and breathing a little. */
.night-light {
  position: absolute; z-index: -1; left: 64%; top: 40%; width: 1100px; height: 1100px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 196, 110, 0.42) 0%, rgba(232, 163, 61, 0.18) 22%, rgba(232, 163, 61, 0.05) 45%, transparent 62%);
  animation: breathe 5s ease-in-out infinite;
}
.lantern { position: absolute; left: calc(64% - 90px); top: 0; width: 180px; height: 360px; filter: drop-shadow(0 0 30px rgba(255, 190, 100, 0.55)); animation: sway 7s ease-in-out infinite; transform-origin: 50% 0%; }
.lantern .flame { transform-origin: 100px 188px; animation: flicker 1.6s ease-in-out infinite; }
.motes i { position: absolute; left: var(--x); bottom: 30%; width: 3px; height: 3px; border-radius: 50%; background: #ffd9a0; opacity: 0; animation: rise var(--d, 9s) linear infinite; animation-delay: var(--t, 0s); }
.motes i:nth-child(1) { --x: 58%; --d: 9s; }
.motes i:nth-child(2) { --x: 62%; --d: 11s; --t: 2s; }
.motes i:nth-child(3) { --x: 67%; --d: 8s; --t: 4s; }
.motes i:nth-child(4) { --x: 70%; --d: 12s; --t: 1s; }
.motes i:nth-child(5) { --x: 60%; --d: 10s; --t: 6s; }
.motes i:nth-child(6) { --x: 66%; --d: 13s; --t: 3s; }
.motes i:nth-child(7) { --x: 73%; --d: 9s; --t: 7s; }
.motes i:nth-child(8) { --x: 55%; --d: 11s; --t: 5s; }

/* Dice and pawns on the table; shadows fall away from the lantern. */
.die { position: absolute; z-index: 1; filter: drop-shadow(-26px 18px 10px rgba(0, 0, 0, 0.75)); }
.d20 { left: calc(64% - 190px); bottom: 15%; width: 96px; transform: rotate(-12deg); }
.d20 .face { fill: #3b2a52; stroke: #c9a0dc; stroke-width: 2; }
.d20 .inner { fill: #5a3f78; stroke: #e3c6f0; stroke-width: 2; }
.d20 .edge { stroke: #c9a0dc; stroke-width: 1.5; fill: none; opacity: 0.8; }
.d20 text { font: 700 18px 'Shippori Mincho B1', serif; fill: #fff3dc; }
.d6 { left: calc(64% + 120px); bottom: 22%; width: 70px; transform: rotate(10deg); filter: drop-shadow(26px 18px 10px rgba(0, 0, 0, 0.75)); }
.d6 .top { fill: #f2ead8; } .d6 .left { fill: #c8bca4; } .d6 .right { fill: #a99d86; }
.d6 .pip { fill: #b2342b; } .d6 .pip.dim { fill: #3a3128; }
.pawn { position: absolute; z-index: 1; width: 26px; height: 46px; border-radius: 13px 13px 6px 6px; }
.pawn::before { content: ''; position: absolute; left: 3px; top: -16px; width: 20px; height: 20px; border-radius: 50%; background: inherit; }
.p1 { left: calc(64% - 40px); bottom: 26%; background: linear-gradient(90deg, #6cc3b5, #3f8c80); box-shadow: -22px 14px 12px rgba(0, 0, 0, 0.6); }
.p2 { left: calc(64% + 40px); bottom: 12%; background: linear-gradient(90deg, #e8a33d, #a8701f); box-shadow: 22px 14px 12px rgba(0, 0, 0, 0.6); }

.night-title {
  position: absolute; z-index: 2; right: max(24px, calc((100vw - 1240px) / 2)); top: 96px;
  writing-mode: vertical-rl; margin: 0;
  font-family: 'Shippori Mincho B1', serif; font-weight: 800;
  font-size: clamp(36px, min(4.6vw, 7vh), 72px); line-height: 1.5; letter-spacing: 0.14em; white-space: nowrap;
  color: #f6eee0; text-shadow: 0 0 30px rgba(255, 196, 110, 0.35), 0 2px 0 rgba(0, 0, 0, 0.6);
}
.night-title span { display: block; }
.night-title span + span { margin-top: 1.6em; }
.night-text { position: absolute; z-index: 2; left: max(24px, calc((100vw - 1240px) / 2)); bottom: 72px; max-width: 520px; }
.wordmark { margin: 0 0 18px; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.5em; color: var(--amber-text); }
.night-lead { margin: 0 0 14px; font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.5; color: #f6eee0; }
.night-lead span { display: inline-block; }
.night-sub { margin: 0 0 28px; color: #cfc8ba; font-size: 15px; }
.night .note { margin-top: 18px; font-size: 13px; letter-spacing: 0.04em; }
.is-top .site-header .logo { visibility: hidden; } /* the wordmark sits in the scene instead */

@keyframes flicker { 0%, 100% { transform: scale(1, 1); opacity: 1; } 20% { transform: scale(0.94, 1.06) skewX(1deg); } 40% { transform: scale(1.04, 0.95); opacity: 0.92; } 60% { transform: scale(0.97, 1.03) skewX(-1.5deg); } 80% { transform: scale(1.02, 0.98); opacity: 0.96; } }
@keyframes breathe { 50% { opacity: 0.82; } }
@keyframes sway { 50% { transform: rotate(1.2deg); } }
@keyframes rise { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.8; } 100% { opacity: 0; transform: translate(-30px, -420px); } }

/* The product still, now in its own section below the first view. */
.inside { padding: 96px max(24px, calc((100vw - 1100px) / 2)) 24px; }
.inside h2 { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.4; margin: 0 0 40px; }
.inside h2 span { display: inline-block; }
.inside .mock-window { transform: none; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); font-size: 13px; }

/* Product still */
.mock { perspective: 1400px; }
.mock-window {
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
  border-radius: 14px; overflow: hidden;
  background: #171a23; border: 1px solid #343949;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(232, 163, 61, 0.12);
}
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid #2b2f3c; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a3f52; }
.mock-body { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 320px; }
.mock-board {
  position: relative; background-color: #1e2a33;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.mock-room { position: absolute; left: 32px; top: 32px; width: 160px; height: 128px; border: 3px solid #5c6b78; border-radius: 3px; }
.token { position: absolute; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #14161d; box-shadow: 0 0 0 3px #14161d; }
.t1 { left: 64px; top: 64px; background: var(--amber); box-shadow: 0 0 0 3px #14161d, 0 0 18px rgba(232, 163, 61, 0.8); }
.t2 { left: 128px; top: 96px; background: var(--teal); }
.t3 { left: 96px; top: 128px; background: #8fa8e8; }
.npc { left: 224px; top: 160px; background: #3a3f52; color: var(--text); border: 2px dashed #e07a6b; }
.mock-roll { position: absolute; left: 16px; bottom: 64px; padding: 6px 12px; border-radius: 8px; background: rgba(20, 22, 29, 0.9); font-size: 12px; color: var(--muted); animation: roll 6s ease-in-out infinite; }
.mock-roll b { color: var(--teal); }
.mock-gauges { position: absolute; left: 16px; right: 16px; bottom: 16px; font-size: 11px; color: var(--muted); }
.mock-gauges div { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(20, 22, 29, 0.9); }
.mock-gauges span { color: var(--text); font-weight: 700; margin-right: 4px; }
.mock-gauges em { font-style: normal; }
.mock-gauges i { flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--teal) var(--v), #343846 var(--v)); }
.mock-gauges i.san { background: linear-gradient(90deg, var(--amber) var(--v), #343846 var(--v)); }
.mock-chat { border-left: 1px solid #2b2f3c; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; background: #1a1c24; }
.mock-chat p { margin: 0; padding: 8px 10px; border-radius: 8px; background: #22252f; line-height: 1.5; }
.mock-chat span { display: block; font-size: 11px; font-weight: 700; color: var(--amber-text); }
.mock-chat .pc span { color: var(--teal); }
.mock-chat .sys { background: transparent; border: 1px solid #2e3240; color: var(--muted); }
.mock-chat .voice { margin-top: auto; background: transparent; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.mock-chat .voice i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(108, 195, 181, 0.2); animation: pulse 2s ease-in-out infinite; }
@keyframes roll { 0%, 15% { opacity: 0; transform: translateY(6px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(108, 195, 181, 0); } }

/* Journey: the evening of one session, joined by a line of lanterns. */
.journey { padding: 96px max(24px, calc((100vw - 1100px) / 2)) 40px; }
.journey h2, .closing h2 { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.4; margin: 0 0 48px; }
.journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.journey ol::before { content: ''; position: absolute; left: 6px; right: 6px; top: 34px; height: 1px; background: linear-gradient(90deg, rgba(242, 196, 109, 0.1), rgba(242, 196, 109, 0.6), rgba(242, 196, 109, 0.1)); }
.journey li { position: relative; padding-top: 52px; }
.journey li::before { content: ''; position: absolute; left: 0; top: 28px; width: 13px; height: 13px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #14161d, 0 0 20px rgba(232, 163, 61, 0.9); }
.journey .when { position: absolute; top: 0; left: 0; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.journey strong { display: block; font-size: 18px; margin-bottom: 6px; }
.journey p { margin: 0; font-size: 14px; color: var(--muted); }
.sp { display: none; }
/* Japanese headings break only between phrases: each span is one phrase. */
.journey h2 span, .features h3 span, .closing h2 span { display: inline-block; }

/* Features */
.features { padding: 64px max(24px, calc((100vw - 1100px) / 2)); display: flex; flex-direction: column; gap: 56px; }
.features article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
.features article:nth-child(even) .feature-art { order: 2; }
.features h3 { font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.features p { margin: 0; color: #cfcac0; }
.feature-art { min-height: 180px; border-radius: 16px; border: 1px solid var(--border); background: radial-gradient(120% 100% at 0% 100%, rgba(232, 163, 61, 0.12), transparent 60%), var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.sheet { display: flex; align-items: baseline; gap: 14px; font-size: 18px; color: var(--muted); }
.sheet b { font-size: 44px; color: var(--text); font-variant-numeric: tabular-nums; }
.sheet b.down { color: var(--amber-text); }
.sheet-note { font-size: 13px; color: var(--teal); }
.art-command code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 18px; padding: 8px 16px; border-radius: 10px; background: #14161d; border: 1px solid #343949; color: var(--amber-text); }
.art-library { flex-direction: row; gap: 16px; }
.book { width: 140px; height: 180px; border-radius: 6px 12px 12px 6px; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #2b3245, #1c2130); border-left: 6px solid var(--amber); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); }
.book b { font-family: 'Shippori Mincho B1', serif; font-size: 16px; line-height: 1.4; }
.book span { font-size: 12px; color: var(--muted); }
.book.back { transform: rotate(4deg) translateY(8px); border-left-color: var(--teal); opacity: 0.85; }

.closing { text-align: center; padding: 96px 24px 120px; background: radial-gradient(50% 80% at 50% 100%, rgba(232, 163, 61, 0.22), transparent 70%); }
.closing h2 { margin-bottom: 32px; }
.closing .cta { justify-content: center; }

@media (max-width: 900px) {
  .journey ol { grid-template-columns: 1fr; gap: 28px; }
  .journey ol::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(rgba(242, 196, 109, 0.1), rgba(242, 196, 109, 0.6), rgba(242, 196, 109, 0.1)); }
  .journey li { padding: 0 0 0 32px; }
  .journey li::before { top: 6px; }
  .journey .when { position: static; display: block; }
  .features article { grid-template-columns: 1fr; gap: 20px; }
  .features article:nth-child(even) .feature-art { order: 0; }
  .sp { display: inline; }
}
@media (max-width: 760px) {
  /* Phone: the scene fills the upper part; objects stay left of the vertical title and above the text. */
  .night { min-height: 840px; }
  .night-title { top: 72px; font-size: 34px; }
  .night-floor { height: 60%; bottom: 30%; mask-image: radial-gradient(60% 70% at 35% 8%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 75%); }
  .night-light { left: 35%; top: 26%; width: 640px; height: 640px; }
  .lantern { left: calc(35% - 50px); width: 100px; height: 200px; }
  .d20 { left: 6%; bottom: auto; top: 330px; width: 58px; }
  .d6 { left: 44%; bottom: auto; top: 300px; width: 42px; }
  .p1 { left: 26%; bottom: auto; top: 300px; } .p2 { left: 34%; bottom: auto; top: 360px; }
  .night-text { left: 24px; right: 24px; bottom: 36px; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-board { min-height: 280px; }
  .mock-chat { border-left: none; border-top: 1px solid #2b2f3c; }
}
@media (prefers-reduced-motion: reduce) {
  .mock-roll, .mock-chat .voice i, .night-light, .lantern, .lantern .flame, .motes i { animation: none; }
  .motes { display: none; }
}

/* Panels: sign-up, home, legal */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-top: 32px; }
.panel.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.panel h1 { font-size: 24px; margin: 8px 0 12px; }
.panel h2 { font-size: 18px; margin: 0 0 8px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { border-radius: 50%; }
.form { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form input:not([type]), .form input[type='text'] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a3f52; border-radius: 8px; padding: 10px 12px; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
.form label.check input { width: 20px; height: 20px; margin-top: 3px; }
.errors { margin: 0; padding: 10px 16px 10px 32px; border-radius: 10px; background: #2e1d1b; color: var(--red); }
.identities { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.identities li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.provider { min-width: 72px; padding: 2px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; text-align: center; }
.provider.x { background: #ece8df; color: #111; }
.provider.discord { background: #5865f2; color: #fff; }
.muted { color: var(--muted); }
.logout { margin-top: 24px; text-align: right; }
.prose h2 { margin-top: 24px; }

.choose { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 8px; }
.new-table { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.new-table label { font-size: 14px; color: var(--muted); }
.new-table .row { display: flex; flex-wrap: wrap; gap: 8px; }
.new-table input { flex: 1 1 240px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a3f52; border-radius: 8px; padding: 10px 12px; }
.tables { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tables li { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.tables li a { flex: 1 1 280px; }
.tables .copy-invite { min-height: auto; }

.characters { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.characters li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); border-left: 4px solid var(--piece-color); background: var(--bg); }
.characters img, .characters .avatar { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.characters .avatar { display: grid; place-items: center; background: var(--piece-color); color: #14161c; font-weight: 700; }
.characters .body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.characters .stats { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 13px; }
.characters .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.characters .actions .button { min-height: auto; }
.tables a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none; }
.tables a:hover { border-color: var(--amber); }
.roles { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.roles legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.roles label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); }
.roles label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.roles small { display: block; color: var(--muted); font-size: 13px; }

/* Recruiting */
.site-header nav { display: flex; align-items: center; gap: 20px; }
.crumb { max-width: 1040px; margin: 24px auto 0; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--muted); }
.new-table-box { margin-top: 16px; }
.new-table-box > summary { list-style: none; display: inline-flex; }
.new-table-box > summary::-webkit-details-marker { display: none; }
.new-table-box[open] > summary { display: none; }
.table-form select, .table-form textarea, .table-form input[type='number'], .table-form input[type='datetime-local'], .form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a3f52; border-radius: 8px; padding: 10px 12px; }
.table-form input[name='title'] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a3f52; border-radius: 8px; padding: 10px 12px; }
.table-form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.table-form .row label { flex: 1 1 200px; }
.recruit-fields { display: flex; flex-direction: column; gap: 16px; }
.recruit-fields[hidden] { display: none; }
.recruits { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.recruits a { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none; }
.recruits a:hover { border-color: var(--amber); }
.recruits .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.recruits strong { font-size: 17px; }
.recruits .desc { font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
.description { padding: 14px 16px; border-radius: 10px; background: var(--bg); line-height: 1.8; overflow-wrap: anywhere; }
.state { padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-text); }
.block-form { margin-top: 24px; text-align: right; }
.link-button { background: none; border: none; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.applicants { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.applicants li { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.applicants li.pending { border-color: var(--amber); }
.applicants li.declined { opacity: 0.6; }
.applicants .message { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.applicants .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.applicants .button { min-height: 36px; }
.identities form { margin-left: auto; }
.form .roles label { flex-direction: row; align-items: center; gap: 12px; font-size: 15px; }
.form .roles input { flex: none; width: 18px; height: 18px; }

/* Finding a date */
.date-options { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.date-options li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.date-options li.chosen { border-color: var(--amber); background: var(--amber-soft); }
.date-options .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.date-options .tally { display: flex; gap: 12px; font-size: 14px; }
.date-options .tally .ok, .who-voted .a2 { color: var(--teal); }
.date-options .tally .maybe, .who-voted .a1 { color: var(--amber-text); }
.date-options .tally .ng, .who-voted .a0 { color: var(--muted); }
.date-options .answer { display: flex; gap: 6px; }
.date-options .answer label { cursor: pointer; }
.date-options .answer input { position: absolute; opacity: 0; pointer-events: none; }
.date-options .answer span { display: inline-grid; place-items: center; width: 48px; height: 40px; border-radius: 8px; border: 1px solid #3a3f52; font-size: 18px; }
.date-options .answer input:checked + span { border-color: var(--amber); background: var(--amber); color: #1a1408; font-weight: 700; }
.date-options .answer input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.who-voted { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.date-options .gm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.date-options .gm-actions .button { min-height: 36px; }
.add-option { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.add-option label { flex: 1 1 220px; }
.add-option .button { min-height: 44px; }
.date-fixed[hidden], .date-poll[hidden] { display: none; }
.date-poll { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.date-poll .candidates { display: flex; flex-wrap: wrap; gap: 10px 16px; align-self: stretch; }
.date-poll .candidates label { flex: 1 1 200px; }
.date-fixed input, .date-poll input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid #3a3f52; border-radius: 8px; padding: 10px 12px; }

/* Notifications */
.notices-link { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.notices-link:hover { background: var(--surface); }
.notices-link .icon { width: 22px; height: 22px; }
.notices-link .count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #1a1408; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.push-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; margin: 12px 0 20px; border-radius: 12px; background: var(--bg); }
.push-box .note { margin: 0; }
.push-box .push-status:empty { display: none; }
.notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notices a { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); text-decoration: none; }
.notices a:hover { border-color: var(--amber); }
.notices li.unread a { border-left: 4px solid var(--amber); }
.notices span { color: var(--muted); font-size: 14px; }
.notices time { font-size: 12px; }
