/* akaDAD.live — design 00.03.10 */

@font-face { font-family: "Roboto Condensed"; src: url("/fonts/RobotoCondensed-Variable.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* animatable custom properties for the card bands */
@property --solid { syntax: "<length>"; inherits: false; initial-value: 150px; }
@property --size  { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

:root {
  --text: #FFF8F0;
  --muted: rgba(255, 248, 240, .62);
  --page-bg: linear-gradient(180deg, #131417 0%, #26282D 55%, #3B3E44 100%);
  --gray-band: #4C5057;
  --cw: min(880px, calc(100% - 32px));          /* content width */
  --gutter: calc((100% - var(--cw)) / 2);       /* space left/right of content, inside full-width rows */
  --card-h: 96px;
  --big: 160px;          /* big card text */
  --big-hover: 210px;
  --strip-h: 8px;
  --gap: 24px;           /* between cards */
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .45s;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;   /* footer sits after the content, or at the bottom of the window when the page is short */
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
/* soft shadow across the top of the page */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 110px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.6) 12%, rgba(0,0,0,.44) 28%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.15) 62%, rgba(0,0,0,.06) 80%, rgba(0,0,0,0) 100%);
}
a { color: inherit; }
img { display: block; }
.wrap { width: var(--cw); margin: 0 auto; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 2; display: flex; justify-content: center; padding: 40px 0 8px; transition: padding var(--dur) var(--ease); }
.logo { height: 192px; width: auto; transition: height var(--dur) var(--ease); }
.is-open .site-header { padding: 18px 0 12px; }
.is-open .logo { height: 96px; }

/* ---------- Twitch live player (cropped 20% top and bottom) ---------- */
.live { position: relative; z-index: 1; width: var(--cw); margin: 8px auto 12px; }
.live[hidden], .is-open .live { display: none; }
.live-crop { position: relative; overflow: hidden; aspect-ratio: 16 / 5.4; border-radius: 6px; background: #000; }
.live-crop > div, .live-crop iframe { position: absolute; left: 0; width: 100%; top: -33.333%; height: 166.667%; border: 0; }
.live-link { position: absolute; inset: 0; z-index: 2; }

/* ---------- sections ---------- */
main { position: relative; z-index: 1; flex: 1 0 auto; padding-bottom: 24px; }
.section { padding: 20px 0; transition: padding var(--dur) var(--ease); }
.section:first-child { padding-top: 32px; }
.section-title {
  width: var(--cw); margin: 0 auto 6px; overflow: hidden;
  font-family: "Roboto Condensed", sans-serif; font-weight: 800; font-size: 60px; line-height: 1.1; text-transform: uppercase;
  max-height: 80px; opacity: 1;
  transition: max-height var(--dur) var(--ease), opacity .25s var(--ease), margin var(--dur) var(--ease);
}
.section-title.keep-case { text-transform: none; }
.list { display: flex; flex-direction: column; gap: var(--gap); transition: gap var(--dur) var(--ease); }

/* ---------- cards ---------- */
.item { position: relative; transition: margin var(--dur) var(--ease); }
.card {
  position: relative; display: block; height: var(--card-h); text-decoration: none; color: var(--text); cursor: pointer;
  transition: height var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card:focus-visible { outline: none; }
.card:focus-visible .band { box-shadow: inset 0 0 0 2px rgba(255,248,240,.8); }
.band {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0%, var(--c) calc(50% - var(--solid)), var(--c) calc(50% + var(--solid)), transparent 100%)
    center / var(--size) 100% no-repeat;
  transition: top var(--dur) var(--bounce), bottom var(--dur) var(--bounce), --solid var(--dur) var(--bounce), --size var(--dur) var(--bounce);
}

/* big two-tone text: first word heavy, the rest thin */
.big {
  position: absolute; top: 50%; white-space: nowrap; line-height: 1; text-transform: uppercase; pointer-events: none;
  font-family: "Roboto Condensed", sans-serif; font-size: var(--big);
  /* centers the capital letters (not the font's line box) on the card's middle */
  transform: translateY(calc(-50% + .0137em));
}
.big b { font-weight: 900; }
.big i { font-style: normal; font-weight: 300; letter-spacing: -.04em; }
.big.cut {
  left: var(--gutter);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: var(--page-bg); background-repeat: no-repeat;   /* size/position set by app.js so the letters show the page behind */
  transition: opacity .2s var(--ease);
}
.big.faint {
  left: 50%; font-size: var(--big-hover); opacity: 0;
  color: color-mix(in srgb, var(--c) 90%, #000);   /* barely noticeable */
  transform: translate(-50%, calc(-50% + .0137em));
  transition: opacity .25s var(--ease);
}

.badge {
  position: absolute; top: 50%; right: calc(var(--gutter) + 24px); transform: translateY(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.28);
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.badge.concept { background: none; border: 1px dashed rgba(255,248,240,.7); }

.info {
  position: absolute; top: 50%; left: var(--gutter); right: calc(var(--gutter) + 210px); transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.info-title { font-family: "Roboto Condensed", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.info-sum { font-size: 17px; line-height: 1.4; color: rgba(255,248,240,.92); }

/* hover (mouse only, homepage only) */
@media (hover: hover) {
  body:not(.is-open) .card:hover { z-index: 3; }
  body:not(.is-open) .card:hover .band { top: calc(var(--gap) / -2); bottom: calc(var(--gap) / -2); --solid: 250px; --size: 180%; }
  body:not(.is-open) .card:hover .big.cut { opacity: 0; }
  body:not(.is-open) .card:hover .big.faint { opacity: 1; }
  body:not(.is-open) .card:hover .info { opacity: 1; transition-delay: .08s; }
}

/* ---------- open (expanded) state ---------- */
.is-open { --gap: 4px; }
.is-open .section { padding: 0; }
.is-open .section + .section { margin-top: 8px; }
.is-open .section-title { max-height: 0; opacity: 0; margin-bottom: 0; }
.is-open .item:not(.open) .card { height: var(--strip-h); }
.is-open .item:not(.open) .big,
.is-open .item:not(.open) .badge,
.is-open .item:not(.open) .info { opacity: 0; }
.is-open .item.open { margin-top: 12px; margin-bottom: 12px; }   /* + 4px gap = 16px */
.is-open .item.open:first-child { margin-top: 0; }
@media (hover: hover) { .is-open .item:not(.open) .card:hover .band { filter: brightness(1.25); } }

.close {
  position: absolute; z-index: 4; top: calc(var(--card-h) / 2); right: calc(var(--gutter) - 64px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.28); color: var(--text);
}
.close:hover { background: rgba(0,0,0,.45); }
.close svg { width: 22px; height: 22px; }
.item.open .close { display: flex; }

/* details panel (opens under the card) */
.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.item.open .detail { grid-template-rows: 1fr; }
.detail-in { overflow: hidden; min-height: 0; }
.detail-body { width: var(--cw); margin: 0 auto; padding: 20px 0 4px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.d-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.d-main p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: rgba(255,248,240,.88); }
.d-h { margin: 0 0 14px; font-family: "Roboto Condensed", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.d-h.small { font-size: 16px; margin-bottom: 6px; }
.btn {
  display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 6px; text-decoration: none;
  font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.btn.primary { background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 75%, transparent); color: var(--text); transition: background .2s; }
.d-side .btn + .d-h { margin-top: 28px; }
.pbadges { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 20px; }
.pbadge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pbadge img { display: block; width: auto; height: auto; }   /* shown at their real size */
.plogos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.plogo { display: block; width: auto; max-width: 100%; height: auto; }
.shot { display: block; width: auto; max-width: 100%; height: auto; margin-bottom: 20px; border-radius: 6px; border: 1px solid rgba(255,248,240,.14); }
.top-link { display: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--c) 40%, transparent); }
.still {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 6px; border: 1px dashed rgba(255,248,240,.4);
  font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.meta { display: block; margin: 8px 0 20px; font-size: 14px; color: rgba(255,248,240,.65); }
ul.req { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
ul.req li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,248,240,.12); }
ul.req li:last-child { border-bottom: 0; padding-bottom: 0; }
ul.req span { color: rgba(255,248,240,.6); text-align: right; }
ul.req span.rn { color: inherit; text-align: left; }
.req-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; vertical-align: middle; }
.req-link img { width: 18px; height: 18px; }
.req-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.plat { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,248,240,.12);
  font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.pf.twitch { color: #A970FF; justify-self: start; }
.pf.kick { color: #53FC18; justify-self: center; }
.pf.youtube { color: #FF3B3B; justify-self: end; }
.pf.planned { color: rgba(255,248,240,.28); }
.dlink {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; text-decoration: none;
  font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
}
.dlink img { width: 28px; height: 28px; object-fit: contain; }
.dlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.hist { position: relative; margin-top: 20px; padding-top: 14px; }
.hist::before {
  content: ""; position: absolute; top: 0; left: -60px; right: -60px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c) 18%, var(--c) 82%, transparent 100%);
}
.hrow { display: grid; grid-template-columns: 140px 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 6px 0; font-size: 14px; line-height: 1.3; border-bottom: 1px solid rgba(255,248,240,.12); }
.hrow:last-child { border-bottom: 0; }
.hrow .v { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hrow .v i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.hrow .d { color: rgba(255,248,240,.6); }

/* ---------- streams + socials link bars ---------- */
.linkbar-wrap { padding: 20px 0; transition: padding var(--dur) var(--ease); }
.linkbar-wrap + .linkbar-wrap { padding-top: 4px; }
.is-open .linkbar-wrap { padding: 8px 0 0; }
.linkbar {
  height: 48px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, transparent 0%, var(--gray-band) calc(50% - 150px), var(--gray-band) calc(50% + 150px), transparent 100%);
}

.linkbar a { display: flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.linkbar.streams a { gap: 10px; }
.linkbar.streams img { height: 28px; width: auto; flex: none; }
.linkbar .tag { font-family: "Roboto Condensed", sans-serif; font-weight: 500; font-size: 18px; letter-spacing: .02em; text-transform: none; color: var(--text); }
/* socials sit in the middle half of the content width */
.linkbar.socials { padding: 0 calc(var(--gutter) + var(--cw) / 4); }
.linkbar.socials img { height: 28px; width: 28px; object-fit: contain; }
.linkbar a:hover { filter: brightness(1.2); }
.linkbar a.disabled { pointer-events: none; opacity: .5; }

/* ---------- footer: after the content, at the bottom of the window on short pages ---------- */
.site-footer { position: relative; z-index: 1; background: #3B3E44; }
.footer-in { width: var(--cw); margin: 0 auto; padding: 18px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-left img { height: 28px; width: auto; }
.copy { font-size: 13px; color: #8B93A0; }
.footer-right { display: flex; align-items: center; gap: 12px; }
.contact { margin: 0 4px 0 0; font-size: 15px; color: #A9B1BC; }
.fbtn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22);
  background: none; color: var(--text); font: 700 15px/1 "Inter", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.fbtn:hover { border-color: rgba(255,255,255,.5); }
.email-shown { text-transform: none; letter-spacing: .02em; font-weight: 600; }
.noscript { width: var(--cw); margin: 40px auto; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  /* logo, section titles and cards are half size on phones */
  :root { --card-h: 36px; --big: 60px; --big-hover: 79px; --gap: 9px; }
  .site-header { padding: 16px 0 0; }
  .logo { height: 64px; }
  .is-open .logo { height: 32px; }
  .section { padding: 12px 0; }
  .section:first-child { padding-top: 16px; }
  .section-title { font-size: 17px; margin-bottom: 4px; }
  .badge { right: var(--gutter); gap: 6px; font-size: 10px; padding: 3px 8px; }
  .badge i { width: 6px; height: 6px; }
  .item.open .badge { right: calc(var(--gutter) + 36px); }
  .close { right: var(--gutter); width: 28px; height: 28px; }
  .close svg { width: 16px; height: 16px; }
  .d-grid { grid-template-columns: 1fr; gap: 24px; }
  .top-link { display: flex; margin-bottom: 20px; }
  .side-link { display: none; }
  .d-side .side-link + .d-h { margin-top: 0; }
  .hrow { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .hrow .n { grid-column: 1 / -1; }
  .linkbar { height: 40px; }
  .linkbar a { min-height: 40px; }
  .linkbar.streams a { gap: 6px; }
  .linkbar.streams img { height: 22px; }
  .linkbar .tag { font-size: 15px; }
  .contact { display: none; }
  .footer-in { padding: 14px 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
