/* =========================================================================
   Google Cloud conference kiosk (presentation mockup)
   Direction: Material 3. Light surfaces, tonal colour containers, a search
   bar welcome, filter chips, a bento grid, and bottom sheets for detail.
   ========================================================================= */

:root {
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", "Roboto", system-ui, sans-serif;

  --blue: #1a73e8;
  --blue-strong: #0b57d0;
  --blue-container: #d3e3fd;
  --on-blue-container: #041e49;

  --red: #ea4335;
  --red-container: #fce8e6;
  --on-red-container: #8c1d18;

  --yellow: #fbbc04;
  --yellow-container: #feefc3;
  --on-yellow-container: #5f4300;

  --green: #34a853;
  --green-container: #ceead6;
  --on-green-container: #0d652d;

  --surface: #ffffff;
  --surface-container: #f0f4f9;
  --surface-container-high: #e9eef6;
  --on-surface: #1f1f1f;
  --on-surface-variant: #444746;
  --outline: #c4c7c5;

  --gemini: linear-gradient(135deg, #4285f4 0%, #9b72cb 55%, #d96570 100%);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body, button, h1, h2, strong, span, p, li {
  -webkit-user-select: none;
  user-select: none;
}

img { -webkit-user-drag: none; user-drag: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1:focus, h2:focus { outline: none; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--on-surface);
}

.dots { display: inline-flex; gap: 0.16em; }
.dots i { width: 0.3em; height: 0.3em; border-radius: 50%; }
.dots i:nth-child(1) { background: #4285f4; }
.dots i:nth-child(2) { background: #ea4335; }
.dots i:nth-child(3) { background: #fbbc04; }
.dots i:nth-child(4) { background: #34a853; }

.wordmark-sub { color: var(--on-surface-variant); font-weight: 400; }

/* ---------------------------------------------------------------- screens */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.screen.is-active { display: flex; animation: fade-in 320ms var(--ease) both; }

/* ---------------------------------------------------------------- welcome */

.welcome-screen {
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vh, 80px) clamp(24px, 4vw, 80px);
  text-align: center;
  background: var(--surface);
}

/* Soft colour fields in the four brand colours, drifting slowly. */
.blob {
  position: absolute;
  width: clamp(320px, 34vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-blue   { background: #4285f4; top: -14%; left: -8%; }
.blob-red    { background: #ea4335; top: -18%; right: -6%; animation-delay: -4s; }
.blob-yellow { background: #fbbc04; bottom: -22%; left: 12%; animation-delay: -8s; }
.blob-green  { background: #34a853; bottom: -18%; right: 6%; animation-delay: -12s; }

.welcome-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.8vh, 36px);
  width: min(100%, 980px);
}

.welcome-inner .wordmark { font-size: clamp(34px, 3vw, 54px); }

.welcome-inner h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.6vw, 86px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.gemini-text {
  background: var(--gemini);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: clamp(72px, 8.4vh, 96px);
  padding: 0 14px 0 30px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 18px rgba(60, 64, 67, 0.15);
  font-size: clamp(20px, 1.6vw, 28px);
  color: var(--on-surface-variant);
  text-align: left;
  transition: box-shadow 200ms var(--ease), transform 160ms var(--ease);
}

.search-pill:active { transform: scale(0.99); box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 8px 28px rgba(60, 64, 67, 0.22); }

.search-pill .icon { font-size: 1.3em; color: var(--blue); }

.search-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
}

.search-go {
  display: grid;
  place-items: center;
  width: clamp(48px, 5.6vh, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-strong);
  color: #fff;
}

.search-go .icon { color: #fff; font-size: 0.95em; stroke-width: 2.4; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.chip:active { transform: scale(0.97); background: var(--surface-container-high); }

.chip .icon { font-size: 1.15em; color: var(--blue); }

.welcome-note {
  margin: 0;
  font-size: clamp(14px, 0.9vw, 16px);
  color: var(--on-surface-variant);
}

/* ---------------------------------------------------------- top app bar */

.app-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 96px;
  padding: 0 clamp(20px, 2.6vw, 48px);
  background: var(--surface);
}

.app-bar .wordmark { font-size: clamp(22px, 1.6vw, 30px); }

.app-bar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 1.8vw, 34px);
  font-weight: 500;
}

.app-bar-spacer { flex: 1; }

.filter-chips { display: flex; gap: 10px; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: background-color 160ms var(--ease);
}

.filter-chip .icon { display: none; font-size: 1.1em; stroke-width: 2.6; }

.filter-chip.is-selected {
  border-color: transparent;
  background: var(--blue-container);
  color: var(--on-blue-container);
}

.filter-chip.is-selected .icon { display: block; }

.icon-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-container);
  font-size: 26px;
  color: var(--on-surface);
}

.outlined-button {
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-pill);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 500;
  color: var(--blue-strong);
}

.icon-button:active,
.outlined-button:active,
.filter-chip:active { transform: scale(0.96); }

/* --------------------------------------------------------------- home */

.home-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 28px);
  padding: 0 clamp(20px, 2.6vw, 48px) clamp(20px, 2.6vh, 40px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.home-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 58px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.home-heading p {
  margin: 6px 0 0;
  font-size: clamp(16px, 1.1vw, 21px);
  color: var(--on-surface-variant);
}

.bento {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, 1fr);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.2vw, 20px);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(20px, 1.8vw, 32px);
  border-radius: var(--radius-xl);
  text-align: left;
  overflow: hidden;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
  animation: rise 460ms var(--ease) both;
}

