/* ================================
   Games — a recreation of a late-2000s console channel menu.
   Health & safety screen → channel grid with a clock bar → channel
   preview → full-screen channel with a HOME button and HOME Menu.
   The original page's sections live inside the channel screens
   unchanged (they keep their dark styles from styles.css).
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

:root {
  --menu-bg: #eaeaea;
  --tile-border: #c4c4c4;
  --accent: #34beed;
  --accent-deep: #0f8fc4;
  --bar-top: #e4e4e4;
  --bar-bottom: #c3c3c3;
  --clock: #9b9b9b;
  --round: 'M PLUS Rounded 1c', 'Nunito', 'Segoe UI', sans-serif;
  --bar-h: 150px;
  /* Pointer hand, hotspot on the fingertip */
  --hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Cpath d='M13 3c2.2 0 4 1.8 4 4v13l1-.2V16c0-2 1.6-3.4 3.5-3.4S25 14 25 16v4l.6-.1c.4-1.7 1.9-2.9 3.6-2.9 2 0 3.6 1.6 3.6 3.6v2.2c.5-.8 1.5-1.4 2.6-1.4 1.8 0 3.1 1.4 3.1 3.2V33c0 7.4-6 13-13.3 13h-4.2c-4.2 0-8-2.2-10.2-5.8L3.3 30.6c-1-1.7-.4-3.8 1.2-4.8 1.5-.9 3.5-.5 4.5.9L9 27.6V7c0-2.2 1.8-4 4-4z' fill='%23fff' stroke='%23158fc0' stroke-width='2.2' stroke-linejoin='round'/%3E%3Ctext x='24' y='38' font-family='Arial' font-weight='bold' font-size='10' fill='%23158fc0'%3E1%3C/text%3E%3C/svg%3E") 13 3, pointer;
}

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

body.wii {
  background: #000;
  font-family: var(--round);
  overflow: hidden;
  animation: none;
}

@media (pointer: fine) {
  body.wii, body.wii * { cursor: var(--hand) !important; }
  body.wii input, body.wii textarea { cursor: text !important; }
}

/* ================================
   Health & safety screen
   ================================ */
.hs {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 8vw;
  background: #fff;
  color: #111;
  font-family: var(--round);
  transition: opacity 0.45s ease;
}

.hs[hidden] { display: none; }
.hs.fade { opacity: 0; pointer-events: none; }

.hs-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 3vh;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hs-title svg { width: 1.3em; height: 1.3em; flex: none; }

.hs p {
  margin: 0 0 2.2vh;
  max-width: 1000px;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.hs-press {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: #333;
  animation: pulse 1.6s ease-in-out infinite;
}

.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin: 0 0.15em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9f6ff, #b9dcf1 70%);
  border: 2px solid #7fb4d3;
  color: #2a6f9a;
  font-weight: 800;
  font-size: 0.9em;
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ================================
   Channel menu
   ================================ */
.menu {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 4px),
    linear-gradient(#f4f4f4, var(--menu-bg) 60%, #e1e1e1);
  overflow: hidden;
}

.grid-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--bar-h) - 10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 18px;
  width: min(92vw, calc((100dvh - var(--bar-h) - 70px) / 3 * 1.6 * 4));
}

.tile {
  position: relative;
  aspect-ratio: 1.6;
  padding: 0;
  border: 3px solid var(--tile-border);
  border-radius: 16px;
  background: linear-gradient(#fbfbfb, #dedede);
  box-shadow: inset 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--round);
}

.tile.empty {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(#f7f7f7, #d9d9d9);
  box-shadow: inset 0 0 0 2px #fff, inset 0 -8px 16px rgba(0, 0, 0, 0.06);
}

button.tile:hover,
button.tile:focus-visible {
  outline: none;
  transform: scale(1.045);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(52, 190, 237, 0.35), 0 0 22px rgba(52, 190, 237, 0.55);
  z-index: 2;
}

/* Glossy sheen across the top of every tile */
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 3;
}

.tile .art, .banner .art { position: absolute; inset: 0; }

/* ================================
   Bottom bar: cradles, round buttons, clock
   ================================ */
.bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-h);
  pointer-events: none;
}

.bar-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(var(--bar-top), var(--bar-bottom));
  border-top: 3px solid #fff;
  box-shadow: 0 -2px 0 rgba(52, 190, 237, 0.55), 0 -8px 18px rgba(0, 0, 0, 0.08);
}

.cradle {
  position: absolute;
  bottom: -40px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(var(--bar-top), var(--bar-bottom) 70%);
  border-top: 3px solid #fff;
  box-shadow: 0 -2px 0 rgba(52, 190, 237, 0.55), 0 -8px 18px rgba(0, 0, 0, 0.08);
}

