/* DCA streaming layout. Tab bar + legal strip (all portal pages) and the Games hub stage. */
:root { --tabs-h: 50px; --legal-h: 26px; --dca-red: #ff2d55; --dca-blood: #c8102e; }

/* ---------- portal tab bar ---------- */
.dca-tabs { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .5rem; height: var(--tabs-h); box-sizing: border-box;
  padding: 0 max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(14,6,8,.97), rgba(8,8,10,.94)); border-bottom: 1px solid rgba(255,45,85,.25); box-shadow: 0 4px 18px rgba(0,0,0,.5); }
.dca-tabs-logo img { display: block; width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(255,45,85,.55)); }
.dca-tabs-row { display: flex; gap: .3rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dca-tabs-row::-webkit-scrollbar { display: none; }
.dca-tab { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem; border-radius: 999px; text-decoration: none;
  font: 400 .9rem/1 'Russo One', Impact, sans-serif; color: #e9e2d8; border: 1px solid transparent; }
.dca-tab img { width: 20px; height: 20px; }
.dca-tab:hover, .dca-tab:focus-visible { border-color: rgba(255,45,85,.5); outline: none; }
.dca-tab.on { background: linear-gradient(180deg, #d4142f, #7a0012); color: #fff; box-shadow: 0 0 14px rgba(255,45,85,.45); }
.dca-tab[hidden] { display: none; }
.dca-wallet { flex: none; display: inline-flex; gap: .55rem; padding: .35rem .75rem; border-radius: 999px; text-decoration: none; color: #ffe08a;
  border: 1px solid rgba(255,190,60,.45); font: 700 .85rem/1 Barlow, system-ui, sans-serif; background: rgba(40,28,6,.6); }
.dca-wallet b { color: #fff; } .dca-wallet .e b { color: #ffd2b0; }
.dca-wallet[hidden] { display: none; }
@media (max-width: 560px) { .dca-tab:has(img) span { display: none; } .dca-tab { padding: .42rem .55rem; } .dca-tab.on span { display: inline; } .dca-wallet .e { display: none; } }

/* ---------- legal strip (always visible) ---------- */
.dca-legal { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: .9rem; height: var(--legal-h); box-sizing: content-box;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(12px, env(safe-area-inset-left, 0px));
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; background: rgba(6,6,8,.96); border-top: 1px solid rgba(255,255,255,.07);
  font: 600 .74rem/1 Barlow, system-ui, sans-serif; color: #9a948c; }
.dca-legal::-webkit-scrollbar { display: none; }
.dca-legal a { color: #c9c2b8; text-decoration: none; } .dca-legal a:hover { color: #fff; text-decoration: underline; }
.dca-legal span { color: #e9e2d8; }
body.has-dca-tabs { padding-bottom: calc(var(--legal-h) + env(safe-area-inset-bottom, 0px)); }

/* ---------- Games hub (/play/ and /) as a one-screen streaming stage ---------- */
body.stream { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; padding-bottom: 0;
  background: #07070a url(/images/portals/hub-plaza-bg.webp) center/cover no-repeat; }
body.stream::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 60% 40%, rgba(0,0,0,.25), rgba(4,3,5,.82) 75%); }
body.stream .wrap { flex: 1 1 auto; height: auto !important; min-height: 0; width: 100%; max-width: none; box-sizing: border-box;
  padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(var(--legal-h) + .5rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
body.stream .wrap > header { display: none; }
body.stream .stage { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .9rem; }
body.stream .rails { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .5rem; }

/* hero */
.s-hero { position: relative; min-height: 0; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff;
  border: 2px solid rgba(255,45,85,.45); box-shadow: 0 0 30px rgba(255,45,85,.22), inset 0 0 60px rgba(0,0,0,.6); background: #0a0a0d center/cover no-repeat; }
.s-hero .s-float { top: 5%; height: 52%; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,5,7,.92)); pointer-events: none; }
.s-hero .s-cap { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; display: grid; gap: .35rem; }
.s-hero .s-kicker { font: 700 .72rem/1 Barlow, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dca-red); }
.s-hero .s-name { font: 400 clamp(1.3rem, 2.6vw, 2.2rem)/1.05 'Russo One', Impact, sans-serif; text-shadow: 0 2px 12px #000; }
.s-hero .s-tag { color: #ddd5cb; font-size: .95rem; }
.s-hero .s-play { justify-self: start; margin-top: .3rem; padding: .6rem 1.4rem; border-radius: 12px; font: 400 1.05rem/1 'Russo One', Impact, sans-serif;
  background: linear-gradient(180deg, #ff2d55, #a00a22); box-shadow: 0 0 18px rgba(255,45,85,.55); }
.s-dots { position: absolute; right: 1rem; bottom: 1.2rem; z-index: 3; display: flex; gap: .3rem; }
.s-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); } .s-dots i.on { width: 20px; border-radius: 4px; background: var(--dca-red); }

/* rail: the hub grid becomes a sideways-scrolling rail, 2-3 rows tall, no vertical scroll */
body.stream .grid { --rows: 3; flex: 1 1 auto; min-height: 0; display: grid !important; grid-auto-flow: column; grid-template-columns: none !important;
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); grid-auto-columns: auto; overflow-x: auto !important; overflow-y: hidden !important;
  scroll-snap-type: x proximity; gap: .6rem !important; padding: 2px 2px 6px; scrollbar-width: thin; scrollbar-color: #5a0f1c transparent; }
body.stream .grid .game { height: auto; aspect-ratio: auto !important; width: auto; min-width: 0; scroll-snap-align: start; align-self: stretch; }
@media (max-height: 760px) { body.stream .grid { --rows: 2; } }
@media (max-height: 430px) { body.stream .grid { --rows: 2; } body.stream .stage { gap: .6rem; } .s-hero .s-tag { display: none; } }
@media (max-aspect-ratio: 1/1) {   /* portrait phone: hero on top, rails below */
  body.stream .stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 36%) minmax(0, 1fr); }
  body.stream .grid { --rows: 2; }
  .s-hero .s-kicker { display: none; }
  .s-hero .s-float { top: 4%; height: 40%; }   /* keep the floating art clear of the caption */
  .s-hero .s-cap { padding-top: .6rem; background: linear-gradient(180deg, transparent, rgba(5,5,7,.55) 30%); }
  .dca-tabs-row, .s-railhead .cats { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .dca-legal { gap: .7rem; font-size: .68rem; }
}
.s-arrows { display: flex; gap: .3rem; margin-left: auto; }
.s-arrows button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,45,85,.5); background: rgba(10,8,10,.8); color: #fff; font-size: 1rem; cursor: pointer; }
.s-railhead { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.s-railhead .cats { flex: 1 1 auto; min-width: 0; }
@media (hover: none) { .s-arrows { display: none; } }

/* ---------- portal tiles: glowing stone portal backdrop + floating object ---------- */
.game.portal .art { background-size: cover !important; background-position: center !important; }
.game.portal { border-color: color-mix(in srgb, var(--glow, #ff2d55) 55%, transparent) !important; box-shadow: 0 0 16px color-mix(in srgb, var(--glow, #ff2d55) 30%, transparent); }
.game.portal:hover, .game.portal:focus-visible { box-shadow: 0 0 28px color-mix(in srgb, var(--glow, #ff2d55) 65%, transparent) !important; }
.s-float { position: absolute; left: 50%; top: 6%; height: 66%; width: auto; max-width: 92%; z-index: 1; pointer-events: none; object-fit: contain;
  transform: translateX(-50%); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--glow, #ff2d55) 70%, transparent)) drop-shadow(0 10px 14px rgba(0,0,0,.6));
  animation: s-bob var(--dur, 5s) ease-in-out var(--delay, 0s) infinite; }
.game:hover .s-float { animation-duration: 2.2s; }
@keyframes s-bob {
  0%, 100% { transform: translate(-50%, 0) rotate(-2.5deg) scale(1); }
  50% { transform: translate(-50%, -7%) rotate(2.5deg) scale(1.04); }
}
.game .info, .game .badge, .game .acc { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .s-float { animation: none; } }

body.stream .wrap > footer { display: none; }
body.stream .grid .game .tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the portal tabs + wallet replace the hub's own link dock; keep the page to one screen */
body.stream .wrap > nav.links { display: none; }
@media (max-height: 560px) {
  body.stream .wrap > .bar, body.stream [data-hub-cta] { display: none !important; }
  .dca-tabs { --tabs-h: 42px; height: 42px; } .dca-tab { padding: .3rem .65rem; font-size: .82rem; }
  .s-hero .s-kicker { display: none; } .s-hero .s-name { font-size: 1.15rem; } .s-hero .s-play { padding: .45rem 1rem; font-size: .9rem; }
}
@media (max-aspect-ratio: 1/1) { body.stream [data-hub-cta] .hub-cta-txt { display: none; } }
body.stream .grid .game .tag { } @media (max-height: 430px) { body.stream .grid .game .tag { display: none; } }
.site-head .nav a { white-space: nowrap; }
