/* =====================================================================
   HOME'S VIEWS, STRAIGHT TO THE POINT (WO-074, 2026-10-02).

   AJ, on his phone: "On learn, play, critter page the avatar box and the
   other 'information' boxes take up a lot of room." So each tab opens on
   its content: LEARN on Kipwick's pick and the lands (switched on the
   land trail below), PLAY on its games, COLLECT on the critters with the
   Critter Lab up top, and ME (the bottom bar's avatar) holds the
   profile. Only home loads this file; arcade.css stays shared.
   ===================================================================== */

/* ---- the Kipwick line at the top: a little smaller on a phone ---- */
@media (max-width:520px){
  body.ac-page h1.kw-head{ font-size:32px; margin-bottom:12px; }
  body.ac-page .kw-head__mark{ width:42px; height:42px; }
}

/* ---- a view's one-line title (PLAY): an icon and a word, never a box ---- */
.kw-viewtitle{ display:flex; align-items:baseline; justify-content:center; gap:8px; flex-wrap:wrap;
  margin:0 0 14px; font-size:22px; line-height:1.2; color:var(--ac-edge); }
.kw-viewtitle__icon{ font-size:22px; }
.kw-viewtitle small{ font-size:14px; font-weight:800; color:var(--ac-text-dim); }

/* =====================================================================
   PLAY's tiles on a phone (WO-074: "Some of the game cards text is not
   center and goes outside the circle"). Below 520px a painted tile was
   a side-by-side picture and words; at two tiles a row that left ~80px
   for the name and squeezed the land pill into two lines that ran past
   its round ends. Now: two tiles a row, the picture on top, the name
   and the pill centred under it, the pill one line that shrinks to fit.
   ===================================================================== */
