/* itboji.com home (site rewrite 2026-10-09; redesign/plaza-final/home.css + Boji's 10-09 rulings).
   Top to bottom on a phone: the flat wordmark on the plaza sky, your blob on the plaza floor (a blank blob when
   logged out), the two capsules, the channel tiles. The tab bar is at the bottom. One screen, no scroll. */

.home { display: flex; flex-direction: column; width: 100%; max-width: 440px; margin: 0 auto; padding: 0 16px 12px;
  height: calc(100vh - var(--itb-tabbar)); height: calc(100svh - var(--itb-tabbar) - env(safe-area-inset-bottom)); min-height: 560px; }   /* svh: no jump when the address bar slides */
.home .brand { display: block; flex: none; margin: 0; padding: 18px 0 0; text-align: center; font-size: 50px; line-height: 1;
  -webkit-text-stroke: 0; text-shadow: none; letter-spacing: 0; }
.home .brand a { display: inline-block; padding: 2px 8px 6px; text-decoration: none; }

/* the plaza: your blob, standing on the floor. Its size follows the room left over (container units) */
.yard { position: relative; flex: 1 1 auto; min-height: 136px; container-type: size; margin-top: 34px; }   /* 10-09: room for the nametag under the wordmark */
/* 10-09 (Boji: "the top half of the screen just isn't used"): the blob grows into the whole yard, up to 300 px */
/* 10-09 tap-to-walk: the blob is capped at ~200 px on phones so there is floor around it to walk on */
.yard .spot { --hs: clamp(104px, calc(100svh - 640px), 200px); --hs: clamp(96px, calc(100cqh - 120px), 200px);
  position: absolute; left: 0; right: 0; bottom: 52px; height: var(--hs); }   /* a strip of floor shows under its feet */
.yard .hb { position: absolute; left: 50%; bottom: 0; width: var(--hs); height: var(--hs); margin: 0 0 0 calc(var(--hs) * -.5); }
.yard .fol { left: calc(50% - var(--hs) * .5 - 70px); bottom: 0; width: 84px; height: 84px; }
.yard .fol img { max-width: 84px; max-height: 84px; }

/* the dock: the capsules, then the tiles */
.home .dock { flex: none; display: grid; gap: 14px; }
.home .startmenu { display: grid; gap: 12px; }

.channels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; }
.ch { grid-column: span 2; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 5px; border: 0; border-radius: 22px;
  background: linear-gradient(var(--itb-gl-a) 0 40%, var(--itb-gl-b)); color: var(--wii-ink); text-decoration: none; text-align: center; font: inherit; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(40, 100, 160, .12), 0 0 0 2px var(--itb-halo), 0 0 0 3.5px var(--itb-ring), var(--lift);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: transform .38s var(--spring); }
