/* Home and Play (owner, 2026-12-01): «Грати» on its own next to you, «День кубика» in its world's colour, a finite
   feed in the centre with an end; today / week / fact / achievements in the right column. No glow, no frames. */

/* ------------------------------------------------------------------ home: you · Грати · the cube */
.home3 { gap: 16px; padding-top: 22px; }
.home3 .h-hero { grid-template-columns: minmax(0, 1fr) 252px; grid-template-rows: auto 1fr; grid-template-areas: "me play" "me cube"; gap: 14px; }
.home3 .me { grid-area: me; min-height: 236px; justify-content: center; }
.h-play { grid-area: play; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; padding: 14px 22px; border-radius: 26px;
  background: var(--milk); color: var(--ink); font: 800 30px Unbounded, sans-serif; text-decoration: none; transition: transform .25s var(--spring), background .2s; }
.h-play:hover { transform: translateY(-2px); }
.h-play .hp-ico svg { width: 54px; height: 54px; display: block; }
.h-play .hp-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--arcade); }
.home3 .h-cube { grid-area: cube; min-height: 130px; }
.home3 .h-cube3d { min-height: 110px; }

/* ------------------------------------------------------------------ «День кубика» */
.h-day { border-radius: 26px; background: var(--world); color: var(--world-ink); overflow: hidden; }
.hd-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 14px 20px 10px 14px; text-align: left; color: inherit; background: none; cursor: pointer; }
.hd-art svg { width: 80px; height: 80px; display: block; }
.hd-body small { display: block; font-size: 13px; opacity: .78; }
.hd-body b { display: block; font: 800 24px/1.15 Unbounded, sans-serif; margin: 3px 0 4px; }
.hd-task { display: block; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-mod { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 9px; background: rgba(21,23,27,.18); font-size: 13px; font-weight: 700; }
.hd-go { padding: 14px 22px; border-radius: 16px; background: var(--ink); color: var(--milk); font: 800 16px Unbounded, sans-serif; transition: transform .25s var(--spring); }
.hd-main:hover .hd-go { transform: translateX(3px); }
.hd-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 20px 12px; background: rgba(21,23,27,.14); font-size: 13px; }
.hd-st { padding: 4px 10px; border-radius: 9px; background: rgba(21,23,27,.2); font-weight: 700; }
.hd-st.ok::before { content: "✓ "; }
.hd-btn { padding: 6px 12px; border-radius: 10px; background: var(--ink); color: var(--milk); font: 800 12px Unbounded, sans-serif; }
.hd-streak { display: inline-flex; gap: 8px; align-items: center; }
.hd-stk { display: inline-grid; grid-template-columns: repeat(7, 10px); gap: 3px; }
.hd-stk i { width: 10px; height: 10px; border-radius: 3px; background: rgba(21,23,27,.22); }
.hd-stk i.on { background: var(--world-ink); }
.hd-next { margin-left: auto; opacity: .8; }