@media (max-width:520px){
  .ac-grid--play{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
  .ac-grid--play .ac-tile, .ac-grid--play .ac-tile--art{ display:flex; flex-direction:column; align-items:center;
    text-align:center; gap:6px; padding:8px 8px 10px; min-width:0; }
  .ac-grid--play .ac-tile__art{ grid-row:auto; }
  .ac-grid--play .ac-tile__name{ font-size:15px; line-height:1.15; overflow-wrap:anywhere; }
  .ac-grid--play .ac-badges{ justify-content:center; max-width:100%; }
  .ac-grid--play .ac-badge{ max-width:100%; font-size:10px; letter-spacing:.3px; padding:2px 7px; border-width:2px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ac-grid--play .ac-tile__blurb{ font-size:12px; line-height:1.35; }
}

/* =====================================================================
   THE LAND TRAIL (LEARN; landmap.js trailSwitcher). Every land a stop on
   a dotted trail, all on screen at once: no sideways scroll. The ring
   round a stop only fills (the land's best share, high-water). 📍 is
   where the child is; the land on screen is lifted, yellow-ringed.
   ===================================================================== */
.kw-trail{ position:relative; display:flex; justify-content:center; align-items:flex-start;
  gap:clamp(2px, 1.5vw, 14px); margin:0 0 14px; padding:22px 0 0; }
/* the dotted trail, through the middle of the rings */
.kw-trail::before{ content:''; position:absolute; left:8%; right:8%; top:calc(22px + 24px);
  border-top:3px dashed rgba(30,43,99,.35); }
.kw-stop{ position:relative; flex:1 1 0; min-width:0; max-width:112px; display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:0 0 4px; margin:0; background:none; border:0; font:inherit; color:var(--ac-edge); cursor:pointer;
  -webkit-tap-highlight-color:transparent; }
.kw-stop__ring{ position:relative; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:conic-gradient(var(--ac-good) var(--p, 0%), rgba(30,43,99,.14) 0); border:3px solid var(--ac-edge);
  box-shadow:0 3px 0 var(--ac-edge); transition:transform .15s ease; }
.kw-stop__face{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-size:22px; line-height:1;
  background:var(--sky, var(--ac-panel)); }
.kw-stop__name{ font-size:12px; font-weight:800; line-height:1.15; text-align:center; overflow-wrap:anywhere; max-width:100%; }
.kw-stop__pin{ position:absolute; top:-22px; left:50%; transform:translateX(-50%); z-index:1; white-space:nowrap;
  padding:2px 7px; border-radius:999px; background:var(--ac-panel); border:2px solid var(--ac-edge);
  font-size:10.5px; font-weight:800; line-height:1.2; color:var(--ac-edge); }
.kw-stop.is-on .kw-stop__ring{ transform:translateY(-3px) scale(1.12); box-shadow:0 5px 0 var(--ac-edge), 0 0 0 4px var(--ac-yellow); }
.kw-stop.is-on .kw-stop__name{ background:var(--ac-yellow); border-radius:999px; padding:1px 7px; }
.kw-stop:focus-visible{ outline:none; }
.kw-stop:focus-visible .kw-stop__ring{ outline:4px solid var(--ac-blue); outline-offset:3px; }
.kw-stop:active .kw-stop__ring{ transform:translateY(2px); box-shadow:0 1px 0 var(--ac-edge); }
.kw-stop.is-waiting{ cursor:default; }
.kw-stop.is-waiting .kw-stop__ring{ border-style:dashed; box-shadow:none; background:rgba(255,255,255,.6); }
.kw-stop.is-waiting .kw-stop__face{ opacity:.75; animation:ac-land-bob 2.4s ease-in-out infinite; }
.kw-stop.is-waiting .kw-stop__name{ color:var(--ac-text-dim); }
.kw-stop__soon{ font-size:11px; font-weight:800; color:var(--ac-text-dim); }
@media (min-width:600px){
  .kw-trail::before{ top:calc(22px + 29px); }
  .kw-stop__ring{ width:58px; height:58px; }
  .kw-stop__face{ width:44px; height:44px; font-size:27px; }
  .kw-stop__name{ font-size:13px; }
}
@media (prefers-reduced-motion: reduce){ .kw-stop.is-waiting .kw-stop__face{ animation:none; } .kw-stop__ring{ transition:none; } }

/* The land on screen, under the trail: the trail already names it and
   shows its ring, so on home its card is shorter (a lower banner, the
   title without a second ring, Kipwick's line at reading size) and its
   games come up sooner. Only here: land.css is the lands kit's. */
.ac-home .ac-land.has-banner .ac-land__ring{ display:none; }
.ac-home .ac-land__art{ height:clamp(104px, 18vw, 170px); }
.ac-home .ac-land__title h2{ font-size:24px; }
.ac-home .ac-land__title p{ font-size:14px; margin-top:2px; }
.ac-home .ac-landguide{ margin-bottom:12px; padding:8px 10px; gap:8px; }
.ac-home .ac-landguide__bubble{ font-size:16px; line-height:1.25; }
.ac-home .ac-landguide__face{ width:48px; height:48px; }
.ac-home .ac-landguide__guide{ width:24px; height:24px; }
.ac-home .ac-landguide__hear{ width:44px; height:44px; }
@media (max-width:600px){
  .ac-home .ac-land__art{ height:104px; margin-bottom:-30px; }
  .ac-home .ac-land.has-banner .ac-land__head{ padding:6px 10px; }
  .ac-home .ac-land__title h2{ font-size:20px; }
  .ac-home .ac-land__title p{ font-size:13px; }
  .ac-home .ac-landguide__bubble{ font-size:15px; }
}


/* =====================================================================
   COLLECT: the Critter Lab card, then two doors (the book, trading).
   ===================================================================== */
/* Kipwick's Creatures' title and count: one row, not a poster. */
.ac-home .ac-col-head{ flex-wrap:nowrap; gap:12px; padding:12px 16px; margin:0 auto 14px; text-align:left; width:100%; max-width:640px; }
.ac-home .ac-collect-head{ width:100%; max-width:640px; }
.ac-home .ac-col-head__emoji{ font-size:32px; flex:none; }
.ac-home .ac-col-head__text{ min-width:0; }
.ac-home .ac-col-head__text h2{ font-size:21px; line-height:1.15; }
.ac-home .ac-col-head__text p{ font-size:13px; line-height:1.3; }
.ac-home .ac-col-head__count{ flex:none; }
.ac-home .ac-col-head__n{ font-size:24px; white-space:nowrap; }
.ac-home .ac-collect-head{ padding:12px 16px; }
.kw-lab{ position:relative; display:flex; align-items:center; gap:14px; max-width:640px; margin:0 auto 14px; padding:12px 14px;
  border-radius:22px; text-decoration:none; color:var(--ac-edge); text-align:left;
  background:linear-gradient(135deg, #E9DDFF, #CDEBFF); border:var(--ac-bd) solid var(--ac-edge); box-shadow:0 6px 0 var(--ac-edge); }
.kw-lab.has-visit{ background:linear-gradient(135deg, #FFE9A8, #E9DDFF 70%); }
.kw-lab:active{ transform:translateY(5px); box-shadow:0 1px 0 var(--ac-edge); }
.kw-lab:focus-visible{ outline:4px solid var(--ac-blue); outline-offset:3px; }
.kw-lab__pic{ position:relative; flex:none; width:72px; height:72px; border-radius:50%; display:grid; place-items:center;
  background:#FFFFFF; border:3px solid var(--ac-edge); }
.kw-lab__main{ font-size:38px; line-height:1; }
.kw-lab__spark{ position:absolute; right:-4px; top:-4px; font-size:20px; }
.kw-lab__egg{ position:absolute; left:-4px; bottom:-2px; font-size:20px; }
.kw-lab__text{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; line-height:1.2; }
.kw-lab__kicker{ font-size:11px; font-weight:800; letter-spacing:1.2px; color:#5B3FA8; }
.kw-lab__title{ font-size:20px; font-weight:800; }
.kw-lab__line{ font-size:14px; font-weight:700; color:var(--ac-text-dim); }
.kw-lab__go{ flex:none; padding:8px 14px; border-radius:999px; white-space:nowrap; background:var(--ac-yellow);
  border:3px solid var(--ac-edge); font-weight:800; font-size:15px; }
.kw-lab.has-visit .kw-lab__go{ background:var(--ac-good); color:#fff; animation:ac-breathe 1.8s ease-in-out infinite; }
@media (max-width:480px){
  .kw-lab{ gap:10px; padding:10px 12px; }
  .kw-lab__pic{ width:58px; height:58px; }
  .kw-lab__main{ font-size:30px; }
  .kw-lab__title{ font-size:17px; }
  .kw-lab__line{ font-size:13px; }
  .kw-lab__go{ padding:6px 10px; font-size:13px; }
}
@media (prefers-reduced-motion: reduce){ .kw-lab.has-visit .kw-lab__go{ animation:none; } }

.kw-doors{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; max-width:640px; margin:0 auto 14px; }
.kw-door{ display:flex; align-items:center; gap:10px; min-height:72px; padding:10px 12px; border-radius:18px;
  text-decoration:none; color:var(--ac-edge); text-align:left; font:inherit; cursor:pointer;
  background:var(--ac-panel); border:3px solid var(--ac-edge); box-shadow:0 5px 0 var(--ac-edge); }
.kw-door:active{ transform:translateY(4px); box-shadow:0 1px 0 var(--ac-edge); }
.kw-door:focus-visible{ outline:4px solid var(--ac-blue); outline-offset:3px; }
.kw-door.kw-bookcard{ max-width:none; margin:0; background:linear-gradient(135deg, #FFF4DA, #FFE3B0); }
.kw-door__pic{ flex:none; width:48px; height:48px; border-radius:50%; display:grid; place-items:center; font-size:26px;
  background:var(--ac-tint-blue); border:2px solid var(--ac-edge); object-fit:cover; }
.kw-door .kw-bookcard__kip{ width:48px; height:48px; background:#FFE3B0; border:2px solid var(--ac-edge); }
.kw-door__text{ display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.kw-door__text b{ font-size:16px; }
.kw-door__text span{ font-size:13px; font-weight:700; color:var(--ac-text-dim); }
.kw-door--trade.has-news{ background:var(--ac-tint-warn, #FFF1C7); }
.kw-door--trade.has-news .kw-door__text span{ color:var(--ac-edge); }
@media (max-width:400px){
  .kw-door{ gap:8px; padding:8px 10px; }
  .kw-door__pic, .kw-door .kw-bookcard__kip{ width:40px; height:40px; font-size:22px; }
  .kw-door__text b{ font-size:15px; }
  .kw-door__text span{ font-size:12px; }
}

/* =====================================================================
   TRADE's bar: "← Back" to COLLECT, always at the top (WO-074).
   ===================================================================== */
.kw-subbar{ position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:10px;
  margin:0 -4px 14px; padding:8px 4px; background:var(--kw-paper, #FFF8EC);
  border-bottom:3px solid rgba(30,43,99,.15); }
.kw-subbar__back{ flex:none; min-height:48px; padding:6px 14px; font-size:16px; }
.kw-subbar__title{ flex:1; margin:0; font-size:22px; text-align:center; padding-right:60px; color:var(--ac-edge); }
@media (max-width:420px){ .kw-subbar__title{ font-size:20px; padding-right:40px; } }

/* =====================================================================
   ME: the level and what each wallet is for (it was the header's).
   ===================================================================== */
.kw-level{ display:flex; align-items:center; gap:8px; margin-top:8px; max-width:280px; font-size:13px; font-weight:800; color:var(--ac-edge); }
.kw-level__bar{ flex:1; height:12px; border-radius:999px; background:rgba(30,43,99,.12); border:2px solid var(--ac-edge); overflow:hidden; }
.kw-level__fill{ display:block; height:100%; background:linear-gradient(90deg, var(--ac-good), #7BE0A4); }
.kw-level__next{ color:var(--ac-text-dim); }
.kw-earn{ margin:8px 0 0; font-size:13px; font-weight:700; line-height:1.35; color:var(--ac-text-dim); max-width:320px; }