.tile:active { transform: scale(0.98); filter: brightness(0.96); }

.tile.wide { grid-column: span 2; }
.tile.hero { grid-column: span 2; grid-row: span 2; }
.tile.banner { grid-column: span 4; }

.tile-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 4vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: clamp(26px, 2vw, 36px);
}

.tile strong {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.6vw, 30px);
  font-weight: 500;
  line-height: 1.15;
}

.tile-sub {
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.4;
  opacity: 0.82;
}

.tile-arrow {
  position: absolute;
  right: clamp(16px, 1.4vw, 26px);
  bottom: clamp(16px, 1.4vw, 26px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  font-size: 22px;
}

.tile.has-arrow strong,
.tile.has-arrow .tile-sub { padding-right: 60px; }

.tone-blue   { background: var(--blue-container);   color: var(--on-blue-container); }
.tone-red    { background: var(--red-container);    color: var(--on-red-container); }
.tone-yellow { background: var(--yellow-container); color: var(--on-yellow-container); }
.tone-green  { background: var(--green-container);  color: var(--on-green-container); }
.tone-plain  { background: var(--surface-container); color: var(--on-surface); }

.tone-blue .tile-icon   { color: var(--blue-strong); }
.tone-red .tile-icon    { color: #c5221f; }
.tone-yellow .tile-icon { color: #b06000; }
.tone-green .tile-icon  { color: #188038; }
.tone-plain .tile-icon  { color: var(--blue-strong); }

/* The hero tile carries Gemini's gradient on a big sparkle. */
.tile.hero .hero-mark {
  position: absolute;
  right: -4%;
  top: -6%;
  width: 58%;
  aspect-ratio: 1;
  opacity: 0.95;
}

.tile.hero strong { font-size: clamp(30px, 2.6vw, 50px); max-width: 12ch; }
.tile.hero .tile-sub { max-width: 28ch; font-size: clamp(16px, 1.15vw, 21px); }

/* Workspace tiles share a four-colour top edge. */
.tile.workspace::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc04 50% 75%, #34a853 75%);
}

.tile.video-tile {
  flex-direction: row;
  align-items: center;
  gap: clamp(18px, 1.8vw, 32px);
  background: #1f1f1f;
  color: #fff;
}

.video-tile-thumb {
  position: relative;
  height: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-tile-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-tile-thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
  font-size: 24px;
}

.video-tile-thumb .play .icon { fill: currentColor; stroke: none; margin-left: 3px; }

.video-tile strong { margin-top: 0; }

.video-tile .tile-arrow { background: rgba(255, 255, 255, 0.14); color: #fff; }

.tile.is-filtered { display: none; }

/* --------------------------------------------------------------- videos */

.watch-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 460px);
  gap: clamp(18px, 1.8vw, 32px);
  padding: 0 clamp(20px, 2.6vw, 48px) clamp(20px, 2.6vh, 40px);
}

.watch-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }

.player {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

.player iframe { display: block; width: 100%; height: 100%; border: 0; }

.watch-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 32px);
  font-weight: 500;
}

.channel-row { display: flex; align-items: center; gap: 12px; color: var(--on-surface-variant); font-size: clamp(14px, 1vw, 18px); }

.channel-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-container);
}

.channel-avatar .dots { font-size: 18px; gap: 2px; }

.up-next { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.up-next-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 500;
}

.up-next-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.up-next-item {
  display: grid;
  grid-template-columns: clamp(130px, 10vw, 180px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 8px;
  border-radius: 16px;
  text-align: left;
  transition: background-color 160ms var(--ease);
}

.up-next-item:active { background: var(--surface-container); }

.up-next-item.is-playing { background: var(--blue-container); }

.up-next-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-container-high);
}

.up-next-thumb img { width: 100%; height: 100%; object-fit: cover; }

.up-next-item strong {
  display: block;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 500;
  line-height: 1.3;
}

.up-next-item span { display: block; margin-top: 4px; font-size: clamp(12px, 0.8vw, 14px); color: var(--on-surface-variant); }

.video-offline {
  display: grid;
  place-content: center;
  gap: 10px;
  height: 100%;
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------- bottom sheet */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.32);
  animation: fade-in 220ms var(--ease) both;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(1180px, 94vw);
  max-height: 88vh;
  padding: 14px clamp(24px, 2.6vw, 48px) clamp(20px, 2.4vh, 36px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  animation: sheet-up 380ms var(--ease) both;
}

.sheet-handle {
  flex: none;
  width: 40px;
  height: 5px;
  margin: 0 auto clamp(14px, 1.8vh, 24px);
  border-radius: 3px;
  background: var(--outline);
}