.cradle.left { left: -40px; }
.cradle.right { right: -40px; }

.round-btn {
  position: absolute;
  bottom: 22px;
  width: 92px;
  height: 92px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #bdbdbd;
  background: radial-gradient(circle at 40% 30%, #fff, #eaeaea 60%, #d4d4d4);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.18);
  color: #8a8a8a;
  font-family: var(--round);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: auto;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.round-btn svg { width: 36px; height: 36px; }
.round-btn.left { left: 26px; }
.round-btn.right { right: 26px; }

.round-btn:hover,
.round-btn:focus-visible {
  outline: none;
  transform: scale(1.06);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: 0 0 18px rgba(52, 190, 237, 0.6), inset 0 -4px 8px rgba(0, 0, 0, 0.08);
}

.round-btn .dot {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.clock {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  text-align: center;
  color: var(--clock);
  font-family: var(--round);
  line-height: 1;
  text-shadow: 0 1px 0 #fff;
  white-space: nowrap;
}

.clock-time { font-size: 58px; font-weight: 500; letter-spacing: 0.02em; }
.clock-time .colon { animation: pulse 2s steps(1) infinite; }
.clock-time small { font-size: 26px; margin-left: 6px; }
.clock-date { margin-top: 4px; font-size: 22px; font-weight: 500; }

/* ================================
   Channel preview (zoomed banner + Menu / Start)
   ================================ */
.preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 4px),
    linear-gradient(#f4f4f4, var(--menu-bg) 60%, #e1e1e1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5vh;
}

.preview[hidden] { display: none; }

.banner {
  position: relative;
  width: min(86vw, calc((100dvh - 230px) * 1.6));
  aspect-ratio: 1.6;
  border: 4px solid var(--tile-border);
  border-radius: 26px;
  box-shadow: inset 0 0 0 3px #fff, 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background: #fff;
  transform-origin: top left;
}

.preview-buttons {
  display: flex;
  gap: 5vw;
}

.pill {
  min-width: 230px;
  padding: 18px 30px;
  border-radius: 999px;
  border: 3px solid #c4c4c4;
  background: linear-gradient(#ffffff, #e9e9e9);
  box-shadow: inset 0 2px 0 #fff, 0 3px 6px rgba(0, 0, 0, 0.15);
  color: #6b6b6b;
  font-family: var(--round);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover,
.pill:focus-visible {
  outline: none;
  transform: scale(1.05);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: 0 0 20px rgba(52, 190, 237, 0.55), inset 0 2px 0 #fff;
}

/* ================================
   Full-screen channel + HOME button
   ================================ */
.fader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.fader.on { opacity: 1; pointer-events: auto; }

.channel-screen {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow-y: auto;
  background: radial-gradient(ellipse 1200px 600px at 50% -10%, #10151f 0%, #000 60%);
  color: #fff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  padding: 3rem 0 7rem;
}

.channel-screen[hidden] { display: none; }

.channel-name {
  text-align: center;
  margin: 0 0 1.5rem;
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
}

.home-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 160;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #bdbdbd;
  background: radial-gradient(circle at 40% 30%, #fff, #e6e6e6 60%, #cfcfcf);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #7d7d7d;
  font-family: var(--round);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-btn svg { width: 28px; height: 28px; }
.home-btn[hidden] { display: none; }

.home-btn:hover,
.home-btn:focus-visible {
  outline: none;
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ================================
   HOME Menu overlay
   ================================ */
.home-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(10, 14, 22, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--round);
  animation: fadeIn 0.2s ease;
}

.home-menu[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hm-top, .hm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: linear-gradient(#3d4450, #1f242c);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hm-top { height: 92px; border-bottom: 3px solid var(--accent); }
.hm-bottom { height: 110px; border-top: 3px solid var(--accent); justify-content: center; gap: 3vw; }

.hm-title { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: 0.02em; }

.hm-close {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid #8a93a3;
  background: linear-gradient(#5a6272, #3a414d);
  color: #fff;
  font-family: var(--round);
  font-weight: 700;
  font-size: 1.1rem;
}

.hm-close:hover, .hm-close:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 14px rgba(52, 190, 237, 0.6); }

.hm-middle { display: flex; justify-content: center; align-items: center; gap: 5vw; flex-wrap: wrap; padding: 2rem; }

.hm-big {
  width: 300px;
  height: 120px;
  border-radius: 28px;
  border: 3px solid #d0d7e2;
  background: linear-gradient(#ffffff, #dfe6ef);
  box-shadow: inset 0 3px 0 #fff, 0 8px 20px rgba(0, 0, 0, 0.35);
  color: #50627a;
  font-family: var(--round);
  font-size: 1.7rem;
  font-weight: 800;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hm-big:hover, .hm-big:focus-visible {
  outline: none;
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 26px rgba(52, 190, 237, 0.7), inset 0 3px 0 #fff;
}

.remote {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cfd6e2;
  font-weight: 700;
}

.remote .batt { display: flex; gap: 3px; padding: 3px; border: 2px solid #cfd6e2; border-radius: 4px; }
.remote .batt i { width: 7px; height: 16px; background: var(--accent); border-radius: 1px; }
.remote .p { padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; }

/* ================================
   Message Board
   ================================ */
.board {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 4px),
    linear-gradient(#f7f3e8, #ece5d3);
  font-family: var(--round);
  animation: fadeIn 0.25s ease;
}

.board[hidden] { display: none; }

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 4vw;
  background: linear-gradient(#ffffff, #eee8d9);
  border-bottom: 3px solid #d8cfb8;
}

.board-date { display: flex; align-items: baseline; gap: 0.8rem; color: #7a6f55; }
.board-date b { font-size: 3rem; font-weight: 800; color: #5d543f; line-height: 1; }
.board-date span { font-size: 1.3rem; font-weight: 700; }

.board-list {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 2rem 4vw 3rem;
  align-content: start;
}

.letter {
  position: relative;
  padding: 1rem 1.1rem 1rem 4.2rem;
  border-radius: 14px;
  border: 2px solid #ddd3bb;
  background: #fffdf6;
  box-shadow: 0 3px 8px rgba(90, 70, 30, 0.12);
  color: #4d4535;
  font-weight: 500;
  line-height: 1.35;
}

.letter::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 2.3rem;
  height: 1.6rem;
  transform: translateY(-50%);
  border-radius: 3px;
  background:
    linear-gradient(to bottom right, transparent 48%, #c9bb95 49%, #c9bb95 51%, transparent 52%) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent 48%, #c9bb95 49%, #c9bb95 51%, transparent 52%) right / 50% 100% no-repeat,
    #fff;
  border: 2px solid #c9bb95;
}

.letter b { display: block; color: #3e3727; font-weight: 800; }
.letter small { display: block; margin-top: 0.3rem; color: #9a8d6d; font-weight: 700; }

.board-foot { display: flex; justify-content: center; padding: 1rem 0 1.6rem; }

/* ================================
   Channel art (tile + banner previews)
   ================================ */
.art { font-family: var(--round); overflow: hidden; }
.art .label {
  position: absolute;
  left: 7%;
  bottom: 9%;
  z-index: 2;
  font-weight: 800;
  font-size: var(--label, 1.15rem);
  letter-spacing: 0.01em;
  line-height: 1;
}
.banner .art { --label: clamp(2rem, 5vw, 3.6rem); }
.banner .art .sub { font-size: clamp(0.95rem, 1.8vw, 1.4rem); }
.art .sub { display: block; margin-top: 0.3em; font-size: 0.55em; font-weight: 700; opacity: 0.85; }

/* Every tile: a small animated "channel ad" with the name bottom-left */
.art .label { text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 0, 0, 0.25); }

/* Marvel Rivals: nameplate peach and rose, Lord cutouts pop in over light rays */
.art-rivals { background: radial-gradient(circle at 72% 45%, #fff4ec 0 12%, #f7c9bd 38%, #d9707d 75%, #b44a5e); color: #fff; }
.art-rivals .rays { position: absolute; left: 72%; top: 45%; width: 220%; aspect-ratio: 1; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255, 255, 255, 0.28) 0 7deg, transparent 7deg 20deg); animation: raysSpin 40s linear infinite; }
.art-rivals .lords { position: absolute; right: -2%; top: -4%; bottom: -8%; width: 62%; }
.art-rivals .lords img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; filter: drop-shadow(0 6px 8px rgba(120, 30, 50, 0.45)); -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 62%, transparent 100%); animation: lordPop var(--cycle) infinite; animation-delay: calc(var(--i) * var(--step)); }
@keyframes lordPop { 0% { opacity: 0; transform: scale(0.6) translateY(12%); } 3% { opacity: 1; transform: scale(1.06); } 5%, 9% { opacity: 1; transform: none; } 11%, 100% { opacity: 0; transform: scale(0.94); } }
.art-rivals .lord-count { position: absolute; left: 7%; top: 11%; padding: 0.15em 0.55em; border-radius: 999px; background: linear-gradient(#ffe27a, #d4a017); color: #5c3d00; font-weight: 800; font-size: calc(var(--label, 1.15rem) * 0.5); letter-spacing: 0.06em; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }
.art-rivals .label { text-shadow: 0 2px 0 #9a3348, 0 0 14px rgba(120, 30, 50, 0.4); }
.banner .art-rivals .lords { right: 8%; top: 8%; bottom: 8%; width: 40%; }

/* Steam: store navy, covers glide along a tilted shelf */
.art-library { background: linear-gradient(160deg, #2a475e, #1b2838 60%, #171a21); color: #fff; perspective: 600px; }
.art-library .shelf { position: absolute; left: -10%; right: -10%; top: 8%; height: 52%; transform: rotateX(18deg) rotateZ(-6deg); }
.art-library .strip { position: absolute; left: 0; top: 0; height: 100%; display: flex; gap: 10px; animation: marquee 34s linear infinite; }
.art-library .strip img { height: 100%; width: auto; border-radius: 6px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); }
.art-library::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(23, 26, 33, 0.9) 78%); }
.art-library .hours { position: absolute; right: 6%; bottom: 9%; z-index: 2; text-align: right; font-weight: 800; font-size: calc(var(--label, 1.15rem) * 1.15); line-height: 1; color: #66c0f4; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.art-library .hours small { display: block; font-size: 0.4em; letter-spacing: 0.08em; color: #c7d5e0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hypixel: Minecraft sky, a grass block, the skin's head bobbing */
.art-hypixel { background: linear-gradient(#78a7ff, #b8d4ff 70%); color: #fff; }
.art-hypixel .cloud { position: absolute; top: 14%; width: 22%; height: 9%; background: #fff; opacity: 0.9; animation: drift 26s linear infinite; }
.art-hypixel .cloud::after { content: ""; position: absolute; left: 25%; top: -70%; width: 50%; height: 100%; background: inherit; }
.art-hypixel .cloud.c2 { top: 30%; width: 14%; animation-duration: 34s; animation-delay: -14s; opacity: 0.75; }
.art-hypixel .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(#6fbf45 0 22%, #5a9e38 22% 28%, transparent 28%), repeating-conic-gradient(#8b5a2b 0 25%, #7a4e25 0 50%) 0 0 / 14px 14px; }
.art-hypixel .head3d { position: absolute; right: 13%; bottom: 30%; width: 34%; aspect-ratio: 1; container-type: inline-size; perspective: 400cqw; animation: bob 3s ease-in-out infinite; }
.head3d .cube, .head3d .layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.head3d .cube { animation: headTurn 7s ease-in-out infinite; }
.head3d .layer.hat { transform: scale3d(1.125, 1.125, 1.125); }
.head3d .f { position: absolute; inset: 0; background: url(../images/skin.png) no-repeat; background-size: 800% 800%; image-rendering: pixelated; backface-visibility: hidden; }
.head3d .front  { transform: translateZ(50cqw); }
.head3d .back   { transform: rotateY(180deg) translateZ(50cqw); }
.head3d .left   { transform: rotateY(-90deg) translateZ(50cqw); }
.head3d .right  { transform: rotateY(90deg) translateZ(50cqw); }
.head3d .top    { transform: rotateX(90deg) translateZ(50cqw); }
.head3d .bottom { transform: rotateX(-90deg) translateZ(50cqw); }

.head3d .left, .head3d .right { filter: brightness(0.78); }
.head3d .top { filter: brightness(1.1); }
@keyframes headTurn { 0%, 100% { transform: rotateX(-16deg) rotateY(-28deg); } 50% { transform: rotateX(-16deg) rotateY(28deg); } }
.art-hypixel .label { font-family: 'Minecraftia', var(--round); font-weight: 400; text-shadow: 2px 2px 0 #3f3f3f; }
.art-hypixel .tag { font-family: 'Minecraftia', var(--round); }
.art-hypixel .tag .mvp { color: #55ffff; }
.art-hypixel .tag .plus { color: #ff5555; font-family: var(--round); font-weight: 900; text-shadow: 1px 1px 0 #3f0000, 0 0 3px #000; }
@keyframes drift { from { left: -30%; } to { left: 110%; } }

/* Overwatch: white and orange with angled stripes, top heroes slide in turn */
.art-overwatch { background: linear-gradient(125deg, #ff9c3a, #f06414 55%, #d44f0a); color: #fff; }
.art-overwatch .stripes { position: absolute; inset: -20% -10%; background: repeating-linear-gradient(115deg, transparent 0 14%, rgba(255, 255, 255, 0.16) 14% 18%); animation: owStripes 12s linear infinite; }
.art-overwatch .portraits { position: absolute; right: 7%; top: 9%; width: 42%; aspect-ratio: 1; }
.art-overwatch .portraits img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #26314a; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(80, 30, 0, 0.35); opacity: 0; animation: owHero calc(var(--n) * 3s) infinite; animation-delay: calc(var(--i) * 3s); }
.art-overwatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(38, 49, 74, 0.7)); }
.art-overwatch .label { font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 2px 0 #26314a, 0 0 12px rgba(0, 0, 0, 0.3); }
.art-overwatch .sub { text-transform: none; font-style: normal; }
@keyframes owStripes { to { transform: translateX(18%); } }
@keyframes owHero { 0% { opacity: 0; transform: translateX(14%) skewX(-8deg); } 4%, 23% { opacity: 1; transform: skewX(-8deg); } 27%, 100% { opacity: 0; transform: translateX(-10%) skewX(-8deg); } }

/* Our Realm: the village, drifting between day and night */
.art-realm { background: #7dabff; color: #fff; }
.art-realm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: realmPan 18s ease-in-out infinite alternate; }
.art-realm .night { position: absolute; inset: 0; background: linear-gradient(rgba(8, 14, 44, 0.85), rgba(12, 18, 50, 0.55)); opacity: 0; animation: realmNight 14s ease-in-out infinite; }
.art-realm .stars { position: absolute; inset: 0 0 45% 0; opacity: 0; animation: realmNight 14s ease-in-out infinite;
  background:
    radial-gradient(circle at 12% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 28% 12%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 46% 38%, #fff 0 1px, transparent 2px), radial-gradient(circle at 63% 18%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 79% 34%, #fff 0 1px, transparent 2px), radial-gradient(circle at 91% 10%, #fff 0 1px, transparent 2px); }
.art-realm .moon { position: absolute; right: 9%; top: 10%; width: 11%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -6px -3px 0 0 #f4f1d6; opacity: 0; animation: realmNight 14s ease-in-out infinite; }
.art-realm .label { font-family: 'Minecraftia', var(--round); font-weight: 400; text-shadow: 2px 2px 0 #2b2b2b; }
@keyframes realmPan { from { transform: scale(1.12) translateX(-4%); } to { transform: scale(1.12) translateX(4%); } }
@keyframes realmNight { 0%, 40% { opacity: 0; } 52%, 88% { opacity: 1; } 100% { opacity: 0; } }

@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8%); } }

/* Banner zoom animation origin */
.banner.zooming { transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.25, 1); }

@media (prefers-reduced-motion: reduce) {
  .art *, .art, .clock-time .colon, .hs-press, .round-btn .dot { animation: none !important; }
  .art-rivals .lords img:first-child { opacity: 1; }
  .art-overwatch .portraits img:first-child { opacity: 1; }
  .banner.zooming { transition: none; }
}

/* ================================
   Phones: two columns that scroll, smaller bar
   ================================ */
@media (max-width: 700px) {
  :root { --bar-h: 120px; }

  .grid-wrap { align-items: flex-start; overflow-y: auto; padding: 20px 0 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); width: calc(100vw - 32px); gap: 12px; }
  .tile { border-radius: 12px; }
  .art { --label: 0.95rem; }

  .bar-body { height: 78px; }
  .cradle { width: 140px; height: 140px; bottom: -34px; }
  .cradle.left { left: -34px; }
  .cradle.right { right: -34px; }
  .round-btn { width: 68px; height: 68px; bottom: 16px; font-size: 0.7rem; }
  .round-btn svg { width: 26px; height: 26px; }
  .round-btn.left { left: 16px; }
  .round-btn.right { right: 16px; }
  .round-btn .dot { top: 7px; right: 10px; width: 9px; height: 9px; }
  .clock { bottom: 12px; }
  .clock-time { font-size: 38px; }
  .clock-time small { font-size: 18px; }
  .clock-date { font-size: 15px; }

  .banner { width: calc(100vw - 32px); border-radius: 18px; }
  .preview-buttons { flex-direction: column; gap: 14px; width: calc(100vw - 64px); }
  .pill { min-width: 0; width: 100%; font-size: 1.25rem; padding: 14px; }

  .hm-top { height: 72px; }
  .hm-title { font-size: 1.4rem; }
  .hm-big { width: 100%; max-width: 320px; height: 90px; font-size: 1.4rem; }
  .hm-bottom { height: 80px; }

  .board-date b { font-size: 2.2rem; }
  .board-list { grid-template-columns: 1fr; padding: 1.2rem 16px 2rem; }

  .home-btn { width: 64px; height: 64px; left: 14px; bottom: 14px; }
  .channel-screen { padding-top: 2rem; }
}
