/* Homepage extras. Colors stay on site.css: dark background, light text. */

.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.stickers span {
  position: absolute;
  font-size: 1.6rem;
  animation: bob 5.5s ease-in-out infinite;
}
.stickers span:nth-child(1) { top: 12%; left: 46%; }
.stickers span:nth-child(2) { top: 8%; right: 4%; font-size: 1.2rem; animation-delay: .6s; }
.stickers span:nth-child(3) { bottom: 12%; left: 52%; animation-delay: 1s; }
.stickers span:nth-child(4) { top: 38%; right: 1%; animation-delay: .3s; }
.stickers span:nth-child(5) { bottom: 18%; right: 6%; animation-delay: 1.3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(7deg); }
}

.stage, .shot-slider { position: relative; z-index: 2; }
.stage, .phone-shot { width: min(100%, 380px); }
.hero .stage { justify-self: end; margin-right: clamp(0px, 4vw, 40px); }
.phone-shot { margin: 1.4rem auto 0; }
.stage-frame, .shot-frame {
  background: linear-gradient(180deg, #1c2230 0%, #0c1018 18%, #0c1018 100%);
  border: 2px solid #3a4458;
  border-radius: 36px;
  padding: 14px 12px 16px;
  box-shadow:
    inset 0 0 0 1px #000,
    0 22px 40px rgba(0, 0, 0, .5);
}
.stage-frame::before, .shot-frame::before {
  content: '';
  display: block;
  width: 84px;
  height: 7px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: #07090e;
  box-shadow: inset 0 0 0 1px #2a3142;
}
.stage-frame img, .shot-frame img {
  width: 100%;
  height: auto;
  display: none;
  object-fit: contain;
  border-radius: 14px;
  background: #07090e;
}
.stage-frame img.is-on, .shot-frame img.is-on { display: block; }
.hero .stage { width: min(100%, 340px); }
.hero .stage-frame {
  display: flex;
  flex-direction: column;
  height: min(72vh, 640px);
  box-sizing: border-box;
}
.hero .stage-screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.hero .stage-shots {
  position: relative;
  flex: 2 1 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #07090e;
}
.hero .stage-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.hero .stage-cap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
  padding: 10px 8px 6px;
  gap: 3px;
}
.hero .stage-cap strong { font-size: .8rem; }
.hero .stage-cap span { font-size: .72rem; line-height: 1.35; }
.stage-cap, .shot-cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px 2px;
  min-height: 6.4rem;
}
.yt-card {
  margin: 1.5rem auto 0;
  max-width: 760px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--bdr);
  border-radius: 18px;
  padding: 12px 12px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}
