/* The app's main screen (Haim 29.11), always landscape. One look for every part of it, the games' own (tokens.css and the
   games' start cards: white surfaces with a solid foot, orange titles, an orange main button), on the hero's blue with its
   slow light rays. Five sizes, two weights, one corner (14px), one foot (5px), one camera (--cam). */
:root {
  --cam: .8s cubic-bezier(.65, 0, .35, 1);
  --t1: 14px; --t2: 17px; --t3: 22px; --t4: 30px; --t5: 40px;
  --r: 14px; --foot: 5px;
  --navy: #0b2f78;
  --surface-sh: 0 var(--foot) 0 var(--k-edge), 0 18px 32px #06205a59;
  --tint: color-mix(in srgb, var(--c, #3a8dff) 16%, #fff);
}
html { height: 100%; background: radial-gradient(90% 80% at 30% 40%, #4aa8ff 0%, #2478f0 38%, #1554c8 70%, #0d3a96 100%) fixed; }
body { margin: 0; height: 100%; overflow: hidden; font-family: var(--k-font); font-weight: 600; color: var(--k-ink); -webkit-tap-highlight-color: transparent; user-select: none; }
body::before { content: ''; position: fixed; inset: -25%; pointer-events: none; opacity: .13; z-index: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, #fff 0deg 6deg, transparent 6deg 18deg); animation: rays 90s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } #track, #mapcol, #daycol, .sheetcard, #player { transition: none !important; } }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- the parts every screen shares */
/* a surface: white, one corner, one foot */
.card, .kind, .sheetcard, #wpanel, .plate, .tile, .round, .pill { background: var(--k-paper); border-radius: var(--r); box-shadow: var(--surface-sh); }
/* a press: down into its foot */
.card:active:not(.off), .kind:active, .tile:active, .round:active, .wcard:active, .item:active:not(.locked) { transform: translateY(3px); box-shadow: 0 2px 0 var(--k-edge), 0 10px 20px #06205a40; }
/* the main button, orange, as on every game's start card */
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--r); background: var(--k-accent); color: #fff; font-weight: 700; font-size: var(--t2); box-shadow: 0 var(--foot) 0 var(--k-accent-edge); }
.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--k-accent-edge); }
/* a title on the blue */
.paneltitle { margin: 0; color: #fff; font-size: var(--t5); font-weight: 700; letter-spacing: -.01em; text-shadow: 0 3px 0 var(--navy), 0 8px 18px #06205a66; }
.panelsub { margin: 6px 0 0; color: #e2ecff; font-size: var(--t2); text-shadow: 0 2px 0 #0b2f7888; }
.panelhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 3.2vh; }
/* a subject's chip */
.chip, .card .sub { display: inline-block; padding: 3px 12px 4px; border-radius: var(--k-r-pill); background: var(--c, #5d7d9a); color: #fff; font-size: var(--t1); font-weight: 700; white-space: nowrap; box-shadow: inset 0 -2px 0 #0002; }
/* a round icon button */
.round { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--k-blue-700); }
.round svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- the camera: four places side by side and the map's zoom
   (Haim 29.11 "כל הניווט ... בתנועת מצלמה אחידה": the wardrobe right of the day, all the games and the quick games left of it) */
#track { position: fixed; inset: 0; width: 400vw; display: flex; z-index: 1; transform: translateX(100vw); transition: transform var(--cam); }
body.all #track { transform: translateX(200vw); }
body.quick #track { transform: translateX(300vw); }
body.wardrobe #track { transform: translateX(0); }
#today, #allgames, #quickgames, #wardrobepanel { position: relative; width: 100vw; height: 100%; flex: none; }

/* the map under the day, close on Kimmi, fading into the blue on its left; out to the whole map */
@property --ms { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
#mapcol { position: absolute; inset: 0; --ms: 30%; transition: --ms var(--cam); }
#map { width: 100%; height: 100%; border: 0; display: block; -webkit-mask-image: linear-gradient(to left, #000 var(--ms), transparent calc(var(--ms) + 22%)); mask-image: linear-gradient(to left, #000 var(--ms), transparent calc(var(--ms) + 22%)); }
body.map #mapcol { --ms: 100%; }
#daycol { transition: opacity var(--cam), transform var(--cam); }
body.map #daycol { opacity: 0; transform: translateX(-12vw); pointer-events: none; }

/* ---------------------------------------------------------------- the day: its date and its eight games */
#daycol { position: absolute; inset: 0 auto 0 0; width: 66vw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4vh; padding: 15vh 2.4vw 6vh; box-sizing: border-box; }
#datebar { display: flex; align-items: center; gap: 12px; }
.plate { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px; }
#date { margin: 0 6px; font-size: var(--t4); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; color: var(--k-ink); display: flex; align-items: center; gap: 12px; }
#date .heb { font-weight: 600; color: var(--k-ink-soft); font-size: var(--t3); }
#date .todaychip { padding: 4px 14px 5px; border-radius: var(--k-r-pill); font-size: var(--t2); color: #fff; background: var(--k-accent); box-shadow: 0 3px 0 var(--k-accent-edge); }
.arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--k-blue-500); color: #fff; box-shadow: 0 4px 0 var(--k-blue-700); }
.arrow svg { width: 24px; height: 24px; stroke-width: 3.2; }
.arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--k-blue-700); }
.arrow:disabled { background: #d5dbe5; box-shadow: 0 4px 0 #b6bfcc; cursor: default; transform: none; }
#backtoday[hidden] { display: none; }

#cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 1.5vw; width: 100%; max-width: 1000px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1vh; padding: 2.4vh .9vw 1.6vh; text-align: center; transition: transform var(--k-t-fast); }
.card .ttl { font-size: var(--t2); font-weight: 700; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the game's sticker, on a soft disc of its subject's colour */
.card .stk { position: relative; width: 100%; height: 15.5vh; display: block; flex: none; }
.card .stk::before { content: ''; position: absolute; inset: 4% 14%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 8%, #fff) 70%, transparent); }
.card .stk img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: rotate(var(--tilt, -3deg)); filter: drop-shadow(0 6px 6px #0003); }
/* its star's slot, over its top edge (only on its own day); a gem in the boss's */
.card .slot { position: absolute; top: -19px; left: 50%; margin-left: -20px; width: 40px; height: 40px; background: var(--k-img-star) center / contain no-repeat; filter: grayscale(1) brightness(.75) opacity(.6) drop-shadow(0 2px 0 #0003); }
.card .slot.on { filter: drop-shadow(0 0 5px #8fd0ff) drop-shadow(0 2px 1px #0004); }
.card .slot.gem { background: none; filter: none; }
.card .slot.gem svg { width: 100%; height: 100%; stroke: #6b2fb8; stroke-width: 1.4; fill: #d9c6ff; }
.card .slot.gem.on svg { fill: #9b5cf0; filter: drop-shadow(0 0 5px #d6b8ff); }
/* "השלמה" / "שוב" / "חזרה": a tag on its top corner */
.card .note { position: absolute; top: -12px; inset-inline-end: 12px; font-size: 12px; font-weight: 700; padding: 3px 10px 4px; border-radius: var(--k-r-pill); color: #fff; background: #5d7d9a; box-shadow: 0 3px 0 #3d5a74; }
.card .note.catch { background: var(--k-accent); box-shadow: 0 3px 0 var(--k-accent-edge); }
.card.done::after { content: '✓'; position: absolute; top: 10px; inset-inline-start: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--k-good-strong); box-shadow: 0 3px 0 var(--k-good-strong-edge); }
.card.off { cursor: default; background: #eef2f8; }
.card.off .stk img { filter: grayscale(1) opacity(.55); }
.card.off .stk::before { background: radial-gradient(closest-side, #dfe5ee, transparent); }
.card.off .ttl { color: var(--k-ink-muted); }
.card.off .sub { background: #9aa6b6 !important; }
.card.boss:not(.off) { box-shadow: inset 0 0 0 3px #ffc531, var(--surface-sh); }
.card .timer { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -20%); padding: 7px 16px 8px; border-radius: var(--k-r-pill); background: #1e2a3de6; color: #fff; font-weight: 700; font-size: var(--t2); white-space: nowrap; box-shadow: 0 3px 0 #0007; }

/* ---------------------------------------------------------------- over everything: what he has, the settings, the leaders, the wardrobe */
#wallet { position: fixed; top: 18px; left: 22px; z-index: 5; display: flex; gap: 14px; direction: ltr; }
.pill { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 6px; border-radius: var(--k-r-pill); font-weight: 700; font-size: var(--t3); color: var(--k-ink); }
.pill i { position: relative; width: 38px; height: 38px; margin-left: -10px; background: center / contain no-repeat; filter: drop-shadow(0 2px 1px #0003); }
#wallet .k-prize { display: flex; gap: 14px; }
#wallet canvas.k-p3d { width: 46px; height: 46px; margin: -4px -8px -4px -12px; flex: none; }
#wallet .pill i canvas.k-p3d { position: absolute; inset: -4px; width: 46px; height: 46px; margin: 0; }
#wallet .pill.k-has3d i { background-image: none !important; }
#wallet .pill.star.k-has3d > i { display: none; }
.pill.star i { background-image: var(--k-img-star); }
.pill.coin i { background-image: var(--k-img-coin); }
.pill.gem i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10l4 6-9 12L3 9z' fill='%239b5cf0' stroke='%235a1fa8' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M3 9h18M9 3l3 18M15 3l-3 18' stroke='%23d9c2ff' stroke-width='.8'/%3E%3C/svg%3E"); }
#corner { position: fixed; top: 14px; right: 22px; z-index: 5; display: flex; gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: var(--t1); color: var(--k-ink); }
#wardrobe { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 5; width: 84px; height: 84px; transition: opacity var(--cam), transform var(--k-t-fast); }
#wardrobe svg { width: 38px; height: 38px; color: var(--k-accent); }
#wardrobe:active { transform: translateY(calc(-50% + 3px)); }
body.all #wardrobe, body.quick #wardrobe, body.wardrobe #wardrobe, body.map #wardrobe { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- the dock: under Kimmi the year's map, then today's games, all the games, the quick games */
#tabs { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 12px; align-items: center; }
body::after { content: ''; position: fixed; inset: 0 0 auto 0; height: 13vh; z-index: 3; pointer-events: none; background: linear-gradient(#072a6ecc, transparent); }
#tabs button { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px; justify-content: center; border-radius: var(--r); background: var(--k-paper); color: var(--k-ink); font-weight: 700; font-size: var(--t2); box-shadow: 0 var(--foot) 0 var(--k-edge), 0 10px 20px #0005; transition: transform var(--k-t-fast), background var(--k-t-base); }
#tabs button svg { width: 26px; height: 26px; color: var(--k-blue-500); }
#tabs button.on { background: var(--k-accent); color: #fff; box-shadow: 0 var(--foot) 0 var(--k-accent-edge), 0 0 0 4px #ffffff40, 0 12px 24px #0006; }
#tabs button.on svg { color: #fff; }
#tabs button:active { transform: translateY(2px); }

/* ---------------------------------------------------------------- all the games: 6 in a row */
#allgames, #quickgames { padding: 15vh 4vw 6vh; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
#kinds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 1.4vw; }
.kind { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px 14px; transition: transform var(--k-t-fast); }
.kind .stk { position: relative; width: 100%; height: 14vh; display: block; flex: none; }
.kind .stk::before { content: ''; position: absolute; inset: 2% 12%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 28%, #fff), color-mix(in srgb, var(--c) 6%, #fff) 70%, transparent); }
.kind .stk img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px #0003); }
.kind b { font-size: var(--t2); line-height: 1.2; }
.kind .chip { font-size: 12px; }

/* the quick games: two big cards, each with its own "play" */
#quick { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 3vw; margin-top: 2vh; }
#quick .kind { padding: 26px 22px 24px; gap: 14px; }
#quick .kind .stk { height: 32vh; }
#quick .kind b { font-size: var(--t4); }
#quick .kind .chip { font-size: var(--t1); }
#quick .kind .primary { width: 70%; }

/* ---------------------------------------------------------------- a page over the screen (a game's months, the leaders, the settings) */
#sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: #06205a00; transition: background var(--cam); }
#sheet.in { background: #06205aa6; }
#sheet[hidden], #player[hidden] { display: none; }
.sheetcard { position: relative; width: min(1180px, 92vw); max-height: 80vh; overflow-y: auto; padding: 30px 36px 32px; box-sizing: border-box; scrollbar-width: thin;
  transform: translateY(46px) scale(.97); opacity: 0; transition: transform var(--cam), opacity .35s; }
#sheet.in .sheetcard { transform: none; opacity: 1; }
#sheet.narrow .sheetcard { width: min(580px, 90vw); }
.sheetcard h2 { margin: 0; color: var(--k-title); font-size: var(--t4); font-weight: 700; letter-spacing: -.01em; }
.close { position: absolute; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--k-paper); color: var(--k-ink); font-size: 20px; font-weight: 700; z-index: 2; box-shadow: 0 4px 0 var(--k-edge), inset 0 0 0 2px #e8edf4; }
.close:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--k-edge); }
/* a game's page: its sticker and name, then a row for each month */
.gamehead { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding-inline-end: 64px; }
.gamehead .hstk { position: relative; width: 120px; height: 120px; flex: none; }
.gamehead .hstk::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 28%, #fff), transparent); }
.gamehead .hstk img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 6px #0003); }
.gamehead p { margin: 8px 0 0; color: var(--k-ink-soft); font-size: var(--t2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.month { margin-bottom: 24px; }
.month h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--t3); font-weight: 700; }
.month h3 small { font-size: var(--t1); color: var(--k-ink-muted); }
.month .row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 16px; scrollbar-width: thin; }
.item { flex: none; width: 184px; display: flex; flex-direction: column; gap: 7px; text-align: start; transition: transform var(--k-t-fast); }
.item .pic { position: relative; width: 184px; height: 126px; border-radius: var(--r); background: var(--tint); display: grid; place-items: center; overflow: hidden; box-shadow: 0 var(--foot) 0 var(--k-edge); }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .pic img.st { object-fit: contain; padding: 10px; box-sizing: border-box; }
.item .pic i { position: absolute; top: 8px; inset-inline-start: 8px; width: 32px; height: 32px; }
.item .pic i.won { background: var(--k-img-star) center / contain no-repeat; filter: drop-shadow(0 2px 2px #0005); }
.item .pic i.lock { inset: 0; width: auto; height: auto; background: #1e2a3db3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 40px no-repeat; }
.item b { font-size: var(--t2); line-height: 1.25; }
.item small { color: var(--k-ink-muted); font-size: var(--t1); }
.item.locked { cursor: default; } .item.locked b { color: var(--k-ink-muted); }
/* the leaders */
.tabsrow { display: flex; gap: 10px; margin: 16px 0 18px; }
.tabsrow button { height: 44px; padding: 0 20px; border-radius: var(--r); background: var(--k-paper); font-weight: 700; font-size: var(--t2); box-shadow: 0 4px 0 var(--k-edge), inset 0 0 0 2px #e8edf4; }
.tabsrow button.on { background: var(--k-accent); color: #fff; box-shadow: 0 4px 0 var(--k-accent-edge); }
.leads { display: flex; flex-direction: column; gap: 8px; }
.lead { display: grid; grid-template-columns: 34px 42px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--r); background: #f3f6fb; }
.lead.me { background: var(--k-orange-100); box-shadow: inset 0 0 0 3px var(--k-accent); }
.lead .n { font-weight: 700; color: var(--k-ink-muted); text-align: center; }
.lead .n.m1, .lead .n.m2, .lead .n.m3 { width: 32px; height: 32px; line-height: 32px; border-radius: 50%; color: #fff; }
.lead .n.m1 { background: #f2b51f; box-shadow: 0 3px 0 #b27e0a; } .lead .n.m2 { background: #a9b6c6; box-shadow: 0 3px 0 #7b8899; } .lead .n.m3 { background: #d08a52; box-shadow: 0 3px 0 #9c5d2c; }
.lead .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 19px; background: hsl(var(--h) 65% 55%); box-shadow: inset 0 -3px 0 #0002; }
.lead .nm { font-weight: 700; font-size: var(--t2); } .lead .nm small { color: var(--k-ink-muted); font-weight: 600; }
.lead .s { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: var(--t2); }
.lead .s i { width: 26px; height: 26px; background: var(--k-img-star) center / contain no-repeat; }
/* the settings */
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 18px; margin-top: 12px; border-radius: var(--r); background: #f3f6fb; font-size: var(--t2); font-weight: 700; box-sizing: border-box; cursor: pointer; }
.sheetcard h2 + .set { margin-top: 20px; }
.set input { position: absolute; opacity: 0; pointer-events: none; }
.set i { position: relative; width: 58px; height: 34px; border-radius: 99px; background: #c6cfdb; transition: background var(--k-t-base); flex: none; box-shadow: inset 0 2px 3px #0002; }
.set i::after { content: ''; position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 3px #0003; transition: inset-inline-end var(--k-t-base); }
.set input:checked + i { background: var(--k-good-strong); }
.set input:checked + i::after { inset-inline-end: 28px; }
.set.parents { color: var(--k-ink-muted); cursor: default; } .set.parents small { font-size: var(--t1); }

/* ---------------------------------------------------------------- the wardrobe: Kimmi big on the left, his clothes on the right */
#wkimmi { position: absolute; inset: 0 auto 12vh 0; width: 54vw; }
#wframe { width: 100%; height: 100%; border: 0; background: transparent; display: block; }
#wpanel { position: absolute; top: 14vh; bottom: 5vh; right: 3vw; width: 40vw; display: flex; flex-direction: column; padding: 24px 26px 18px; box-sizing: border-box; }
#wpanel h2 { margin: 0 0 16px; color: var(--k-title); font-size: var(--t4); font-weight: 700; }
#wtabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
#wtabs button { height: 42px; padding: 0 16px; border-radius: var(--r); background: var(--k-paper); font-weight: 700; font-size: var(--t2); box-shadow: 0 4px 0 var(--k-edge), inset 0 0 0 2px #e8edf4; }
#wtabs button[aria-selected="true"] { background: var(--k-accent); color: #fff; box-shadow: 0 4px 0 var(--k-accent-edge); }
#witems { position: relative; flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 12px; align-content: start; padding: 4px 4px 10px; scrollbar-width: thin; }
.wcard { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 6px 9px; border-radius: var(--r); background: var(--k-paper); box-shadow: 0 4px 0 var(--k-edge), inset 0 0 0 2px #e8edf4; font-weight: 700; font-size: var(--t1); transition: transform var(--k-t-fast); }
.wcard img, .wcard .none { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3f6fb; }
.wcard .none { display: grid; place-items: center; font-size: 44px; }
.wcard[aria-pressed="true"] { background: var(--k-orange-100); box-shadow: inset 0 0 0 3px var(--k-accent), 0 4px 0 var(--k-accent-edge); }
.wcolors { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
.wcolors h3 { margin: 0 0 10px; font-size: var(--t2); font-weight: 700; color: var(--k-ink-soft); }
.wcolors .sw { display: flex; flex-wrap: wrap; gap: 14px; }
.wcolors .sw button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--t1); font-weight: 700; color: var(--k-ink-soft); }
.wcolors .sw i { width: 56px; height: 56px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -5px 0 #0002, 0 4px 0 var(--k-edge); }
.wcolors .sw button[aria-pressed="true"] i { box-shadow: inset 0 -5px 0 #0002, 0 0 0 4px #fff, 0 0 0 7px var(--k-accent); }
#witems .wait { grid-column: 1 / -1; text-align: center; color: var(--k-ink-muted); font-weight: 700; padding-top: 30px; }

/* ---------------------------------------------------------------- a game, full screen; its own buttons keep the top left, ours the top right */
#player { position: fixed; inset: 0; z-index: 30; background: #06205a; opacity: 0; transform: scale(1.04); transition: opacity .45s, transform var(--cam); }
#player.in { opacity: 1; transform: none; }
#player iframe { width: 100%; height: 100%; border: 0; }
#player .close { top: 14px; inset-inline-end: auto; inset-inline-start: 14px; }

/* ---------------------------------------------------------------- a smaller screen (a laptop, a tablet held sideways) */
@media (max-width: 1150px) {
  #wkimmi { width: 48vw; }
  #wpanel { width: 47vw; right: 2.5vw; padding: 18px 18px 14px; }
  #witems { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  #tabs button { min-width: 0; padding: 0 16px; }
  #kinds { gap: 20px 1.2vw; }
}
@media (max-height: 760px) {
  .card .stk { height: 13.5vh; }
  #daycol { gap: 2.6vh; padding-top: 9vh; }
}
.item small .rep { color: #fff; background: #5d7d9a; padding: 1px 8px 2px; border-radius: 99px; font-size: 12px; font-weight: 700; }
/* the week's boss, moving in 3D on his card (grey with his timer until Thursday) */
.card .stk.boss3d::before { inset: 0 8%; background: radial-gradient(closest-side, #ffe7a8, #fff3d4 60%, transparent); }
.card .stk.boss3d canvas { position: relative; display: block; height: 100%; width: auto; aspect-ratio: 180 / 220; margin: 0 auto; transform: scale(1.35); transform-origin: 50% 80%; }
.card.off .stk.boss3d canvas { filter: grayscale(1) opacity(.7); }
.card.off .stk.boss3d::before { background: radial-gradient(closest-side, #dfe5ee, transparent); }

/* ---------------------------------------------------------------- Kimmi: one Kimmi in his own layer (Haim 29.11 "במלתחה - קימי של מסך הבית צריך להופיע"):
   on the path where the map says he stands, and with the same camera move into the wardrobe's left side */
#kimmi3d { position: fixed; z-index: 2; left: 70vw; top: 20vh; width: 20vw; height: 60vh; border: 0; background: transparent; pointer-events: none; opacity: 0; transition: opacity .4s; color-scheme: normal; }
#kimmi3d.real { opacity: 1; }
#kimmi3d.moving { transition: left var(--cam), top var(--cam), width var(--cam), height var(--cam), opacity .4s; }

/* ---------------------------------------------------------------- the settings and the leaders: a dark drawer from the right */
#scrim { position: fixed; inset: 0; z-index: 24; background: #020a1e00; pointer-events: none; transition: background var(--cam); }
body.drawer #scrim { background: #020a1e8c; pointer-events: auto; }
#drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 25; width: min(460px, 36vw); padding: 30px 28px; box-sizing: border-box; overflow-y: auto; color: #eaf1ff;
  background: linear-gradient(160deg, #142a5c, #0a1638 70%); box-shadow: -18px 0 40px #0008; transform: translateX(105%); transition: transform var(--cam); scrollbar-width: none; }
body.drawer #drawer { transform: none; }
#drawer h2 { margin: 0 0 6px; font-size: var(--t4); font-weight: 700; color: #fff; }
#drawer .close { top: 22px; inset-inline-end: 22px; background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 2px #ffffff26; }
#drawer .tabsrow button { background: #ffffff14; color: #dbe6ff; box-shadow: inset 0 0 0 2px #ffffff22; }
#drawer .tabsrow button.on { background: var(--k-accent); color: #fff; box-shadow: 0 4px 0 var(--k-accent-edge); }
#drawer .lead { background: #ffffff0f; }
#drawer .lead.me { background: #f6782b2e; box-shadow: inset 0 0 0 2px var(--k-accent); }
#drawer .lead .nm small, #drawer .lead .n { color: #9fb2d8; }
#drawer .set { background: #ffffff0f; color: #fff; }
#drawer .set i { background: #ffffff2e; }
#drawer .set.parents { color: #9fb2d8; }
#drawer h2 + .set { margin-top: 22px; }
#drawer .lead .n.m1, #drawer .lead .n.m2, #drawer .lead .n.m3 { color: #fff; }
#wallet canvas.k-p3d, #wallet .pill i canvas.k-p3d { width: 52px; height: 52px; }
#wallet .pill i canvas.k-p3d { inset: -7px; }
/* the top bar on a smaller screen: the menu tighter, and on a tablet only the open tab keeps its word */
@media (max-width: 1250px) {
  #tabs { gap: 8px; } #tabs button { height: 48px; padding: 0 12px; font-size: var(--t1); } #tabs button svg { width: 22px; height: 22px; }
  .pill { height: 40px; font-size: 18px; } #wallet .k-prize { gap: 10px; } .round { width: 48px; height: 48px; }
}
@media (max-width: 1080px) { #tabs button:not(.on) { font-size: 0; gap: 0; padding: 0 13px; } }
#tabs button { white-space: nowrap; }
/* (the menu in the middle of the top bar, the wardrobe first: Haim 29.11 "את המלתחה שים בתפריט למעלה. תמרכז אותו לאמצע") */
#tabs { left: 50%; right: auto; transform: translateX(-50%); }
/* (five tabs in the middle: tighter under 1450, and under 1340 only the open tab keeps its word, so they never touch the wallet or the corner) */
@media (max-width: 1450px) { #tabs { gap: 8px; } #tabs button { height: 48px; padding: 0 12px; font-size: var(--t1); } #tabs button svg { width: 22px; height: 22px; } }
@media (max-width: 1340px) { #tabs button:not(.on) { font-size: 0; gap: 0; padding: 0 13px; } }
/* (Kimmi's frame is moved and scaled, never resized: home.js kimmiPut) */
#kimmi3d { transform-origin: 0 0; will-change: transform; }

/* (the game's own glass X is the way home: ours hides while it shows; leaving in the middle asks first, Haim 30.11) */
#player.ownx .close { display: none; }
#player .close { background: var(--k-glass); box-shadow: var(--k-glass-rim); -webkit-backdrop-filter: var(--k-glass-blur); backdrop-filter: var(--k-glass-blur); color: var(--k-ink); }
#leave { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #04123acc; animation: leavein .25s ease-out; }
#leave[hidden] { display: none; }
.leavecard { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 40px 30px; border-radius: var(--r); background: var(--k-paper); box-shadow: 0 var(--foot) 0 var(--k-edge), 0 24px 50px #0008; text-align: center; animation: leavepop .3s cubic-bezier(.2, 1.4, .4, 1); }
.leavecard h2 { margin: 0; color: var(--k-title); font-size: var(--t4); font-weight: 700; }
.leavecard p { margin: 0 0 14px; color: var(--k-ink-soft); font-size: var(--t2); font-weight: 600; }
.leavebtns { display: flex; gap: 16px; }
.leavebtns button { height: 64px; padding: 0 28px; gap: 10px; font-size: var(--t3); }
.leavebtns svg { width: 28px; height: 28px; flex: none; }
.leavebtns .ghost { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--k-paper); color: var(--k-ink); font-weight: 700; box-shadow: 0 var(--foot) 0 var(--k-edge), inset 0 0 0 2px #e8edf4; }
.leavebtns .ghost:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--k-edge), inset 0 0 0 2px #e8edf4; }
@keyframes leavein { from { opacity: 0; } }
@keyframes leavepop { from { transform: scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #leave, .leavecard { animation: none; } }

/* (through the wardrobe's fade from or to the map, the map stays whole and the day's games stay away) */
body.wfade #daycol { opacity: 0; transform: translateX(-12vw); pointer-events: none; transition: none; }
body.wfade #mapcol { --ms: 100%; transition: none; }

/* (what he has, straight on the blue: no white cards behind them, Haim 30.11 "תוריד את הכרטיסים הלבנים מהרקע של הפריטים") */
#wallet .pill { background: none; box-shadow: none; color: #fff; text-shadow: 0 3px 0 #0b2a6e, 0 0 10px #0b2a6e88; padding: 0 6px 0 0; }

/* (a prize on its way from the game's card to his corner) */
.flyx { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.flyp { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; background: center / contain no-repeat; filter: drop-shadow(0 4px 4px #0005); will-change: transform; }
.flyp.coins { background-image: var(--k-img-coin); }
.flyp.stars { background-image: var(--k-img-star); }
.flyp.gems { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10l4 6-9 12L3 9z' fill='%239b5cf0' stroke='%235a1fa8' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M3 9h18M9 3l3 18M15 3l-3 18' stroke='%23d9c2ff' stroke-width='.8'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- the day's cards, again (Haim 30.11): the subject on top half out,
   the star's slot at the bottom half out and clearer, an orange "שחק" / a turquoise "שוב" */
#cards { gap: 46px 1.5vw; padding: 14px 0 22px; }
.card { padding: 3.2vh .9vw 4.2vh; gap: .9vh; }
.card > .sub { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 5px 16px 6px; font-size: var(--t2); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000), 0 0 0 3px var(--k-paper); z-index: 1; }
.card.boss > .sub { background: #f2a516 !important; }
.card .stk { height: 13vh; }
.card .go { display: inline-flex; align-items: center; justify-content: center; min-width: 58%; height: 40px; padding: 0 18px; border-radius: var(--r); background: var(--k-accent); color: #fff; font-size: var(--t2); font-weight: 700; box-shadow: 0 4px 0 var(--k-accent-edge); }
.card .go.again { --tq: #17b3ac; background: var(--tq); box-shadow: 0 4px 0 #0c7a75; }
.card:active:not(.off) .go { transform: translateY(2px); box-shadow: 0 2px 0 var(--k-accent-edge); }
.card:active:not(.off) .go.again { box-shadow: 0 2px 0 #0c7a75; }
.card.done::after { content: none; }
.card .slot { top: auto; bottom: 0; left: 50%; margin: 0; width: 52px; height: 52px; transform: translate(-50%, 50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffffff, #e4ebf5); box-shadow: 0 3px 0 var(--k-edge), inset 0 0 0 3px #d3dceb, 0 6px 12px #06205a33; filter: none; }
.card .slot i { width: 36px; height: 36px; background: var(--k-img-star) center / contain no-repeat; filter: grayscale(1) brightness(1.15) opacity(.45); }
.card .slot.on { background: radial-gradient(circle at 50% 40%, #fff8dc, #ffe08a); box-shadow: 0 3px 0 #d9a520, inset 0 0 0 3px #ffd24d, 0 0 16px #ffd24d99; }
.card .slot.on i { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px #0004); }
.card .slot.gem { background: radial-gradient(circle at 50% 40%, #ffffff, #ece4fb); box-shadow: 0 3px 0 var(--k-edge), inset 0 0 0 3px #dccdf7, 0 6px 12px #06205a33; }
.card .slot.gem svg { width: 32px; height: 32px; }
.card .slot.gem.on { background: radial-gradient(circle at 50% 40%, #faf4ff, #dcc4ff); box-shadow: 0 3px 0 #7d45d1, inset 0 0 0 3px #b48cf5, 0 0 16px #b48cf599; }
.card .note { top: 10px; inset-inline-end: 8px; }
.card .slot:not(.on) { outline: 2px dashed #a9bad2; outline-offset: -9px; }
.card .slot:not(.on) i { width: 30px; height: 30px; filter: grayscale(1) brightness(1.05) contrast(1.2) opacity(.7); }
.card .slot.gem:not(.on) { outline-color: #c4aef0; }

/* (Haim 30.11 "הסלוט של הכוכב צריך להיות הרבה יותר מינימליסטי"; a star won is the turning 3D star, the boss's the crystal) */
.card .slot, .card .slot.gem, .card .slot.on, .card .slot.gem.on { bottom: 0; width: 40px; height: 40px; transform: translate(-50%, 50%); background: var(--k-paper); box-shadow: 0 2px 6px #06205a30; outline: none; border-radius: 50%; }
.card .slot svg { width: 24px; height: 24px; fill: none; stroke: #b8c4d6; stroke-width: 1.8; stroke-linejoin: round; }
.card .slot.on { width: 64px; height: 64px; background: none; box-shadow: none; }
.card .slot.on > span { position: relative; display: block; width: 100%; height: 100%; }
.card .slot.on i { position: absolute; inset: 6px; width: auto; height: auto; background: center / contain no-repeat; filter: drop-shadow(0 3px 3px #0004); }
.card .slot.on .star i { background-image: var(--k-img-star); }
.card .slot.on .gem i { background-image: url(/games/lab/art/crystal.webp); }
.card .slot.on canvas.k-p3d { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); z-index: 1; filter: drop-shadow(0 3px 3px #0004); }
.card .slot.on .star.k-has3d > i, .card .slot.on .gem.k-has3d i { background-image: none; filter: none; }
.card .go svg { width: 20px; height: 20px; margin-inline-end: 6px; }
.card .go.wait { background: #c3ccd9; color: #3e4a5c; box-shadow: 0 4px 0 #9aa6b6; font-variant-numeric: tabular-nums; }
.card .timer { display: none; }

/* the menu: his name, typed and picked */
#drawer h3 { margin: 26px 0 12px; font-size: var(--t2); font-weight: 700; color: #9fb2d8; }
.namebox { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.namebox label { font-size: var(--t2); font-weight: 700; color: #fff; }
.namebox input { height: 54px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--k-paper); color: var(--k-ink); font: inherit; font-size: var(--t3); font-weight: 700; box-shadow: 0 4px 0 var(--k-edge); outline: none; }
.namebox input:focus { box-shadow: 0 4px 0 var(--k-edge), 0 0 0 3px var(--k-accent); }
#knames { display: flex; flex-wrap: wrap; gap: 8px; }
#knames:empty { display: none; }
#knames button { height: 42px; padding: 0 16px; border-radius: var(--k-r-pill); background: #ffffff1a; color: #fff; font-weight: 700; font-size: var(--t2); box-shadow: inset 0 0 0 2px #ffffff2e; }
#knames button.on, #knames button:active { background: var(--k-accent); box-shadow: 0 3px 0 var(--k-accent-edge); }
.namebox .hint { margin: 0; color: #9fb2d8; font-size: var(--t1); }
.namebox .hint:empty { display: none; }
.card .slot.gem svg { width: 24px; height: 24px; fill: none; stroke: #b8c4d6; stroke-width: 1.8; filter: none; }

/* (the empty slot, the simplest: a white star with a border, Haim 30.11 "כוכב לבן עם בורדר כזה"; the crystal's the same) */
.card .slot:not(.on), .card .slot.gem:not(.on) { width: 44px; height: 44px; background: none; box-shadow: none; outline: none; border-radius: 0; }
.card .slot:not(.on) svg, .card .slot.gem:not(.on) svg { width: 44px; height: 44px; fill: var(--k-paper); stroke: #c9d3e1; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 2px #06205a26); }

/* (the slot, again: one size, empty or won. Empty = a white star sunk into the card's edge colour; won = the 3D star's render,
   the same size, a soft glow. Haim 30.11 "הכוכב ענק מדי במשחקים שהסתיימו, והסלוטים לא מעוצבים טוב") */
.card .slot, .card .slot.gem, .card .slot.on, .card .slot.gem.on, .card .slot:not(.on), .card .slot.gem:not(.on) { width: 46px; height: 46px; bottom: 0; transform: translate(-50%, 50%); background: none; box-shadow: none; outline: none; border-radius: 0; filter: none; }
.card .slot:not(.on) svg, .card .slot.gem:not(.on) svg { width: 46px; height: 46px; fill: #fbfaf7; stroke: #dccdb2; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; paint-order: stroke; filter: drop-shadow(0 2px 0 #c9b796) drop-shadow(0 4px 6px #06205a22); }
.card .slot.on i { position: absolute; inset: 0; width: auto; height: auto; background: var(--k-img-star) center / contain no-repeat; filter: drop-shadow(0 2px 0 #00000026) drop-shadow(0 0 8px #9fd4ff99); }
.card .slot.gem.on i { inset: -2px; background-image: url(/games/lab/art/crystal.webp); filter: drop-shadow(0 2px 0 #00000026) drop-shadow(0 0 8px #c9a8ff99); }
.card .slot.on:not(.gem) i { inset: -5px; }

/* (smaller, Haim 30.11 "להקטין יותר את הסלוט"; the won star straight on) */
.card .slot, .card .slot.gem, .card .slot.on, .card .slot.gem.on, .card .slot:not(.on), .card .slot.gem:not(.on) { width: 34px; height: 34px; }
.card .slot:not(.on) svg, .card .slot.gem:not(.on) svg { width: 34px; height: 34px; stroke-width: 2.4; }
.card .slot.on:not(.gem) i { inset: -6px; background-image: var(--star-still, var(--k-img-star)); }

/* the name: locked, a pencil opens it, a check keeps it */
.namebox .lbl { font-size: var(--t2); font-weight: 700; color: #fff; }
.namerow { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 8px 0 18px; border-radius: var(--r); background: #ffffff12; box-shadow: inset 0 0 0 2px #ffffff22; }
.namerow .nm { flex: 1; font-size: var(--t3); font-weight: 700; color: #fff; }
.namerow .pen, .namerow .ok { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.namerow .pen { background: #ffffff1c; color: #fff; }
.namerow .ok { background: var(--k-accent); color: #fff; box-shadow: 0 3px 0 var(--k-accent-edge); }
.namerow svg { width: 22px; height: 22px; }
.namerow.edit { padding: 0 7px 0 0; background: var(--k-paper); box-shadow: 0 4px 0 var(--k-edge), 0 0 0 3px var(--k-accent); }
.namerow.edit input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: none; color: var(--k-ink); font: inherit; font-size: var(--t3); font-weight: 700; outline: none; box-shadow: none; }
.namebox .hint { color: #ffd27a; }
.namerow .ok { border-radius: 10px; }   /* (Haim 30.11 "הוי הכתום - מרובע עם פינות עגולות") */
/* (the pencil and the check: the same rounded square in exactly the same place, Haim 30.11) */
.namerow, .namerow.edit { padding: 0; padding-inline-start: 18px; padding-inline-end: 7px; }
.namerow.edit { padding-inline-start: 2px; }
.namerow .pen, .namerow .ok { width: 44px; height: 44px; border-radius: 10px; margin: 0; }
/* (the switches: grey when off, orange when on, Haim 30.11) */
#drawer .set input:checked + i, .set input:checked + i { background: var(--k-accent); box-shadow: inset 0 2px 3px #0002, 0 0 0 2px #ffffff22; }
#wallet .k-prize { gap: 34px; }   /* (more room between them, Haim 30.11 "תרווח יותר") */
#wallet .pill { gap: 10px; }

/* (the menu's icons: drawn in the prizes' own 3D, Haim 30.11 "לשפר משמעותית את האייקונים בתפריט"; app/home/icons/, one sheet) */
#tabs button .ico { width: 36px; height: 36px; flex: none; margin: -6px 0; filter: drop-shadow(0 2px 2px #06205a40); transition: transform var(--k-t-fast); }
#tabs button.on .ico { transform: scale(1.12) rotate(-6deg); filter: drop-shadow(0 3px 3px #7a2e0066); }
#tabs button:hover .ico { transform: scale(1.1); }
.round .ico { width: 40px; height: 40px; filter: drop-shadow(0 2px 2px #06205a40); }
@media (max-width: 1450px) { #tabs button .ico { width: 32px; height: 32px; } }

/* (between the map and the wardrobe the map fades into the blue as the camera goes, as between the map and the day's games,
   Haim 30.11 "צריך פייד בין המפה למלתחה"; in the wardrobe the map is gone) */
body.wardrobe #mapcol, body.wfade.wardrobe #mapcol { --ms: -25%; }
body.wfade #mapcol { transition: --ms var(--cam); }
body.wfade.map #mapcol { --ms: 100%; }
/* (the map's edge next to the wardrobe fades too: the camera brought it in with a hard cut, Haim 30.11 "לא רואים פייד") */
@property --me { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
#mapcol { --me: 0%; transition: --ms var(--cam), --me var(--cam); }
body.wfade #mapcol { --me: 40%; transition: --ms var(--cam), --me var(--cam); }
#map { -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 var(--me), #000 var(--ms), transparent calc(var(--ms) + 22%)); mask-image: linear-gradient(to left, transparent 0%, #000 var(--me), #000 var(--ms), transparent calc(var(--ms) + 22%)); }
body.wardrobe #mapcol { --me: 40%; }
/* (the fade, built again, Haim 30.11 "הפייד לא בנוי טוב": not the mask's edge, the whole map fades out as the camera goes to
   the wardrobe, and in as it comes back; only the blue between them) */
#mapcol, body.wfade #mapcol, body.wardrobe #mapcol { --me: 0%; transition: --ms var(--cam), opacity var(--cam); }
body.wardrobe #mapcol, body.wfade.wardrobe #mapcol { --ms: 100%; opacity: 0; }
/* (the map is gone before its edge reaches the middle, and comes back only once it fills the screen: no hard edge crosses) */
#mapcol, body.wfade #mapcol { transition: --ms var(--cam), opacity .45s ease-in .3s; }
body.wardrobe #mapcol, body.wfade.wardrobe #mapcol { transition: --ms var(--cam), opacity .3s ease-out; }
/* (three quick games: Hebrew joined math and English, Haim 30.11 via Games) */
#quick { grid-template-columns: repeat(3, minmax(0, 400px)); gap: 2.4vw; }
#quick .kind .stk { height: 28vh; }

/* ---------------------------------------------------------------- the game cards, a picture filling the whole upright card (Studio 30.11,
   studio/game_cards; Haim "שהתמונה על כולו? לאורך? ועליה כרטיס לבן עם השם של המשחק של היום"; each picture keeps its focus in the
   upper half and its bottom third calm for the white label). The subject on top half out, the star's slot at the bottom half out, as before */
#cards { grid-template-columns: repeat(4, auto); justify-content: center; gap: 40px 2vw; }
.card { width: auto; height: min(34vh, 300px); aspect-ratio: 3 / 4; padding: 0; gap: 0; display: block; background: var(--k-paper); }
.card > .pic, .kind > .pic { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; border: 4px solid var(--k-paper); background: #dde5ef; }
.card > .pic img, .kind > .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.pic.st { background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, #fff), color-mix(in srgb, var(--c) 8%, #fff)); }
.pic.st img { object-fit: contain; padding: 12% 12% 40%; box-sizing: border-box; filter: drop-shadow(0 5px 5px #0003); }
.card > .label { position: absolute; z-index: 1; left: 8px; right: 8px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; border-radius: calc(var(--r) - 3px); background: var(--k-paper); box-shadow: 0 6px 14px #06205a40; }
.card > .label .ttl { min-height: 2.4em; display: -webkit-box; display: flex; align-items: center; justify-content: center; }
.card > .label .go { height: 34px; min-width: 64%; font-size: var(--t1); }
.card .slot { z-index: 2; }
.card .note { z-index: 2; }
.card.off > .pic img { filter: grayscale(1) opacity(.5); }
.card.off > .label { background: #eef2f8; }
.card.off > .label .ttl { min-height: 0; }

/* all the games: the same picture cards, smaller, its name on the white label */
#kinds { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kind { aspect-ratio: 3 / 4; padding: 0; display: block; }
.kind > .chip { position: absolute; z-index: 1; top: 8px; inset-inline-start: 8px; }
.kind > .label { position: absolute; z-index: 1; left: 7px; right: 7px; bottom: 7px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 7px 6px 8px; border-radius: calc(var(--r) - 4px); background: var(--k-paper); box-shadow: 0 5px 12px #06205a40; text-align: center; }
.kind > .label b { font-size: var(--t2); line-height: 1.15; }
#quick { grid-template-columns: repeat(3, minmax(0, 260px)); }
#quick .kind { padding: 0; }
#quick .kind > .label b { font-size: var(--t3); }
#quick .kind > .label .primary { width: 80%; height: 42px; font-size: var(--t2); }
.card > .label { gap: 4px; padding: 6px 6px 8px; bottom: 20px; }
.card > .label .ttl { font-size: 15px; min-height: 2.3em; }
.card > .label .go { height: 30px; }
/* (a phone on its side: the label to one line of name and a small button, so the picture shows) */
@media (max-height: 500px) {
  .card > .label { left: 5px; right: 5px; bottom: 14px; gap: 3px; padding: 4px 4px 5px; }
  .card > .label .ttl { font-size: 11px; min-height: 0; -webkit-line-clamp: 1; display: -webkit-box; }
  .card > .label .go { height: 22px; font-size: 11px; min-width: 70%; padding: 0 8px; }
  .card > .label .go svg { width: 13px; height: 13px; margin-inline-end: 3px; }
  .card > .sub { font-size: 11px; padding: 3px 9px 4px; }
}

/* Kimmi's speech bubble, by his head while he talks (Haim 30.11 "וצריכה להיות לו בועה") */
#kbubble { position: fixed; left: 0; top: 0; z-index: 30; max-width: min(360px, 36vw); padding: 12px 18px 14px; border-radius: 20px; background: var(--k-paper); color: var(--k-ink);
  font-size: var(--t3); font-weight: 700; line-height: 1.3; text-align: center; box-shadow: 0 5px 0 var(--k-edge), 0 14px 26px #06205a40; transform-origin: 100% 100%; pointer-events: none;
  opacity: 0; transition: opacity .2s ease; will-change: transform; }
#kbubble.in { opacity: 1; }
#kbubble::after { content: ''; position: absolute; right: 18px; bottom: -13px; width: 26px; height: 18px; background: var(--k-paper); clip-path: polygon(0 0, 100% 0, 100% 100%); }
@media (max-height: 500px) { #kbubble { font-size: 15px; padding: 8px 12px 10px; } }

/* ---------------------------------------------------------------- all the games: a row for each subject, the filter on top (Haim 30.11) */
#track { width: 300vw; }
#allgames .panelhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; flex-wrap: wrap; }
#allfilter { display: flex; gap: 6px; padding: 5px; border-radius: var(--k-r-pill); background: #ffffff22; box-shadow: inset 0 0 0 2px #ffffff30; }
#allfilter button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--k-r-pill); color: #fff; font-size: var(--t2); font-weight: 700; white-space: nowrap; }
#allfilter button[aria-selected="true"] { background: var(--k-accent); box-shadow: 0 4px 0 var(--k-accent-edge); }
#allfilter img { width: 28px; height: 28px; object-fit: contain; }
#allfilter .fstar { width: 26px; height: 26px; background: var(--k-img-star) center / contain no-repeat; }
#kinds { display: flex; flex-direction: column; gap: 3.2vh; }
#kinds[hidden], #quick[hidden] { display: none !important; }
.subrow h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.subrow h3 .chip { font-size: var(--t2); padding: 5px 16px 6px; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 60%, #000); }
.subrow h3 small { color: #dbe7ff; font-size: var(--t1); font-weight: 600; }
.rowcards { display: flex; gap: 1.4vw; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rowcards .kind { flex: none; width: clamp(130px, 13.2vw, 200px); scroll-snap-align: start; }
.rowcards .kind > .chip { font-size: 12px; }
#quick { margin-top: 3vh; }
@media (max-height: 500px) {
  #allfilter button { height: 36px; padding: 0 12px; font-size: 14px; }
  .rowcards .kind { width: 108px; }
  .kind > .label b { font-size: 13px; }
}
#wardrobebtn.on { box-shadow: 0 0 0 4px var(--k-accent), var(--surface-sh); }

/* (the star beside a smaller "שחק!" on the card's label, Haim 30.11 "כפתור 'שחק!' צריך להיות קטן יותר ולידו הכוכב / הסלוט") */
.card > .label { bottom: 9px; }
.card > .label .act { display: flex; align-items: center; justify-content: center; gap: 8px; }
.card > .label .go { min-width: 0; height: 30px; padding: 0 16px; }
.card > .label .slot, .card > .label .slot.gem, .card > .label .slot.on, .card > .label .slot.gem.on { position: relative; inset: auto; left: auto; top: auto; bottom: auto; margin: 0; transform: none; flex: none; width: 32px; height: 32px; background: none; box-shadow: none; outline: none; border-radius: 0; }
.card > .label .slot:not(.on) svg, .card > .label .slot.gem:not(.on) svg { width: 32px; height: 32px; }
.card > .label .slot.on i { inset: -4px; }
@media (max-height: 500px) {
  .card > .label .act { gap: 4px; }
  .card > .label .slot, .card > .label .slot.gem, .card > .label .slot.on, .card > .label .slot.gem.on, .card > .label .slot:not(.on) svg, .card > .label .slot.gem:not(.on) svg { width: 22px; height: 22px; }
  .card > .label .go { height: 22px; padding: 0 9px; }
}

/* (the subjects' tags flat, no thickness, Haim 30.11 "לא צריך עובי בתגיות הקטגוריות": on the cards, on all the games' rows, wherever a subject's tag shows) */
.chip, .card .sub { box-shadow: none; }
.card > .sub { box-shadow: 0 0 0 3px var(--k-paper); }
.subrow h3 .chip { box-shadow: none; }
/* (only the game's name on the card, one line, Haim 30.11 "כן, רק השם") */
.card > .label .ttl { min-height: 0; font-size: var(--t2); -webkit-line-clamp: 1; }
/* (the waits: hours:minutes:seconds, the digits standing still as they change) */
.card .go.wait { font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 92px; }
.card.off > .label .ttl { color: var(--k-ink-muted); }

/* (the day's bar as wide as the cards under it, Haim 30.11 "את פס היום והניווט צריך למתוח לכל הרוחב"): one column as wide as the
   cards, the bar stretched across it, its arrows at the two ends */
#daycol { display: grid; grid-template-columns: max-content; justify-content: center; align-content: center; justify-items: stretch; }
#cards { width: max-content; max-width: none; }
#datebar { width: 100%; }
#datebar .plate { flex: 1; justify-content: space-between; }
/* (the settings' gear in grey, Haim 30.11 "גלגל שיניים אפור") */
#menu .ico { filter: grayscale(1) brightness(1.08) contrast(1.05) drop-shadow(0 2px 2px #06205a40); }

/* the leaders: a little bigger, and each one's own Kimmi's head (Haim 30.11) */
.leads { gap: 10px; }
.lead { grid-template-columns: 38px 64px 1fr auto; padding: 12px 18px; gap: 14px; }
.lead .av { width: 64px; height: 64px; font-size: 24px; }
.lead .av.head { background-color: hsl(var(--h) 55% 62%); background-size: 120%; background-position: 50% 35%; background-repeat: no-repeat; box-shadow: inset 0 -3px 0 #0002, 0 0 0 3px #ffffff30; }
.lead .nm, .lead .s { font-size: var(--t3); }
.lead .s i { width: 30px; height: 30px; }
#date .todaychip.back { border: 0; font: inherit; font-size: var(--t2); font-weight: 700; cursor: pointer; }
#date .todaychip.back:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--k-accent-edge); }

/* (all the games: 5 in a row, no headings, each card's subject tag on top half out as on the main screen; the cards a little
   lower here and on the main screen, Haim 30.11) */
#kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 190px)); justify-content: center; gap: 4.2vh 1.6vw; padding-top: 14px; }
#quick { grid-template-columns: repeat(3, minmax(0, 220px)); padding-top: 14px; }
.kind { aspect-ratio: 5 / 6; }
.kind > .sub { position: absolute; z-index: 2; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 14px 5px; border-radius: var(--k-r-pill); background: var(--c); color: #fff; font-size: var(--t1); font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 3px var(--k-paper); }
.card { aspect-ratio: 5 / 6; height: min(31vh, 270px); }
@media (max-height: 500px) { #kinds { grid-template-columns: repeat(5, minmax(0, 120px)); gap: 22px 1.4vw; } .kind > .sub { font-size: 11px; padding: 2px 8px 3px; } }
.kind > .sub { font-size: var(--t2); padding: 5px 16px 6px; }
@media (max-height: 500px) { .kind > .sub { font-size: 11px; padding: 2px 8px 3px; } }
/* (the bubble beside his face at his mouth's height, its tail pointing sideways at his mouth) */
#kbubble { transform-origin: 100% 50%; }
#kbubble::after { right: -14px; bottom: auto; top: 50%; width: 18px; height: 24px; margin-top: -12px; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* (the rays turn as one square bigger than the screen's diagonal: the corners of the old rectangle cut through the light as it
   turned, Haim 30.11 "אסור שיראו את החיתוכים של קרני האור") */
body::before { inset: auto; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; }
/* (all the games across the whole width, Haim 30.11 "צריך להגדיל את המשחקים לכל הרוחב") */
#kinds { grid-template-columns: repeat(5, minmax(0, 1fr)); justify-content: stretch; }
#quick { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 62%; margin-inline: auto; }
@media (max-height: 500px) { #kinds { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* (all the games' cards lower, Haim 30.11: about as tall as wide) */
#kinds .kind { aspect-ratio: 1 / 1.05; }
/* the kitchen's recipes in its months: the dish on a light plate, "?" where not known yet */
.item .pic.recipe { background: radial-gradient(circle at 50% 45%, #fff 0 55%, color-mix(in srgb, var(--c) 14%, #fff)); display: grid; place-items: center; }
.item .pic.recipe img.dish { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 6px 6px #0003); }
.item .pic.recipe .qm { font-size: 72px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #fff); }
.item.locked .pic.recipe img.dish { filter: drop-shadow(0 6px 6px #0003) saturate(.75); }

/* ---------------------------------------------------------------- a game's own page: the card grown into the whole screen (Haim 30.11) */
#gamepage { position: fixed; inset: 0; z-index: 22; overflow-y: auto; background: var(--k-paper); scrollbar-width: thin; }
#gamepage[hidden] { display: none; }
.gphero { position: relative; height: 46vh; min-height: 220px; overflow: hidden; background: var(--c); }
.gphero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.gphero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 35%, #04123ad0 100%); pointer-events: none; }
.gptitle { position: absolute; z-index: 1; inset-inline: 5vw; bottom: 4vh; color: #fff; }
.gptitle .sub { display: inline-block; padding: 5px 16px 6px; border-radius: var(--k-r-pill); background: var(--c); font-size: var(--t2); font-weight: 700; }
.gptitle h2 { margin: 10px 0 4px; font-size: var(--t5); font-weight: 700; text-shadow: 0 3px 12px #0008; }
.gptitle p { margin: 0; font-size: var(--t2); color: #e6eeff; text-shadow: 0 2px 8px #0008; }
.gpback { position: absolute; z-index: 2; top: 18px; right: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--k-paper); color: var(--k-ink); box-shadow: var(--surface-sh); }
.gpback svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gpback:active { transform: translateY(3px); }
#gpbody { padding: 3.5vh 5vw 6vh; }
#gpbody .month h3 span { color: var(--k-ink); }
@media (max-height: 500px) { .gphero { height: 52vh; } .gptitle h2 { font-size: var(--t4); } .gpback { width: 44px; height: 44px; top: 10px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { #gamepage * { animation: none !important; } }

/* ---------------------------------------------------------------- the wardrobe, again (Haim 30.11 "שפר משמעותית ממש את העיצוב של המלתחה. אבל ממש"):
   a stage lit from above with Kimmi on a podium; the panel a rail of kinds (each showing what he wears) beside big tiles, each item on his own Kimmi */
#wardrobepanel { overflow: hidden; }
.wstage { position: absolute; inset: 0; pointer-events: none; }
.wstage .wbeam { position: absolute; left: 27vw; top: -10vh; width: 34vw; height: 108vh; transform: translateX(-50%); background: linear-gradient(180deg, #fff8e0aa 0%, #ffe9b055 45%, #ffe9b000 92%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(10px); mix-blend-mode: screen; opacity: .85; }
.wstage .wglow { position: absolute; left: 27vw; top: 58vh; width: 46vw; height: 46vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #8fd0ff66, #8fd0ff00); }
.wstage .wpodium { position: absolute; left: 27vw; top: 92vh; width: 26vw; height: 6.2vw; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(60% 55% at 50% 40%, #ffffff 0%, #e9f1ff 55%, #b9cdf0 100%); box-shadow: 0 1.2vw 0 #8ea8d6, 0 1.9vw 0 #ffc93d, 0 2.3vw 0 #c98a12, 0 3.4vw 3vw #06205a80, inset 0 0 0 .4vw #ffffffb0; }
.wstage .wsparks { position: absolute; left: 27vw; top: 50vh; width: 30vw; height: 70vh; transform: translate(-50%, -50%);
  background-image: radial-gradient(2px 2px at 12% 30%, #fff, #0000), radial-gradient(2px 2px at 82% 22%, #fff, #0000), radial-gradient(3px 3px at 70% 64%, #fff8, #0000), radial-gradient(2px 2px at 24% 78%, #fffa, #0000), radial-gradient(3px 3px at 46% 12%, #fff, #0000), radial-gradient(2px 2px at 90% 52%, #fff9, #0000);
  animation: wtwinkle 3.6s ease-in-out infinite alternate; }
@keyframes wtwinkle { from { opacity: .35; transform: translate(-50%, -50%) scale(.98); } to { opacity: 1; transform: translate(-50%, -51%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .wstage .wsparks { animation: none; } }

#wpanel { top: 13vh; bottom: 4vh; width: 44vw; padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 22px; box-shadow: 0 6px 0 var(--k-edge), 0 24px 48px #06205a66; }
.whead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; background: linear-gradient(180deg, #fff5e6, #fff); border-bottom: 2px solid #f1e6d4; }
.whead h2 { margin: 0 !important; font-size: var(--t4); color: var(--k-title); }
#wdice { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: var(--k-r-pill); background: var(--k-accent); color: #fff; font-weight: 700; font-size: var(--t2); box-shadow: 0 4px 0 var(--k-accent-edge); }
#wdice span { display: inline-block; font-size: 24px; }
#wdice:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--k-accent-edge); }
.wbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 104px 1fr; }
#wtabs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 10px; background: #f4f7fc; border-inline-end: 2px solid #e8eef7; overflow-y: auto; scrollbar-width: none; }
#wtabs button { height: auto; padding: 8px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 16px; background: none; box-shadow: none; font-size: 13px; font-weight: 700; color: var(--k-ink-soft); transition: background .2s, transform .15s; }
#wtabs button .ti { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #fff, #dfe8f6); box-shadow: 0 3px 0 #cfdaea; transition: box-shadow .2s, transform .2s; }
#wtabs button .ti img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
#wtabs button .ti img.in { opacity: 1; }
#wtabs .pal { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#ff5f6d, #ffb03a, #ffe14d, #3ccf7a, #3a8dff, #9b5cff, #ff5f6d); box-shadow: inset 0 0 0 4px #fff8; }
#wtabs button[aria-selected="true"] { background: #fff; color: var(--k-accent-edge); box-shadow: 0 4px 12px #06205a1f; }
#wtabs button[aria-selected="true"] .ti { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--k-accent), 0 5px 0 4px var(--k-accent-edge); transform: scale(1.04); }
#witems { padding: 16px 16px 20px; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); -webkit-mask-image: linear-gradient(#000 92%, #0000); mask-image: linear-gradient(#000 92%, #0000); }
.wcard { padding: 0; gap: 7px; background: none; box-shadow: none; }
.wcard .wpic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: block;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #eaf2ff 55%, #c8d9f3 100%); box-shadow: 0 5px 0 #cbd8ea, inset 0 0 0 2px #ffffffb0; transition: box-shadow .2s, transform .2s; }
.wcard .wpic img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: none; transition: opacity .25s; }
.wcard .wpic img:not(.in) { opacity: .55; filter: blur(2px) saturate(.6); }
.wcard .wname { font-size: var(--t1); font-weight: 700; color: var(--k-ink); }
.wcard:hover .wpic { transform: translateY(-3px); }
.wcard .wcheck { position: absolute; top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--k-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 2px 0 var(--k-accent-edge); transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.wcard[aria-pressed="true"] { background: none; box-shadow: none; }
.wcard[aria-pressed="true"] .wpic { background: radial-gradient(circle at 50% 35%, #fffaf0 0%, #ffe9c7 60%, #ffcf8a 100%); box-shadow: 0 0 0 4px var(--k-accent), 0 7px 0 2px var(--k-accent-edge); }
.wcard[aria-pressed="true"] .wcheck { transform: scale(1); }
.wcard[aria-pressed="true"] .wname { color: var(--k-accent-edge); }
.wcolors { padding: 4px 6px; }
.wcolors .sw i { width: 62px; height: 62px; }
@media (max-height: 500px) {
  #wpanel { top: 16vh; bottom: 3vh; width: 50vw; }
  .whead { padding: 8px 12px 6px; } .whead h2 { font-size: var(--t2) !important; } #wdice { height: 32px; padding: 0 10px; font-size: 13px; } #wdice span { font-size: 16px; }
  .wbody { grid-template-columns: 70px 1fr; } #wtabs { padding: 8px 6px; gap: 4px; } #wtabs button .ti { width: 42px; height: 42px; } #wtabs button { font-size: 11px; padding: 4px 2px; }
  #witems { padding: 10px; gap: 10px 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } .wcard .wpic { border-radius: 14px; }
}
#wtabs button .ti { width: 54px; height: 54px; }
#wtabs { gap: 4px; padding: 10px 8px; }
.wcard .wpic img.tool { object-fit: cover; transform: scale(1.08); }
@media (max-height: 500px) {
  #wtabs { gap: 2px; padding: 6px 4px; } #wtabs button { padding: 3px 2px; gap: 2px; font-size: 10px; }
  #wtabs button .ti { width: 36px; height: 36px; } #wtabs .pal { width: 26px; height: 26px; }
  .wbody { grid-template-columns: 62px 1fr; }
  #witems { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}
/* (a phone on its side, again after the changes above: the names small, the day's bar under the top row) */
@media (max-height: 500px) {
  .card > .label .ttl { font-size: 12px; }
  #daycol { padding-top: 17vh; gap: 2.2vh; }
  .plate { height: 44px; } #date { font-size: var(--t2); } #date .heb { font-size: var(--t1); } .arrow { width: 34px; height: 34px; }
  .card { height: min(29vh, 270px); }
}
@media (max-height: 500px) {
  #daycol { align-content: start; padding-top: 18vh; }
  #cards { gap: 22px 1.6vw; padding: 10px 0 0; }
  .card .go.wait { min-width: 0; font-size: 10px; padding: 0 6px; }
}
#wtabs { flex-wrap: nowrap; }

/* (the rail without the orange ring, Haim 30.11 "לא צריך את העיגול הכתום במתלחה") */
#wtabs button[aria-selected="true"] .ti { box-shadow: 0 3px 0 #cfdaea; transform: none; }
#wtabs .paw { font-style: normal; font-size: 30px; line-height: 1; }
/* the items' rarity, as in the games kids know: רגיל, נדיר (green), אפי (purple), אגדי (gold); its price in coins until it is his */
.wcard { --rc: #8fb0d0; --rd: #6f8fae; }
.wcard.r-rare { --rc: #3ccf7a; --rd: #23a35b; }
.wcard.r-epic { --rc: #a66bff; --rd: #7a3fe0; }
.wcard.r-legend { --rc: #ffbf2e; --rd: #d88d00; }
.wcard .wpic { background: radial-gradient(circle at 50% 35%, #fff 0%, color-mix(in srgb, var(--rc) 18%, #fff) 58%, color-mix(in srgb, var(--rc) 45%, #fff) 100%); box-shadow: 0 5px 0 color-mix(in srgb, var(--rc) 55%, #b8c6da), inset 0 0 0 2px #ffffffb0; }
.wcard .wrare { position: absolute; bottom: 0; inset-inline: 0; padding: 3px 0 4px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(0deg, var(--rd), color-mix(in srgb, var(--rc) 80%, #0000)); letter-spacing: .02em; }
.wcard .wrare:empty { display: none; }
.wcard .wprice { position: absolute; top: 7px; inset-inline-end: 7px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 6px; border-radius: 99px; background: #1e2a3dd9; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.wcard .wprice::before { content: ''; width: 16px; height: 16px; background: var(--k-img-coin) center / contain no-repeat; }
.wcard.locked .wpic img { filter: saturate(.85); }
.wcard.soon { cursor: default; }
.wcard.soon .wpic { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff, #e6edf7); }
.wcard.soon .pet { font-style: normal; font-size: 54px; filter: grayscale(.2) drop-shadow(0 4px 4px #0002); }
.wcard.soon .wsoon { position: absolute; bottom: 8px; inset-inline: 0; margin: auto; width: max-content; padding: 2px 10px 3px; border-radius: 99px; background: #fff; color: var(--k-ink-soft); font-style: normal; font-size: 12px; font-weight: 700; box-shadow: 0 2px 0 #d5deeb; }
/* the buy card, over the clothes */
#wbuy { position: absolute; inset: 0; z-index: 5; display: grid; place-items: end center; padding: 16px; background: #0f1f4500; transition: background .2s; --rc: #8fb0d0; }
#wbuy.in { background: #0f1f4566; }
#wbuy[hidden] { display: none; }
#wbuy.r-rare { --rc: #3ccf7a; } #wbuy.r-epic { --rc: #a66bff; } #wbuy.r-legend { --rc: #ffbf2e; }
.wbcard { width: 100%; display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--k-paper); box-shadow: 0 6px 0 var(--k-edge), 0 18px 40px #06205a55; transform: translateY(30px); opacity: 0; transition: transform .25s cubic-bezier(.2,.9,.3,1.2), opacity .2s; }
#wbuy.in .wbcard { transform: none; opacity: 1; }
.wbcard .wpic { position: relative; flex: none; width: 110px; height: 110px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, color-mix(in srgb, var(--rc) 40%, #fff)); box-shadow: 0 0 0 3px var(--rc); }
.wbcard .wpic img { width: 100%; height: 100%; object-fit: cover; }
.wbcard .wrare { display: inline-block; padding: 2px 10px 3px; border-radius: 99px; background: var(--rc); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.wbcard h3 { margin: 6px 0 10px; font-size: var(--t3); }
.wbcard p { margin: 0 0 10px; color: var(--k-ink-soft); font-size: var(--t2); }
.wbbtns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wbbtns .buy { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--k-r-pill); background: var(--k-accent); color: #fff; font-weight: 700; font-size: var(--t2); box-shadow: 0 4px 0 var(--k-accent-edge); }
.wbbtns .buy .coin { width: 22px; height: 22px; background: var(--k-img-coin) center / contain no-repeat; }
.wbbtns .ghost { height: 48px; padding: 0 16px; border-radius: var(--k-r-pill); color: var(--k-ink-soft); font-weight: 700; font-size: var(--t2); box-shadow: inset 0 0 0 2px #dfe6f0; }
@media (max-height: 500px) { .wbcard { padding: 10px; gap: 10px; } .wbcard .wpic { width: 70px; height: 70px; } .wbcard h3 { font-size: var(--t2); margin: 3px 0 6px; } .wbbtns .buy, .wbbtns .ghost { height: 36px; font-size: 14px; } .wcard .wprice { height: 20px; font-size: 11px; } .wcard .wrare { font-size: 9px; } }
/* the pets (Haim 1.12): their pictures from the studio's sheet, the coming ones paler; "no pet" a paw */
.wcard .wpic img.pimg { object-fit: cover; transform: scale(1.12); }
.wcard.soon .wpic img.pimg { opacity: .6; filter: grayscale(.45); }
.wcard .wpic > i.pet { display: grid; place-items: center; width: 100%; height: 100%; font-style: normal; font-size: 46px; filter: grayscale(.3); }

/* the parents' rewards in the shop (Haim 1.12, home.js W.tab 'gift'): their stickers whole, a "waiting for mom" tag, a line on top */
#wtabs button .ti img.gift { object-fit: contain; padding: 6px; box-sizing: border-box; }
.wrhead { grid-column: 1 / -1; margin: 0; font-size: var(--t2); font-weight: 700; color: var(--k-ink); }
.wcard.reward .wpic img.rimg { object-fit: contain; padding: 9%; box-sizing: border-box; }
.wcard.reward .wpic { background: radial-gradient(circle at 50% 35%, #fff 0%, #fff4e0 55%, #ffd9a6 100%); box-shadow: 0 5px 0 #f0c48c, inset 0 0 0 2px #ffffffb0; }
.wcard .wwait { position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 8px; border-radius: 99px; background: #2fa84a; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; box-shadow: 0 2px 0 #1f7a35; }
.wempty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 20px; text-align: center; font-weight: 700; color: var(--k-ink-soft); }
.wempty img { width: 120px; }
