body { min-height: 100vh; overflow-x: hidden; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 56px;
  overflow: hidden;
}
.nav { width: 100%; max-width: 1080px; display: flex; justify-content: space-between; align-items: baseline; }
.mark { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.mark em { color: var(--ink-2); }
.date { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.title-slot { width: 100%; flex: none; margin-top: clamp(40px, 11vh, 120px); }
.letters { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

.ltile {
  position: absolute; left: 0; top: 0;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  pointer-events: auto; touch-action: none; cursor: grab;
  perspective: 600px; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.ltile.grab { cursor: grabbing; }
.ltile .face {
  position: absolute; inset: 0; border-radius: 12%;
  display: grid; place-items: center;
  font-weight: 600; font-size: calc(var(--s) * .5); letter-spacing: -.02em;
  background: linear-gradient(165deg, #f6efdf 0%, var(--ivory) 55%, #e2d6bc 100%);
  color: var(--ivory-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 0 rgba(0, 0, 0, .08),
    0 1px 1px rgba(0, 0, 0, .25),
    0 calc(var(--s) * .12) calc(var(--s) * .3) rgba(0, 0, 0, .28);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.ltile .face sub {
  position: absolute; right: 11%; bottom: 9%;
  font-size: calc(var(--s) * .16); font-weight: 600; line-height: 1; opacity: .7;
}
.ltile.grab .face { transform: scale(1.06); }
.ltile.present .face { background: var(--present); color: #fff; }
.ltile.correct .face { background: var(--correct); color: #fff; }
.ltile.absent .face { background: #55555c; color: #fff; }
.ltile.flipping .face { animation: flip .4s ease-in-out; }
@keyframes flip { 50% { transform: rotateX(-90deg); } }

.intro { position: relative; z-index: 2; text-align: center; max-width: 640px; margin-top: 36px; }
.intro h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 8.4vw, 60px); line-height: 1.04; letter-spacing: -.02em;
}
.intro h1 em { color: var(--ink-2); }
.sub { margin: 16px auto 0; max-width: 420px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Index ---------- */
.index { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }
.index-head {
  display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.entry {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(16px);
}
.entry.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.entry.live { grid-template-columns: 34px 1fr auto; }
.num { align-self: start; padding-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.entry h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7vw, 44px); letter-spacing: -.015em; line-height: 1.1; }
.entry p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 520px; }
.entry .status { margin-top: 12px; color: var(--ink); font-weight: 600; font-size: 14px; display: flex; align-items: baseline; gap: 8px; }
.entry .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--correct); box-shadow: 0 0 0 3px color-mix(in srgb, var(--correct) 25%, transparent); }
.entry .arrow { display: none; }
.entry.soon h2 { color: var(--ink-2); }
.tag { align-self: start; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px; }

.entry-art { display: grid; gap: 4px; justify-self: end; }
.entry-art .r { display: flex; gap: 4px; }
.entry-art .t {
  width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--on-mark);
  background: var(--absent);
}
.entry-art.grid .t { width: 14px; height: 14px; border-radius: 3px; }
.entry-art .t.correct { background: var(--correct); }
.entry-art .t.present { background: var(--present); }
.entry-art .t.empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); color: var(--ink); }
.entry-art .t.flip { animation: flip .5s ease-in-out; }

@media (hover: hover) {
  .entry.live { transition: padding .35s var(--ease); }
  .entry.live:hover { padding-left: 10px; padding-right: 10px; }
  .entry.live .arrow { display: block; width: 22px; height: 22px; color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
  .entry.live:hover .arrow { transform: translateX(4px); color: var(--ink); }
  .entry.live { grid-template-columns: 34px 1fr auto auto; }
}
@media (max-width: 520px) {
  .entry.live { grid-template-columns: 34px 1fr; }
  .entry.live .entry-art { grid-column: 2; justify-self: start; margin-top: 4px; }
}

.foot {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 20px calc(36px + env(safe-area-inset-bottom));
  font-size: 12px; color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .entry { opacity: 1; transform: none; }
}
