/* fonts, self-hosted (no requests to Google): Fredoka + Lilita One for the ui, Barlow Condensed for signs in the 3D world */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/fredoka.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lilita One'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lilita-one-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* fruityfly app styles, on Flyworld's "gw" design system (Gossy): dark navy glass, gold hairlines, ruby ribbon titles
   with gems, chunky buttons with a lip, Fredoka for text and Lilita One for titles. Where a rule is copied from Flyworld
   the line numbers in reference/flyworld/index.html are noted (its v1.49 "game look" 373–658 + the "slimmer" pass 659–750). */

/* ---------- tokens (Flyworld 375–378, 660) ---------- */
:root {
  --wood: #7a4826; --wood-d: #2e1708; --gold: #f6c24a; --gold2: #d99a2b; --gold-d: #7d500c; --stone: #3a3956; --stone2: #2b2a42; --stone-d: #1a1928;
  --ruby: #e23c64; --ruby2: #8f1f3c; --cream: #f8ebcd; --honey: #ffe08a; --green: #52c070; --sky: #74c4ff; --pink: #ff86b0; --red: #ff6b6b; --metal: #c5c9d6;
  --ink: #2a1606; --dim: #c9bb9a;
  --gw-font: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; --gw-title: 'Lilita One', 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --glass: rgba(24, 23, 38, .92); --glass2: #1d1c30; --hair: rgba(246, 194, 74, .55); --line: rgba(255, 255, 255, .09); --gold-line: #c9a24a;
  /* ours */
  --night: #0d0c18; --eye: #e0362c; --leaf: #52c070;
  --r-common: #b9bccb; --r-ripe: #7fd67b; --r-juicy: #ff9a3d; --r-overripe: #c58cff; --r-fermented: #ffd34a;
  color-scheme: dark;
}
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--night); color: var(--cream); font: 600 14px/1.35 var(--gw-font); }
button:not(:disabled), label.radio, .apt, #dock, #dock * { cursor: pointer; }   /* one hand everywhere on the dock (its gaps too): a cursor swap flashes an X on some Linux themes */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 48%, rgba(6, 4, 16, .7) 100%); }
#fade { position: fixed; inset: 0; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 40; }
#fade.on { opacity: 1; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
svg.ic { width: 1.05em; height: 1.05em; vertical-align: -.17em; flex: none; }
svg.ico { width: 1.3em; height: 1.3em; vertical-align: -.3em; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.gw-tabs svg.ico { margin-right: 5px; }
.dk .well svg.ico { width: 26px; height: 26px; vertical-align: 0; }
.gw-badge svg.ico { width: 22px; height: 22px; vertical-align: 0; filter: none; }
.sti-ic svg.ico, .task > .ic svg.ico, .task-bonus > .ic svg.ico, .mo .av svg.ico { width: 60%; height: 60%; vertical-align: 0; }
.wd-tile svg.ico.e { width: 44px; height: 44px; margin: 4px 0 6px; }
[data-place="home"] .hub-only, [data-place="hub"] .home-only { display: none !important; }
@keyframes gwFade { from { opacity: 0; } }
@keyframes gwPop { 0% { opacity: 0; transform: translateY(24px) scale(.92); } 100% { opacity: 1; transform: none; } }   /* Flyworld 387 */
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76, 219, 138, .6); } 50% { box-shadow: 0 0 0 5px rgba(76, 219, 138, 0); } }
@keyframes bob { 50% { transform: translateY(-4px); } }

/* a glass panel with a gold hairline (Flyworld 734) */
.glass { border: 2px solid var(--gold-line); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); border-radius: 12px; }

