/* MAJIKITERU: the wordmark, then every video as an Instagram embed, newest first.
   Night colours: near-black, warm white, and one sodium-lamp orange for focus. */
:root {
  --bg: #0a0a0b;
  --bg-up: #111113;
  --tile: #18181b;
  --tile-hi: #222226;
  --ink: #f3f1ec;
  --ink-2: #aaa8a2;
  --ink-3: #77756f;
  --line: rgba(243, 241, 236, 0.12);
  --accent: #ff5a1f;
  --pad: clamp(16px, 4vw, 44px);
  --top-h: 52px;
  --card: 440px;
  --font: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  --display: "Dela Gothic One", "Noto Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; z-index: 60; left: 12px; top: -60px;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display); font-size: 15px; line-height: 1; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
}
.ig {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
}
.ig svg { width: 11px; height: 11px; opacity: 0.7; }
@media (hover: hover) { .ig:hover { border-color: var(--ink-3); } }
@media (max-width: 359px) { .ig .handle { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 9vw, 112px) var(--pad) clamp(32px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 90, 31, 0.13), rgba(255, 90, 31, 0) 60%),
    var(--bg-up);
  border-bottom: 1px solid var(--line);
}
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.34em; color: var(--ink-2); }
.mark {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 15vw, 196px); line-height: 0.92; letter-spacing: -0.005em;
  white-space: nowrap;
}
.stats { margin: 16px 0 0; min-height: 1.5em; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 860px) { .kicker { font-size: 12px; } .stats { font-size: 15px; } }

/* ---------------------------------------------------------------- the wall */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  justify-items: center; align-items: start;
  gap: 24px;
  max-width: calc(4 * var(--card) + 3 * 24px);
  margin: 0 auto;
  padding: 28px var(--pad) 8px;
  outline: none;
}
.card {
  width: 100%; max-width: var(--card);
  border-radius: 4px; overflow: hidden;
  background: var(--tile);
}
.card iframe {
  display: block; width: 100%; height: 680px;
  border: 0; background: transparent;
}
.card.sized { background: #fff; }
.card.skeleton {
  height: 680px; max-width: var(--card);
  background: linear-gradient(100deg, var(--tile) 35%, var(--tile-hi) 50%, var(--tile) 65%) 100% 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: 0 0; } }

.more { display: flex; justify-content: center; padding: 24px var(--pad) 8px; }
.notice { padding: 56px var(--pad) 72px; text-align: center; color: var(--ink-2); }
.notice p { margin: 0 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}

.foot {
  margin-top: 40px; padding: 36px var(--pad) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px; text-align: center;
}
.foot p { margin: 0 auto 10px; max-width: 46em; }
.foot a { color: var(--ink-2); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
