/* shell — 2026-11-30 (owner's round 3): right column (friends + the page's extras), isometric icons, one colour per
   world, structured world banners, small spring animations, readable numbers, focus only for cube / keyboard. */
:root { --side: 312px; --spring: cubic-bezier(.34, 1.36, .5, 1); --out: cubic-bezier(.2, .8, .2, 1); }
[data-world="music"] { --world-ink: #23262E; }   /* on yellow — graphite (brand rule) */

/* ------------------------------------------------------------------ numbers: Rubik / Unbounded; Handjet only for the big timer */
.pixel, .lvlbar + span, .event em, .dock .dock-mini b, .pstats, .acard .foot { font-family: Rubik, system-ui, sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pixel { font-weight: 700; font-size: inherit; }
.stat b { font: 800 26px Unbounded, sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tbig { font-family: Handjet, monospace; }
.pstats { font-size: 13px; font-weight: 500; }
.num { font: 800 24px Unbounded, sans-serif; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ isometric icons */
.isoico { display: inline-block; width: 1.25em; height: 1.25em; line-height: 0; vertical-align: -.25em; flex: 0 0 auto; }
.isoico svg { width: 100%; height: 100%; display: block; }
.rail a .ico { font-size: 22px; }
.rail .rsmall .ico { font-size: 20px; }
.backbtn .ico, .chip.icon .ico { font-size: 26px; }
.qicon .ico { font-size: 34px; } .tile.all .ico { font-size: 56px; }
.ava-ph { width: 62%; height: 62%; opacity: .9; }
.pava .ava-ph { width: 74%; height: 74%; }

/* ------------------------------------------------------------------ focus: a frame only while the cube / keys drive the menu */
body:not(.navmode) [data-nav].focus:not(:hover), body:not(.navmode) [data-nav]:focus-visible:not(:hover) { box-shadow: none; transform: none; }
body:not(.navmode) :focus { outline: none; }
body:not(.navmode) .row .tile.focus:not(:hover), body:not(.navmode) .row .tile:focus-visible:not(:hover) { width: 230px; height: 230px; transform: none; box-shadow: none; }
@media (max-width: 900px) { body:not(.navmode) .row .tile.focus:not(:hover), body:not(.navmode) .row .tile:focus-visible:not(:hover) { width: 180px; height: 180px; } }

/* ------------------------------------------------------------------ rail: world tiles in their own tones, crisp isometric art */
.rail .rworld { height: 66px; padding: 0 14px 0 78px; background: color-mix(in srgb, var(--world) 14%, #1d2026); transition: background .2s; }
.rail .rworld:hover { background: color-mix(in srgb, var(--world) 26%, #1d2026); }
.rail .rworld .wart { left: 12px; top: 5px; bottom: auto; width: 56px; height: 56px; -webkit-mask: none; mask: none; }
.rail .rworld.on { background: var(--world); color: var(--world-ink); }
.rail .rworld.pop .wart { animation: pop .42s var(--spring); }
.rail .rplay .ico, .rail .rhome .ico { font-size: 24px; }

/* ------------------------------------------------------------------ the right column: friends on every screen (desktop) */
.frbtn { display: none; }
.side { color: var(--milk); }
.sx { margin-top: 22px; }
.sxh { font-size: 15px; margin: 18px 0 10px; letter-spacing: .02em; } .sx > .sxh:first-child { margin-top: 0; }
.side .events { gap: 8px; }
.side .event { padding: 10px 12px; gap: 10px; border-radius: 16px; }
.side .event .eico { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; background: color-mix(in srgb, var(--world) 22%, var(--card2)); }
.side .event .eico .ico { font-size: 24px; }
.side .event b { font-size: 14px; } .side .event span span { font-size: 12.5px; }
.side .event.post-ev .img { aspect-ratio: 16 / 6; } .side .event.post-ev .body { padding: 12px 14px; }
.side .event.post-ev h4 { font: 800 14px/1.3 Unbounded, sans-serif; margin: 4px 0 6px; } .side .event.post-ev p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.side .event .when { font-size: 12px; color: var(--muted); }
.gstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gstats span { background: var(--card); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.gstats b { display: block; font: 800 18px Unbounded, sans-serif; color: var(--milk); margin-bottom: 2px; }
.side .req span { background: var(--card); }

@media (min-width: 1200px) {
  body { padding-right: var(--side); }
  .top { margin-right: calc(-1 * var(--side)); }
  .side { position: fixed; top: 92px; right: 0; bottom: 0; width: var(--side); z-index: 24; overflow-y: auto; padding: 20px 16px 96px; background: rgba(21,23,27,.96); scrollbar-width: thin; }
  /* the mini-cube lives at the bottom of this column: it never covers the page */
  .dock, .dock.open { right: 14px; bottom: 14px; width: calc(var(--side) - 28px); }
  .dock .dock-mini { justify-content: flex-start; }
  .dock .dock-mini::after { content: "Мінікубик"; margin-left: auto; color: var(--muted); font-size: 13px; }
  .frame { right: 0; }
}
@media (max-width: 1199px) {
  .frbtn { display: inline-flex; }
  .side { padding: 0 28px 40px; max-width: 1320px; margin: 0 auto; }
  .side .fpanel { display: none; }
  /* tablets and phones: the mini-cube shows only while you turn the cube (it opens by itself), smaller */
  .dock:not(.open) { display: none; }
  .dock.open { width: 150px; } .dock.open .dock-cube { height: 110px; }
}
@media (max-width: 900px) { .side { padding: 0 16px 100px; } }

/* ------------------------------------------------------------------ home */
.home2 { padding: 26px 28px 40px; max-width: 1320px; margin: 0 auto; display: grid; gap: 18px; }
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.home2 .me { position: relative; border-radius: 28px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.home2 .me .roombg { position: absolute; inset: 0; }
.home2 .mecard { padding: 18px; } .home2 .mecard .ava { width: 104px; height: 104px; font-size: 52px; border-radius: 26px; }
.mline { color: var(--muted); margin-top: 6px; font-size: 16px; font-variant-numeric: tabular-nums; }
.home2 .startbtn { margin-top: 18px; padding: 18px 36px; font-size: 26px; transition: transform .25s var(--spring); }
.home2 .startbtn:hover { transform: translateY(-2px); }
.h-cube { position: relative; border-radius: 28px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; }
.h-cube3d { flex: 1; min-height: 220px; display: block; filter: grayscale(1) brightness(1.15) opacity(.7); transition: filter .5s var(--out); }
.h-cube.on .h-cube3d, .h-cube:hover .h-cube3d { filter: none; }
.h-cube:not(.on):hover .h-cube3d { filter: grayscale(.35) brightness(.85); }
.h-cubecap { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }
.h-cube.on .h-cubecap { color: var(--milk); }
.h-cube:not(.on) .h-cubecap::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: #5c6170; margin-right: 8px; vertical-align: 1px; }
.h-cube.on .h-cubecap::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--edu); margin-right: 8px; vertical-align: 1px; }
/* the daily challenge: the whole card is one big target into the timer */
.h-daily { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 22px 16px 14px; border-radius: 26px; background: var(--milk); color: var(--ink); text-decoration: none; transition: transform .25s var(--spring); }
.h-daily:hover { transform: translateY(-2px); }
.hd-art svg { width: 84px; height: 84px; display: block; }
.hd-body small, .hd-res small { display: block; font-size: 13px; color: rgba(35,38,46,.62); }
.hd-body b { display: block; font: 800 24px Unbounded, sans-serif; margin: 2px 0 6px; }
.hd-scr { display: block; font: 500 15px/1.35 Rubik, sans-serif; letter-spacing: .02em; word-spacing: .18em; color: #3b3f49; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-res { text-align: right; display: grid; justify-items: end; gap: 2px; } .hd-res b { font: 800 16px Unbounded, sans-serif; }
.hd-res i { font-style: normal; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--arcade); color: var(--milk); font: 800 22px Unbounded, sans-serif; margin-top: 6px; transition: transform .25s var(--spring); }
.h-daily:hover .hd-res i { transform: translateX(4px); }
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.h-cards .panel { padding: 18px 20px; } .h-cards h3 { display: flex; gap: 10px; align-items: center; font-size: 16px; } .h-cards h3 .ico { font-size: 24px; }
.h-cards .today { margin-top: 12px; } .h-cards .ring { width: 76px; height: 76px; flex-basis: 76px; }
.wk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; }
.wk span { color: var(--muted); font-size: 13px; } .wk .num { display: block; color: var(--milk); font-size: 22px; }
.h-fact p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.h-more { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.home2 .quick { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.home2 .qcard { padding: 12px; } .home2 .qart, .home2 .qicon { width: 52px; height: 52px; flex-basis: 52px; }
@media (max-width: 1100px) { .h-hero { grid-template-columns: 1fr 240px; } }
@media (max-width: 720px) {
  .home2 { padding: 16px 16px 30px; }
  .h-hero { grid-template-columns: 1fr; }
  .home2 .me { min-height: 0; padding: 14px; } .home2 .mecard { gap: 14px; padding: 14px; } .home2 .mecard .ava { width: 72px; height: 72px; font-size: 36px; border-radius: 20px; }
  .home2 .mecard h1 { font-size: 28px; } .home2 .startbtn { align-self: stretch; justify-content: center; font-size: 22px; padding: 16px; }
  .h-cube { flex-direction: row; align-items: center; } .h-cube3d { min-height: 96px; height: 96px; flex: 0 0 120px; } .h-cubecap { padding: 0 14px 0 0; }
  .h-daily { grid-template-columns: auto minmax(0, 1fr); padding: 14px; } .hd-art svg { width: 56px; height: 56px; } .hd-res { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; text-align: left; justify-items: start; }
  .hd-res i { margin-top: 0; } .hd-body b { font-size: 19px; } .hd-scr { white-space: normal; font-size: 14px; }
}

/* ------------------------------------------------------------------ world banner (owner 2026-12-01): the world's generated art
   (app/img/banners, transparent, art on the right) on graphite tinted by the world; the title on the calm left */
.wb { position: relative; overflow: hidden; color: var(--milk); background: color-mix(in srgb, var(--world) 16%, #23262E); }
.wb-bg { position: absolute; inset: 0; }
.wb-ban { position: absolute; inset: 0 0 0 30%; background: no-repeat right bottom / contain; }
.wb-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 340px; padding-top: 28px; padding-bottom: 28px; }
.wb-text { max-width: 42%; }
.wb-kick { font: 800 13px Unbounded, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--world); }
.wb h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: .95; margin: 8px 0 12px; color: inherit; }
.wb-tag { font-size: 22px; font-weight: 500; max-width: 26em; }
.wb-inside { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font: 800 15px Unbounded, sans-serif; }
.wb-inside span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--world); margin-right: 18px; vertical-align: 3px; }
@media (max-width: 900px) {
  .wb-ban { left: 0; background-position: right top; background-size: 100% auto; }
  .wb-in { min-height: 0; padding-top: calc(33vw + 8px); }
  .wb-text { max-width: none; } .wb-tag { font-size: 18px; }
}

/* a game's art in a wide hero (Play, game page): cover on the right, else its jewel icon big */
.artbg { position: absolute; inset: 0; overflow: hidden; background: color-mix(in srgb, var(--world) 16%, #23262E); }
.artbg .ab-cov { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 62%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.artbg .ab-ico { position: absolute; right: 9%; top: 50%; height: 74%; width: auto; aspect-ratio: 1; object-fit: contain; transform: translateY(-50%); }

/* tiles (owner 2026-12-01): cover art or the game's jewel icon on the world's colour; the selected tile (cube, keys,
   mouse) gets the white outline and its art grows a little, the tile keeps its place */
.tile h3 { position: relative; z-index: 1; font-size: 18px; line-height: 1.15; }
.tile:not(.has-art) h3 { color: var(--world-ink); }
.tile .art { transition: transform .25s var(--ease); }
.tile .art.ico-art { display: grid; place-items: center; padding-bottom: 24%; background: var(--world); }
.tile .art.ico-art img { width: 56%; height: auto; aspect-ratio: 1; object-fit: contain; }
.row .tile.focus, .row .tile:focus-visible, .row .tile:hover { transform: none; }
.row .tile:is(.focus, :focus-visible, :hover, .sel) .art { transform: scale(1.07); }
body:not(.navmode) .row .tile.focus:not(:hover):not(.sel) .art { transform: none; }
@media (prefers-reduced-motion: reduce) { .tile .art { transition: none; } }

/* ------------------------------------------------------------------ game page: description and comments first, numbers on the right */
.ghero2 { min-height: min(44vh, 420px); }
.gtitle { padding-top: 40px; padding-bottom: 26px; }
.gtitle h1 { font-size: clamp(44px, 6vw, 88px); }
.gmain { max-width: 820px; }
.gdesc { font-size: 19px; line-height: 1.55; margin-top: 4px; }
.gcomh { margin-top: 28px; }
.lost { text-align: left; } .lostart { font-size: 72px; display: block; margin-bottom: 10px; } .lost h1 { font-size: clamp(30px, 4vw, 52px); } .lost p { margin: 10px 0 8px; font-size: 18px; }

/* ------------------------------------------------------------------ shop: try before you buy */
.shop2 { display: grid; gap: 18px; padding-top: 26px; }
.tryon { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 22px; align-items: center; }
.stage { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--card); }
.stage[data-room="none"] .roombg { background: radial-gradient(circle at 50% 55%, #343944, var(--card) 70%); }
.stage.tried .shopcube { animation: pop .42s var(--spring); }
.shopcube { position: absolute; inset: 0; } .shopcube canvas { width: 100% !important; height: 100% !important; }
.sframe { position: absolute; left: 16px; bottom: 16px; } .sframe .ava { width: 84px; height: 84px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; font-size: 40px; position: relative; overflow: hidden; }
.sframe .ava[style*="--frame"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 6px; background: var(--frame); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tryinfo small { color: var(--muted); font: 800 12px Unbounded, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tryinfo h1 { font-size: clamp(32px, 4vw, 56px); margin: 6px 0 10px; } .tryinfo p { font-size: 17px; max-width: 32em; } .coins { margin-top: 14px; color: var(--muted); } .coins b { color: var(--milk); }
.subline { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--card); text-decoration: none; color: var(--muted); }
.subline b { color: var(--milk); } .subline .ico { font-size: 28px; } .subline i { margin-left: auto; font-style: normal; font: 800 18px Unbounded, sans-serif; color: var(--milk); }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.sitem { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); }
.sname b { display: block; font: 800 15px Unbounded, sans-serif; } .sname small { color: var(--muted); font-size: 13px; }
.sact { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.sact .btn { padding: 9px 14px; } .sown { font-size: 13px; color: var(--edu); font-weight: 700; } .sown.dim { color: var(--muted); }
.sw { width: 52px; height: 52px; border-radius: 14px; background: var(--ink2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; }
.sw i { border-radius: 4px; } .sw.ico-sw { display: grid; place-items: center; padding: 0; } .sw.ico-sw .ico { font-size: 30px; }
@media (max-width: 720px) { .tryon { grid-template-columns: 1fr; } .stage { max-width: 320px; } }
.subtab .row { display: flex; gap: 8px; margin: 10px 0; }

/* ------------------------------------------------------------------ motion: small, from the element, spring, one colour */
@keyframes pop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes sheet { 0% { transform: translateY(24px); opacity: 0; } 100% { transform: none; opacity: 1; } }
main > .enter { animation: rise .32s var(--out) both; }
.toast { padding: 10px 16px; border-radius: 14px; font-size: 15px; max-width: min(520px, calc(100vw - 32px)); animation: rise .3s var(--spring); }
.toasts { bottom: 28px; }
@media (min-width: 1200px) { .toasts { left: calc(232px + (100vw - 232px - var(--side)) / 2); } }
@media (max-width: 900px) { .toasts { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------------ first paint: a quiet skeleton while the modules load */
.boot { max-width: 1320px; margin: 0 auto; padding: 26px 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.boot i { display: block; height: 300px; border-radius: 28px; background: var(--card); opacity: .55; }
.boot i:nth-child(n+3) { height: 120px; }
.boot i:nth-child(3) { grid-column: 1 / -1; height: 104px; }
.rail:empty { background: rgba(21,23,27,.96); }
@media (max-width: 720px) { .boot { grid-template-columns: 1fr; padding: 16px; } }

/* ------------------------------------------------------------------ round 2 fixes */
.h-cube3d, .roomcube { position: relative; }
.h-cube3d canvas, .shopcube canvas, .roomcube canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.stage { min-width: 0; width: 100%; }
a.event, a.pick, .side a { text-decoration: none; }
body[data-route="home"] #cubeChip { display: none; }
.lostart .ico { font-size: 72px; }
.rail a .ico { font-size: 26px; } .rail .rsmall .ico { font-size: 24px; }
.wb h1 { font-size: clamp(44px, 5.4vw, 84px); }
.frbtn { gap: 8px; } .frbtn .ico { font-size: 22px; }
@media (min-width: 1200px) { .side { bottom: 76px; padding-bottom: 20px; } .dock:not(.open) { height: 52px; } }
@media (max-width: 720px) {
  .top { gap: 8px; } #cubeTxt, .frbtn > span:not(.ico) { display: none; } .chip.cube-off, .chip.cube-on, .chip.cube-busy { padding: 0 14px; min-height: 44px; }
  .frbtn { padding: 0 10px; min-height: 44px; }
}
.tryon { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); }
.sitem { grid-template-columns: 52px minmax(0, 1fr) auto; }
.sact { grid-column: auto; }
.shop2 .sact .btn.main { background: var(--milk); color: var(--ink); }
@media (max-width: 520px) { .sitem { grid-template-columns: 52px minmax(0, 1fr); } .sact { grid-column: 1 / -1; } }
body:has(#frame:not([hidden])) .dock:not(.open) { display: none; }   /* a game owns the screen: no mini-cube over it */
body.welcoming .side, body.welcoming .frbtn { display: none !important; } body.welcoming { padding-right: 0; } body.welcoming .top { margin-right: 0; }

/* the game page: my progress as a column inside the page (owner 2026-12-01: the right column is friends only) */
.gmain { max-width: none; display: grid; grid-template-columns: minmax(0, 820px) minmax(220px, 300px); gap: 28px; align-items: start; }
.gaside { margin-top: 0; padding: 16px 18px; border-radius: 20px; background: var(--card); }
@media (max-width: 900px) { .gmain { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ friends (owner 2026-12-01): the right column is friends
   only (class .fpanel — .fr is the profile frame); the window in the centre over any screen (friends.js) */
.fpanel { display: grid; gap: 12px; }
.fpanel header { display: flex; align-items: center; gap: 10px; }
.fpanel h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin: 0; }
.fpanel h3 .pico.img { width: 30px; height: 30px; }
.frcount { margin-left: auto; font-size: 12px; color: var(--muted); }
.flist { display: grid; gap: 4px; }
.fitem, .fwrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 14px; text-align: left; color: inherit; background: none; }
.fitem:hover, .fitem:focus-visible { background: var(--card2); }
.fava { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #4E69C1; color: #F8F6F0; font: 800 17px Unbounded, sans-serif; }
.fava i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #5d616b; box-shadow: 0 0 0 3px var(--ink2, #1b1d22); }
.fitem.on .fava i, .fwrow.on .fava i { background: #3fbf7f; }
.fwho { min-width: 0; display: grid; } .fwho b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fwho span { font-size: 12px; color: var(--muted); }
.fnone { margin: 2px 8px; font-size: 13px; color: var(--muted); }
.fempty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 8px; }
.fempty .pico, .fempty .pico.img { width: 64px; height: 64px; font-size: 48px; margin-bottom: 4px; }
.fempty b { font: 800 15px Unbounded, sans-serif; } .fempty span { font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 260px; }
.fempty .btn { margin-top: 8px; }
.ffoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ffoot .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; font-size: 13px; }
.ffoot .pico.img { width: 20px; height: 20px; }

.fmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(15, 16, 20, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fm-in .18s ease-out; }
@keyframes fm-in { from { opacity: 0; } }
.fwin { width: min(520px, 100%); max-height: min(720px, 88vh); display: grid; grid-template-rows: auto auto minmax(0, 1fr); border-radius: 26px; background: var(--ink2, #1b1d22); color: var(--milk); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.fwin header { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.fwin h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; } .fwin h2 .pico.img { width: 36px; height: 36px; }
.fx { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; background: var(--card2); color: var(--milk); font-size: 18px; }
.ftabs { display: flex; gap: 6px; padding: 4px 20px 10px; }
.ftabs .pick i { font-style: normal; margin-left: 4px; padding: 0 7px; border-radius: 8px; background: #DF4D56; color: #F8F6F0; font-size: 12px; }
.fbody { overflow-y: auto; padding: 4px 14px 20px; display: grid; gap: 4px; align-content: start; }
.fbody h4 { margin: 12px 8px 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fwacts { display: flex; gap: 6px; } .fwacts .btn { padding: 7px 12px; font-size: 12px; }
.fsent { font-size: 12px; color: var(--muted); }
.fsearch { display: flex; align-items: center; gap: 10px; margin: 4px 6px 4px; padding: 6px 12px; border-radius: 14px; background: var(--card2); }
.fsearch .pico.img { width: 24px; height: 24px; }
.fsearch input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--milk); font: 500 16px Rubik, sans-serif; outline: none; }
.fmine { margin: 2px 10px 8px; font-size: 13px; color: var(--muted); } .fmine b { color: var(--milk); }
@media (max-width: 600px) { .fmodal { place-items: end center; padding: 0; } .fwin { border-radius: 26px 26px 0 0; max-height: 92vh; } }