/* ---------- top HUD ---------- */
#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px; pointer-events: none; z-index: 28; }
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.brand b { font: 400 26px/1 var(--gw-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840, 0 0 18px rgba(246, 194, 74, .35); }
.brand span { font: 600 12px/1 var(--gw-font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
#wallet { display: flex; align-items: center; gap: 6px; }
.cur { display: flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; border-radius: 20px; font: 700 16px/1 var(--gw-font); color: var(--honey); font-variant-numeric: tabular-nums;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .1); }
button.cur:hover { filter: brightness(1.15); }
.cur svg { width: 26px; height: 26px; flex: none; margin: -2px 0; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
#wallet .cur { position: relative; }
/* a gain: the icon does its trick (coin spins, gem flashes, ticket stamps) and a glow ring pops */
.cur.gain svg { animation: coinSpin .7s cubic-bezier(.3, 1.4, .5, 1); }
#cAmber.gain svg { animation: gemFlash .8s ease-out; } #cTickets.gain svg { animation: tixStamp .5s cubic-bezier(.3, 1.6, .5, 1); }
.cur.gain::after { content: ""; position: absolute; left: 1px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; pointer-events: none;
  border: 2px solid #ffe27a; box-shadow: 0 0 14px #ffd23c; animation: ringPop .6s ease-out forwards; }
#cAmber.gain::after { border-color: #ffb36a; box-shadow: 0 0 16px #ff9a2e, inset 0 0 10px #ffe9a0; }
@keyframes coinSpin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(360deg) scale(1.35); } 100% { transform: rotateY(720deg) scale(1); } }
@keyframes gemFlash { 30% { transform: scale(1.4) rotate(-10deg); filter: brightness(1.6) drop-shadow(0 0 8px #ffb02e); } }
@keyframes tixStamp { 0% { transform: scale(1.6) rotate(12deg); opacity: .4; } 60% { transform: scale(.9) rotate(-4deg); opacity: 1; } }
@keyframes ringPop { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.cur.bump span { display: inline-block; animation: bump .35s ease-out; }
#lvl { gap: 7px; padding-right: 10px; cursor: default; }
.lvcoin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 400 14px/1 var(--gw-title); color: var(--ink);
  background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #7a4d05; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.xp { width: 64px; height: 9px; border-radius: 5px; background: #150f1c; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.xp i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #ffd25a 0 6px, #f0a020 6px 12px); transition: width .5s cubic-bezier(.2, 1.4, .4, 1); }   /* Flyworld 468 */

/* ---------- the fly card (replaces the old belly tag under the fly) ---------- */
#flyCard { position: fixed; left: 14px; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 27; display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border-radius: 34px 14px 14px 34px;
  border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
#pfp { position: relative; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: transparent; flex: none; }
#pfp .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--bc, var(--leaf)) calc(var(--b, 70) * 1%), #2a2840 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); transition: --b .4s; }
#pfp img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: radial-gradient(circle at 50% 40%, #3e3b5e, #1d1c30);
  box-shadow: inset 0 0 0 2px #000; }
#pfp .mood { position: absolute; right: -5px; bottom: -3px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; background: var(--glass2); border: 2px solid var(--gold-line); }
#pfp:hover img { filter: brightness(1.12); }
.fc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-txt b { font: 400 18px/1 var(--gw-title); letter-spacing: .5px; color: var(--cream); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.fc-txt span { font: 600 11.5px/1.1 var(--gw-font); color: var(--dim); white-space: nowrap; }
.fc-txt span.hungry { color: #ff9a8a; }
#tasksBtn, #passBtn, #eventBtn { position: relative; display: flex; align-items: center; gap: 5px; margin-left: 4px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--honey); font: 700 13px/1 var(--gw-font); }
#tasksBtn:hover, #passBtn:hover, #eventBtn:hover { border-color: var(--gold); background: rgba(246, 194, 74, .12); }
#accBtn { padding: 6px 10px; border-radius: 12px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .14); color: var(--cream); font: 700 13px/1 var(--gw-font); white-space: nowrap; cursor: pointer; }
#accBtn:hover { border-color: var(--gold); background: rgba(246, 194, 74, .26); }
/* live rooms (B7): other flies' name tags, staff badges, the doorbell, the rooms window */
.flytag { font: 700 12px/1 var(--gw-font); color: var(--cream); background: rgba(10, 12, 24, .72); border: 1px solid var(--line); border-radius: 9px; padding: 3px 7px; text-shadow: 0 1px 0 #000; }
/* a rank's tag (G1): its colour, icon and effect are data the owners set (visit.js RANKS) */
.rank { --rk: #888; --rt: #fff; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; padding: 1px 5px; border-radius: 6px; font: 800 9.5px/1.3 var(--gw-font); letter-spacing: .4px; text-transform: uppercase; font-style: normal; vertical-align: 1px;
  background-color: var(--rk); background-image: linear-gradient(color-mix(in srgb, var(--rk) 70%, #fff), var(--rk) 55%, color-mix(in srgb, var(--rk) 75%, #000)); color: var(--rt); border: 1px solid color-mix(in srgb, var(--rk) 60%, #000); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.rank .ico { width: 10px; height: 10px; flex: none; }
.rank.fx-glow { box-shadow: 0 0 7px color-mix(in srgb, var(--rk) 80%, transparent); }
.rank.fx-shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: rank-shine 2.6s ease-in-out infinite; }
@keyframes rank-shine { 60%, 100% { transform: translateX(120%); } }
.rank.fx-sparkle { box-shadow: 0 0 5px color-mix(in srgb, var(--rk) 60%, transparent); animation: rank-sparkle 1.8s ease-in-out infinite; }
@keyframes rank-sparkle { 50% { box-shadow: 0 0 10px color-mix(in srgb, var(--rk) 95%, #fff), 0 0 2px #fff; filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .rank.fx-shine::after, .rank.fx-sparkle { animation: none; } }
#bells { position: fixed; right: 14px; top: calc(110px + env(safe-area-inset-top, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 6px; }
.bell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--gold-line); background: var(--glass); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); color: var(--cream); font: 600 13px var(--gw-font); }
.nav-table { width: 100%; border-collapse: collapse; }
.nav-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nav-table td small { display: block; color: var(--dim); font-size: 11.5px; }
.nav-table td:last-child { text-align: right; white-space: nowrap; }
.nav-table td.num { white-space: nowrap; color: var(--honey); font-weight: 700; }
.staff-fly > .nav-table td:last-child { white-space: normal; overflow-wrap: anywhere; }   /* the fly's facts wrap at phone width (G1) */
.nav-table .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
.nav-search { display: flex; gap: 6px; margin: 4px 0 10px; }
.nav-search input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 14px var(--gw-font); }
.profile { display: flex; flex-direction: column; gap: 8px; }
.profile .btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.profile .flysprite { width: 120px; align-self: center; }
.profile table td { padding: 3px 8px 3px 0; } .profile .ok { color: var(--leaf); }
label.radio { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 6px 0; cursor: pointer; }
label.radio small { grid-column: 2; color: var(--dim); }
#roomBar #homeGear .ico { width: 15px; height: 15px; vertical-align: -3px; }
#elsewhere { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 8, 16, .82); backdrop-filter: blur(4px); padding: 16px; }
#elsewhere[hidden] { display: none; }
#elsewhere .gw-card { max-width: 360px; padding: 20px; border-radius: 16px; border: 2px solid var(--gold-line); background: var(--glass); color: var(--cream); text-align: center; display: grid; gap: 10px; }
#elsewhere h3 { margin: 0; font: 400 22px var(--gw-title); color: var(--gold); }
.staff-fly .btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.staff-fly .warn, .nav-table .warn { color: #ffb0a0; }
.report { padding: 8px 0; border-bottom: 1px solid var(--line); }
.report p { margin: 2px 0; } .report small { color: var(--dim); } .report .note { color: var(--honey); }
.report .context { margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); font: 500 12.5px/1.45 var(--gw-font); max-height: 180px; overflow: auto; }
.report .context .hl { background: rgba(255, 120, 100, .15); }
.report .context .held { color: #ffb0a0; }
.authf textarea { width: 100%; box-sizing: border-box; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 14px var(--gw-font); resize: vertical; }
.hatch-login { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font: 600 13px var(--gw-font); color: var(--dim); }
#tasksBtn .ic { font-size: 15px; }
#tasksBtn em, #passBtn em, #eventBtn em, .dk em, .gw-tabs button em { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; font: 700 11px/16px var(--gw-font);
  font-style: normal; text-align: center; background: var(--ruby); color: #fff; border: 1px solid #4a0f1c; display: none; }
#tasksBtn em.on, #passBtn em.on, #eventBtn em.on, .dk em.on { display: block; animation: bump .5s ease-out; }

/* ---------- home: room bar ---------- */
#roomBar { position: fixed; left: 14px; top: calc(126px + env(safe-area-inset-top, 0px)); z-index: 19; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 5px; max-width: calc(100vw - 28px);
  border: 2px solid var(--gold-line); background: var(--glass); border-radius: 12px; box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); }
#roomBar .house { display: flex; flex-direction: column; padding: 2px 10px 2px 6px; border-right: 1px solid var(--line); margin-right: 2px; }
#roomBar .house b { font: 400 15px/1 var(--gw-title); letter-spacing: .6px; text-transform: uppercase; color: var(--honey); }
#roomBar .house span { font-size: 10.5px; color: var(--dim); }
#roomBar button { border: 0; border-bottom: 3px solid transparent; background: transparent; border-radius: 8px 8px 0 0; padding: 5px 10px 4px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
#roomBar button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
#roomBar button[aria-pressed="true"] { color: var(--honey); border-bottom-color: var(--gold); background: linear-gradient(180deg, rgba(246, 194, 74, 0), rgba(246, 194, 74, .16)); }
#roomBar button.lock { opacity: .55; }

/* ---------- labels that follow things in the 3D world ---------- */
.tag { position: fixed; left: 0; top: 0; pointer-events: none; white-space: nowrap; transition: opacity .2s; z-index: 6; }
.tag.off { opacity: 0; }
.lbl { display: flex; align-items: center; gap: 6px; padding: 3px 9px; font: 700 12px/1.1 var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--cream);
  border: 1px solid var(--hair); background: var(--glass); border-radius: 9px; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.badge { font: 700 10px/1 var(--gw-font); letter-spacing: .8px; padding: 3px 6px; border-radius: 6px; text-transform: uppercase; white-space: nowrap; }
.b-live { background: #4a1220; color: #ff8a9a; } .b-live::before { content: "● "; animation: blink 1.2s infinite; }
.b-new { background: #14361f; color: var(--r-ripe); } .b-hot { background: #3a2410; color: var(--r-juicy); } .b-updated { background: #142a3e; color: var(--sky); }
.b-soon { background: #262540; color: var(--dim); } .b-ready { background: #3a2f10; color: var(--gold); }
@keyframes blink { 50% { opacity: .2; } }
#bubble { padding: 7px 12px; max-width: 230px; white-space: normal; text-align: center; font: 600 13px/1.3 var(--gw-font); border-radius: 14px; background: var(--cream); color: #241a2e; opacity: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
#bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--cream); }
#bubble.show { opacity: 1; }
#think { pointer-events: auto; cursor: pointer; margin-left: 34px; width: 46px; height: 40px; padding: 0; border: 0; border-radius: 22px; background: #fff; font-size: 22px; line-height: 40px; text-align: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#think::before, #think::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
#think::before { width: 10px; height: 10px; left: 12px; bottom: -9px; } #think::after { width: 6px; height: 6px; left: 6px; bottom: -16px; }
#think.show { opacity: 1; visibility: visible; animation: thinkBob 1.6s ease-in-out infinite; }
@keyframes thinkBob { 50% { translate: 0 -4px; } }   /* translate, not transform: transform is the per-frame position (placeTag) */
#comboTag { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--hair); background: var(--glass); opacity: 0; }
#comboTag.show { opacity: 1; }
#comboTag b { font: 400 15px/1 var(--gw-title); color: var(--honey); }
#comboTag .meter { width: 54px; height: 6px; border-radius: 3px; background: #150f1c; overflow: hidden; }
#comboTag .meter i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s; }
#comboTag.frenzy { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 134, 176, .6); }
#comboTag.frenzy b { color: var(--pink); } #comboTag.frenzy .meter i { background: var(--pink); }
.plus { position: fixed; left: 0; top: 0; pointer-events: none; font: 400 22px/1 var(--gw-title); color: var(--honey); text-shadow: 0 2px 0 #4a2a05, 0 0 8px rgba(0, 0, 0, .5); z-index: 24; }
.plus.gold { font-size: 30px; color: #fff3a0; text-shadow: 0 3px 0 #7a4d05, 0 0 18px rgba(255, 210, 60, .9); }
.flyer { position: fixed; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; z-index: 50; filter: drop-shadow(0 0 6px rgba(255, 214, 90, .85)); }
.flyer svg { width: 100%; height: 100%; }
.flyer.pips svg { animation: coinFlip .36s linear infinite; }   /* a spinning coin in flight */
.flyer.amber { filter: drop-shadow(0 0 8px rgba(255, 160, 50, .95)); } .flyer.amber svg { animation: gemTwinkle .45s ease-in-out infinite; }
.flyer.tickets svg { animation: tixWob .5s ease-in-out infinite; }
@keyframes coinFlip { 50% { transform: scaleX(.12); } }
@keyframes gemTwinkle { 50% { transform: scale(1.2) rotate(10deg); } }
@keyframes tixWob { 50% { transform: rotate(-18deg) scale(1.1); } }

/* ---------- dock (Flyworld's round metal buttons, 443–445) ---------- */
#dock { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: flex-end; gap: 2px; padding: 6px 10px 7px; max-width: calc(100vw - 20px); box-sizing: border-box;
  border: 2px solid var(--gold-line); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 18px; box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
.dk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 2px 0; border: 0; background: transparent; font: 400 12.5px/1 var(--gw-title); letter-spacing: .5px; color: #d6cfee; text-shadow: 0 1px 0 rgba(0, 0, 0, .7); cursor: pointer; }   /* the same hand as over the room: no cursor swap (some Linux cursor themes flash an X while swapping) */
.dk .well { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 21px; line-height: 1; border: 3px solid var(--metal);
  background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45); transition: transform .1s, filter .12s; }
.dk:hover:not(:disabled) .well { transform: translateY(-3px) scale(1.05); filter: brightness(1.15); }
.dk:active:not(:disabled) .well { transform: translateY(1px); }
.dk[aria-pressed="true"] { color: var(--honey); }
.dk[aria-pressed="true"] .well { border-color: var(--gold); background: radial-gradient(circle at 35% 28%, #ffe08a, #c98a1f); box-shadow: 0 0 0 2px var(--wood-d), 0 0 18px rgba(246, 194, 74, .7); }
.dk:disabled { opacity: .45; cursor: default; }
.dk em { top: -4px; right: 6px; }
.dk-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.play-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: -20px 8px 2px; padding: 9px 22px 8px; border-radius: 16px; border: 2px solid #14341c; color: #f1ffe8; cursor: pointer;
  background: linear-gradient(#7fe39a, #2f9650); box-shadow: 0 4px 0 #1f5a30, 0 10px 26px rgba(82, 192, 112, .35), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 2px 0 rgba(10, 50, 20, .7); transition: transform .08s, filter .12s; }
.play-btn b { font: 400 24px/1 var(--gw-title); letter-spacing: 1.5px; }
.play-btn small { font: 600 10.5px/1 var(--gw-font); opacity: .85; text-shadow: none; }
.play-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.play-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f5a30; }

/* ---------- gw window (Flyworld 384–439 + slimmer 661–689) ---------- */
#gwBack { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(14, 10, 28, .35), rgba(6, 4, 16, .78)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#gwBack.open { display: flex; animation: gwFade .2s ease-out; }
.gw-win { position: relative; box-sizing: border-box; display: flex; flex-direction: column; color: var(--cream); font-family: var(--gw-font);
  border: 2px solid var(--gold-line); border-radius: 14px; background: linear-gradient(180deg, #2a2840, #1a192b);
  box-shadow: 0 0 0 1px #000, 0 24px 70px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 40px rgba(0, 0, 0, .35); }
#gwWin { width: min(920px, calc(100vw - 40px)); height: min(680px, calc(100vh - 70px)); padding: 46px 14px 14px; animation: gwPop .28s cubic-bezier(.2, 1.45, .4, 1); }
#gwWin.small { width: min(520px, calc(100vw - 40px)); height: auto; max-height: calc(100vh - 70px); }
#gwBack.side { justify-content: flex-end; padding-right: 24px; background: linear-gradient(90deg, rgba(6, 4, 16, 0), rgba(6, 4, 16, .55)); backdrop-filter: none; -webkit-backdrop-filter: none; }
#gwWin.side { width: min(700px, calc(100vw - 40px)); height: auto; max-height: calc(100vh - 70px); }
.gw-gem { position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: linear-gradient(135deg, #ffe08a, #b87a14); }
.gw-gem::after { content: ''; position: absolute; inset: 3px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: radial-gradient(circle at 35% 30%, #ff9fb8, #e23c64 45%, #7a1530); }
.gw-gem.tl { left: -10px; top: -10px; } .gw-gem.tr { right: -10px; top: -10px; } .gw-gem.bl { left: -10px; bottom: -10px; } .gw-gem.br { right: -10px; bottom: -10px; }
.gw-head { position: absolute; left: 0; right: 0; top: -20px; display: flex; justify-content: center; pointer-events: none; z-index: 4; }
.gw-head > * { pointer-events: auto; }
.gw-ribbon { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 30px 5px 8px; border: 2px solid #4a0f1c; border-radius: 6px; background: linear-gradient(#cf4656, #962638);
  box-shadow: 0 3px 0 #4a1020, inset 0 1px 0 rgba(255, 255, 255, .3); }
.gw-ribbon::before, .gw-ribbon::after { content: ''; position: absolute; top: 8px; width: 30px; height: 100%; z-index: -1; background: linear-gradient(#8f2132, #6a1626); border: 2px solid #4a0f1c; box-sizing: border-box; }
.gw-ribbon::before { left: -22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); } .gw-ribbon::after { right: -22px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.gw-ribbon h2 { margin: 0; font: 400 21px/1 var(--gw-title); letter-spacing: 1.5px; text-transform: uppercase; color: #fff1c8; text-shadow: 0 2px 0 #5a1424; white-space: nowrap; }
.gw-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; background: radial-gradient(circle at 35% 28%, #ffe98c, #e0a02a 75%); border: 2px solid #4a0f1c; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.pop-x { position: absolute; top: -12px; right: -12px; z-index: 5; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); color: #fff; font: 400 17px/1 var(--gw-title);
  background: radial-gradient(circle at 35% 30%, #ff9fb0, #d6304f 55%, #7a1530); box-shadow: 0 0 0 2px #1a192b, 0 3px 0 #4a0f1c; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); transition: transform .08s; }
.pop-x:hover { filter: brightness(1.15); } .pop-x:active { transform: translateY(2px); }
.gw-chip { position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 2px solid var(--gold-line); border-radius: 12px; background: #17162a; color: var(--honey); font: 400 15px var(--gw-title); }
.gw-chip svg { width: 18px; height: 18px; }
.gw-tabs { display: flex; gap: 2px; padding: 9px 4px 0; flex-wrap: wrap; flex: none; }   /* top room for the count badges */
.gw-tabs button { position: relative; margin: 0; padding: 7px 14px 9px; font: 400 15px var(--gw-title); letter-spacing: .6px; color: var(--dim); background: transparent; border: none; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; }
.gw-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.gw-tabs button.on { color: var(--honey); background: linear-gradient(180deg, rgba(246, 194, 74, 0), rgba(246, 194, 74, .16)); border-bottom-color: var(--gold); }
.gw-tabs button em { top: -7px; right: -4px; display: block; }
.gw-tabs button em:empty { display: none; }
.gw-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 7, 18, .38); box-shadow: inset 0 2px 12px rgba(0, 0, 0, .35);
  scrollbar-width: thin; scrollbar-color: #8a7a5a transparent; animation: gwFade .15s ease-out; }
.gw-btn { font: 400 15px var(--gw-title); letter-spacing: .6px; padding: 8px 18px; border-radius: 10px; border: 2px solid #4a1f08; cursor: pointer; color: #fff3d6; text-shadow: 0 1px 0 rgba(60, 20, 0, .5);
  background: linear-gradient(#ffb25a, #e8661e); box-shadow: 0 3px 0 #8a3a0c, inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .08s, box-shadow .08s, filter .12s; white-space: nowrap; }
.gw-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.gw-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #8a3a0c; }
.gw-btn:disabled { filter: grayscale(.85) brightness(.6); cursor: not-allowed; }
.gw-btn.sm { font-size: 13.5px; padding: 5px 12px; }
.gw-btn.green { color: #f1ffe8; text-shadow: 0 1px 0 rgba(10, 50, 20, .7); border-color: #14341c; background: linear-gradient(#66d484, #2f9650); box-shadow: 0 3px 0 #1f5a30, inset 0 1px 0 rgba(255, 255, 255, .35); }
.gw-btn.green:active:not(:disabled) { box-shadow: 0 1px 0 #1f5a30; }
.gw-btn.danger:not(.ghost) { color: #fff0ee !important; text-shadow: 0 1px 0 rgba(60, 0, 0, .6); border-color: #4a0f0c; background: linear-gradient(#e8665a, #a8302a); box-shadow: 0 3px 0 #6a1a16, inset 0 1px 0 rgba(255, 255, 255, .3); }
.gw-btn.ghost { color: var(--cream); border-color: #000; background: linear-gradient(#4a476a, #35334f); box-shadow: 0 3px 0 #15142a, inset 0 1px 0 rgba(255, 255, 255, .18); }
.gw-btn.ghost:active:not(:disabled) { box-shadow: 0 1px 0 #15142a; }
.gw-btn.wide { width: 100%; font-size: 18px; padding: 10px; }
.gw-btn svg { width: 17px; height: 17px; vertical-align: -.2em; margin-right: 4px; }
.gw-sec { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font: 700 12px var(--gw-font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.gw-sec:first-child { margin-top: 0; }
.gw-sec::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ruby); border: 1px solid var(--gold); flex: none; }
.gw-sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(246, 194, 74, .55), transparent); }
.gw-empty { padding: 30px 10px; text-align: center; color: var(--dim); font-size: 14px; }
.gw-empty::before { content: '🪰'; display: block; font-size: 32px; margin-bottom: 6px; filter: grayscale(.4); }
.gw-note { color: var(--dim); font-size: 12.5px; }
.gw-note b { color: var(--honey); }

/* item tiles + colour swatches (Flyworld 483–490, 708–711) */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wd-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 11px 5px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  color: var(--cream); font: 600 12.5px/1.15 var(--gw-font); text-align: center; transition: transform .1s, background .12s, border-color .12s; }
.wd-tile .e { font-size: 32px; line-height: 1.1; }
/* item pictures (shared/thumbs.js): real renders of the 3D models */
img.thumb { display: block; object-fit: contain; }
.wd-tile img.thumb.e { width: 64px; height: 64px; margin: -6px 0 -4px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); background: radial-gradient(closest-side, rgba(255, 246, 220, .2), transparent); border-radius: 50%; }   /* the glow keeps dark items (sunglasses) visible */
img.thumb.xs { display: inline-block; width: 18px; height: 18px; vertical-align: -.3em; margin-right: 3px; }
canvas.spin { display: block; width: 100%; height: 100%; }
.bag-detail .big canvas.spin { width: 130px; height: 130px; }
.wd-tile .n { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wd-tile:hover:not(.lock) { transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.wd-tile.on { border-color: var(--gold); background: rgba(246, 194, 74, .18); color: var(--honey); }
.wd-tile.sel { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey), 0 0 16px rgba(246, 194, 74, .45); }
.wd-tile .rar { position: absolute; top: 0; left: 12px; right: 12px; height: 3px; border-radius: 0 0 3px 3px; }
.wd-tile .q { position: absolute; top: 5px; right: 6px; min-width: 18px; padding: 0 4px; border-radius: 9px; font: 700 11px/16px var(--gw-font); background: #14341c; color: #bff5cc; border: 1px solid #2f9650; }
.wd-tile .dot { position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 6px var(--ruby); }
.wd-tile .st { font: 600 10.5px/1 var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 3px; }
.wd-tile.on .st { color: var(--honey); }
.wd-tile.lock { opacity: .6; } .wd-tile.lock .e { filter: grayscale(.8) brightness(.7); }
.wd-c { width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 2px solid var(--stone-d); transition: transform .1s; }
.wd-c:hover { transform: scale(1.15); } .wd-c.on, .wd-c[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px; }
.sw { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); padding: 0; }
.sw[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246, 194, 74, .4); }

/* ---------- bag (inventory) ---------- */
.bag { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-content: start; align-items: start; }
.bag-grid { align-content: start; }
.bag-detail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #26243d, #1a192c); box-shadow: inset 0 0 30px rgba(0, 0, 0, .35); }
.bag-detail .big { display: grid; place-items: center; height: 120px; border-radius: 10px; background: radial-gradient(circle at 50% 45%, #3e3b5e, #1d1c30); font-size: 64px; position: relative; overflow: hidden; }
.bag-detail .big img { height: 118px; }
.bag-detail h3 { margin: 0; font: 700 19px/1.1 var(--gw-font); color: var(--cream); }
.bag-detail p { margin: 0; color: var(--dim); font-size: 13px; }
.bag-detail .facts { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 10px; border: 1px solid currentColor; font: 700 10.5px/16px var(--gw-font); letter-spacing: .6px; text-transform: uppercase; }
.chip.plain { color: var(--dim); border-color: var(--line); background: rgba(0, 0, 0, .25); }
.bag-detail .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.bag-detail .tints { display: flex; flex-wrap: wrap; gap: 7px; }
.bag-detail .hint { color: var(--dim); font-size: 12px; text-align: center; }
.bag-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); }
.bag-preview img { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3e3b5e, #1d1c30); object-fit: cover; border: 2px solid var(--gold-line); }
.bag-preview .worn { display: flex; flex-wrap: wrap; gap: 5px; }

/* bag: the belly preview for snacks */
.belly-bar { position: relative; height: 10px; border-radius: 5px; background: #150f1c; border: 1px solid var(--line); overflow: hidden; }
.belly-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--leaf); }
.belly-bar i.gain { background: repeating-linear-gradient(45deg, var(--gold) 0 5px, var(--honey) 5px 10px); animation: blink 1.4s infinite; }
.bag-detail .hint b { color: var(--honey); }

/* ---------- wardrobe (at home) ---------- */
.wr { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: start; }
.wr-look { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #26243d, #1a192c); }
.wr-look img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 40%, #3e3b5e, #1d1c30); border: 2px solid var(--gold-line); }
.wr-look b { font: 700 18px/1 var(--gw-font); color: var(--cream); }
.wr-look .worn { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; } .wr-look .worn i { color: var(--dim); font-style: normal; }
.wr-pick .tints { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- account forms (app/auth.js) ---------- */
.authf { display: flex; flex-direction: column; gap: 10px; }
.authf label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13px; color: var(--cream); }
.authf input[type=text], .authf input[type=password] { background: #15142a; border: 1px solid var(--hair); border-radius: 8px; padding: 10px 11px; font: 600 15px var(--gw-font); color: var(--cream); }
.authf input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.authf label.tick { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.authf label.tick input { width: 18px; height: 18px; accent-color: var(--gold); }
.authf .lead { margin: 0; font-size: 13.5px; color: var(--cream); } .authf .lead b { color: var(--honey); }
.authf .fine { margin: 0; font-size: 12px; color: var(--dim); }
.authf .err { margin: 0; min-height: 1.2em; font-size: 13px; font-weight: 700; color: #ff8a9a; }
.authf .code { padding: 14px 10px; border-radius: 10px; border: 2px dashed var(--gold); background: rgba(246, 194, 74, .08); text-align: center; font: 700 20px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; color: var(--honey); user-select: all; word-break: break-all; }
.apts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.authf label.apt { position: relative; gap: 3px; padding: 7px; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); cursor: pointer; }
.apt input { position: absolute; opacity: 0; pointer-events: none; }
.apt .pv { height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--a) 0 46%, var(--b) 46% 76%, var(--c) 76%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; }
svg.shape rect { fill: rgba(255, 250, 240, .85); } svg.shape rect.door { fill: var(--gold); }
.apt .pv svg.shape { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.apts button.apt { display: grid; gap: 3px; padding: 7px; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.apts button.apt .pv { background: rgba(255, 255, 255, .06); } .apts button.apt:hover { border-color: var(--gold); }
.nav-table svg.shape { float: left; margin: 2px 8px 0 0; } .nav-table svg.shape rect { fill: rgba(255, 250, 240, .6); }
#roomBar select { border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 13px var(--gw-font); padding: 4px 6px; }
.apt b { font-size: 13px; color: var(--cream); } .apt small { font-size: 11px; line-height: 1.25; color: var(--dim); font-weight: 600; }
.apt:has(input:checked) { border-color: var(--gold); background: rgba(246, 194, 74, .12); }
.apt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.authf label small { font-weight: 600; color: var(--dim); }
.set-row b.warn { color: #ffb36a; }
.linkish { padding: 0; border: 0; background: none; color: var(--honey); font: inherit; text-decoration: underline; cursor: pointer; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- boop gym ---------- */
.gym-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.gym-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.gym-stats b { font: 22px/1 'Lilita One', var(--gw-font); color: var(--honey); } .gym-stats small { font-size: 11px; color: var(--dim); text-align: center; }
.gym-cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 4px 0; font-size: 13px; color: var(--cream); }
.gym-cap .bar { height: 12px; border-radius: 6px; background: #150f1c; border: 1px solid var(--line); overflow: hidden; }
.gym-cap .bar i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--gold) 0 6px, var(--honey) 6px 12px); }
.gym-cap b { color: var(--honey); white-space: nowrap; }
.ms-row { display: flex; flex-wrap: wrap; gap: 5px; } .ms-row .chip.done { color: var(--leaf); border-color: var(--leaf); }
.ms-row .ic, .gym-cap .ic { width: 14px; height: 14px; vertical-align: -.2em; }

/* ---------- shop (Flyworld's store cards .sti, 502–514 + 691–696) ---------- */
.mo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(90deg, rgba(246, 194, 74, .12), rgba(0, 0, 0, .2)); }
.mo .av { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; font-size: 26px; background: radial-gradient(circle at 35% 28%, #b9b0e8, #5a4f8f); border: 2px solid var(--gold-line); }
.mo p { margin: 0; flex: 1; font-size: 13.5px; color: var(--cream); } .mo p b { color: var(--honey); }
.mo .bal { display: flex; gap: 10px; font: 700 14px var(--gw-font); color: var(--honey); white-space: nowrap; }
.mo .bal svg { width: 18px; height: 18px; vertical-align: -.25em; margin-right: 3px; }
.sti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
/* the item turning on a pedestal, lit in its rarity colour */
.sti-stage { position: relative; height: 138px; margin: -11px -11px 0; border-radius: 12px 12px 0 0; overflow: hidden;
  background: radial-gradient(ellipse 55% 60% at 50% 58%, color-mix(in srgb, var(--rc, #888) 34%, transparent), transparent 70%), linear-gradient(180deg, #2c2a48, #1e1d33); }
.sti-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 10px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.sti-stage canvas.spin { position: absolute; inset: 0 0 6px; margin: auto; width: 138px; height: 138px; z-index: 1; }
.sti-stage .emo.big { display: grid; place-items: center; height: 100%; font-size: 56px; }
/* juicy and up get a slow shimmer across the stage */
.r-juicy .sti-stage::before, .r-overripe .sti-stage::before, .r-fermented .sti-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 47%, transparent 58%); background-size: 260% 100%; animation: shimmer 3.4s ease-in-out infinite; }
.r-fermented .sti-stage::before { background-image: linear-gradient(105deg, transparent 35%, rgba(255, 230, 140, .3) 47%, transparent 58%); }
@keyframes shimmer { 0% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
.sti .ribbon { position: absolute; top: 10px; left: -26px; z-index: 3; width: 92px; padding: 2px 0; transform: rotate(-38deg); text-align: center; font: 13px/1.2 var(--gw-title); letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: linear-gradient(#ff5470, #c41e3a); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.sti .tryon { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 3px 9px; border-radius: 10px; border: 1px solid var(--hair); background: rgba(20, 18, 34, .75); color: var(--cream); font: 600 11.5px var(--gw-font); }
.sti .tryon:hover, .sti .tryon.on { border-color: var(--gold); color: var(--honey); }
.sti .chips { display: flex; gap: 4px; }
.sti.bought .sti-stage canvas.spin { animation: boughtPop .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes boughtPop { 30% { transform: scale(1.3) translateY(-10px); filter: brightness(1.5); } }
.confetti { position: fixed; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 60; }
img.hop { position: fixed; left: 0; top: 0; width: 80px; height: 80px; pointer-events: none; z-index: 60; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
/* today's deal: a wide card above the grid */
.deal { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 14px; margin-bottom: 14px; padding: 11px; border: 2px solid var(--gold); border-radius: 14px;
  background: linear-gradient(110deg, rgba(246, 194, 74, .16), rgba(0, 0, 0, .25) 55%); box-shadow: 0 0 22px rgba(246, 194, 74, .18); }
.deal .sti-stage { margin: 0; border-radius: 10px; height: 150px; }
.deal-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.deal-tag { align-self: flex-start; padding: 3px 10px; border-radius: 10px; font: 14px var(--gw-title); letter-spacing: .5px; color: #3a1a00; background: linear-gradient(#ffe27a, #f0a81c); text-transform: uppercase; }
.deal-txt b { font: 700 20px/1.1 var(--gw-font); color: var(--cream); } .deal-txt p { margin: 0; font-size: 13px; color: var(--dim); }
.deal .sti-f { margin-top: auto; } .buyrow { display: flex; align-items: center; gap: 8px; } s.was { color: var(--dim); font-size: 13px; } s.was .ic { width: 14px; height: 14px; }
.sti { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 11px; border: 1px solid var(--hair); border-radius: 12px; background: linear-gradient(180deg, #25243d, #1c1b30); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); transition: transform .12s, border-color .12s; }
.sti:hover { transform: translateY(-2px); border-color: var(--gold); }
.sti-top { display: flex; align-items: center; gap: 10px; }
.sti-ic { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; font-size: 26px; border: 3px solid var(--rc, var(--r-common));
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .25), rgba(0, 0, 0, .25)), var(--rbg, #3a3956); box-shadow: 0 0 0 2px #14132a, inset 0 2px 0 rgba(255, 255, 255, .3); }
.sti-tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sti-tt b { font: 700 17px/1.1 var(--gw-font); color: var(--cream); }
.sti p { margin: 0; font-size: 12.5px; color: var(--dim); min-height: 34px; }
.sti-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.sti-own { font-size: 12px; color: var(--dim); } .sti-own.has { color: var(--leaf); }
.sti.locked { opacity: .65; }
.sti .lvls { display: flex; gap: 3px; } .sti .lvls i { width: 14px; height: 6px; border-radius: 3px; background: #150f1c; border: 1px solid var(--line); } .sti .lvls i.on { background: var(--gold); border-color: var(--gold-d); }
.ticket-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 12px; background: radial-gradient(circle at 10% 50%, rgba(246, 194, 74, .25), rgba(0, 0, 0, .2) 60%); }
.ticket-head svg { width: 38px; height: 38px; flex: none; } .ticket-head p { margin: 0; font-size: 13px; color: var(--cream); } .ticket-head p b { color: var(--honey); }
.sti.ticket { border-color: var(--gold); background: linear-gradient(180deg, #34301f, #1f1c16); }

/* ---------- tasks ---------- */
.task { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .28); }
.task > .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); border: 2px solid var(--metal); }
.task b { display: block; font: 700 15px/1.2 var(--gw-font); color: var(--cream); }
.task .bar { height: 9px; margin: 6px 0 3px; border-radius: 5px; background: #150f1c; overflow: hidden; }
.task .bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, #ffd25a 0 6px, #f0a020 6px 12px); transition: width .4s; }
.task small { color: var(--dim); font-size: 12px; } .task small svg { width: 14px; height: 14px; vertical-align: -.2em; }
.task.done { border-color: var(--gold); background: rgba(246, 194, 74, .1); }
.task.claimed { opacity: .55; } .task.claimed > .ic { filter: grayscale(.6); }
.task-bonus { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px dashed var(--gold); border-radius: 12px; background: rgba(246, 194, 74, .08); }
.task-bonus > .ic { font-size: 30px; } .task-bonus p { margin: 0; flex: 1; font-size: 13px; } .task-bonus p b { color: var(--honey); }

/* ---------- settings ---------- */
.set-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.set-row:last-child { margin-bottom: 0; }
.set-row label { font: 400 15.5px/1.25 var(--gw-title); letter-spacing: .4px; color: var(--cream); }
.set-row small { display: block; margin-top: 2px; color: var(--dim); font: 600 12px/1.35 var(--gw-font); letter-spacing: 0; }
.set-row input[type=text] { background: #15142a; border: 1px solid var(--hair); border-radius: 8px; padding: 7px 9px; width: 150px; }
.tog { width: 44px; height: 24px; border-radius: 12px; border: 1px solid #000; background: #2a2840; position: relative; padding: 0; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: .15s; }
.tog[aria-pressed="true"] { background: linear-gradient(#66d484, #2f9650); }
.tog[aria-pressed="true"]::after { left: 23px; background: #fff; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 11px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
.seg button[aria-pressed="true"] { background: rgba(246, 194, 74, .2); color: var(--honey); }
.danger { color: #ffb0b0 !important; }

/* ---------- decorate tray (stays at the bottom so the room stays visible) ---------- */
#tray { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: min(620px, calc(100vw - 24px)); max-height: 46vh; z-index: 21; display: flex; flex-direction: column;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .2s ease-out;
  border: 2px solid var(--gold-line); background: var(--glass); border-radius: 14px; box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
#tray.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#tray header { display: flex; align-items: center; gap: 10px; padding: 9px 12px 7px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#tray h2 { margin: 0 auto 0 0; font: 400 19px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--honey); }
#tray .tabs { display: flex; gap: 2px; }
#tray .tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; border-radius: 8px 8px 0 0; padding: 5px 10px 4px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
#tray .tabs button[aria-pressed="true"] { color: var(--honey); border-bottom-color: var(--gold); background: linear-gradient(180deg, rgba(246, 194, 74, 0), rgba(246, 194, 74, .16)); }
#tray .hint { padding: 6px 12px 0; font-size: 12px; color: var(--dim); } #tray .hint b { color: var(--honey); }
#tray .body { overflow-y: auto; padding: 8px 10px 10px; }
#tray.placing .body, #tray.placing .tabs, #tray.placing .edit-flies { display: none; } #tray.placing .hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 12px 10px; font-size: 13px; } #tray .pl-btns { display: flex; gap: 6px; margin-left: auto; }   /* placing: a slim bar, the room in view */
.edit-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 8px; }

/* ---------- play catalog ---------- */
#play { position: fixed; inset: 0; z-index: 25; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .2s;
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 60, 140, .35), transparent 60%), rgba(13, 12, 24, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#play.open { opacity: 1; pointer-events: auto; }
.play-in { max-width: 1120px; margin: 0 auto; padding: calc(70px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }
.play-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play-top h2 { margin: 0 auto 0 0; font: 400 42px/1 var(--gw-title); letter-spacing: 2px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840; }
#search { background: #15142a; border: 1px solid var(--hair); border-radius: 10px; padding: 8px 11px; width: 220px; max-width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: rgba(0, 0, 0, .3); border-radius: 999px; padding: 6px 13px; font: 600 13px/1 var(--gw-font); color: var(--dim); }
.chips button:hover { color: #fff; border-color: var(--hair); }
.chips button[aria-pressed="true"] { background: linear-gradient(#ffd76a, #e0a02a); color: var(--ink); border-color: var(--gold-d); }
.row-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.row-h h3 { margin: 0; font: 700 13px var(--gw-font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.row-h h3::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ruby); border: 1px solid var(--gold); }
.row-h span { font-size: 12px; color: var(--dim); }
.feat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; min-height: 230px; border-radius: 16px; overflow: hidden; padding: 20px; cursor: pointer;
  border: 2px solid var(--gold-line); box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0, 0, 0, .5); }
.feat .art { position: absolute; inset: 0; }
.feat .txt { position: relative; min-width: 0; }
.feat h4 { margin: 6px 0 4px; font: 400 clamp(44px, 8vw, 84px)/.9 var(--gw-title); letter-spacing: 1.5px; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.feat p { margin: 0 0 10px; max-width: 46ch; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.feat .go { position: relative; }
.feat .art .flysprite { left: auto; right: 22%; height: 92%; bottom: -4%; }
.feat .art .big { right: 5%; }
.banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ban { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); background: linear-gradient(180deg, #25243d, #1c1b30); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; text-align: left; padding: 0; min-width: 0; }
.ban:hover, .ban:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.ban .art { position: relative; aspect-ratio: 16 / 8; max-width: 100%; }
.ban .info { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ban .t { font: 700 17px/1.1 var(--gw-font); color: var(--cream); }
.ban .meta { display: flex; gap: 8px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.ban .meta b { color: var(--honey); }
.ban.locked { cursor: default; } .ban.locked .art { filter: grayscale(.7) brightness(.6); }
.art { overflow: hidden; }
.art .bg { position: absolute; inset: 0; }
.art .big { position: absolute; right: 8%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: clamp(54px, 9vw, 120px); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); }
.art .flysprite { position: absolute; left: 4%; bottom: -6%; height: 78%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); transition: transform .2s; }
.ban:hover .flysprite, .feat:hover .flysprite { transform: translateY(-6px) rotate(-4deg); }
.art .ttl { position: absolute; left: 50%; top: 10%; transform: translateX(-30%); font: 400 26px/.95 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); max-width: 60%; }
.art .bdg { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.types { display: flex; gap: 4px; flex-wrap: wrap; }
.ty { font: 700 10.5px/1 var(--gw-font); letter-spacing: .6px; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: var(--cream); border: 1px solid var(--line); }
.ty.d3 { background: #2a1f45; color: #cdb6ff; } .ty.d2 { background: #133229; color: #9df0c5; }
.game-info table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.game-info td { padding: 6px 0; border-bottom: 1px solid var(--line); } .game-info td:first-child { color: var(--dim); width: 40%; }
.game-info .art { position: relative; aspect-ratio: 16 / 7; border-radius: 10px; margin-bottom: 10px; }
.game-info .acts { display: flex; gap: 8px; margin-top: 4px; }

/* ---------- loot, hatching, toast, level-up ---------- */
#veil { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(14, 10, 28, .35), rgba(6, 4, 16, .82)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s; padding: 16px; z-index: 31; }
#veil.open { opacity: 1; pointer-events: auto; }
#loot { width: min(400px, 100%); padding: 34px 16px 16px; text-align: center; }
#veil.open #loot { animation: gwPop .3s cubic-bezier(.2, 1.45, .4, 1); }
#loot .k { font: 700 12px/1 var(--gw-font); letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
#loot h3 { margin: 6px 0 2px; font: 400 38px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--cream); text-shadow: 0 3px 0 #2a1840; }
#loot .s { font-size: 13px; color: var(--dim); min-height: 1.3em; }
#loot .flysprite { height: 110px; margin: 6px auto 0; display: block; animation: wob 1s ease-in-out infinite; }
@keyframes wob { 50% { transform: translateY(-6px) rotate(3deg); } }
#lootList { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; min-height: 40px; }
.drop { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); animation: dropIn .45s cubic-bezier(.2, 1.6, .4, 1) both; text-align: left; }
.drop .e { font-size: 24px; width: 30px; display: grid; place-items: center; }
.drop .e svg { width: 24px; height: 24px; }
.drop .e img.thumb { width: 44px; height: 44px; margin: -8px -7px; }
.drop .n { flex: 1; min-width: 0; }
.drop .r { font: 700 11px/1 var(--gw-font); letter-spacing: 1px; text-transform: uppercase; }
.drop.fermented { border-color: var(--r-fermented); box-shadow: 0 0 24px rgba(255, 211, 74, .3); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px) scale(.85); } }
.bar-load { height: 9px; border-radius: 5px; background: #150f1c; overflow: hidden; margin: 14px 0 4px; }
.bar-load i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #ffd25a 0 6px, #f0a020 6px 12px); }
#hatch { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(400px, calc(100vw - 32px)); padding: 36px 18px 18px; text-align: center; z-index: 32; opacity: 0; pointer-events: none; transition: .25s; }
#hatch.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
#hatch h3 { margin: 4px 0 4px; font: 400 36px/1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; }
#hatch p { margin: 0 0 12px; color: var(--dim); font-size: 13.5px; }
#hatch .namerow { display: flex; gap: 6px; }
#hatch input { flex: 1; min-width: 0; background: #15142a; border: 1px solid var(--hair); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
#hatch .swatches { justify-content: center; margin: 12px 0 14px; }
#hatch .hatch-looks { margin: -4px 0 14px; text-align: center; } #hatch .hatch-looks b { display: block; margin-bottom: 6px; font: 700 13px var(--gw-font); color: var(--dim); } #hatch .hatch-looks .seg { display: inline-flex; flex-wrap: wrap; justify-content: center; }
#hatch .sw { width: 34px; height: 34px; border-radius: 50%; }
#hatch .hatch-me { display: block; width: 136px; height: 136px; margin: -8px auto -6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
#hatch .hatch-looks .seg { gap: 4px; }
#toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -8px); padding: 8px 16px; opacity: 0; pointer-events: none; transition: .2s; font-size: 13.5px; text-align: center; max-width: calc(100vw - 32px); z-index: 35;
  border: 2px solid var(--gold-line); background: var(--glass); border-radius: 12px; box-shadow: 0 0 0 1px #000, 0 8px 24px rgba(0, 0, 0, .5); }
#toast b { color: var(--honey); } #toast small { color: var(--dim); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#app[data-place="home"] ~ #toast { top: calc(178px + env(safe-area-inset-top, 0px)); }
#gwBack.open ~ #toast, #veil.open ~ #toast { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
#lvlup { position: fixed; left: 50%; top: 34%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center; font: 400 clamp(46px, 11vw, 92px)/.9 var(--gw-title); letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 0 40px rgba(246, 194, 74, .6), 0 4px 0 #6b4d09; transition: .35s cubic-bezier(.2, 1.6, .4, 1); z-index: 36; }
#lvlup small { display: block; font: 600 .26em/1.4 var(--gw-font); letter-spacing: 1px; color: var(--cream); text-shadow: none; margin-top: 8px; }
#lvlup.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#fatal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); padding: 16px 18px; z-index: 60; display: none;
  border: 2px solid var(--gold-line); background: var(--glass2); border-radius: 14px; }
#fatal.show { display: block; }
#fatal b { font: 400 22px/1.1 var(--gw-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
#fatal p { margin: 8px 0 0; color: var(--dim); }
#fatal code { color: var(--cream); background: #15142a; padding: 1px 5px; border-radius: 4px; }

/* ---------- phones and small tablets ---------- */
@media (max-width: 680px) {
  .brand span { display: none; }
  .brand b { font-size: 20px; letter-spacing: 1px; }
  #hud { gap: 4px; padding-left: 10px; padding-right: 10px; }
  #wallet { gap: 4px; }
  .cur { font-size: 14px; padding: 2px 8px 2px 3px; gap: 4px; }
  .cur svg { width: 20px; height: 20px; }
  #lvl .xp { display: none; } #lvl { padding-right: 3px; }
  #flyCard { left: 10px; top: calc(48px + env(safe-area-inset-top, 0px)); gap: 7px; }
  #pfp { width: 46px; height: 46px; }
  .fc-txt b { font-size: 15px; max-width: 110px; }
  #roomBar { left: 10px; top: calc(112px + env(safe-area-inset-top, 0px)); }
  #roomBar .house span { display: none; }
  .dk { width: 50px; font-size: 10.5px; }
  .dk .well { width: 38px; height: 38px; font-size: 18px; }
  .play-btn { margin: -16px 4px 2px; padding: 8px 14px 7px; } .play-btn b { font-size: 20px; }
  #gwBack.side { padding-right: 0; justify-content: center; }
  #gwWin, #gwWin.small, #gwWin.side { width: calc(100vw - 16px); height: calc(100vh - 44px - env(safe-area-inset-top, 0px)); max-height: none; padding: 40px 8px 8px; margin-top: 18px; }
  .gw-body { padding: 12px 10px; }
  .gw-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gw-tabs button { padding: 7px 10px 8px; font-size: 14px; white-space: nowrap; }
  .gw-ribbon h2 { font-size: 18px; }
  .gw-chip { display: none; }
  .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bag { grid-template-columns: 1fr; }
  .wr { grid-template-columns: 1fr; } .wr-look { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; } .wr-look img { width: 84px; height: 84px; }
  .gym-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gym-cap { grid-template-columns: 1fr auto; } .gym-cap .bar { grid-column: 1 / -1; grid-row: 2; }
  .bag-detail { position: static; order: -1; }
  .bag-detail .big { height: 90px; font-size: 48px; } .bag-detail .big img { height: 88px; }
  .sti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sti p { display: none; } .sti-stage { height: 112px; } .sti-stage canvas.spin { width: 112px; height: 112px; }
  .sti-f { flex-direction: column; align-items: stretch; gap: 5px; } .sti-tt b { font-size: 15px; }
  .deal { grid-template-columns: 120px 1fr; } .deal .sti-stage { height: 120px; } .deal-txt p { display: none; }
  .mo .bal { display: none; }
  #tray { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .play-top h2 { font-size: 32px; }
  .feat { grid-template-columns: 1fr; min-height: 260px; }
  .feat .art .flysprite { height: 46%; top: 4%; bottom: auto; right: 3%; }
  .feat .art .big { display: none; }
  #app[data-place="home"] ~ #toast { top: calc(160px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 380px) { .dk { width: 44px; } .dk .well { width: 34px; height: 34px; font-size: 16px; } }
@media (max-width: 420px) { #tasksBtn #tasksN, #passBtn #passN, #eventBtn #eventN { display: none; } .fc-txt b { max-width: 72px; overflow: hidden; text-overflow: ellipsis; } }   /* (I5: the fly card fits a phone with both buttons) */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0s !important; } }
.nav-table select { margin-top: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 12px var(--gw-font); padding: 2px 4px; }
/* the profile (D2): picture left, name / title / mood right, the badges under it */
.profile2 { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; align-items: start; }
.profile2 .pf-pic { grid-row: span 2; display: grid; place-items: center; min-height: 120px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #3e3b5e, #1d1c30); box-shadow: inset 0 0 0 1px var(--line); }
.profile2 .pf-pic .flysprite { width: 112px; }
.profile2 .pf-name { margin: 0; font: 400 21px/1.1 var(--gw-title); letter-spacing: .5px; color: var(--cream); }
.profile2 .pf-mood { margin: 6px 0 0; font: 600 13.5px var(--gw-font); color: var(--cream); }
.profile2 .pf-mood input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); color: var(--cream); font: 600 13px var(--gw-font); padding: 6px 8px; }
.profile2 .pf-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: 11.5px; color: var(--dim); } .profile2 .pf-facts b { color: var(--cream); }
.pic-studio { display: flex; align-items: center; justify-content: center; gap: 10px; } .pic-frame { position: relative; width: 200px; height: 200px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(246, 194, 74, .18), rgba(0, 0, 0, .25)); border: 1px solid var(--line); }
.pic-frame > img { width: 100%; height: 100%; } .pic-frame .pic-head { position: absolute; right: -8px; bottom: -8px; width: 56px; height: 56px; border: 2px solid var(--gold); background: #1a1838; }   /* how the head looks in chats */
.pic-poses { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 12px 0; }
.profile2 .pf-facts .onl { color: #8ff0a4; font-weight: 700; } .profile2 .pf-facts .ico { width: 11px; height: 11px; vertical-align: -1px; }
.profile2 .pf-badges { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.profile2 > .gw-sec, .profile2 > .nav-table, .profile2 > .btnrow, .profile2 > .gw-note { grid-column: 1 / -1; }
.bdg { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; }   /* G5: the emblem is an SVG (shared/badgeArt.js) */
.bdg .bdg-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.bdg.l5 .bdg-art { animation: bdg-shine 3s ease-in-out infinite; } @keyframes bdg-shine { 50% { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 5px rgba(160, 220, 255, .9)) brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .bdg.l5 .bdg-art { animation: none; } }
.bdg.off { filter: grayscale(1) brightness(.6); } .bdg.empty { border-radius: 50%; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px var(--line); }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.bdg-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; gap: 0 8px; padding: 8px; text-align: left; border: 2px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); color: inherit; font: inherit; }
.bdg-card .bdg { grid-row: span 2; } .bdg-card b { font-size: 13px; color: var(--cream); } .bdg-card small { font-size: 11px; line-height: 1.3; color: var(--dim); }
.bdg-card.on { border-color: var(--gold); background: rgba(246, 194, 74, .12); } .bdg-card:disabled { opacity: .7; }
.bdg.bdg-new { width: 30px; height: 30px; vertical-align: -10px; margin-right: 4px; }
@media (max-width: 480px) { .profile2 { grid-template-columns: 90px 1fr; } .profile2 .pf-pic { min-height: 90px; } .profile2 .pf-pic .flysprite { width: 84px; } .bdg { width: 38px; height: 38px; } }
/* Change Your Looks (D3): the pieces on the left, the fly on its pedestal on the right */
.looks { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.lk-left { min-width: 0; overflow: auto; padding-right: 4px; }
.lk-right { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #3e3b5e, #1d1c30 75%); box-shadow: inset 0 0 0 1px var(--line); }
.lk-ped { height: 220px; } .lk-stage { display: block; width: 100%; height: 100%; }
.lk-turn, .lk-act { display: flex; justify-content: center; gap: 8px; } .lk-act .gw-btn.green { flex: 1; }
.wd-tile.lock { opacity: .55; } .wd-tile.lock .st { color: var(--dim); } .wd-tile.lock .st svg { width: 11px; height: 11px; vertical-align: -1px; }
.lk-info { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); font-size: 13px; }
.lk-saved { display: grid; gap: 8px; }
.lk-out { display: grid; grid-template-columns: 48px 90px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.lk-out b { font: 400 15px var(--gw-title); letter-spacing: .4px; } .lk-out .pcs { display: flex; gap: 4px; flex-wrap: wrap; color: var(--dim); }
@media (max-width: 680px) { .looks { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .lk-right { order: -1; position: static; } .lk-ped { min-height: 190px; height: 190px; } .lk-out { grid-template-columns: 48px 1fr auto; } .lk-out .pcs { display: none; } .lk-out .pcs { grid-column: 1 / -1; grid-row: 2; } }
/* the inventory (D4): a filter column, the grid, the panel; walls and floors as swatches */
.inv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; height: 100%; }
.inv-side { display: flex; flex-direction: column; gap: 6px; }
.inv-search { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 14px var(--gw-font); }
.inv-f { text-align: left; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--dim); font: 400 14px var(--gw-title); letter-spacing: .4px; }
.inv-f.on { color: var(--honey); border-color: var(--gold); background: rgba(246, 194, 74, .14); }
.deco { display: inline-block; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 3px 0 rgba(0, 0, 0, .35); }
.deco.e { width: 54px; height: 54px; margin: 0 0 6px; } .deco.big { width: 150px; height: 150px; border-radius: 16px; }
.sti-stage .deco.big { width: 120px; height: 120px; margin: 18px auto 0; display: block; }
.inv-rooms svg.shape { float: left; margin: 2px 8px 0 0; }
@media (max-width: 680px) { .inv { grid-template-columns: 1fr; } .inv-side { flex-direction: row; flex-wrap: wrap; } .inv-search { flex: 1 1 100%; } .inv-side .gw-note { display: none; } }
/* soft redraws (a filter in the inventory), and room for lifted tiles and the chosen colour's ring */
.soft { animation: softIn .2s ease-out; } @keyframes softIn { from { opacity: .35; transform: translateY(3px); } }
.wd-grid { padding-top: 4px; }
.lk-left .tints { display: flex; flex-wrap: wrap; gap: 8px; padding: 7px; }
/* Looks 2.0 (G4): sub-tabs, our 24 colours in a tight grid, presets */
.lk-sub { margin: 0 0 8px; flex-wrap: wrap; } .lk-left .tints.many { display: grid; grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); gap: 5px; } .lk-left .tints.many .wd-c { width: 24px; height: 24px; }
.lk-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.lk-preset { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--cream); font: 700 13px var(--gw-font); }
.lk-preset img { width: 84px; height: 84px; } .lk-preset small { color: var(--dim); font-weight: 600; font-size: 11px; } .lk-preset:hover { border-color: var(--gold); background: rgba(246, 194, 74, .1); }
/* the shop (D5): search + categories, outfit sets, coin items, premium */
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; } .shop-tools .inv-search { flex: 1 1 180px; }
.chipbtn { padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); color: var(--dim); font: 400 13px var(--gw-title); letter-spacing: .4px; }
.chipbtn.on { color: var(--honey); border-color: var(--gold); background: rgba(246, 194, 74, .14); }
.set-pcs { display: flex; justify-content: center; gap: 4px; padding: 14px 6px 6px; } .set-pcs span.have { opacity: .45; } .set-pcs img.thumb.e { width: 56px; height: 56px; }
.coinpic { width: 54px; height: 54px; } .coinpic.e { margin: 0 0 6px; } .coinpic.big { width: 110px; height: 110px; display: block; margin: 16px auto 0; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.coin-buys { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 6px 0; } .coin-buys .gw-btn { padding: 5px 6px; font-size: 12.5px; } .coin-buys svg { width: 14px; height: 14px; }
.prem-art { display: grid; place-items: center; min-height: 120px; } .prem-art svg { width: 70px; height: 70px; }
/* ---------- E2: Habbo's bottom row: the dock left, the chat bar in the middle (in a room), the messenger right.
   chat.js layoutBottom() sets --dockW / --dockH / --msgrW, and body.stack when the middle is too narrow (and on phones):
   then the chat bar and the messenger sit one row up, over the dock ---------- */
#chatbar { position: fixed; z-index: 22; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: calc(var(--dockW, 480px) + 24px); right: calc(var(--msgrW, 60px) + 24px); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; border: 2px solid var(--gold-line); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); }
#chatbar[hidden] { display: none; }
#chatbar input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 15px var(--gw-font); outline: none; }
#chatbar input::placeholder { color: var(--dim); } #chatbar input:focus { box-shadow: inset 0 0 0 2px var(--gold-line); }
.cb-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.cb-btn .ico { width: 22px; height: 22px; } .cb-btn:hover { filter: brightness(1.2); }
.cb-btn[class*="bs-"] { box-shadow: inset 0 -4px 0 var(--bs); }
#chatbar .wh { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 6px; border-radius: 8px; background: rgba(160, 130, 255, .25); color: #e2d8ff; font: 600 12px var(--gw-font); }
#chatbar .wh .ico { width: 14px; height: 14px; vertical-align: -2px; } #chatbar .wh button { border: 0; background: none; color: inherit; font: 700 14px var(--gw-font); padding: 0 2px; }
#chatbar .wh[hidden] { display: none; }
/* the emote wheel (G3): a ring of buttons around a face, above the chat bar */
#emoteWheel { position: fixed; z-index: 45; width: 0; height: 0; } #emoteWheel .ew-mid { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 18, 40, .92); border: 1.5px solid var(--gold); }
#emoteWheel .ew-mid .ico { width: 28px; height: 28px; }
#emoteWheel button { position: absolute; left: 0; top: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%)); padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--gold-line); background: linear-gradient(#2e2a5c, #1a1838); color: var(--cream); font: 700 12.5px var(--gw-font); white-space: nowrap; animation: ew-in .22s ease-out both; }
#emoteWheel button.club { border-color: #c9902a; background: linear-gradient(#5a2a8a, #2e1648); } #emoteWheel button.lock { opacity: .55; }
#emoteWheel button:hover, #emoteWheel button:focus-visible { background: linear-gradient(#ffcf5a, #e09a22); color: #3a2400; }
@keyframes ew-in { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
#msgr { position: fixed; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 22; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px;
  border: 2px solid var(--gold-line); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .45); }
#msgr[hidden] { display: none; }
.ms-heads { display: flex; align-items: center; gap: 3px; } .ms-heads[hidden] { display: none; }
.ms-head { position: relative; padding: 0; border: 0; background: none; animation: ms-pop .35s cubic-bezier(.3, 1.6, .5, 1); } @keyframes ms-pop { from { transform: scale(.2); opacity: 0; } } .ms-head .hd { width: 36px; height: 36px; }
.ms-head .dot { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border-radius: 50%; background: #5fe07a; box-shadow: 0 0 0 2px #14132a; }
.ms-head em, .ms-btn em, .rt-btn em, .ms-convs em, .gw-tabs.mini em { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--ruby); color: #fff; font: 700 10.5px/15px var(--gw-font); font-style: normal; text-align: center; border: 1px solid #4a0f1c; display: none; }
.ms-head em.on, .ms-btn em.on, .rt-btn em.on, .ms-convs em.on, .gw-tabs.mini em.on { display: block; }
.ms-find { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--cream); font: 400 12.5px var(--gw-title); letter-spacing: .4px; white-space: nowrap; }
.ms-find .ico { width: 20px; height: 20px; }
.ms-fold { width: 20px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: 700 16px var(--gw-font); } .ms-fold:hover { color: #fff; }
.ms-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 3px solid var(--metal); background: radial-gradient(circle at 35% 28%, #6a6a92, #2b2a45); box-shadow: 0 0 0 2px var(--stone-d), 0 3px 0 2px rgba(0, 0, 0, .45); }
.ms-btn .ico { width: 28px; height: 28px; } .ms-btn:hover { filter: brightness(1.15); }
.ms-btn.ask { border-color: var(--gold); } .ms-btn.bump { animation: bump .5s ease-out; }
#roomTools { position: fixed; left: 12px; bottom: calc(var(--dockH, 70px) + 20px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 14px;
  border: 2px solid var(--gold-line); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px #000, 0 6px 20px rgba(0, 0, 0, .4); max-width: calc(100vw - 24px); box-sizing: border-box; }
#roomTools[hidden] { display: none; }
.rt-name { display: flex; flex-direction: column; min-width: 0; margin-right: 6px; } .rt-name b { font: 400 14px/1.1 var(--gw-title); letter-spacing: .5px; color: var(--honey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.rt-name small { font-size: 11px; color: var(--dim); } .rt-name small .linkish { font-size: 11px; }
.rt-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); } .rt-btn .ico { width: 21px; height: 21px; } .rt-btn:hover { filter: brightness(1.2); }
body.stack #chatbar { left: 10px; right: calc(var(--msgrW, 52px) + 18px); max-width: none; bottom: calc(var(--dockH, 70px) + 20px + env(safe-area-inset-bottom, 0px)); }
body.stack #msgr { bottom: calc(var(--dockH, 70px) + 18px + env(safe-area-inset-bottom, 0px)); right: 8px; }
body.stack.in-room #roomTools { bottom: calc(var(--dockH, 70px) + 74px + env(safe-area-inset-bottom, 0px)); }
#tray { z-index: 23; }
body.stack.in-room #tray { bottom: calc(var(--dockH, 70px) + 74px + env(safe-area-inset-bottom, 0px)); }   /* over the chat bar row, not on it */
body.stack.in-room #pan-l { bottom: calc(var(--dockH, 70px) + 126px + env(safe-area-inset-bottom, 0px)); }   /* over the room tools */
@media (max-width: 680px) {
  #dock { left: 6px; right: 6px; max-width: none; overflow-x: auto; scrollbar-width: none; padding: 6px 6px 7px; } #dock::-webkit-scrollbar { display: none; }
  .play-btn { flex: none; margin-top: 0; }
  .ms-heads, .ms-fold { display: none; } #msgr { padding: 3px; } .ms-btn { width: 40px; height: 40px; }
  #dock .dk { flex: none; width: auto; min-width: 46px; padding: 2px 3px; }   /* long labels (Decorate, Wardrobe) get their room; the dock scrolls if it must */
  .rt-name b { max-width: 110px; }
}

/* the panels (windows.js openPanel): Habbo's small windows, the room stays clickable */
.gw-pan { position: fixed; z-index: 23; display: flex; flex-direction: column; box-sizing: border-box; width: 300px; max-height: calc(100vh - 230px); color: var(--cream); font-family: var(--gw-font);
  border-radius: 14px; border: 2px solid var(--gold-line); background: linear-gradient(180deg, rgba(42, 38, 78, .97), rgba(22, 20, 44, .97)); box-shadow: 0 0 0 1px #000, 0 10px 30px rgba(0, 0, 0, .55); animation: gwPop .18s ease-out; }
.gw-pan[hidden] { display: none; } .gw-pan.top { z-index: 24; }   /* under the Play page (25) */
.gw-pan header { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 40px 7px 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #b0283a, #7a1426); border-radius: 12px 12px 0 0; }
.gw-pan header .gw-badge { width: 26px; height: 26px; } .gw-pan header .gw-badge svg.ico { width: 18px; height: 18px; }
.gw-pan h3 { margin: 0; font: 400 15px/1 var(--gw-title); letter-spacing: .8px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 #000; }
.gw-pan .pop-x { top: 5px; right: 6px; width: 26px; height: 26px; font-size: 14px; }
.pan-body { overflow-y: auto; padding: 10px; }
#pan-l { left: 12px; bottom: calc(var(--dockH, 70px) + 70px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - var(--dockH, 70px) - 250px); }   /* stays under the room bar */
#pan-r { right: 12px; top: calc(70px + env(safe-area-inset-top, 0px)); width: 520px; height: min(470px, calc(100vh - 170px)); max-height: none; }
#pan-i { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 290px; }
body.stack #pan-i { bottom: calc(var(--dockH, 70px) + 74px + env(safe-area-inset-bottom, 0px)); }
#pan-r .pan-body { flex: 1; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
@media (max-width: 680px) {
  .gw-pan, #pan-r, #pan-i { left: 6px; right: 6px; width: auto; top: auto; bottom: calc(var(--dockH, 64px) + 70px + env(safe-area-inset-bottom, 0px)); max-height: 56vh; }
  #pan-r { height: 56vh; }
  body.in-room .gw-pan, body.in-room #pan-r, body.in-room #pan-i { bottom: calc(var(--dockH, 64px) + 126px + env(safe-area-inset-bottom, 0px)); max-height: 50vh; }   /* over the room tools too */
}

/* heads: the front picture of a fly, cropped to its head */
.hd { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 40% 35%, #4a4670, #22203a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.hd img { position: absolute; width: 220%; height: 220%; max-width: none; left: -104%; top: -62%; } .hd .ico { width: 70%; height: 70%; }   /* the front sprite's head sits at about 70% / 52% */
.hd.in-pic { border-radius: 14px; } .hd.in-pic img { width: 118%; height: 118%; left: -9%; top: -6%; }   /* the info card: the whole fly */

/* speech bubbles (E2): the speaker's style; the size is the viewer's own setting */
#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 21; }
.chatb { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 6px; max-width: min(320px, 80vw); padding: 5px 10px 5px 5px; border-radius: 12px; background: var(--bs); color: var(--bs-ink, #241a10);
  font: 600 13.5px/1.3 var(--gw-font); box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px var(--bs-edge, #241a10); transition: opacity .5s; overflow-wrap: anywhere; }
.chatb .hd { width: 24px; height: 24px; margin-top: -1px; } .chatb > span { padding-top: 2px; }
.chatb b { color: var(--bs-name, #7a3a1e); }
.chatb.whisper { font-style: italic; box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 2px #6a4ab0; } .chatb.whisper i { color: #6a4ab0; }
.chatb.fade { opacity: 0; }
#bubbles.sz-s .chatb { font-size: 11.5px; max-width: min(260px, 70vw); } #bubbles.sz-s .chatb .hd { width: 20px; height: 20px; }
#bubbles.sz-l .chatb { font-size: 16px; max-width: min(380px, 86vw); } #bubbles.sz-l .chatb .hd { width: 30px; height: 30px; }
.bs-cream { --bs: #fffaf0; } .bs-mint { --bs: #d9f7e4; --bs-name: #1f6a3a; } .bs-sky { --bs: #dcecff; --bs-name: #234f8f; } .bs-rose { --bs: #ffe0e8; --bs-name: #8f2346; }
.bs-lilac { --bs: #ece2ff; --bs-name: #5a3a9a; } .bs-lemon { --bs: #fff6b8; --bs-name: #7a5a00; }
.bs-night { --bs: #1d2450; --bs-ink: #e8ecff; --bs-name: #ffd86a; --bs-edge: #8a9cff; } .bs-gold { --bs: linear-gradient(#ffe9a0, #f6c24a); --bs-name: #6a3a00; --bs-edge: #8a5206; }
.bs-heart { --bs: linear-gradient(#ffd0de, #ff9ab8); --bs-name: #8f1240; --bs-edge: #b0285a; } .bs-letter { --bs: #f6ead0; --bs-name: #6a3a1e; --bs-edge: #8a5a32; }
.bs-leaf { --bs: linear-gradient(#e2ffd0, #a8e48a); --bs-name: #2a5a12; --bs-edge: #3a7a1a; } .bs-staff { --bs: linear-gradient(#dcecff, #9cc4ff); --bs-name: #1a3a8a; --bs-edge: #3a6fd0; } .bs-club { --bs: linear-gradient(#e8d4ff, #b78ae8); --bs-name: #4a1a7a; --bs-edge: #c9902a; }   /* G7: the Fly Club */
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.bs-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--dim); font: 600 11.5px var(--gw-font); }
.bs-pick .chatb { position: static; padding: 4px 8px; font-size: 12px; } .bs-pick.on { border-color: var(--gold); background: rgba(246, 194, 74, .14); color: var(--honey); }
.bs-pick:disabled { opacity: .55; } .bs-pick small .ico { width: 12px; height: 12px; vertical-align: -2px; }

/* the room's chat history */
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hist li { display: flex; align-items: flex-start; gap: 6px; font: 600 12.5px/1.35 var(--gw-font); overflow-wrap: anywhere; }
.hist time { flex: none; width: 36px; padding-top: 6px; color: var(--dim); font-size: 10.5px; } .hist li > span:last-child { padding-top: 5px; }
.hist .linkish { font-weight: 700; color: var(--honey); } .hist li.wh { font-style: italic; color: #d8ccff; } .hist li.ev span { color: var(--dim); font-style: italic; }

/* the messenger */
.gw-tabs.mini { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); }
.gw-tabs.mini button { position: relative; padding: 6px 10px 7px; border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--dim); font: 400 13.5px var(--gw-title); letter-spacing: .4px; }
.gw-tabs.mini button.on { color: var(--honey); border-bottom-color: var(--gold); background: rgba(246, 194, 74, .12); }
.ms-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 8px; }
.ms-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px 1fr; gap: 8px; margin: -8px; }
.ms-convs { list-style: none; margin: 0; padding: 6px; overflow-y: auto; border-right: 1px solid var(--line); }
.ms-convs button { position: relative; width: 100%; display: flex; align-items: center; gap: 6px; padding: 5px; border: 0; border-radius: 9px; background: transparent; color: var(--cream); text-align: left; }
.ms-convs button.on, .ms-convs button:hover { background: rgba(255, 255, 255, .07); } .ms-convs button span { min-width: 0; display: flex; flex-direction: column; }
.ms-convs b { font: 700 13px var(--gw-font); } .ms-convs small { color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ms-convs em { top: 4px; right: 4px; }
.ms-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 8px 8px 0; }
.ms-who { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .ms-who .gw-btn { margin-left: auto; } .ms-back { display: none; font-size: 20px; }
.ms-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px 0; }
.ms-log p { align-self: flex-start; max-width: 85%; margin: 0; padding: 5px 9px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .08); font: 600 13px/1.35 var(--gw-font); overflow-wrap: anywhere; }
.ms-log p.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: rgba(246, 194, 74, .18); } .ms-log time { margin-left: 6px; color: var(--dim); font-size: 10px; }
.ms-log p.cp-sys { align-self: center; background: transparent; color: var(--dim); font-size: 11.5px; text-align: center; }
.ms-in { display: flex; gap: 6px; } .ms-in input { flex: 1; min-width: 0; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 14px var(--gw-font); outline: none; }
.ms-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-list li { display: flex; align-items: center; gap: 7px; padding: 5px; border-radius: 9px; background: rgba(255, 255, 255, .04); } .ms-list li > span:not(.hd) { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.ms-list li small { flex-basis: 100%; color: var(--dim); font-size: 11px; } .ms-list li.on small { color: #8ff0a4; } .ms-list .hd { width: 32px; height: 32px; }
@media (max-width: 680px) { .ms-split { grid-template-columns: 1fr; } .ms-split.has .ms-convs { display: none; } .ms-split:not(.has) .ms-chat { display: none; } .ms-back { display: inline; } .ms-chat { padding-left: 8px; } .ms-convs { border-right: 0; } }

/* the info card (Habbo's infostand) and room info */
.info .in-top { display: flex; gap: 10px; align-items: flex-start; }
.info .in-pic { width: 76px; height: 76px; flex: none; } img.in-pic { object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 40% 35%, #4a4670, #22203a); }
.in-name { margin: 0; } .in-name b { font: 400 18px/1.1 var(--gw-title); letter-spacing: .5px; color: var(--honey); }
.in-mood { margin: 4px 0 0; font: 600 12.5px/1.3 var(--gw-font); color: var(--cream); font-style: italic; overflow-wrap: anywhere; }
.in-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 0; font: 700 11.5px var(--gw-font); color: var(--dim); } .in-facts .ico { width: 14px; height: 14px; vertical-align: -3px; } .in-facts .onl { color: #8ff0a4; }
.in-badges { display: flex; gap: 4px; margin: 8px 0; } .in-badges .bdg { width: 36px; height: 36px; }
.in-acts { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; } .in-acts .gw-btn { padding: 5px 9px; font-size: 12.5px; } .in-acts .gw-btn .ico { width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }
.gw-btn.gold { color: #3a2400; border-color: #6a4400; background: linear-gradient(#ffe08a, #e0a02a); box-shadow: 0 3px 0 #8a5206, inset 0 1px 0 rgba(255, 255, 255, .45); }
.ri-name { margin: 0 0 4px; } .ri-name b { font: 400 18px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .ri-name small { color: var(--dim); }
.ri-desc { margin: 0 0 6px; font: 600 12.5px/1.35 var(--gw-font); font-style: italic; overflow-wrap: anywhere; }
.ri-facts { width: 100%; border-collapse: collapse; font: 600 12.5px var(--gw-font); } .ri-facts td { padding: 3px 0; border-bottom: 1px solid var(--line); } .ri-facts td:first-child { color: var(--dim); width: 40%; }
.ri-edit select { width: 100%; padding: 6px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 14px var(--gw-font); }
.lbl.flytag { text-transform: none; letter-spacing: .2px; }   /* names keep their capitals (C2) */
/* the staff page (D7) */
.staff-seg { margin-bottom: 8px; flex-wrap: wrap; } .staff-chat .row3, .staff-give .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } @media (max-width: 560px) { .staff-chat .row3, .staff-give .row3 { grid-template-columns: 1fr; } }
/* staff 2.0 (G1): the people list, watching a room, the ranks' looks, a banner across the top */
.staff-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; } .staff-tools .nav-search { flex: 1; min-width: 180px; margin: 0; }
.staff-list .onl { color: #8ff0a4; } .staff-list td:last-child { white-space: normal; } .staff-list select { display: block; margin: 4px 0 0 auto; } .staff-list select, .rank-row select { padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 12.5px var(--gw-font); margin-left: 6px; }
.staff-people { max-height: 46vh; overflow-y: auto; } .staff-watch { max-height: 52vh; overflow-y: auto; margin: 8px 0; }
.rank-row { display: grid; grid-template-columns: 1.3fr 1fr 64px 1fr 1fr auto; gap: 6px; align-items: end; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rank-row label { display: flex; flex-direction: column; gap: 2px; font: 600 11px var(--gw-font); color: var(--dim); } .rank-row select { margin: 0; }
.rank-row input:not([type=color]) { padding: 5px 7px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 600 13px var(--gw-font); min-width: 0; }
.rank-row input[type=color] { width: 100%; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.rank-prev { display: flex; flex-direction: column; gap: 4px; align-self: center; } .rank-prev .rank { margin-left: 0; align-self: flex-start; }
@media (max-width: 680px) { .rank-row { grid-template-columns: 1fr 1fr; } }
#banner { position: fixed; z-index: 29; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: linear-gradient(180deg, rgba(150, 30, 50, .96), rgba(100, 18, 34, .96)); border: 1.5px solid var(--gold); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); color: var(--cream); animation: banner-in .35s ease-out; }
#banner > .ico { width: 26px; height: 26px; flex: none; color: var(--honey); } #banner p { flex: 1; margin: 0; font: 600 14px/1.3 var(--gw-font); } #banner small { display: block; color: var(--dim); font-size: 11px; }
#banner .pop-x { position: static; flex: none; }
@keyframes banner-in { from { transform: translate(-50%, -20px); opacity: 0; } }
.staff-fly .btnrow .bdg { width: 22px; height: 22px; vertical-align: middle; }
/* a storage chest (B12): inside left, the bag right */
.chest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .chest .wd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chest .st i { font-style: normal; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: rgba(246, 194, 74, .25); }
@media (max-width: 680px) { .chest { grid-template-columns: 1fr; } }
/* trading and gifts (B15) */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .trade .gw-sec i { font-style: normal; margin-left: 6px; font: 600 11px var(--gw-font); color: var(--dim); text-transform: none; letter-spacing: 0; } .trade .gw-sec i.tr-ok { color: #8ff0a4; }
.serial { color: #ffd86a; } .tr-warn { margin: 6px 0; padding: 6px 10px; border-radius: 9px; background: rgba(224, 69, 58, .2); color: #ffb0a0; font: 700 13px var(--gw-font); }
.tr-confirm { margin: 8px 0; padding: 10px; border-radius: 10px; border: 1px solid var(--gold-line); background: rgba(246, 194, 74, .08); } .tr-confirm p { margin: 0 0 8px; font: 600 13px/1.4 var(--gw-font); }
.papers { display: flex; gap: 6px; margin: 4px 0 8px; } .paper input { display: none; } label.paper { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; } label.paper:has(input:checked) { border-color: var(--gold); background: rgba(246, 194, 74, .15); }
.paper .ico { width: 28px; height: 28px; } .presents .wd-tile .ico { width: 54px; height: 54px; margin: 8px auto 2px; display: block; }
.p-blue .ico { filter: hue-rotate(210deg); } .p-green .ico { filter: hue-rotate(110deg); } .p-gold .ico { filter: hue-rotate(40deg) saturate(1.4) brightness(1.1); } .p-pink .ico { filter: hue-rotate(310deg) brightness(1.15); } .p-night .ico { filter: hue-rotate(230deg) brightness(.75); }
@media (max-width: 680px) { .trade { grid-template-columns: 1fr; } }
/* groups (F5) */
.gbadge { flex: none; vertical-align: middle; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); } .nav-table td .gbadge { margin-right: 6px; float: left; }
.gchip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 700; } .in-group, .pf-group { margin: 3px 0 0; }
.grp-top { display: flex; gap: 12px; align-items: center; } .grp-top h3 { margin: 0; font: 400 20px var(--gw-title); letter-spacing: .5px; color: var(--honey); } .grp-top p { margin: 3px 0; } .grp-top small { color: var(--dim); }
.grp-maker { display: grid; grid-template-columns: 110px 1fr; gap: 12px; } .grp-prev { display: grid; place-items: center; }
.grp-pick { display: flex; flex-wrap: wrap; gap: 4px; } .grp-pick button { padding: 2px; border-radius: 8px; border: 2px solid transparent; background: rgba(0, 0, 0, .2); } .grp-pick button.on { border-color: var(--gold); }
.grp-cols { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; } .grp-cols button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); } .grp-cols button.on { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (max-width: 480px) { .grp-maker { grid-template-columns: 1fr; } }
/* the public rooms' activities (B16) */
.judges { display: flex; gap: 4px; align-items: center; } .judges b { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 5px; background: #fffaf0; color: #241a10; font: 400 18px var(--gw-title); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.judges span { margin-left: 4px; text-transform: none; } .ri-event { margin: 4px 0 6px; padding: 5px 8px; border-radius: 8px; background: rgba(246, 194, 74, .14); font: 600 12.5px var(--gw-font); } .ri-event .ico { width: 14px; height: 14px; vertical-align: -2px; }
.bs-splash { --bs: linear-gradient(#dff6ff, #8fdcff); --bs-name: #0f5a8a; --bs-edge: #2a7ab0; } .bs-market { --bs: repeating-linear-gradient(90deg, #fff6dc 0 10px, #ffe0e0 10px 20px); --bs-name: #8a2a1a; --bs-edge: #c4232b; }   /* F7 */
/* pets (F8) */
.pet-lvl { margin: 4px 0; font: 600 12.5px var(--gw-font); display: flex; align-items: center; gap: 8px; } .pet-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; } .pet-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6cc46a, #f6c24a); }
.pet-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; } .pet-badges span { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.04); opacity: .4; filter: grayscale(1); font: 600 11px var(--gw-font); } .pet-badges span.got { opacity: 1; filter: none; border: 1px solid rgba(255,214,106,.35); } .pet-badges .ico { width: 16px; height: 16px; flex: none; }
.pet-food { margin: 2px 0 6px; font: 600 12px var(--gw-font); color: #8ff0a4; } .pet-food.warn { color: #ffb0a0; } .pet-feed { padding: 4px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--cream); font: 600 12px var(--gw-font); }
.edit-cols { display: flex; gap: 4px; margin-right: 6px; } .edit-cols button { width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 2px solid rgba(0, 0, 0, .5); } .edit-cols button.on { outline: 2px solid var(--gold); outline-offset: 1px; }   /* F9 */

/* the Fly Club card (G7) */
.club-card { padding: 12px; border-radius: 14px; border: 1.5px solid #c9902a; background: linear-gradient(160deg, rgba(140, 90, 216, .35), rgba(40, 20, 70, .55)); margin-bottom: 10px; }
.club-top { display: flex; gap: 10px; align-items: center; } .club-top .ico { width: 34px; height: 34px; } .club-top b { display: block; font: 400 20px var(--gw-title, 'Lilita One'), sans-serif; color: #ffd86a; } .club-top small { color: var(--cream); }
.club-card ul { margin: 8px 0; padding-left: 18px; color: var(--cream); font: 600 13px/1.5 var(--gw-font); }

/* rares (G8): a series' colours, the hall */
.series { padding: 6px 2px; } .series small { color: var(--dim); } .series-dots { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.series-dots .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); opacity: .25; border: 2px solid rgba(255, 255, 255, .2); }
.series-dots .dot.own { opacity: 1; border-color: var(--gold); box-shadow: 0 0 6px var(--c); } .series-dots .dot.live { opacity: .9; border-color: #8ff0a4; animation: rank-sparkle 1.6s infinite; } .series-dots .dot.gone { opacity: .45; border-style: dashed; }
.rare-hall .pic { width: 28px; height: 28px; vertical-align: middle; }

/* the shop (G9): Habbo's catalog: a category tree on the left, a header over the items; a dropdown on a phone */
.cat2 { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: start; }
.cat-tree { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); max-height: 62vh; overflow-y: auto; }
.cat-tree .inv-search { margin: 0 0 6px; width: 100%; box-sizing: border-box; }
.cat-group { margin: 8px 4px 2px; font: 800 10.5px var(--gw-font); letter-spacing: .6px; text-transform: uppercase; color: var(--honey); }
.cat-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--cream); font: 600 13px var(--gw-font); text-align: left; }
.cat-btn .ico { width: 18px; height: 18px; flex: none; } .cat-btn:hover { background: rgba(255, 255, 255, .06); } .cat-btn.on { background: rgba(246, 194, 74, .2); color: var(--honey); box-shadow: inset 3px 0 0 var(--gold); }
.cat-btn .dotnew { position: absolute; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ruby); }
.cat-pick { display: none; }
.cat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(150, 30, 50, .45), rgba(40, 30, 80, .5)); }
.cat-head .ico { width: 38px; height: 38px; flex: none; } .cat-head b { display: block; font: 400 20px 'Lilita One', var(--gw-font); color: var(--cream); letter-spacing: .3px; } .cat-head small { color: var(--dim); font: 600 12.5px var(--gw-font); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.feat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 0; overflow: hidden; border-radius: 16px; border: 1.5px solid var(--gold-line); background: radial-gradient(circle at 50% 35%, rgba(246, 194, 74, .3), rgba(40, 30, 80, .85) 70%); color: var(--cream); text-align: left; cursor: pointer; }
.feat.big { grid-column: span 2; grid-row: span 2; min-height: 310px; background: radial-gradient(circle at 50% 35%, rgba(255, 120, 160, .35), rgba(60, 20, 60, .9) 70%); }
.feat.club { background: radial-gradient(circle at 50% 35%, rgba(200, 150, 255, .4), rgba(50, 20, 80, .9) 70%); }
.feat img { position: absolute; inset: 6% 15% 30%; width: 70%; height: 64%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transition: transform .25s; } .feat:hover img { transform: scale(1.06) rotate(-2deg); }
.feat span { position: relative; align-self: stretch; display: block; padding: 10px 12px; background: linear-gradient(transparent, rgba(10, 8, 24, .85) 35%); } .feat b { display: block; font: 400 17px 'Lilita One', var(--gw-font); } .feat.big b { font-size: 24px; } .feat small { color: var(--dim); font: 600 12px var(--gw-font); }
.pet-intro { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); } .pet-intro > .ico { width: 44px; height: 44px; flex: none; } .pet-intro ul { margin: 0; padding-left: 18px; font: 600 13.5px/1.55 var(--gw-font); color: var(--cream); }
.market-soon { display: grid; place-items: center; gap: 6px; padding: 30px 16px; text-align: center; border-radius: 16px; border: 1.5px dashed var(--gold-line); background: rgba(0, 0, 0, .2); }
.market-soon > .ico { width: 54px; height: 54px; } .market-soon b { font: 400 22px 'Lilita One', var(--gw-font); color: var(--honey); } .market-soon p { max-width: 380px; margin: 0; color: var(--cream); font: 600 14px/1.5 var(--gw-font); }
@media (max-width: 680px) {
  .cat2 { grid-template-columns: 1fr; } .cat-tree { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; padding: 6px; } .cat-tree .cat-btn, .cat-tree .cat-group { display: none; } .cat-tree .inv-search { margin: 0; }
  .cat-pick { display: block; width: 100%; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--cream); font: 700 14px var(--gw-font); }
  .feat-grid { grid-template-columns: 1fr 1fr; } .feat.big { grid-column: span 2; grid-row: auto; min-height: 210px; } .feat { min-height: 130px; }
}
.gw-btn.sure { outline: 2px solid #ffd86a; outline-offset: 1px; }   /* the second tap for gems and tickets */
.gw-sec .gw-btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
#viewReset { display: none; }
body.view-moved #viewReset { display: inline-flex; }
.edit-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 2px 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(246, 194, 74, .25); }
.edit-pick img, .edit-pick .e { width: 30px; height: 30px; object-fit: contain; }
.edit-pick b { flex: 1; min-width: 80px; color: var(--honey); }
.flytag.typing::after { content: '…'; display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #fff; color: #333; font-weight: 700; animation: typ 1s ease-in-out infinite; }
@keyframes typ { 50% { opacity: .45; } }
.rt-ev { color: var(--honey); display: flex; align-items: center; gap: 4px; }
.lk-op { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.sti .qty { display: flex; gap: 4px; margin: 2px 0 4px; }
/* I11: colour swatches on a shop card */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0 6px; }
.swatches button { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); background: var(--sw, #888); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), inset 0 2px 3px rgba(255, 255, 255, .3); cursor: pointer; transition: transform .12s; }
.swatches button.orig { background: conic-gradient(#e8474f, #f6c24a, #6fcf97, #45a6e8, #9a6ad6, #e8474f); }
.swatches button:hover { transform: scale(1.15); }
.swatches button[aria-pressed="true"] { border-color: var(--honey); transform: scale(1.18); box-shadow: 0 0 0 2px rgba(255, 207, 58, .35), inset 0 -3px 4px rgba(0, 0, 0, .25); }
.swatches .sw-name { font: italic 600 11px var(--gw-font); color: var(--dim); margin-left: 2px; }
.sti .qty button { flex: 1; border: 0; border-radius: 8px; padding: 3px 0; font: 600 12px var(--gw-font); color: var(--dim); background: rgba(255, 255, 255, .06); }
.sti .qty button[aria-pressed="true"] { color: #1b1b24; background: var(--honey); }
/* H1: in the hub (just you) the dock sits in the middle; in homes and rooms it goes left (the chat bar takes the middle) */
@media (min-width: 681px) { #app[data-place="hub"] #dock { left: 50%; transform: translateX(-50%); } }
.mo.shop-head .av { background: radial-gradient(circle at 35% 28%, #4a8a5a, #1f3d2a); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 6px #ff4d5e; animation: typ 1.2s ease-in-out infinite; }
/* H4: the inventory's folders (Habbo's): one filter at a time */
.inv-fold { border-radius: 10px; background: rgba(0, 0, 0, .18); margin: 0 0 6px; }
.inv-fold summary { cursor: pointer; padding: 7px 10px; font: 600 13px var(--gw-font); color: var(--honey); list-style: none; display: flex; justify-content: space-between; }
.inv-fold summary::after { content: '▾'; opacity: .7; } .inv-fold[open] summary::after { content: '▴'; }
.inv-fold summary::-webkit-details-marker { display: none; }
.inv-fold .inv-f { display: block; width: 100%; text-align: left; }
.inv-sort { display: flex; align-items: center; gap: 6px; margin: 6px 0; font: 600 12px var(--gw-font); color: var(--dim); }
.inv-sort select { flex: 1; }
.inv-pick { display: none; width: 100%; margin: 0 0 4px; }
@media (max-width: 680px) { .inv-fold { display: none; } .inv-pick { display: block; } }
/* H5: the marketplace */
.mk-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.mk-top .inv-search { flex: 1; min-width: 140px; margin: 0; }
.sti.mk small { display: block; color: var(--dim); font-size: 12px; margin: -4px 0 4px; }
.mk-sell { display: grid; gap: 6px; width: 100%; }
.mk-sell input { width: 100%; }
/* H6: Mo's showcase and the series shelf */
.sti.showcase { grid-column: span 2; box-shadow: 0 0 0 2px var(--rc), 0 0 28px color-mix(in srgb, var(--rc) 45%, transparent); }
.sti.showcase .sti-stage { min-height: 230px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%); }
.sti .countdown { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: var(--honey); font: 600 12px var(--gw-font); font-style: normal; }
@media (max-width: 680px) { .sti.showcase { grid-column: auto; } }
.series-dots .dot { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; height: auto; border: 0; background: none; opacity: 1; box-shadow: none; }
.series-dots .dot i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); opacity: .25; border: 2px solid rgba(255, 255, 255, .2); }
.series-dots .dot.own i { opacity: 1; border-color: var(--gold); box-shadow: 0 0 8px var(--c); } .series-dots .dot.live i { opacity: .9; border-color: #8ff0a4; animation: rank-sparkle 1.6s infinite; }
.series-dots .dot small { font-size: 10.5px; line-height: 1.15; text-align: center; color: var(--dim); }
.series-dots .dot.own, .series-dots .dot.live { box-shadow: none; border: 0; animation: none; }
/* H7: Barnaby's cart */
.trader-head .av { background: radial-gradient(circle at 35% 28%, #3a8a72, #12332a); }
.trader-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.trader-pool span { display: flex; flex-direction: column; align-items: center; width: 74px; opacity: .55; filter: grayscale(.6); }
.trader-pool small { font-size: 10.5px; text-align: center; color: var(--dim); }
.trader-pool .e { width: 48px; height: 48px; }
/* H8: every rarity shines its own way (shop cards, Mo's cards, bag tiles):
   common plain · ripe a soft glow · juicy a shine sweep (above) · overripe a pulse and sparkles · fermented gold foil and drifting motes */
@property --foil { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sti.r-ripe .sti-stage { box-shadow: inset 0 0 22px color-mix(in srgb, var(--rc) 40%, transparent); }
.sti.r-overripe { animation: rc-pulse 2.8s ease-in-out infinite; }
@keyframes rc-pulse { 50% { box-shadow: 0 0 0 1px var(--rc), 0 0 22px color-mix(in srgb, var(--rc) 55%, transparent); } }
.sti.r-overripe::after, .sti.r-fermented::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; pointer-events: none; z-index: 3; border-radius: 12px 12px 0 0;
  background-image: radial-gradient(2px 2px at 18% 30%, #fff, transparent), radial-gradient(2px 2px at 76% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 70%, #fff, transparent), radial-gradient(2px 2px at 32% 78%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 60%, #fff, transparent);
  animation: twinkle 1.9s ease-in-out infinite alternate; }
.sti.r-fermented::after { background-image: radial-gradient(3px 3px at 20% 80%, #ffe08a, transparent), radial-gradient(2px 2px at 70% 85%, #fff3c0, transparent), radial-gradient(2.5px 2.5px at 45% 90%, #ffd23c, transparent), radial-gradient(2px 2px at 85% 75%, #ffe08a, transparent);
  animation: motes 3.6s linear infinite; }
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }
@keyframes motes { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-110px); opacity: 0; } }
.sti.r-fermented { border: 2px solid transparent; background: linear-gradient(180deg, #2a2440, #1e1a30) padding-box, conic-gradient(from var(--foil), #ffd86a, #fff6c8, #b8862a, #ffe9a0, #ffd86a) border-box; animation: foil 4s linear infinite; }
@keyframes foil { to { --foil: 360deg; } }
/* bag tiles: a hint of the same */
.wd-tile.r-juicy { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); }
.wd-tile.r-overripe { box-shadow: inset 0 0 0 1px var(--rc), 0 0 10px color-mix(in srgb, var(--rc) 40%, transparent); }
.wd-tile.r-fermented { border: 1px solid transparent; background: linear-gradient(#24223a, #1c1b30) padding-box, conic-gradient(from var(--foil), #ffd86a, #fff6c8, #b8862a, #ffd86a) border-box; animation: foil 4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sti.r-overripe, .sti.r-fermented, .sti.r-overripe::after, .sti.r-fermented::after, .wd-tile.r-fermented { animation: none; } }
.sti.flash::before { content: ""; position: absolute; inset: -6px; z-index: 4; pointer-events: none; border-radius: 16px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 70%, #fff), transparent 65%); animation: buyflash .8s ease-out forwards; }
@keyframes buyflash { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.15); } }
/* H9: the editor shows it's the editor: a banner, a soft veil round the edges (the room stays bright in the middle) */
#editBanner { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 12px;
  border: 1px solid var(--gold-line); background: rgba(20, 18, 34, .82); color: var(--cream); font: 600 13.5px var(--gw-font); pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
#editBanner b { color: var(--honey); } #editBanner .ico { width: 16px; height: 16px; }
#editBanner[hidden] { display: none; }
body.editing #app::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 62% at 50% 46%, transparent 55%, rgba(8, 6, 20, .5)); }
.edit-flies { display: flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 8px; font: 600 12.5px var(--gw-font); color: var(--dim); white-space: nowrap; }
@media (max-width: 680px) { #editBanner { top: calc(118px + env(safe-area-inset-top, 0px)); font-size: 12.5px; } .edit-flies { margin-left: 0; } }
/* (after the rarity rules: the selected tile keeps its ring) */
.wd-tile.sel, .wd-tile.sel.r-juicy, .wd-tile.sel.r-overripe { border-color: var(--honey); box-shadow: 0 0 0 2px var(--honey), 0 0 12px rgba(246, 194, 74, .35); }
.series-dots .dot.gone { opacity: 1; } .series-dots .dot.gone i { opacity: .35; filter: grayscale(.7); }
@media (prefers-reduced-motion: reduce) { .sti.flash::before, .series-dots .dot.live i { animation: none; } }
#emoteWheel .ew-dl { position: absolute; left: 0; top: 122px; transform: translateX(-50%); font: 700 11px var(--gw-font); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
#emoteWheel button.dance { border-style: dashed; }

/* ---- I1: the Shop's front page (a turning hero, Last Chance, Hot This Week) and the wishlist hearts ---- */
.hero { position: relative; margin-bottom: 12px; }
.hero-slide { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: center; gap: 10px; width: 100%; min-height: 200px; padding: 18px 22px 30px; border: 1px solid var(--hair); border-radius: 16px; color: var(--cream); text-align: left; cursor: pointer;
  background: radial-gradient(circle at 75% 50%, rgba(255, 214, 106, .22), transparent 60%), linear-gradient(135deg, #2b2457, #141532); animation: heroIn .45s ease; }
.hero-slide[hidden] { display: none; }
.hero-slide img { grid-column: 2; grid-row: 1; width: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.hero-slide span { grid-column: 1; grid-row: 1; display: grid; gap: 6px; min-width: 0; }
.hero-slide i { font: 600 12px var(--gw-font); font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: var(--honey); }
.hero-slide b { font: 400 clamp(24px, 4vw, 40px)/1 var(--gw-title); letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hero-slide small { max-width: 42ch; font-size: 13.5px; opacity: .9; }
.hero-slide em { justify-self: start; margin-top: 6px; padding: 6px 14px; border-radius: 10px; background: linear-gradient(#8ae85a, #3f9a2a); color: #10240a; font: 400 14px var(--gw-title); font-style: normal; letter-spacing: .5px; box-shadow: 0 3px 0 #2a6a1a; }
.hero-slide:hover em { filter: brightness(1.1); }
.hero-slide.rare { background: radial-gradient(circle at 75% 50%, rgba(255, 120, 200, .3), transparent 60%), linear-gradient(135deg, #4a1f5a, #1a1232); }
.hero-slide.trader { background: radial-gradient(circle at 75% 50%, rgba(255, 190, 90, .3), transparent 60%), linear-gradient(135deg, #4a3020, #1a1410); }
.hero-slide.club { background: radial-gradient(circle at 75% 50%, rgba(255, 207, 58, .3), transparent 60%), linear-gradient(135deg, #3a1a5a, #160d26); }
.hero-dots { position: absolute; left: 22px; bottom: 10px; display: flex; gap: 6px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .2s; }
.hero-dots button[aria-pressed="true"] { width: 22px; background: var(--honey); }
@keyframes heroIn { from { opacity: 0; transform: translateX(14px); } }
.lc-row { display: flex; gap: 8px; margin-bottom: 12px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; }
.lc { flex: none; display: grid; justify-items: center; gap: 3px; width: 132px; padding: 8px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--cream); text-align: center; cursor: pointer; }
.lc:hover { background: rgba(255, 255, 255, .08); }
.lc img { width: 84px; height: 84px; object-fit: contain; }
.lc b { font: 600 12.5px/1.15 var(--gw-font); }
.lc small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--honey); }
.lc small .ico, .gw-sec .ico { width: 13px; height: 13px; vertical-align: -2px; }
.gw-sec small { margin-left: 6px; font: 500 11px var(--gw-font); letter-spacing: 0; text-transform: none; opacity: .6; }
.chip.hot { display: inline-flex; align-items: center; gap: 2px; color: #ff8a3c; }
.chip.hot .ico { width: 11px; height: 11px; }
.wish-b { position: absolute; top: 8px; right: 8px; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: rgba(20, 18, 34, .7); color: rgba(255, 255, 255, .55); cursor: pointer; }
.wish-b .ico { width: 15px; height: 15px; }
.wish-b:hover { color: #ff8fb1; }
.wish-b.on { border-color: #ff5a8a; background: rgba(60, 10, 30, .75); color: #ff5a8a; }
.bag-detail .big { position: relative; }
.wish-table td:first-child { width: 40px; } .wish-table .wish-b { position: static; }
.wish-table tr.now td { background: rgba(127, 224, 74, .08); }
@media (max-width: 680px) { .hero-slide { grid-template-columns: minmax(0, 1fr) 36%; min-height: 160px; padding: 14px 14px 28px; } .lc { width: 112px; } .lc img { width: 70px; height: 70px; } }

/* ---- I2: The Fruit Times (a newspaper: cream paper, ink, columns) ---- */
.times { padding: 14px 16px 18px; border-radius: 12px; background: #f4ecd8 radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .5), transparent 60%); color: #2a2833; box-shadow: inset 0 0 40px rgba(120, 90, 40, .18); }
.times-head { display: grid; justify-items: center; gap: 2px; padding-bottom: 8px; border-bottom: 3px double #2a2833; }
.times-head b { font: 400 clamp(30px, 6vw, 52px)/1 var(--gw-title); letter-spacing: 2px; text-transform: uppercase; }
.times-head small { font: 600 11.5px var(--gw-font); opacity: .75; }
.times-hl { margin: 8px 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(42, 40, 51, .35); font: 800 italic clamp(15px, 2.4vw, 20px)/1.15 Georgia, serif; text-align: center; }
.times-lead { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(42, 40, 51, .35); }
.times-lead > button { padding: 0; border: 0; background: radial-gradient(circle, rgba(255, 207, 58, .35), transparent 70%); cursor: pointer; }
.times-lead img { width: 100%; max-height: 200px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.times-lead i { font: 700 11px var(--gw-font); font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #9a2a4a; }
.times-lead h2 { margin: 2px 0 6px; font: 400 clamp(22px, 4vw, 34px)/1 var(--gw-title); }
.times-lead p, .times-cols p { margin: 0 0 8px; font: 500 13px/1.35 Georgia, serif; }
.times-cols { columns: 2 260px; column-gap: 18px; margin-top: 10px; column-rule: 1px solid rgba(42, 40, 51, .25); }
.times-cols section { break-inside: avoid; margin-bottom: 12px; padding-top: 6px; border-top: 2px solid #2a2833; }
.times-cols h3 { margin: 0 0 6px; font: 400 18px/1.1 var(--gw-title); letter-spacing: .5px; text-transform: uppercase; }
.times-cols ol, .times-cols ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font: 600 13px Georgia, serif; }
.times-cols li { display: flex; align-items: center; gap: 8px; }
.times-cols li img { width: 40px; height: 40px; object-fit: contain; }
.times-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.times-row span { display: grid; justify-items: center; width: 74px; text-align: center; }
.times-row img { width: 58px; height: 58px; object-fit: contain; }
.times-row small { font: 600 11px/1.15 var(--gw-font); }
.times-silhouette { display: grid; place-items: center; height: 110px; margin-bottom: 6px; border-radius: 10px; background: repeating-linear-gradient(45deg, rgba(42, 40, 51, .06) 0 8px, transparent 8px 16px); }
.times-silhouette img.sil { height: 100px; filter: brightness(0) opacity(.75); }
.times-wait { opacity: .6; }
.times .gw-btn { margin-top: 2px; }
@media (max-width: 680px) { .times-lead { grid-template-columns: 1fr; } .times-lead img { max-height: 150px; } }

/* ---- I3: collections (the inventory's Collections tab, the set chip on shop cards) ---- */
.chip.set { display: inline-flex; align-items: center; gap: 2px; color: #ffd86a; }
.chip.set .ico { width: 11px; height: 11px; }
.sets { display: grid; gap: 10px; }
.sets > .set { padding: 10px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.sets > .set.ready { border-color: #7fe04a; background: rgba(127, 224, 74, .08); box-shadow: 0 0 0 1px rgba(127, 224, 74, .25), 0 0 18px rgba(127, 224, 74, .15); }
.sets > .set.claimed { border-color: rgba(255, 207, 58, .45); }
.set-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.set-gold img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 207, 58, .55)); }
.set-head b { font: 400 17px var(--gw-title); letter-spacing: .5px; }
.set-head small { display: block; font-size: 12px; opacity: .8; }
.set-bar { display: block; height: 7px; margin-top: 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.set-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffcf3a, #ff9a3a); }
.set.ready .set-bar i { background: linear-gradient(90deg, #8ae85a, #3f9a2a); }
.set-pieces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.set-pieces button { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; background: rgba(255, 255, 255, .05); cursor: default; }
.set-pieces img { width: 100%; height: 100%; object-fit: contain; }
.set-pieces .miss { cursor: pointer; } .set-pieces .miss img { filter: grayscale(1) brightness(.45); opacity: .7; }
.set-pieces .miss:hover img { filter: grayscale(.4) brightness(.8); }

/* ---- I4: quest chains (Tasks & Quests → Quests) ---- */
.quests { display: grid; gap: 8px; }
.quest { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.quest.ready { border-color: #7fe04a; background: rgba(127, 224, 74, .08); }
.quest.done { opacity: .75; border-color: rgba(255, 207, 58, .4); }
.quest > .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.quest > .ic .ico { width: 20px; height: 20px; }
.quest b { font: 400 16px var(--gw-title); letter-spacing: .5px; }
.quest small { font-size: 11.5px; opacity: .75; }
.quest p { margin: 2px 0 4px; font-size: 13px; }
.quest .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.quest .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffcf3a, #ff9a3a); }
.quest.ready .bar i { background: linear-gradient(90deg, #8ae85a, #3f9a2a); }
.quest .steps { display: flex; gap: 4px; margin-top: 6px; }
.quest .steps i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.quest .steps i.on { background: #ffcf3a; }
.quest .qt { display: grid; justify-items: center; gap: 4px; }
.quest .qt img { width: 58px; height: 58px; object-fit: contain; }
.quest:not(.done) .qt img { filter: drop-shadow(0 0 6px rgba(255, 207, 58, .45)); }

/* ---- I5: the Fly Pass ---- */
#passBtn[hidden] { display: none; }
.pass-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: radial-gradient(circle at 85% 30%, rgba(122, 232, 255, .25), transparent 60%), linear-gradient(135deg, #1a2456, #0d0c26); border: 1px solid var(--hair); }
.pass-head i { font: 600 11px var(--gw-font); font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #9ae8ff; }
.pass-head b { display: block; font: 400 clamp(22px, 4vw, 32px)/1.05 var(--gw-title); letter-spacing: 1px; }
.pass-head small { font-size: 12.5px; opacity: .85; }
.pass-tier { display: grid; justify-items: center; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.pass-tier b { font: 400 34px/1 var(--gw-title); color: #ffd86a; }
.pass-xp { margin: 10px 2px; } .pass-xp small { display: block; margin-top: 4px; font-size: 12px; opacity: .8; }
.pass-rows { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
.pass-labels { display: grid; grid-template-rows: 22px 1fr 1fr; gap: 6px; } .pass-labels span { display: grid; place-items: center; align-self: stretch; border-radius: 10px; background: rgba(255, 255, 255, .05); font: 400 13px var(--gw-title); text-align: center; }
.pass-labels span:first-child { grid-row: 2; } .pass-labels .club { grid-row: 3; }
.pass-labels .club { color: #ffd86a; background: rgba(184, 138, 232, .15); } .pass-labels .ico { width: 13px; height: 13px; }
.pass-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scroll-behavior: smooth; scrollbar-width: thin; }
.pcol { flex: none; display: grid; grid-template-rows: 22px 118px 118px; gap: 6px; width: 104px; }
.pcol em { display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 400 13px var(--gw-title); font-style: normal; }
.pcol.now em { background: #ffd86a; color: #2a1a00; }
.pt { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 6px; border: 1px solid var(--hair); border-radius: 10px; background: rgba(255, 255, 255, .04); text-align: center; }
.pt.club { background: rgba(184, 138, 232, .1); border-color: rgba(184, 138, 232, .35); }
.pt.future { opacity: .5; } .pt.ready { border-color: #7fe04a; box-shadow: 0 0 12px rgba(127, 224, 74, .25); } .pt.got { opacity: .65; }
.pt img { width: 52px; height: 52px; object-fit: contain; }
.pt small { font: 600 10.5px/1.15 var(--gw-font); }
.pt .pr-cur { display: inline-flex; align-items: center; gap: 3px; font-size: 18px; }
.pt .chatb { position: static; transform: none; font-size: 11px; padding: 4px 8px; }
.pt .pt-ok, .pt .pt-lock { position: absolute; top: 4px; right: 4px; } .pt .pt-ok .ico { width: 14px; height: 14px; color: #7fe04a; } .pt .pt-lock .ico { width: 12px; height: 12px; opacity: .7; }
.bs-glow { --bs: linear-gradient(#d8fbff, #8ae0ff); --bs-name: #0a4a6a; --bs-edge: #3ac8ff; box-shadow: 0 0 14px rgba(90, 232, 255, .55); }
.bs-lantern { --bs: linear-gradient(#ffd0b0, #ff8a5a); --bs-name: #7a1a10; --bs-edge: #e8474f; box-shadow: 0 0 12px rgba(255, 138, 80, .5); }
.hero-slide.pass { background: radial-gradient(circle at 75% 50%, rgba(122, 232, 255, .3), transparent 60%), linear-gradient(135deg, #1a2456, #0d0c26); }

/* ---- I6: events (the Fruit Festival) ---- */
#eventBtn[hidden] { display: none; } #eventBtn { color: #ff9ad0; }
.hero-slide.event { background: radial-gradient(circle at 75% 50%, rgba(255, 138, 200, .3), transparent 60%), linear-gradient(135deg, #5a1f3a, #1a1232); }
.ev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; background: radial-gradient(circle at 85% 30%, rgba(255, 138, 200, .3), transparent 60%), linear-gradient(135deg, #5a1f3a, #1a1232); }
.ev-head i { font: 600 11px var(--gw-font); font-style: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #ffb3d6; }
.ev-head b { display: block; font: 400 clamp(22px, 4vw, 32px)/1.05 var(--gw-title); letter-spacing: 1px; } .ev-head small { font-size: 12.5px; opacity: .85; }
.ev-tokens { display: grid; justify-items: center; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); } .ev-tokens .tok { font-size: 26px; } .ev-tokens small { font-size: 11px; opacity: .8; }
.tok { display: inline-flex; align-items: center; gap: 3px; color: #ffb3d6; } .tok .ico { width: 1em; height: 1em; color: #ff8ac0; }
.ev-gift { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ev-gift .ico { width: 15px; height: 15px; vertical-align: -2px; }
.ev-quests { display: grid; gap: 6px; }
.evq { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 10px; }
.evq.ready { border-color: #7fe04a; background: rgba(127, 224, 74, .08); } .evq.done { opacity: .6; }
.evq b { font: 600 13px var(--gw-font); } .evq small { font-size: 11px; opacity: .75; }
.times .ev { border-top-color: #c4235a; } .times .ev h3 { color: #c4235a; }