.yt-cap {
  margin: .7rem .35rem .15rem;
  color: var(--muted);
  font-size: .95rem;
}
.stage-cap strong, .shot-cap strong {
  font-family: var(--fh);
  font-size: .92rem;
  letter-spacing: .3px;
  color: var(--txt);
}
.stage-cap span, .shot-cap span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.stage-dots, .shot-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .85rem;
  justify-content: center;
}
.stage-dots button, .shot-dots button {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 1px solid var(--bdr);
  background: rgba(0, 0, 0, .35);
  color: var(--muted);
  border-radius: 999px;
  padding: .4rem .75rem;
  cursor: pointer;
}
.stage-dots button.is-on, .shot-dots button.is-on {
  background: var(--dim2);
  color: var(--cyan);
  border-color: var(--cyan);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.room-card:nth-child(1),
.room-card:nth-child(2) { grid-column: span 3; }
.room-card:nth-child(3),
.room-card:nth-child(4),
.room-card:nth-child(5) { grid-column: span 2; }
.room-card, .motion-card, .play-card, .say-card, .studio-card, .info-card {
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  color: var(--txt);
  overflow: hidden;
}
.room-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.room-card div, .studio-card { padding: .95rem 1rem 1.1rem; }
.room-card h3, .play-card h3, .motion-card strong, .say-card strong, .studio-card strong {
  font-family: var(--fh);
  font-size: 1rem;
  letter-spacing: .4px;
  color: var(--txt);
}
.room-card p, .motion-card p, .play-card p, .studio-card p, .info-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.room-kicker, .motion-token, .play-move, .say-where {
  display: inline-block;
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .2rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.chip {
  background: var(--dim);
  border: 1px solid var(--bdr);
  color: var(--txt);
  border-radius: 999px;
  padding: .4rem .8rem;
  font-size: .92rem;
}
.house-note, .catalog-note { margin-top: 1.1rem; color: var(--muted); max-width: 760px; }
.catalog-note a { color: var(--cyan); }

.motion-grid, .play-grid, .say-grid {
  display: grid;
  gap: .9rem;
  margin-top: 1.5rem;
}
.motion-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.play-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.say-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.motion-card, .play-card, .say-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  min-width: 0;
  transition: border-color .2s, transform .2s;
}
.motion-card:hover, .say-card:hover, .play-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}
.say-phrase { font-weight: 700; color: var(--txt); }
.say-tr { color: var(--pink); font-weight: 700; font-size: .92rem; }
.play-emoji { font-size: 1.7rem; line-height: 1; }
.play-icon { width: 72px; height: 72px; object-fit: contain; align-self: flex-start; }
.game-new {
  display: inline-block;
  margin-right: .45rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff7ed;
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .8px;
  vertical-align: middle;
}
.game-ws { border-color: #f472b6bb; }
.game-chess { border-color: #f5d78ecc; }
.game-sudoku { border-color: #5eead4cc; }
.game-rally { border-color: #39ff14aa; }
.game-gomoku { border-color: #86efacca; }
.game-wh { border-color: #22d3eeaa; }
.game-circuit { border-color: #facc15cc; }
.game-rebotro { border-color: #22d3eecc; }
.studio-card {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
}
.say-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.4rem; }
.say-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.say-tab {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--bdr);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: .42rem .8rem;
  cursor: pointer;
}
.say-tab.is-on { color: var(--cyan); border-color: var(--cyan); background: var(--dim2); }
#saySearch {
  margin-left: auto;
  border: 1px solid var(--bdr);
  background: rgba(0, 0, 0, .35);
  color: var(--txt);
  border-radius: 999px;
  padding: .5rem .9rem;
  font-family: var(--fb);
  font-size: 1rem;
  min-width: min(100%, 220px);
}
.say-count { margin-top: .7rem; font-family: var(--fm); font-size: .72rem; letter-spacing: 1px; color: var(--muted); }
.say-empty { color: var(--muted); }

.shot-block { margin-top: 1.6rem; }
.emo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}
.emo-phone {
  width: 240px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid var(--bdr);
  border-radius: 28px;
  padding: 18px 10px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.emo-phone .screen-label { position: static; display: block; text-align: center; margin-top: 4px; }

.face-slider { margin-top: 1.4rem; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; }
.face-viewport { overflow: hidden; }
.face-track { display: flex; gap: .75rem; transition: transform .45s ease; }
.face-track .face-cell { flex: 0 0 112px; }
.face-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  background: rgba(0, 0, 0, .35);
  color: var(--cyan);
  font-size: 1.2rem;
  cursor: pointer;
}
.face-nav:hover { border-color: var(--cyan); background: var(--dim2); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.info-card { padding: 1.15rem 1.2rem 1.25rem; }
.info-card h3 { font-family: var(--fh); font-size: .95rem; letter-spacing: .5px; color: var(--cyan); margin-bottom: .35rem; }

body.cmd-view { padding-top: 88px; }
.view-wrap { max-width: 880px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.view-back { color: var(--cyan); font-weight: 700; text-decoration: none; }
.view-count {
  font-family: var(--fh);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--cyan);
  line-height: 1;
  margin: .4rem 0 .6rem;
}
.view-say {
  font-family: var(--fh);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: .7rem 0 .25rem;
  color: var(--txt);
}
.view-tr { color: var(--pink); font-weight: 700; font-size: 1.15rem; }
.view-token {
  display: inline-block;
  margin-top: .8rem;
  border: 1px solid var(--bdr);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-family: var(--fm);
  font-size: .75rem;
  color: var(--cyan);
}
.view-blurb { margin-top: 1rem; font-size: 1.05rem; line-height: 1.65; color: var(--muted); max-width: 42rem; }
.view-list { display: flex; flex-direction: column; gap: .45rem; margin-top: 1rem; }
.view-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: .75rem .9rem;
  text-decoration: none;
  color: var(--txt);
  font-weight: 700;
}
.view-list a span { color: var(--muted); font-weight: 600; }
.view-group { margin-top: 1.6rem; font-family: var(--fh); font-size: 1.15rem; color: var(--cyan); }

@media (max-width: 900px) {
  .hero .stage, .phone-shot { justify-self: center; margin-right: auto; margin-left: auto; }
  .emo-layout, .studio-card { grid-template-columns: 1fr; flex-direction: column; }
  #saySearch { margin-left: 0; width: 100%; }
  .stickers { display: none; }
  .face-track .face-cell { flex-basis: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .stickers span, .face-track { animation: none; transition: none; }
}
