/* game.utautai.org lobby */
@import url("fonts.css?v=5587dbb1");

:root {
  --bg: #f7efe2;
  --paper: #fffaf0;
  --paper-strong: #f4dfb9;
  --ink: #171719;
  --ink-mid: #5b534b;
  --ink-soft: #918779;
  --line: #d9c8aa;
  --line-strong: #bca678;
  --ai: #1f5e70;
  --shu: #d94d34;
  --matcha: #647f51;
  --sakura: #eab8bf;
  --gold: #c99530;
  --shadow: 0 14px 34px rgba(61, 46, 23, .12), 0 2px 8px rgba(61, 46, 23, .06);
  --shadow-lift: 0 20px 54px rgba(61, 46, 23, .18), 0 5px 16px rgba(61, 46, 23, .08);

  --font-display: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Songti SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%; margin: 0; color: var(--ink); font-family: var(--font-body);
  line-height: 1.72; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(90deg, rgba(31,94,112,.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(31,94,112,.04) 1px, transparent 1px) 0 0 / 44px 44px,
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 9px),
    linear-gradient(115deg, rgba(217,77,52,.12) 0 14%, transparent 14% 100%),
    linear-gradient(295deg, rgba(31,94,112,.12) 0 15%, transparent 15% 100%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .98; letter-spacing: 0; }
strong { font-weight: 650; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 calc(56px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  min-height: 48px; margin-bottom: clamp(42px, 7vw, 78px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--ink-mid);
}
.brand, .nav { display: flex; align-items: center; gap: 14px; }
.brand { min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--shu); color: var(--paper); font-family: var(--font-display);
  font-size: 24px; line-height: 1; box-shadow: 5px 5px 0 var(--ai);
}
.nav a {
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 12px; border: 1px solid transparent; border-radius: 999px;
}
.nav a:hover { border-color: var(--line); background: rgba(255,255,255,.44); }

.hero {
  min-height: min(660px, calc(100vh - 148px));
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-bottom: clamp(44px, 7vh, 76px);
}
.hero-copy { align-self: center; }
.eyebrow {
  margin: 0 0 18px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--shu);
}
.hero h1 {
  max-width: 8.6em; font-size: clamp(58px, 11.5vw, 142px);
  color: var(--ai); text-wrap: balance;
  text-shadow: 3px 3px 0 rgba(201,149,48,.22);
}
.hero h1 span {
  display: block; color: var(--ink); font-size: .58em;
}
.lede {
  max-width: 38em; margin: clamp(22px, 3.6vw, 34px) 0 0;
  color: var(--ink-mid); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.9;
}
.hero-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: clamp(18px, 2.8vw, 28px);
}
.btn {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: rgba(255,250,240,.72); color: var(--ink); font-size: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn.primary { border-color: var(--shu); background: var(--shu); color: var(--paper); box-shadow: 4px 4px 0 var(--ai); }
.btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn.primary:hover { box-shadow: 5px 5px 0 var(--ai); }

.hero-board {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: clamp(52px, 5.5vw, 84px);
}
.feature-tile, .side-tile, .game-card {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1), border-color .28s ease;
}
.feature-tile:hover, .side-tile:hover, .game-card:hover {
  transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lift);
}
.feature-tile {
  min-height: 390px; display: grid; align-content: end; border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(ellipse at center, transparent 0 58%, rgba(31,94,112,.14) 59% 60%, transparent 61%) 0 0 / 52px 26px,
    #fef9ed;
}
.tile-label {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--paper);
  background: var(--shu); border-radius: 2px; padding: 7px 10px;
  box-shadow: 3px 3px 0 rgba(31,94,112,.28);
}
.color-board {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); transform: rotate(-4deg) scale(1.08);
}
.color-board i {
  display: block; background:
    linear-gradient(135deg, rgba(255,255,255,.42), transparent 48%),
    var(--c);
  border: 1px solid rgba(255,255,255,.5);
}
.feature-copy {
  position: relative; z-index: 1; display: grid; gap: 8px; max-width: 390px;
  padding: 18px; border-left: 4px solid var(--shu); background: rgba(255,250,240,.91);
}
.feature-copy strong, .side-tile strong, .game-card strong {
  display: block; font-family: var(--font-display); font-weight: 400; line-height: 1.05;
  letter-spacing: 0;
}
.feature-copy strong { font-size: clamp(34px, 5vw, 54px); }
.feature-copy small, .side-tile small {
  color: var(--ink-mid); font-size: 13.5px; line-height: 1.75;
}
.side-tile {
  min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-radius: 8px; padding: 18px 20px;
}
.side-tile strong { font-size: clamp(25px, 3.6vw, 34px); margin-bottom: 4px; }
.maimai {
  background:
    linear-gradient(135deg, rgba(31,94,112,.14), transparent 45%),
    linear-gradient(90deg, var(--paper), #fff2e2);
}
.disc {
  flex: 0 0 auto; width: 78px; height: 78px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 0 11px, transparent 12px),
    radial-gradient(circle, transparent 0 28px, rgba(23,22,28,.26) 29px 31px, transparent 32px),
    conic-gradient(from -30deg, var(--ai), var(--matcha), var(--gold), var(--shu), var(--ai));
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.58);
}
.empty {
  background: repeating-linear-gradient(-45deg, rgba(31,94,112,.06) 0 10px, transparent 10px 20px), rgba(255,250,240,.72);
  color: var(--ink-soft);
}
.plus {
  display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px;
  border: 1px dashed var(--line-strong); border-radius: 50%; font-size: 26px;
}

