/* ==========================================================================
   DESIGN A - "STARLIGHT NIGHT"  (the family chose it, 2026-11-08)

   The hub's new look: who is here at the top with her coins and stars, the
   things for today in one strip, the games on two shelves, and a dock that is
   always in reach at the bottom.

   Linked after every other style on the page, and everything sits under
   html.look-a (index.html carries the class and the matching layout: the top
   bar, the Today strip in #chestPanel, the two shelves, the dock).
   Shaikha's iPad is iOS 15 - so no :has(), no color-mix(), no container
   queries, and -webkit-backdrop-filter beside backdrop-filter.
   ========================================================================== */

html.look-a {
  background-color: #120e38;
  background-image:
    radial-gradient(900px 520px at 78% -12%, rgba(168, 85, 247, .42), transparent 70%),
    radial-gradient(700px 500px at -10% 108%, rgba(59, 130, 246, .26), transparent 70%),
    linear-gradient(180deg, #1c1550 0%, #120e38 55%, #0b0926 100%);
}
.look-a body {
  align-items: stretch;
  padding: max(env(safe-area-inset-top), 16px) max(env(safe-area-inset-right), 24px)
           calc(env(safe-area-inset-bottom, 0px) + 124px) max(env(safe-area-inset-left), 24px);
}
/* one column, as wide as an iPad on its side, in the middle of anything wider */
.look-a #hubTop, .look-a #seasonBanner, .look-a #chestPanel, .look-a main, .look-a #skyBand,
.look-a #whoPanel, .look-a #questPanel, .look-a #boardPanel, .look-a footer {
  width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto;
}
.look-a .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ the top: who is here */
.look-a .hub-top { display: flex; align-items: center; gap: 16px; margin-top: 4px; text-align: left; animation: lookA-in .5s ease-out both; }
@keyframes lookA-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.look-a .hub-top .me {
  position: relative; flex: none; width: 76px; height: 76px; padding: 0; border: none; border-radius: 50%; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; font: inherit; font-size: 42px; line-height: 1;
  background: radial-gradient(circle at 50% 35%, #f5d0fe, #c084fc);
  box-shadow: 0 0 0 4px var(--me, #a855f7), 0 0 26px rgba(168, 85, 247, .6);
}
.look-a .hub-top .me img { display: block; width: 118%; max-width: none; margin-top: 8%; }
.look-a .hub-top .me .em { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.look-a .hub-top .me-make {
  position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fde047; box-shadow: 0 0 0 3px #1c1550; font-size: 15px; pointer-events: none;
}
.look-a .hub-top { position: relative; z-index: 5; }
.look-a .hub-top .hello { min-width: 0; }
/* tap her picture: make (or change) it in Nice World, or someone else is playing */
.look-a .me-menu {
  position: absolute; z-index: 70; left: 0; top: 90px; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 22px;
  background: rgba(30, 22, 84, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .5); animation: lookA-pop .25s ease-out both;
}
.look-a .me-menu a, .look-a .me-menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: none; border-radius: 16px; cursor: pointer;
  font: inherit; color: #fff; text-align: left; text-decoration: none; background: rgba(255, 255, 255, .08);
}
.look-a .me-menu img { width: 34px; height: 34px; flex: none; }
.look-a .me-menu b { display: block; font-size: 16px; font-weight: 900; line-height: 1.1; }
.look-a .me-menu small { display: block; font-size: 12.5px; font-weight: 700; color: #c4b5fd; }
.look-a .hub-top h1 {
  font-size: clamp(24px, 3.3vw, 34px); font-weight: 900; line-height: 1.05; letter-spacing: 0;
  color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.look-a .notme {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 4px 13px 4px 6px; border: none; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: #ddd6fe; background: rgba(255, 255, 255, .1);
}
.look-a .notme img { width: 22px; height: 22px; }
.look-a .notme[hidden], .look-a .hub-top [hidden] { display: none; }
.look-a .hub-top .grow { flex: 1; }
.look-a .hub-top .pills { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.look-a .pill {
  position: relative; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 9px; border: none; border-radius: 999px; cursor: pointer;
  font: inherit; color: #fff; text-align: left; white-space: nowrap;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.look-a .pill img { width: 32px; height: 32px; flex: none; }
.look-a .pill b { display: block; font-size: 21px; font-weight: 900; line-height: 1; }
.look-a .pill small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 800; line-height: 1; color: #c4b5fd; opacity: 1; }
/* the purse kept its own little jump when coins arrive (magic.css) - only its colours change */
.look-a .pill.purse { color: #fff; background: rgba(250, 204, 21, .14); box-shadow: inset 0 0 0 2px rgba(253, 224, 71, .35); }
.look-a .pill.purse small { color: #fde68a; }
.look-a .purse-plus { right: 10px; top: -10px; color: #86efac; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.look-a .stars-pill .stars-plus {
  position: absolute; right: 8px; top: -10px; font-size: 18px; font-weight: 900; color: #fde047; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  pointer-events: none; animation: purse-plus 2.4s ease-out both;
}
.look-a .stars-pill.grew { animation: purse-grow .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.look-a .round {
  position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.look-a .round img { width: 28px; height: 28px; }

/* ------------------------------------------------------------ the season, under the top */
.look-a #seasonBanner section { max-width: none !important; margin: 18px 0 0 !important; border-radius: 24px !important; }

/* ------------------------------------------------------------ today: one strip */
.look-a #chestPanel.chest-panel {
  /* (magic.css turns the old panel into a column on phones - not this strip) */
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 22px; margin-bottom: 26px;
  padding: 0; border: none; border-radius: 0; background: none; box-shadow: none;
}
.look-a #chestPanel[hidden] { display: none; }
.look-a .t-card {
  position: relative; flex: 1 1 190px; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 12px 14px;
  border: none; border-radius: 24px; font: inherit; color: #fff; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .25);
  animation: lookA-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.look-a div.t-card { cursor: default; }
.look-a .t-card:nth-child(2) { animation-delay: .06s; } .look-a .t-card:nth-child(3) { animation-delay: .12s; }
.look-a .t-card:nth-child(4) { animation-delay: .18s; } .look-a .t-card:nth-child(5) { animation-delay: .24s; }
@keyframes lookA-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.look-a .t-card > img { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.look-a .t-tx { flex: 1; min-width: 0; }
.look-a .t-card b { display: block; font-size: 18px; font-weight: 900; line-height: 1.12; }
.look-a .t-card small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: #c4b5fd; }
.look-a .t-card .go {
  flex: none; margin-left: auto; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 900; color: #3b0764;
  background: linear-gradient(180deg, #fde047, #f59e0b); box-shadow: 0 3px 0 #b45309;
}
.look-a .t-tag {
  position: absolute; top: -9px; left: 16px; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .03em;
  color: #fff; background: #f43f5e; box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
/* the treasure, waiting: gold, and the chest wobbles */
.look-a .t-card.gold {
  flex-grow: 1.4;
  background: linear-gradient(180deg, rgba(250, 204, 21, .30), rgba(245, 158, 11, .14));
  box-shadow: inset 0 0 0 1.5px rgba(253, 224, 71, .55), 0 10px 30px rgba(0, 0, 0, .25), 0 0 26px rgba(250, 204, 21, .18);
}
.look-a .t-card.gold small { color: #fde68a; }
.look-a .t-card.gold > img { animation: chest-wobble 1.6s ease-in-out infinite; }
.look-a .t-card.golden > img { filter: drop-shadow(0 0 14px #fde047) saturate(1.3); }
/* Family Time: a ring that empties as the minutes go */
.look-a .ring {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#facc15 calc(var(--p, 100) * 1%), rgba(255, 255, 255, .14) 0);
}
.look-a .ring i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #241b5e; font-style: normal; font-size: 16px; font-weight: 900; }
.look-a .t-card.low .ring { background: conic-gradient(#fb7185 calc(var(--p, 100) * 1%), rgba(255, 255, 255, .14) 0); }
/* new in the shops: the star of the week, as it really is */
.look-a .t-card.new > img.star { width: 62px; height: 62px; margin: -8px -4px -8px -6px; object-fit: contain; }
.look-a .t-card.new.fresh { box-shadow: inset 0 0 0 1.5px rgba(244, 114, 182, .55), 0 10px 30px rgba(0, 0, 0, .25); }
/* saving up: how close she is */
.look-a .t-bar { display: block; height: 8px; margin-top: 6px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.look-a .t-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a78bfa, #f472b6); }
.look-a .t-card.ready { animation: lookA-pop .5s cubic-bezier(.2, 1.4, .4, 1) both, wish-ready 1.2s ease-in-out .6s infinite; }
.look-a .t-card.ready .t-bar i { background: linear-gradient(90deg, #fde047, #f59e0b); }
.look-a .t-card .t-badge {
  position: absolute; top: -6px; right: -4px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; background: #f43f5e; box-shadow: 0 0 0 3px #16113f;
}

/* ------------------------------------------------------------ the shelves */
.look-a main { display: block; margin-top: 0; }
.look-a .shelf { margin-bottom: 26px; }
.look-a .shelf-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px 4px; font-size: 22px; font-weight: 900; line-height: 1.1; }
.look-a .shelf-h img { width: 30px; height: 30px; }
.look-a .shelf-h small { font-size: 15px; font-weight: 700; color: #a5b4fc; }
/* five games on each shelf, so five across - never an empty sixth place on a bigger iPad */
.look-a .shelf-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.look-a .card {
  display: flex; flex-direction: column; padding: 0 0 12px; border: none; border-radius: 24px; background: #2a2266;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.look-a .card:nth-child(n) { background: #2a2266; }
.look-a .card .glow, .look-a .card .icon, .look-a .card .ar, .look-a .card .desc, .look-a .card .tag,
.look-a .card .play, .look-a .card .hw-badge, .look-a .card .farm-badge { display: none; }
.look-a .card .shot { margin: 0; height: auto; aspect-ratio: 4 / 3; background: #1f1850; }
@supports not (aspect-ratio: 1 / 1) {
  .look-a .card .shot { height: 0; padding-bottom: 75%; }
  .look-a .card .shot img { position: absolute; top: 0; left: 0; }
}
.look-a .card .shot::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .25) 100%); box-shadow: none; }
.look-a .card h2 { margin: 0; padding: 10px 14px 0; font-size: 18px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-a .card-state {
  display: block; padding: 2px 14px 0; font-size: 13px; font-weight: 800; font-style: normal; line-height: 1.25; color: #c4b5fd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.look-a .card-state.hot { color: #fda4af; }
.look-a .card-state.go { color: #fde68a; }
.look-a .card .rib {
  position: absolute; z-index: 2; top: 10px; left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 900;
  color: #fff; background: #f43f5e; box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}
.look-a .card .rib.new { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.look-a .card.is-last { border: none; box-shadow: 0 0 0 3px #facc15, 0 0 26px rgba(250, 204, 21, .3), 0 14px 30px rgba(0, 0, 0, .35); }
@media (hover: hover) { .look-a .card:hover { transform: translateY(-4px) scale(1.02); } }

/* ------------------------------------------------------------ the dock, always in reach */
.look-a .magic-bar {
  position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); transform: translateX(-50%);
  display: flex; gap: 8px; width: auto; max-width: calc(100vw - 20px); margin: 0; padding: 8px; border-radius: 28px;
  background: rgba(24, 18, 70, .84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 18px 40px rgba(0, 0, 0, .45);
}
.look-a a.magic-btn { color: #fff; text-decoration: none; }
.look-a .magic-btn {
  flex: none; height: 58px; padding: 0 16px 0 9px; gap: 8px; border: none; border-radius: 21px; white-space: nowrap;
  background: rgba(255, 255, 255, .08); box-shadow: none;
}
.look-a .magic-btn img { width: 36px; height: 36px; }
.look-a .magic-btn b { font-size: 16px; }
.look-a .magic-btn small { display: none; }
.look-a .magic-btn .magic-combo { width: 44px; height: 40px; }
.look-a .magic-btn .magic-combo img.big { width: 36px; height: 36px; }
.look-a .magic-btn .magic-combo img.small { width: 22px; height: 22px; }
.look-a .magic-btn .magic-combo img.spark { width: 14px; height: 14px; }
.look-a .magic-badge { top: -7px; right: -5px; min-width: 24px; height: 24px; font-size: 12.5px; border-width: 2px; }
@media (hover: hover) { .look-a .magic-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); } }
/* the sticker toast pops up above the dock, not under it */
.look-a .stk-toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }

/* ------------------------------------------------------------ the night sky, lower down */
.look-a .sky-band {
  height: clamp(300px, 38vh, 340px); margin-top: 10px; margin-bottom: 0; border: none; border-radius: 28px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 14px 30px rgba(0, 0, 0, .35);
}
.look-a .sky-band header { position: absolute; left: 18px; top: 14px; margin: 0; padding: 0; text-align: left; animation: none; }
.look-a .sky-band .logo { font-size: 24px; margin-right: 4px; animation: none; }
.look-a .sky-band .sky-title { display: inline; vertical-align: middle; font-size: 20px; font-weight: 900; }
.look-a .sky-band .sub { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 700; color: #c4b5fd; }
.look-a .sky-banner { top: 64px; }
.look-a .shelf-sky { margin-top: 4px; }

/* ------------------------------------------------------------ the family, at the bottom */
.look-a .panel {
  margin-top: 18px; border: none; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13), 0 10px 30px rgba(0, 0, 0, .22);
}
.look-a .panel h3 { color: #fde68a; }
.look-a #whoPanel.flash { animation: lookA-flash 1.4s ease-out; }
@keyframes lookA-flash { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13); } 30% { box-shadow: inset 0 0 0 3px #fde047, 0 0 30px rgba(250, 204, 21, .45); } }
.look-a footer { margin-top: 30px; }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 900px) {
  .look-a .shelf-row { gap: 14px; }
  .look-a .card h2 { font-size: 16px; padding: 9px 12px 0; }
  .look-a .card-state { padding: 2px 12px 0; }
  .look-a .hub-top { flex-wrap: wrap; row-gap: 12px; }
  .look-a .hub-top .grow { display: none; }
  .look-a .hub-top .hello { flex: 1; }
  .look-a .hub-top .pills { flex-basis: 100%; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .look-a body { padding-left: max(env(safe-area-inset-left), 14px); padding-right: max(env(safe-area-inset-right), 14px); }
}
/* an iPad held upright and smaller: the dock becomes a bar of icons with their names under them
   (six buttons - with 🌙 Standby on an iPad - would not fit across in a row) */
@media (max-width: 1000px) {
  .look-a .magic-bar { left: 10px; right: 10px; transform: none; max-width: 820px; margin: 0 auto; justify-content: space-between; gap: 6px; padding: 6px; }
  .look-a .magic-btn { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 2px; height: 62px; padding: 4px 2px; text-align: center; }
  .look-a .magic-btn img { width: 30px; height: 30px; }
  .look-a .magic-btn b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .look-a .magic-btn .magic-combo { width: 36px; height: 32px; }
  .look-a .magic-btn .magic-combo img.big { width: 30px; height: 30px; }
  .look-a .magic-btn .magic-combo img.small { width: 18px; height: 18px; }
}
@media (max-width: 700px) and (min-width: 521px) {
  .look-a .shelf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .look-a .hub-top .me { width: 62px; height: 62px; font-size: 34px; }
  .look-a .pill { height: 46px; padding: 0 12px 0 7px; }
  .look-a .pill b { font-size: 18px; }
  .look-a .pill img { width: 26px; height: 26px; }
  .look-a .t-card { flex-basis: 150px; min-height: 80px; padding: 10px 12px; gap: 10px; }
  .look-a .t-card > img { width: 40px; height: 40px; }
  .look-a .t-card b { font-size: 16px; }
  .look-a .t-card .go { display: none; }            /* (the whole card opens it) */
  .look-a .stk-toast-stickers img:nth-child(n+2) { display: none; }
  .look-a .shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .look-a .card h2 { font-size: 16px; padding: 8px 12px 0; }
  .look-a .card-state { padding: 2px 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .look-a .hub-top, .look-a .t-card, .look-a .t-card.gold > img, .look-a .stars-pill.grew, .look-a .stars-pill .stars-plus { animation: none !important; }
}