.sheet-header {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.sheet-header-text { flex: 1; min-width: 0; }

.assist-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  font-size: clamp(13px, 0.85vw, 15px);
  font-weight: 500;
  color: var(--on-surface-variant);
}

.assist-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

.sheet h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 2.8vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.sheet-subhead {
  margin: 10px 0 0;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.sheet-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(72px, 6vw, 108px);
  aspect-ratio: 1;
  border-radius: 28px;
  font-size: clamp(36px, 3vw, 54px);
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(18px, 2.2vh, 30px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.sheet-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-body li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--surface-container);
  font-size: clamp(15px, 1.08vw, 20px);
  line-height: 1.35;
}

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-container);
  color: var(--blue-strong);
  font-size: 18px;
}

.check .icon { stroke-width: 2.8; }

.sheet-cues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cue {
  display: grid;
  grid-template-columns: clamp(140px, 12vw, 210px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  text-align: left;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.cue:active { transform: scale(0.98); background: var(--surface-container); }

.cue-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.cue-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cue-thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1f1f;
  font-size: 18px;
}

.cue-thumb .play .icon { fill: currentColor; stroke: none; margin-left: 2px; }

.cue strong { display: block; font-size: clamp(15px, 1.05vw, 19px); font-weight: 500; line-height: 1.3; color: var(--on-surface); }
.cue-meta { display: block; margin-top: 4px; font-size: clamp(13px, 0.85vw, 15px); color: var(--blue-strong); font-weight: 500; }

.role-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  border-radius: 20px;
  background: var(--surface-container);
  text-align: center;
}

.role-avatar {
  display: grid;
  place-items: center;
  width: clamp(72px, 6vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: clamp(32px, 2.6vw, 48px);
}

.role strong { font-size: clamp(15px, 1.05vw, 19px); font-weight: 500; }
.role span { font-size: clamp(13px, 0.88vw, 16px); color: var(--on-surface-variant); }

.sheet-actions {
  flex: none;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: clamp(16px, 2vh, 26px);
}

.filled-button,
.text-button {
  height: 56px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 500;
}

.filled-button { background: var(--blue-strong); color: #fff; }
.text-button { color: var(--blue-strong); }

.filled-button:active,
.text-button:active { transform: scale(0.96); }

/* ---------------------------------------------------------------- theater */

.theater {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vh, 40px);
  background: rgba(0, 0, 0, 0.82);
  animation: fade-in 200ms var(--ease) both;
}

.theater-inner { display: flex; flex-direction: column; gap: 14px; max-width: 100%; }

.theater-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; }

.theater-title { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 1.5vw, 30px); font-weight: 500; }

.theater-close {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
}

.theater-frame {
  height: min(76vh, calc(94vw * 9 / 16));
  aspect-ratio: 16 / 9;
  max-width: 94vw;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.theater-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------- snackbar */

.snackbar {
  position: fixed;
  left: clamp(20px, 2.6vw, 48px);
  bottom: clamp(20px, 3vh, 40px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 10px 12px 10px 24px;
  border-radius: 8px;
  background: #313033;
  color: #f4eff4;
  font-size: clamp(15px, 1vw, 18px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: snack-in 260ms var(--ease) both;
}

.snackbar button {
  height: 48px;
  padding: 0 16px;
  border-radius: 6px;
  color: #a8c7fa;
  font-weight: 500;
  font-size: inherit;
}

/* ----------------------------------------------------------- build stamp */

.build-stamp {
  position: fixed;
  right: 10px;
  bottom: 6px;
  z-index: 70;
  color: rgba(68, 71, 70, 0.55);
  font-size: 12px;
  pointer-events: none;
}

#debug-log {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  max-height: 40vh;
  overflow-y: auto;
  padding: 12px 16px;
  background: rgba(120, 12, 24, 0.94);
  color: #fff;
  font: 16px/1.4 monospace;
}

/* -------------------------------------------------------------- animation */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes sheet-up {
  from { transform: translate3d(-50%, 100%, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes snack-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

@keyframes blink { 50% { opacity: 0; } }

.bento .tile:nth-child(2) { animation-delay: 40ms; }
.bento .tile:nth-child(3) { animation-delay: 80ms; }
.bento .tile:nth-child(4) { animation-delay: 120ms; }
.bento .tile:nth-child(5) { animation-delay: 160ms; }
.bento .tile:nth-child(6) { animation-delay: 200ms; }
.bento .tile:nth-child(7) { animation-delay: 240ms; }
.bento .tile:nth-child(8) { animation-delay: 280ms; }
.bento .tile:nth-child(9) { animation-delay: 320ms; }

/* ------------------------------------------------------------- responsive */

@media (max-aspect-ratio: 1/1) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); }
  .tile.banner { grid-column: span 2; }
  .watch-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .player { flex: none; aspect-ratio: 16 / 9; }
  .sheet-body ul,
  .role-row { grid-template-columns: 1fr; }
  .filter-chips { display: none; }
}

@media (max-width: 1100px) {
  .filter-chip { padding: 0 14px; }
}

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