.games-section { padding-top: clamp(18px, 4vw, 42px); }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 20px;
  padding-top: 28px; border-top: 1px solid var(--line-strong);
}
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; color: var(--ink-soft); }
.section-head h2 { font-size: clamp(38px, 6vw, 68px); color: var(--ai); }
.count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.game-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.8vw, 28px); margin-top: clamp(22px, 4vw, 42px);
}
.game-card {
  min-height: 100%; display: flex; flex-direction: column; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(48,39,28,.05);
}
.game-card::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(188,166,120,.48);
}
.cover {
  display: block; width: 100%; aspect-ratio: 5 / 3; min-height: 190px;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.color-song-cover {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.color-song-cover span:nth-child(1) { background: #cfe3f0; }
.color-song-cover span:nth-child(2) { background: #fadde3; }
.color-song-cover span:nth-child(3) { background: #d3e6d5; }
.color-song-cover span:nth-child(4) { background: #e0d7ee; }
.color-song-cover span:nth-child(5) { background: #111114; }
.color-song-cover span:nth-child(6) { background: #f7d9d9; }
.color-song-cover span:nth-child(7) { background: #f4f2ee; }
.color-song-cover span:nth-child(8) { background: #f7edc4; }
.color-song-cover span:nth-child(9) { background: #f8e2c6; }
.color-song-cover span {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  background-image: linear-gradient(135deg, rgba(255,255,255,.38), transparent 58%);
}
.maimai-cover {
  position: relative; background:
    linear-gradient(135deg, #1f3558 0%, #694f99 46%, #e37b91 100%);
}
.maimai-cover .rails {
  position: absolute; inset: 16% 47% 16% 8%;
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(255,255,255,.54) 24% 26%, transparent 27%),
    linear-gradient(0deg, transparent 0 18%, rgba(255,255,255,.44) 19% 21%, transparent 22% 45%, rgba(255,255,255,.4) 46% 48%, transparent 49% 72%, rgba(255,255,255,.4) 73% 75%, transparent 76%);
  opacity: .8;
}
.maimai-cover .ring {
  position: absolute; width: 37%; aspect-ratio: 1; right: 12%; top: 50%;
  transform: translateY(-50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.76);
}
.maimai-cover .ring.small {
  width: 20%; right: 20.5%; border-color: rgba(255,255,255,.38);
}
.placeholder-cover {
  display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, rgba(31,94,112,.06) 0 12px, transparent 12px 24px), #fbf2e0;
}
.placeholder-cover span {
  font-family: var(--font-mono); color: var(--ink-soft); letter-spacing: .28em;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  color: var(--shu); margin-bottom: 10px;
}
.game-card strong { font-size: clamp(28px, 3.2vw, 36px); }
.desc {
  display: block; margin-top: 13px; color: var(--ink-mid); font-size: 14px;
  line-height: 1.85;
}
.meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: auto;
  padding-top: 20px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.meta i {
  font-style: normal; padding: 5px 7px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,.42);
}
.meta b { margin-left: auto; color: var(--ink); font-weight: 500; white-space: nowrap; }
.placeholder { color: var(--ink-soft); }

footer {
  display: flex; gap: 18px 34px; flex-wrap: wrap;
  margin-top: clamp(64px, 10vw, 110px); padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
footer .note {
  max-width: 54ch; font-family: var(--font-body); font-size: 12.5px;
  letter-spacing: 0; line-height: 1.85; text-transform: none;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .hero-copy { max-width: 760px; }
  .hero-board { max-width: 720px; }
  .hero-board { margin-top: 0; }
  .game-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1180px); padding-top: 14px; }
  .topbar { align-items: flex-start; margin-bottom: 34px; }
  .brand { font-size: 11px; letter-spacing: .08em; }
  .nav { gap: 6px; font-size: 11px; letter-spacing: .08em; }
  .nav a { padding: 0 7px; }
  .hero h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .feature-tile { min-height: 320px; }
  .feature-copy { padding: 14px; }
  .side-tile { min-height: 104px; padding: 15px; }
  .disc { width: 60px; height: 60px; }
  .section-head { grid-template-columns: 1fr; }
  .count { justify-self: start; }
  .game-grid { grid-template-columns: 1fr; }
  .cover { min-height: 170px; }
  .meta b { flex-basis: 100%; margin-left: 0; padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature-tile, .side-tile, .game-card { transition: none; }
}