.ch.big { grid-column: span 3; }
.ch.n2 { grid-column: span 3; } .ch.n1 { grid-column: span 6; }
.ch.down { transform: translateY(2px) scale(.96); transition-duration: .07s; }
.ch.pop { animation: pop .42s var(--spring); }
.ch:focus-visible { outline: none; box-shadow: inset 0 -4px 0 rgba(40, 100, 160, .12), 0 0 0 2px var(--itb-halo-s), 0 0 0 5px var(--wii), var(--lift); }
/* the preview "screen", with glass gloss over its top half */
.ch .scr { position: relative; display: block; height: 48px; overflow: hidden; isolation: isolate; border-radius: 17px; background: #eef6fc; box-shadow: inset 0 0 0 1.5px #d3e3f0; }
.ch .scr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: 5; pointer-events: none; border-radius: 17px 17px 50% 50% / 17px 17px 10px 10px;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .06)); }
.ch.big .scr { height: 76px; }
.ch .nm { display: block; padding: 6px 2px 3px; font: 800 16px/1.1 var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ch .sc-mons { background: radial-gradient(circle at 50% 120%, #fff6d2, #ffe9a0 45%, #ffd76a); }
.sc-mons .cardbox { position: absolute; left: 50%; top: 7px; width: 62px; margin-left: -18px; transform: rotate(7deg); }
.sc-mons .cardbox.b { margin-left: -50px; transform: rotate(-9deg); top: 12px; width: 56px; filter: saturate(.9) brightness(.97); }
.sc-mons .cardbox .sc { box-shadow: 0 3px 8px rgba(14, 18, 30, .3); }
.sc-mons .ball { position: absolute; left: 9px; bottom: 7px; width: 28px; height: 28px; z-index: 2; filter: drop-shadow(0 2px 2px rgba(110, 70, 0, .25)); }
.sc-mons .ball svg { width: 100%; height: 100%; }

.ch .sc-guide::after { opacity: .35; }
.ch .sc-guide { padding: 7px 8px; background: #fff; display: grid; gap: 4px; align-content: center; }
.sc-guide .row { display: flex; align-items: center; gap: 6px; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--chip); font: 800 12px/1 var(--ui); color: var(--ink); white-space: nowrap; overflow: hidden; }
.sc-guide .row svg { flex: none; width: 14px; height: 14px; }
.sc-guide .row canvas { flex: none; width: 24px; height: 24px; margin: 5px -4px 0 -5px; }

.ch .sc-glyph { display: grid; place-items: center; }
.ch .sc-glyph svg { width: 32px; height: 32px; }
.ch .sc-discord { background: linear-gradient(#e9f7fe, #d3eefc); color: #2f9fd6; }
.ch .sc-yt { background: linear-gradient(#fff, #f1f5f9); }
.ch .sc-yt svg { width: 38px; height: 38px; }
.ch .sc-tt { background: linear-gradient(#fff, #f1f5f9); color: #1f2329; }
.ch .sc-tt svg { filter: drop-shadow(-1.5px -1px 0 #3fe3e8) drop-shadow(1.5px 1px 0 #ff3b6b); }

/* short phones: tighter; the blob shrinks first (container units above) */
@media (max-height: 700px) and (max-width: 899px) {
  .home .brand { padding-top: 10px; font-size: 42px; }
  .home .dock { gap: 12px; } .home .startmenu { gap: 10px; }
  .cb.cap.primary { min-height: 56px; font-size: 21px; } .cb.cap { min-height: 50px; }
  .ch.big .scr { height: 66px; } .ch .scr { height: 42px; }
}

/* desktop: wordmark + plaza on the left, the dock on the right */
@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 460px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "brand dock" "plaza dock";
    max-width: 1180px; height: calc(100vh - 76px); min-height: 620px; gap: 0 56px; align-items: stretch; padding: 0 32px 36px; }
  .home .brand { grid-area: brand; margin-top: -60px; padding-top: 0; font-size: 84px; }
  .yard { grid-area: plaza; }
  .yard .spot { --hs: clamp(180px, calc(100cqh - 60px), 320px); bottom: 24px; }
  .yard .fol { left: calc(50% - var(--hs) * .5 - 120px); transform: scale(1.45); transform-origin: 50% 100%; }
  .home .dock { grid-area: dock; align-self: center; gap: 18px; }
  .home .startmenu { gap: 16px; }
  .cb.cap { min-height: 64px; font-size: 22px; } .cb.cap.primary { min-height: 74px; font-size: 26px; }
  .channels { gap: 16px 14px; }
  .ch.big .scr { height: 104px; } .ch .scr { height: 64px; }
  .ch .nm { font-size: 17px; padding-top: 8px; } .ch.big .nm { font-size: 18px; }
  .sc-mons .cardbox { width: 84px; margin-left: -22px; top: 9px; } .sc-mons .cardbox.b { width: 76px; margin-left: -66px; top: 15px; }
  .sc-mons .ball { width: 34px; height: 34px; left: 12px; bottom: 10px; }
  .ch .sc-guide { padding: 10px 14px; gap: 6px; } .sc-guide .row { height: 24px; font-size: 14px; } .sc-guide .row svg { width: 16px; height: 16px; }
  .sc-guide .row canvas { width: 28px; height: 28px; }
  .ch .sc-glyph svg { width: 40px; height: 40px; } .ch .sc-yt svg { width: 48px; height: 48px; }
  @media (hover: hover) { .ch:hover { box-shadow: inset 0 -4px 0 rgba(40, 100, 160, .12), 0 0 0 2px var(--itb-halo-s), 0 0 0 5px var(--wii-l), var(--lift); } }
}
@media (prefers-reduced-motion: reduce) { .ch { transition: none !important; } .ch.pop { animation: none !important; } }