/* ------------------------------------------------------------------ the feed: finite, one verb per card, an end */
.hf-h { font-size: 18px; margin: 4px 0 10px; }
.hf-list { display: grid; gap: 8px; }
.fcard { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "i b a"; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 18px; background: var(--card); }
.fc-ico { grid-area: i; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--world) 24%, var(--card2)); }
.fc-ico .ico { font-size: 24px; }
.fc-body { grid-area: b; min-width: 0; }
.fc-body small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.fc-body small::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--world); flex: 0 0 8px; }
.fc-body b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.fc-more { display: none; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.fcard.open .fc-more { display: block; } .fcard.open .fc-body b { white-space: normal; }
.fc-act { grid-area: a; padding: 9px 14px; border-radius: 12px; background: var(--milk); color: var(--ink); font: 800 13px Unbounded, sans-serif; text-decoration: none; white-space: nowrap; transition: transform .2s var(--spring); }
.fc-act:hover { transform: translateY(-1px); }
.fc-act:disabled { background: var(--card2); color: var(--muted); }
.hf-end { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--ink2); }
.hf-end .fc-act { grid-area: auto; }
.hf-endart svg { width: 44px; height: 44px; display: block; }
.hf-end b { display: block; font: 800 16px Unbounded, sans-serif; } .hf-end span span { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ right column: today / week / fact / achievements */
.hs { display: grid; gap: 10px; }
.hs .panel { padding: 14px 16px; border-radius: 20px; }
.hs h3 { display: flex; gap: 8px; align-items: center; font-size: 14px; } .hs h3 .ico { font-size: 22px; }
.hs .today { margin-top: 8px; gap: 12px; } .hs .ring { width: 58px; height: 58px; flex-basis: 58px; }
.hs .today .num { font-size: 20px; } .hs .today p { margin: 2px 0 0; font-size: 12.5px; }
.hs .wk { gap: 6px 12px; margin-top: 8px; } .hs .wk span { font-size: 12px; } .hs .wk .num { font-size: 18px; }
.hs-cat { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.hs-fact p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.hs .anear { margin: 8px 0 4px; } .hs .anear-i { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 6px 8px; } .hs .anear-i svg { width: 36px; height: 36px; }
.hs-link { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 13px; }
@media (max-width: 1199px) { .hs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding-top: 6px; } }

@media (max-width: 1100px) { .home3 .h-hero { grid-template-columns: minmax(0, 1fr) 220px; } }
@media (max-width: 720px) {
  .home3 .h-hero { grid-template-columns: minmax(0, 1fr) 128px; grid-template-areas: "me me" "play cube"; }
  .home3 .me { min-height: 0; }
  .h-play { font-size: 24px; min-height: 84px; } .h-play .hp-ico { width: 48px; height: 48px; } .h-play .hp-ico svg { width: 42px; height: 42px; }
  .home3 .h-cube { min-height: 84px; } .home3 .h-cube3d { min-height: 84px; } .home3 .h-cubecap { display: none; }
  .hd-main { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px 8px 10px; gap: 12px; }
  .hd-art svg { width: 56px; height: 56px; } .hd-body b { font-size: 20px; } .hd-task { white-space: normal; font-size: 15px; }
  .hd-go { grid-column: 1 / -1; text-align: center; }
  .hd-foot { padding: 8px 14px 12px; } .hd-next { margin-left: 0; }
  .fcard { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "i b" "i a"; row-gap: 8px; } .fc-act { justify-self: start; }
  .fc-ico { width: 40px; height: 40px; } .fc-body b { white-space: normal; }
  .hf-end { grid-template-columns: auto minmax(0, 1fr); } .hf-end .fc-act { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}

/* ------------------------------------------------------------------ Play: the selected game's hero, your games, news last */
.play2 { padding: 22px 28px 40px; max-width: 1320px; margin: 0 auto; display: grid; gap: 14px; }
.p2-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.p2-head h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; }
.p2-head p { color: var(--muted); margin: 0; }
.p2-head .p2-all { margin-left: auto; color: var(--muted); font-size: 15px; }
.p2-h { font-size: 16px; margin: 4px 0 0; }
.gnews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.gn { scroll-snap-align: start; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 8px 10px; align-items: center; padding: 12px; border-radius: 20px; background: var(--card); text-decoration: none; color: var(--milk); }
.gn-art { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--world); }
.gn-art svg, .gn-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gn-art.ico { display: grid; place-items: center; } .gn-art.ico img { width: 86%; height: 86%; object-fit: contain; }
.gn small { display: grid; gap: 3px; justify-items: start; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.gn small b { padding: 2px 7px; border-radius: 7px; background: var(--world); color: var(--world-ink); font-size: 11px; }
.gn-line { grid-column: 1 / -1; align-self: start; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gn-act { grid-column: 1 / -1; justify-self: start; padding: 7px 12px; border-radius: 11px; background: var(--milk); color: var(--ink); font: 800 12px Unbounded, sans-serif; transition: transform .2s var(--spring); }
.gn:hover .gn-act { transform: translateY(-1px); }
.play2 .row { min-height: 0; padding: 12px 10px 14px; margin: 0 -10px; }
.p2-hero { position: relative; display: grid; align-items: center; min-height: 340px; border-radius: 26px; overflow: hidden; color: var(--milk); }
.p2-hero .artbg img { animation: p2in .28s var(--ease) both; }
@keyframes p2in { from { opacity: 0; } }
.p2-hero .ab-cov { max-width: 60%; }
.p2h-txt { position: relative; z-index: 1; display: grid; justify-items: start; gap: 12px; max-width: min(46%, 520px); padding: 30px 34px; }
.p2h-txt h2 { margin: 0; font: 800 clamp(28px, 3.2vw, 46px)/1.04 Unbounded, sans-serif; color: var(--milk); }
.p2h-txt p { margin: 0; font-size: 17px; line-height: 1.45; color: #d4d6db; }
.p2h-txt .play { margin-top: 4px; border: 0; cursor: pointer; }
.play2 .row .tile.sel, body:not(.navmode) .play2 .row .tile.sel.focus:not(:hover) { box-shadow: var(--focus); }
.tile.all .pico.img { width: 92px; height: 92px; }
.tile .newb { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: var(--milk); color: var(--ink); font: 800 11px Unbounded, sans-serif; }
@media (prefers-reduced-motion: reduce) { .p2-hero .artbg img { animation: none; } }
@media (max-width: 720px) {
  .play2 { padding: 16px 16px 30px; }
  .gnews { grid-auto-columns: 62%; }
  .p2-hero { display: block; min-height: 0; }
  .p2-hero .artbg { position: relative; display: block; height: 210px; }
  .p2-hero .ab-cov { max-width: none; width: 100%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .p2-hero .ab-ico { right: 50%; transform: translate(50%, -50%); }
  .p2h-txt { max-width: none; padding: 0 18px 20px; margin-top: -24px; gap: 10px; }
  .p2h-txt p { font-size: 15px; }
}

/* long nicknames fit the profile card (owner screen 2026-12-01: «MetaCube…» was cut) */
.hub .mecard > div { min-width: 0; }
.hub .mecard h1 { font-size: clamp(26px, 3.2vw, 56px); overflow-wrap: anywhere; line-height: 1.02; }

/* ------------------------------------------------------------------ round 2 (owner 2026-12-01): no profile / «Грати» on
   Home; a grid of blocks (day · cube · today · week · fact · achievements); news as a strip of Steam-style cards */
.home3 { grid-template-columns: minmax(0, 1fr); }
.home3 > * { min-width: 0; }
.home3 .h-blocks > * { grid-area: auto; min-width: 0; }
.home3 .h-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.home3 .h-blocks > .h-day { grid-column: span 2; }
.h-blocks .h-day { display: flex; flex-direction: column; }
.h-blocks .h-day .hd-main { flex: 1; grid-template-columns: auto minmax(0, 1fr); }
.h-blocks .h-day .hd-go { grid-column: 1 / -1; justify-self: start; }
.h-blocks .hd-art .ico { font-size: 72px; width: 72px; height: 72px; }
.h-blocks .hd-foot .hd-next { margin-left: 0; flex-basis: 100%; }
.h-blocks .h-cube { display: grid; grid-template-rows: 1fr auto; padding: 10px; border-radius: 20px; min-height: 0; text-align: center; }
.h-blocks .h-cube3d { min-height: 120px; }
.h-blocks .h-cubecap { font-size: 12px; color: var(--muted); }
.home3 .h-blocks > .hs-fact { grid-column: span 2; }
.h-blocks .hs-fact p { font-size: 15px; }
.h-blocks .hs-today { display: flex; flex-direction: column; }
.hs h3 .pico.img { width: 26px; height: 26px; }

.nstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 10px; }
.ncard { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--card); transition: transform .25s var(--spring); }
.ncard:hover, .ncard:focus-within { transform: translateY(-3px); }
.nc-art { aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--world) 70%, #23262E), color-mix(in srgb, var(--world) 25%, #15171b)); }
.nc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-ico .pico, .nc-ico .pico.img { width: 84px; height: 84px; font-size: 64px; }
.nc-txt { position: relative; margin-top: -42px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 6px; align-content: start; padding: 12px 14px 14px;
  background: color-mix(in srgb, #15171b 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nc-txt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9ccd2; }
.nc-txt small::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--world); flex: 0 0 8px; }
.nc-txt b { font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.open .nc-txt b { -webkit-line-clamp: unset; }
.nc-txt .fc-act { justify-self: start; margin-top: 4px; }
.ncard.open .fc-more { display: block; }
.hf-endart .pico.img { width: 44px; height: 44px; }

@media (max-width: 1100px) { .home3 .h-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home3 .h-blocks > .hs-fact { grid-column: span 2; } }
@media (max-width: 720px) {
  .home3 .h-blocks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .h-blocks .h-day, .h-blocks .hs-fact, .h-blocks .hs-ach { grid-column: 1 / -1; }
  .nstrip { grid-auto-columns: 78%; }
}
.nc-txt > * { grid-area: auto; }
.hf-endart .pico { width: 44px; height: 44px; font-size: 44px; }
.hf-endart .pico svg { width: 100%; height: 100%; }
/* the founder pencil on a tile goes bottom-right: the top corners belong to «нове» and «Скоро» */
.tile .tedit { top: auto !important; bottom: 12px; left: auto !important; right: 12px !important; }
