@import url("https://fonts.googleapis.com/css2?family=Huninn&display=swap");

:root {
  --bg: #101213;
  --bg-deep: #0b0d0e;
  --sidebar: #17191a;
  --panel: #17191a;
  --panel-2: #1d2021;
  --panel-3: #252829;
  --soft: #202324;
  --soft-2: #292c2d;
  --line: rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.115);
  --text: #f7f7f4;
  --muted: #9a9f9d;
  --muted-2: #6e7471;
  --yellow: #ffd338;
  --yellow-2: #ffb80d;
  --yellow-3: #fff093;
  --yellow-soft: rgba(255,211,56,.13);
  --yellow-softer: rgba(255,211,56,.075);
  --green: #69df9b;
  --red: #ff6e72;
  --orange: #ff9f37;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --sidebar-w: 104px;
  --topbar-h: 104px;
  --shadow: 0 26px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Huninn", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.hidden { display: none !important; }
.fi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Login */
.login-screen {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,211,56,.055), transparent 30%),
    #0d0f10;
}
.login-screen::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(255,211,56,.045);
  box-shadow: 0 0 0 80px rgba(255,211,56,.008), 0 0 0 160px rgba(255,211,56,.004);
  pointer-events: none;
}
.login-panel {
  width: min(100%, 430px);
  padding: 38px 36px 32px;
  position: relative;
  z-index: 2;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(20,23,24,.96);
  box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025);
}
.login-panel::before {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,211,56,.32), transparent);
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  margin-bottom: 28px;
  overflow: hidden;
}
.brand-full-logo {
  width: 300px;
  height: auto;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 16px rgba(255,211,56,.08));
}
.login-form { display: grid; gap: 17px; margin: 0; }
.login-field-group { display: grid; gap: 8px; }
.field-label { margin: 0 0 0 2px; color: #d7dad7; font-size: 11px; font-weight: 800; }
.field-wrap {
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: #101314;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.field-wrap:hover { border-color: rgba(255,255,255,.12); }
.field-wrap:focus-within {
  border-color: rgba(255,211,56,.5);
  background: #111516;
  box-shadow: 0 0 0 3px rgba(255,211,56,.055);
}
.field-wrap > i { color: #8f9592; font-size: 16px; }
.field-wrap:focus-within > i { color: var(--yellow); }
.field-wrap input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.field-wrap input::placeholder { color: #5f6562; }
.field-action {
  border: 0;
  background: transparent;
  color: #8b918e;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 10px;
}
.field-action:hover { color: var(--text); background: rgba(255,255,255,.045); }
.primary-btn, .soft-btn, .ghost-btn, .danger-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 14px; padding: 0 16px; cursor: pointer; font-weight: 850; font-size: 12px; border: 1px solid transparent; }
.primary-btn { background: var(--yellow); color: #282105; }
.soft-btn { background: var(--soft); border-color: var(--line); color: #e6e8e5; }
.ghost-btn { background: transparent; border-color: var(--line); color: var(--text); }
.danger-btn { background: rgba(255,110,114,.1); border-color: rgba(255,110,114,.16); color: #ff9699; }
.login-btn {
  margin-top: 3px;
  min-height: 56px;
  border-radius: 16px;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(255,184,13,.08);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.login-btn:hover { background: #ffda4c; box-shadow: 0 12px 28px rgba(255,184,13,.13); }
.login-btn:active { transform: translateY(1px); }
.login-btn i { font-size: 15px; }
.preview-btn { min-height: 48px; }
.form-error { min-height: 14px; color: #ff989b; font-size: 11px; margin: -5px 2px 0; }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); background: var(--bg); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 18px;
  background: #181a1b;
  border-right: 1px solid rgba(255,255,255,.035);
}
.sidebar-logo-button { width: 74px; height: 74px; border: 0; background: transparent; padding: 6px; border-radius: 22px; cursor: pointer; display: grid; place-items: center; }
.sidebar-logo { width: 58px; height: 58px; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 18px rgba(255,211,56,.08)); }
.nav-capsule {
  margin-top: 22px;
  width: 58px;
  padding: 8px 0;
  display: grid;
  gap: 3px;
  place-items: center;
  border-radius: 29px;
  background: #222526;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.nav-secondary { margin-top: 14px; display: grid; gap: 5px; place-items: center; }
.nav-icon {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #8a908d;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-icon i { font-size: 18px; }
.nav-icon.active { background: var(--yellow); color: #272105; box-shadow: 0 10px 25px rgba(255,193,17,.17); }
.nav-icon.secondary { color: #777d7a; }
@media (hover:hover) and (pointer:fine) {
  .nav-icon:hover { color: #f1f2ef; background: rgba(255,255,255,.045); }
  .nav-icon.active:hover { color: #272105; background: var(--yellow); }
  [data-label]::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    opacity: 0;
    pointer-events: none;
    padding: 7px 10px;
    border-radius: 9px;
    color: #f4f5f2;
    background: #2b2e2f;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition: .15s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  [data-label]:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.main-column { grid-column: 2; min-width: 0; }
.topbar {
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 clamp(24px,3vw,48px);
  background: rgba(16,18,19,.94);
  border-bottom: 1px solid rgba(255,255,255,.035);
  backdrop-filter: blur(20px);
}
.search-shell { flex: 1; min-width: 240px; max-width: 730px; height: 48px; display: flex; align-items: center; gap: 9px; padding: 5px; border-radius: 30px; background: #1d2021; border: 1px solid rgba(255,255,255,.035); }
.search-box { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 14px; }
.search-box > i { color: #777d79; font-size: 19px; }
.search-box input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #686e6b; }
.search-submit { height: 40px; min-width: 105px; border: 0; border-radius: 23px; background: #272a2b; color: #f4f5f2; cursor: pointer; font-size: 11px; font-weight: 800; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.quick-play-btn { height: 48px; min-height: 48px; padding: 0 15px 0 7px; border: 0; border-radius: 28px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,211,56,.11); color: #f8ecb5; cursor: pointer; font-size: 11px; font-weight: 800; }
.quick-play-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #2b2406; }
.icon-btn { border: 0; cursor: pointer; display: grid; place-items: center; }
.top-icon { width: 48px; height: 48px; border-radius: 50%; background: transparent; color: #858b88; position: relative; }
.top-icon i { font-size: 18px; }
.top-divider { width: 1px; height: 32px; background: var(--line); margin: 0 4px; }
.notification-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); top: 8px; right: 7px; border: 1px solid #111314; }
.profile-button { height: 48px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 0 2px 4px; min-width: 150px; text-align: left; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg,#ffe77c,#e7a900); color: #2e2505; font-weight: 950; border: 2px solid rgba(255,211,56,.55); box-shadow: 0 0 0 3px rgba(255,211,56,.05); }
.profile-copy { min-width: 0; display: grid; gap: 2px; }
.profile-copy strong { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.profile-copy small { display: inline-flex; align-items: center; gap: 5px; color: #c6ad57; font-size: 9px; }
.profile-online-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.profile-button > i { margin-left: auto; color: #6b716e; }
.mobile-menu-btn { display: none; width: 42px; height: 42px; border-radius: 13px; background: var(--soft); color: var(--muted); }

.main-content { width: 100%; min-height: calc(100vh - var(--topbar-h)); padding: 34px clamp(24px,3vw,48px) 70px; outline: none; }

/* Home / reference-inspired composition */
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,330px); gap: 24px; align-items: start; }
.home-primary { min-width: 0; }
.hero-card {
  min-height: 410px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 34px;
  background: linear-gradient(132deg,#ffd83e 0%,#ffc521 52%,#efa500 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -160px;
  top: -150px;
  border-radius: 50%;
  border: 80px solid rgba(38,31,3,.1);
  box-shadow: 0 0 0 72px rgba(255,255,255,.07), 0 0 0 145px rgba(46,37,3,.045);
  z-index: -2;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(254,213,53,.14),transparent 52%,rgba(41,33,3,.06));
  z-index: -1;
}
.hero-art { position: absolute; inset: 0 0 0 47%; overflow: hidden; pointer-events: none; }
.hero-art .hero-letter { position: absolute; right: 4%; bottom: -4%; font-size: clamp(190px,22vw,350px); line-height: .78; font-weight: 1000; letter-spacing: -24px; color: rgba(37,30,4,.92); transform: rotate(-7deg); text-shadow: -30px 25px 0 rgba(255,255,255,.11); }
.hero-art .hero-shard { position: absolute; border-radius: 36px; background: rgba(25,22,8,.78); transform: rotate(29deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.hero-art .hero-shard.one { width: 94px; height: 270px; right: 33%; top: 6%; }
.hero-art .hero-shard.two { width: 72px; height: 220px; right: 12%; top: 19%; background: rgba(255,255,255,.22); }
.hero-copy-card { position: absolute; left: 28px; top: 28px; bottom: 28px; width: min(48%,510px); min-width: 330px; padding: clamp(30px,4vw,48px); border-radius: 28px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg,rgba(107,77,4,.45),rgba(92,61,3,.24)); border: 1px solid rgba(83,60,2,.11); color: #fff9df; backdrop-filter: blur(5px); }
.hero-kicker { font-size: 10px; letter-spacing: 3px; font-weight: 900; opacity: .84; }
.hero-copy-card h1 { margin: 15px 0 13px; font-size: clamp(39px,4.5vw,64px); line-height: .98; letter-spacing: -3.8px; }
.hero-copy-card p { max-width: 420px; margin: 0; font-size: 12px; line-height: 1.65; color: rgba(255,250,224,.72); }
.hero-actions { margin-top: 23px; display: flex; gap: 9px; flex-wrap: wrap; }
.hero-play { background: #fff; color: #4e3d03; min-width: 120px; }
.hero-secondary { background: rgba(28,23,5,.16); color: #fff8d5; border-color: rgba(255,255,255,.12); }
.hero-dots { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; }
.hero-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(53,42,4,.35); }
.hero-dots .active { width: 27px; border-radius: 6px; background: #fff8d5; }

.home-side { display: grid; gap: 15px; }
.side-panel { border-radius: 27px; background: #17191a; border: 1px solid var(--line); padding: 22px; min-width: 0; }
.side-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.side-panel-title h2 { margin: 0; font-size: 18px; letter-spacing: -.55px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(105,223,155,.08); color: var(--green); font-size: 9px; font-weight: 900; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.host-card { padding: 14px; border-radius: 18px; background: #202324; border: 1px solid rgba(255,255,255,.035); display: flex; align-items: center; gap: 12px; }
.host-machine-icon { width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center; background: #2b2e2f; color: var(--yellow); font-size: 18px; }
.host-card-copy { min-width: 0; flex: 1; }
.host-card-copy strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host-card-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.host-card > i { color: #686e6b; }
.host-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.host-metric { padding: 11px; border-radius: 15px; background: #1d2021; }
.host-metric span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.host-metric strong { display: block; margin-top: 5px; font-size: 11px; }
.wallet-card { border-radius: 27px; background: linear-gradient(145deg,#181a1b,#1e2122); border: 1px solid var(--line); padding: 20px; overflow: hidden; position: relative; }
.wallet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wallet-title { display: flex; align-items: center; gap: 10px; }
.nana-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--yellow); color: #2b2405; font-size: 12px; font-weight: 1000; }
.wallet-title strong { display: block; font-size: 12px; }
.wallet-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.wallet-number { text-align: right; }
.wallet-number strong { display: block; font-size: 23px; letter-spacing: -1px; }
.wallet-number span { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.nana-progress-wrap { margin-top: 17px; }
.nana-progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.nana-progress-meta strong { color: var(--yellow); }
.nana-progress { height: 22px; position: relative; overflow: hidden; border-radius: 999px; background: #0f1112; border: 1px solid var(--line); }
.nana-progress-fill { height: 100%; min-width: 3%; position: relative; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg,#e8a900,#ffd336 58%,#ffe989); transition: width .45s ease; }
.bubble { position: absolute; bottom: -10px; border-radius: 50%; background: rgba(255,255,255,.38); animation: bubbleRise 4s linear infinite; }
.bubble:nth-child(1) { width: 8px; height: 8px; left: 10%; animation-delay: -.8s; }
.bubble:nth-child(2) { width: 5px; height: 5px; left: 29%; animation-delay: -2.1s; }
.bubble:nth-child(3) { width: 10px; height: 10px; left: 48%; animation-delay: -1.4s; }
.bubble:nth-child(4) { width: 6px; height: 6px; left: 70%; animation-delay: -3.1s; }
.bubble:nth-child(5) { width: 9px; height: 9px; left: 89%; animation-delay: -.2s; }
@keyframes bubbleRise { from { transform: translateY(17px) scale(.82); opacity: .05; } 35% { opacity: .58; } to { transform: translateY(-27px) scale(1.1); opacity: 0; } }

.home-feed { margin-top: 34px; }
.feed-eyebrow { color: var(--muted); font-size: 9px; letter-spacing: 3px; font-weight: 850; text-transform: uppercase; }
.feed-title-row { margin-top: 5px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.feed-title-row h2 { margin: 0; font-size: 30px; letter-spacing: -1.3px; }
.feed-tabs { display: flex; align-items: center; gap: 21px; color: var(--muted); font-size: 10px; }
.feed-tab { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 8px 0; position: relative; }
.feed-tab.active { color: var(--yellow); }
.feed-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); border-radius: 2px; }
.game-scroller { margin-top: 18px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px,1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.game-scroller::-webkit-scrollbar { display: none; }
.game-card { min-width: 0; border-radius: 21px; overflow: hidden; border: 1px solid var(--line); background: #17191a; cursor: pointer; scroll-snap-align: start; transition: transform .18s ease, border-color .18s ease; }
@media (hover:hover) and (pointer:fine) { .game-card:hover { transform: translateY(-3px); border-color: rgba(255,211,56,.23); } }
.game-art { aspect-ratio: 16/9; position: relative; overflow: hidden; background: #222526; }
.game-art::before { content: ""; position: absolute; width: 170px; height: 170px; right: -46px; top: -65px; border-radius: 50%; background: rgba(255,255,255,.19); }
.game-art::after { content: ""; position: absolute; width: 145px; height: 145px; left: -42px; bottom: -80px; border-radius: 50%; border: 28px solid rgba(20,20,13,.18); }
.game-art-initials { position: absolute; right: 14px; bottom: -4px; font-size: 68px; line-height: 1; font-weight: 1000; letter-spacing: -6px; color: rgba(36,29,4,.75); z-index: 2; }
.game-art-badge { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 8px; border-radius: 8px; color: #2f2604; background: rgba(255,255,255,.77); font-size: 8px; font-weight: 900; }
.game-card-body { padding: 14px; }
.game-card-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.game-card h3 { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; letter-spacing: -.3px; }
.favorite-btn { width: 29px; height: 29px; flex: 0 0 29px; border: 0; border-radius: 10px; background: #222526; color: #858b88; cursor: pointer; }
.favorite-btn.active { color: var(--yellow); background: var(--yellow-soft); }
.game-meta { margin-top: 6px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; overflow: hidden; white-space: nowrap; }
.game-meta span { overflow: hidden; text-overflow: ellipsis; }
.game-card-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.nana-cost { display: inline-flex; align-items: center; gap: 5px; color: #d2d5d2; font-size: 9px; font-weight: 800; }
.nana-cost .nana-icon { width: 18px; height: 18px; border-radius: 6px; font-size: 7px; }
.card-play { width: 33px; height: 33px; border: 0; border-radius: 11px; display: grid; place-items: center; background: var(--yellow); color: #292204; cursor: pointer; }

/* Generic pages */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-header .eyebrow { color: var(--yellow); }
.page-header h1 { margin: 8px 0 0; font-size: clamp(38px,5vw,62px); letter-spacing: -3px; line-height: .95; }
.page-header p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; max-width: 650px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.library-toolbar { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #17191a; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.filter-chip.active { background: var(--yellow); border-color: var(--yellow); color: #292204; }
.sort-select { height: 39px; border: 1px solid var(--line); border-radius: 12px; padding: 0 34px 0 13px; background: #17191a; color: #e3e5e2; font-size: 10px; }
.library-selects { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.library-tag-select { min-width: 150px; }
.library-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.empty-state { grid-column: 1/-1; min-height: 260px; border-radius: 24px; border: 1px dashed var(--line-strong); display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-state i { display: block; margin-bottom: 12px; color: var(--yellow); font-size: 28px; }
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.history-table { border-radius: 24px; overflow: hidden; background: #17191a; border: 1px solid var(--line); }
.history-row { min-height: 68px; display: grid; grid-template-columns: minmax(220px,1.5fr) 1fr .7fr .7fr; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 10px; }
.history-row.head { min-height: 46px; border-top: 0; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1.4px; }
.history-game { min-width: 0; display: flex; align-items: center; gap: 11px; }
.history-game strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-thumb { width: 54px; height: 35px; flex: 0 0 auto; border-radius: 9px; }
.muted { color: var(--muted); }
.account-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 18px; }
.profile-hero { min-height: 180px; border-radius: 27px; padding: 24px; display: flex; align-items: end; background: linear-gradient(135deg,#252829,#181a1b); border: 1px solid var(--line); }
.profile-main { display: flex; align-items: center; gap: 14px; }
.profile-main .avatar { width: 65px; height: 65px; flex-basis: 65px; font-size: 18px; }
.profile-main h2 { margin: 0; font-size: 24px; letter-spacing: -1px; }
.profile-main p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel { border-radius: 24px; background: #17191a; border: 1px solid var(--line); padding: 20px; min-width: 0; }
.account-details { margin-top: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-title h3 { margin: 0; font-size: 14px; }
.panel-title span { color: var(--muted); font-size: 8px; }
.detail-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); font-size: 10px; }
.detail-row:first-child { border-top: 0; }
.detail-row span { color: var(--muted); }
.detail-row strong { max-width: 65%; text-align: right; overflow-wrap: anywhere; }
.settings-stack { display: grid; gap: 10px; }
.settings-card { min-height: 65px; display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 16px; background: #202324; border: 1px solid rgba(255,255,255,.03); }
.settings-card > i { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 12px; display: grid; place-items: center; background: #292c2d; color: var(--yellow); }
.settings-card > div { min-width: 0; flex: 1; }
.settings-card strong { display: block; font-size: 10px; }
.settings-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.switch { width: 40px; height: 23px; flex: 0 0 40px; position: relative; border: 0; border-radius: 999px; background: #303435; cursor: pointer; }
.switch::before { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #8c9290; transition: .18s ease; }
.switch.on { background: rgba(255,211,56,.2); }
.switch.on::before { left: 20px; background: var(--yellow); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(5,7,8,.72); backdrop-filter: blur(14px); }
.game-modal { width: min(900px,100%); max-height: calc(100vh - 48px); overflow: auto; position: relative; border-radius: 30px; background: #161819; border: 1px solid var(--line-strong); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.modal-close { position: absolute; right: 15px; top: 15px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 13px; display: grid; place-items: center; background: rgba(16,18,19,.66); color: #f4f5f2; cursor: pointer; backdrop-filter: blur(8px); }
.game-modal-hero { min-height: 290px; position: relative; display: flex; align-items: end; padding: 28px; color: #2a2305; overflow: hidden; }
.game-modal-hero::after { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -80px; top: -90px; border: 70px solid rgba(255,255,255,.12); }
.modal-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.modal-hero-copy h2 { margin: 8px 0 8px; font-size: clamp(38px,6vw,67px); line-height: .92; letter-spacing: -3.5px; }
.modal-hero-copy p { max-width: 570px; margin: 0; line-height: 1.55; font-size: 11px; color: rgba(42,35,5,.73); }
.game-modal-body { padding: 22px 28px 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.modal-stats { display: flex; gap: 9px; flex-wrap: wrap; }
.modal-stat { padding: 10px 12px; border-radius: 12px; background: #202324; min-width: 100px; }
.modal-stat span { display: block; color: var(--muted); font-size: 8px; }
.modal-stat strong { display: block; margin-top: 4px; font-size: 10px; }
.modal-play { min-width: 145px; }


.game-info-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.info-chip { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 10px; background: #202324; color: #d8dbd8; font-size: 8px; }
.info-chip i { color: var(--yellow); }
.game-description { max-width: 650px; margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.play-box { min-width: 210px; padding: 16px; border-radius: 18px; background: #202324; border: 1px solid var(--line); }
.play-cost { margin-bottom: 12px; }
.play-cost span { display: block; color: var(--muted); font-size: 8px; }
.play-cost strong { display: block; margin-top: 4px; font-size: 13px; }
.play-box .primary-btn { width: 100%; }
.play-estimate { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* Profile menu / toast */
.profile-menu { position: fixed; top: 84px; right: 34px; z-index: 60; width: 190px; padding: 7px; border-radius: 17px; background: #212425; border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(0,0,0,.34); }
.profile-menu button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; color: #d8dbd8; cursor: pointer; padding: 0 10px; font-size: 10px; text-align: left; }
.profile-menu button:hover { background: rgba(255,255,255,.04); }
.menu-separator { height: 1px; margin: 5px 7px; background: var(--line); }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: grid; gap: 8px; }
.toast { min-width: 250px; max-width: 340px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; background: #252829; border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(0,0,0,.3); font-size: 10px; }
.toast i { color: var(--yellow); }

/* Stream page */
.stream-page { position: fixed; inset: 0; z-index: 100; background: #030405; color: #f7f8f5; overflow: hidden; }
.stream-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: #030405; }
.stream-stage::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.58) 0,rgba(0,0,0,.08) 18%,transparent 35%,transparent 66%,rgba(0,0,0,.32) 100%); }
.stream-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; touch-action: none; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.stream-placeholder { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 42%,rgba(255,211,56,.09),transparent 25%),linear-gradient(145deg,#080a0a,#030405 62%); }
.stream-placeholder-card { width: min(500px,calc(100% - 32px)); padding: 34px 30px; border-radius: 30px; text-align: center; background: rgba(20,22,21,.76); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 28px 90px rgba(0,0,0,.42); backdrop-filter: blur(24px); }
.stream-placeholder-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; background: var(--yellow); color: #211c05; font-size: 29px; box-shadow: 0 12px 42px rgba(255,211,56,.16); }
.stream-placeholder-card h2 { margin: 0; font-size: clamp(24px,3vw,38px); letter-spacing: -1.5px; }
.stream-placeholder-card p { max-width: 380px; margin: 10px auto 0; color: #929894; font-size: 10px; line-height: 1.7; }
.stream-loader { width: 180px; height: 4px; margin: 24px auto 0; border-radius: 999px; overflow: hidden; background: #272a28; }
.stream-loader span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--yellow); animation: streamLoad 1.3s ease-in-out infinite alternate; }
@keyframes streamLoad { from { transform: translateX(0); } to { transform: translateX(265%); } }
.stream-top-bar { position: absolute; z-index: 8; top: 18px; left: 18px; right: 18px; min-width: 0; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.stream-top-bar > * { pointer-events: auto; }
.stream-top-back, .stream-top-icon { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; display: grid; place-items: center; background: rgba(15,17,16,.72); color: #eef0ed; backdrop-filter: blur(18px); cursor: pointer; transition: background .16s ease,border-color .16s ease,transform .16s ease; }
.stream-top-back:hover, .stream-top-icon:hover { background: rgba(39,42,40,.9); border-color: rgba(255,255,255,.13); }
.stream-top-back:active, .stream-top-icon:active { transform: scale(.96); }
.stream-session-card { min-width: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 15px; background: rgba(15,17,16,.72); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.stream-session-copy { min-width: 0; display: grid; gap: 2px; }
.stream-session-copy strong { max-width: min(34vw,420px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; letter-spacing: -.15px; }
.stream-session-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #929894; font-size: 7px; }
.stream-live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(78,219,137,.08); }
.stream-top-spacer { flex: 1; }
.stream-top-chip { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 15px; background: rgba(15,17,16,.72); border: 1px solid rgba(255,255,255,.08); color: #d8dcd8; font-size: 8px; font-weight: 800; white-space: nowrap; backdrop-filter: blur(18px); }
.stream-top-chip i { color: var(--yellow); }
.stream-top-chip .nana-icon { width: 20px; height: 20px; }
.stream-end-btn { color: #ff8d8d; }
.stream-hud { position: absolute; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px,calc(100% - 40px)); min-height: 58px; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 20px; background: rgba(14,16,15,.78); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 18px 60px rgba(0,0,0,.34); backdrop-filter: blur(22px); transition: opacity .2s ease,transform .2s ease,visibility .2s ease; }
.stream-hud-status { min-width: 0; flex: 1; display: flex; align-items: center; gap: 4px; }
.hud-stat { min-width: 0; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; color: #d7dad7; font-size: 8px; font-weight: 700; white-space: nowrap; }
.hud-stat i { color: #8d938e; font-size: 14px; }
.hud-stat span { overflow: hidden; text-overflow: ellipsis; }
.hud-stat.is-live i { color: var(--yellow); }
.stream-input-mode { height:44px; min-width:154px; padding:0 10px; display:flex; align-items:center; gap:8px; border-radius:14px; background:rgba(255,255,255,.045); color:#d7dad7; }
.stream-input-mode i { flex:0 0 auto; color:var(--yellow); font-size:14px; }
.stream-input-mode select { min-width:0; width:100%; border:0; outline:0; background:transparent; color:#f3f5f2; font:700 8px/1 inherit; cursor:pointer; }
.stream-input-mode select option { background:#1b1e1c; color:#f3f5f2; }
.stream-input-mode select option:disabled { color:#777d79; }
.hud-divider { width: 1px; height: 28px; margin: 0 3px; background: rgba(255,255,255,.09); }
.stream-hud-actions { display: flex; align-items: center; gap: 5px; }
.hud-btn { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 14px; display: grid; place-items: center; background: transparent; color: #aeb3af; font-size: 14px; cursor: pointer; transition: background .16s ease,color .16s ease,transform .16s ease; }
.hud-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.hud-btn:active { transform: scale(.95); }
.hud-btn.primary-control { background: var(--yellow); color: #282204; }
.hud-btn.primary-control:hover { background: #ffe36c; color: #201b04; }
.stream-stage.hud-hidden .stream-hud { opacity: 0; visibility: hidden; transform: translate(-50%,14px); pointer-events: none; }
.stream-edge-zone { position: absolute; z-index: 14; right: 0; top: 50%; width: 18px; height: 270px; transform: translateY(-50%); display: flex; align-items: center; justify-content: flex-end; pointer-events: none; opacity: 0; transition: width .2s ease,opacity .18s ease; }
.stream-stage.hud-hidden .stream-edge-zone { pointer-events: auto; opacity: 1; }
.stream-edge-handle { position: absolute; right: 0; top: 50%; width: 7px; height: 74px; transform: translateY(-50%); border-radius: 8px 0 0 8px; background: rgba(255,255,255,.16); opacity: 0; transition: opacity .16s ease,width .16s ease,background .16s ease; }
.stream-stage.hud-hidden .stream-edge-zone:hover .stream-edge-handle,
.stream-stage.hud-hidden .stream-edge-zone:focus-within .stream-edge-handle,
.stream-stage.hud-hidden .stream-edge-zone.edge-peek .stream-edge-handle { width: 9px; opacity: 1; background: rgba(255,255,255,.26); }
.stream-edge-actions { position: absolute; right: 12px; top: 50%; transform: translate(18px,-50%); width: 58px; padding: 6px; display: grid; gap: 5px; border-radius: 18px; background: rgba(14,16,15,.72); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 16px 48px rgba(0,0,0,.3); backdrop-filter: blur(22px); opacity: 0; visibility: hidden; transition: opacity .18s ease,transform .18s ease,visibility .18s ease; }
.stream-stage.hud-hidden .stream-edge-zone:hover,
.stream-stage.hud-hidden .stream-edge-zone:focus-within,
.stream-stage.hud-hidden .stream-edge-zone.edge-peek { width: 86px; }
.stream-stage.hud-hidden .stream-edge-zone:hover .stream-edge-actions,
.stream-stage.hud-hidden .stream-edge-zone:focus-within .stream-edge-actions,
.stream-stage.hud-hidden .stream-edge-zone.edge-peek .stream-edge-actions { opacity: 1; visibility: visible; transform: translate(0,-50%); }
.edge-btn { width: 46px; height: 46px; border: 0; border-radius: 14px; display: grid; place-items: center; background: transparent; color: #b7bbb7; font-size: 14px; cursor: pointer; transition: background .16s ease,color .16s ease,transform .16s ease; }
.edge-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.edge-btn:active { transform: scale(.95); }
.edge-btn.restore { background: var(--yellow); color: #282204; }
.edge-btn.danger { color: #ff8d8d; }
.stream-control-tip { position: absolute; z-index: 12; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 8px 12px; border-radius: 10px; background: rgba(10,12,11,.76); border: 1px solid rgba(255,255,255,.07); color: #a5aaa6; font-size: 7px; backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.stream-stage.hud-hidden .stream-control-tip { opacity: 1; animation: streamTipFade 3.2s ease forwards; }
@keyframes streamTipFade { 0%,68% { opacity: 1; } 100% { opacity: 0; } }
.mobile-nav { display: none; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --sidebar-w: 96px; }
  .sidebar-logo-button { width: 68px; height: 68px; }
  .sidebar-logo { width: 54px; height: 54px; }
  .topbar { gap: 14px; }
  .quick-play-btn > span:last-child { display: none; }
  .quick-play-btn { width: 48px; padding: 0; justify-content: center; background: transparent; }
  .quick-play-icon { width: 34px; height: 34px; }
  .profile-button { min-width: auto; }
  .profile-copy, .profile-button > i { display: none; }
  .home-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 930px) {
  :root { --sidebar-w: 84px; }
  .sidebar-logo-button { width: 62px; height: 62px; }
  .sidebar-logo { width: 50px; height: 50px; }
  .nav-capsule { width: 54px; margin-top: 18px; }
  .topbar { padding-inline: 22px; }
  .top-icon { display: none; }
  .top-divider { display: none; }
  .search-submit { display: none; }
  .home-layout { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --topbar-h: 78px; }
  .app-shell { display: block; padding-bottom: 72px; }
  .sidebar { display: none; }
  .main-column { grid-column: auto; }
  .topbar { height: var(--topbar-h); padding: 0 14px; gap: 9px; }
  .mobile-menu-btn { display: grid; }
  .search-shell { min-width: 0; height: 48px; padding: 2px; }
  .search-box { height: 44px; padding-inline: 12px; }
  .quick-play-btn { display: none; }
  .profile-button { padding: 0; min-width: 42px; }
  .profile-button .avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .main-content { padding: 22px 14px 42px; }
  .hero-card { min-height: 470px; border-radius: 27px; }
  .hero-art { inset: 42% 0 0 0; }
  .hero-copy-card { left: 17px; right: 17px; top: 17px; bottom: auto; width: auto; min-width: 0; padding: 28px; border-radius: 23px; }
  .hero-copy-card h1 { font-size: clamp(36px,11vw,52px); }
  .hero-dots { bottom: 12px; }
  .home-side { grid-template-columns: 1fr; }
  .feed-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .feed-title-row h2 { font-size: 27px; }
  .feed-tabs { width: 100%; overflow-x: auto; }
  .game-scroller { grid-auto-columns: minmax(230px,78vw); }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 45px; }
  .library-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .history-table { overflow-x: auto; }
  .history-row { min-width: 670px; }
  .game-modal-body { grid-template-columns: 1fr; }
  .modal-play { width: 100%; }
  .profile-menu { right: 12px; top: 68px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; height: 61px; padding: 6px; display: grid; grid-template-columns: repeat(4,1fr); border-radius: 20px; background: rgba(28,31,32,.94); border: 1px solid var(--line-strong); backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
  .mobile-nav-item { border: 0; border-radius: 15px; background: transparent; color: #818784; display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; font-size: 8px; }
  .mobile-nav-item i { font-size: 16px; }
  .mobile-nav-item.active { background: var(--yellow); color: #2b2405; }
}
@media (max-width: 500px) {
  .login-screen { padding: 16px; }
  .login-panel { padding: 32px 22px 27px; border-radius: 26px; }
  .login-brand { height: 82px; margin-bottom: 24px; }
  .brand-full-logo { width: 265px; max-width: none; }
  .topbar .mobile-menu-btn { display: none; }
  .search-shell { flex: 1; }
  .top-actions { gap: 0; }
  .library-grid { grid-template-columns: 1fr; }
  .game-card h3 { font-size: 14px; }
  .host-metrics { grid-template-columns: 1fr 1fr; }
  .wallet-head { align-items: center; }
  .toast-region { left: 12px; right: 12px; bottom: 82px; }
  .toast { min-width: 0; width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* CloudBanana v0.6 */
.nana-token-icon { display: inline-block; width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(255,193,17,.16)); }
.wallet-nana-icon { width: 42px; height: 42px; }
.nana-token-small { width: 18px; height: 18px; }
.nana-token-tiny { width: 16px; height: 16px; }
.nana-nav-button img { width: 25px; height: 25px; object-fit: contain; }
.nana-nav-button.active img { filter: brightness(.36) saturate(2); }
.mobile-nana-icon { width: 17px; height: 17px; object-fit: contain; }
.top-nana-btn { height: 48px; min-height: 48px; padding: 0 14px 0 8px; border: 1px solid rgba(255,211,56,.12); border-radius: 22px; display: inline-flex; align-items: center; gap: 7px; background: rgba(255,211,56,.07); color: #f6e8a6; cursor: pointer; font-size: 10px; font-weight: 900; }
.top-nana-btn img { width: 31px; height: 31px; object-fit: contain; }
.wallet-shop-link { width: 100%; min-height: 40px; margin-top: 14px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,211,56,.11); border-radius: 13px; background: rgba(255,211,56,.055); color: #eadb96; cursor: pointer; font-size: 9px; font-weight: 850; }

.home-v4 { display: grid; gap: 34px; }
.home-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.home-kicker { display: inline-block; color: var(--yellow); font-size: 8px; letter-spacing: 2.4px; font-weight: 900; text-transform: uppercase; }
.home-welcome h1 { margin: 8px 0 0; font-size: clamp(34px,4vw,52px); line-height: .95; letter-spacing: -2.5px; }
.home-welcome p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.home-host-pill { min-width: 185px; min-height: 55px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: #181a1b; }
.home-host-pill .status-dot { width: 8px; height: 8px; }
.home-host-pill div { display: grid; gap: 3px; }
.home-host-pill strong { font-size: 10px; }
.home-host-pill small { color: var(--muted); font-size: 8px; }

.home-showcase { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,340px); gap: 18px; align-items: stretch; }
.featured-game { min-height: 520px; position: relative; overflow: hidden; border-radius: 34px; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.featured-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(21,17,4,.16),transparent 55%); }
.featured-decoration { position: absolute; inset: 0; overflow: hidden; }
.featured-initials { position: absolute; right: 2%; bottom: -9%; font-size: clamp(220px,27vw,430px); line-height: .75; font-weight: 1000; letter-spacing: -28px; color: rgba(37,29,4,.76); transform: rotate(-5deg); text-shadow: -30px 24px 0 rgba(255,255,255,.1); }
.featured-ring { position: absolute; width: 420px; height: 420px; right: -90px; top: -120px; border-radius: 50%; border: 85px solid rgba(255,255,255,.15); }
.featured-block { position: absolute; width: 115px; height: 330px; right: 35%; top: 4%; border-radius: 40px; background: rgba(27,23,7,.6); transform: rotate(24deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.featured-copy-panel { position: absolute; left: 28px; top: 28px; bottom: 66px; width: min(52%,560px); min-width: 410px; padding: clamp(34px,4vw,52px); border-radius: 30px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg,rgba(74,58,10,.52),rgba(52,41,8,.25)); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(7px); color: #fffbe8; }
.featured-kicker { font-size: 9px; letter-spacing: 2.8px; font-weight: 900; color: rgba(255,255,255,.75); }
.featured-copy-panel h2 { margin: 15px 0 10px; font-size: clamp(42px,5vw,72px); line-height: .9; letter-spacing: -4px; }
.featured-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: rgba(255,255,255,.76); font-size: 9px; }
.featured-meta span { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 9px; background: rgba(22,18,5,.18); border: 1px solid rgba(255,255,255,.08); }
.featured-copy-panel p { max-width: 470px; margin: 17px 0 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.62; }
.featured-actions { margin-top: 24px; display: flex; gap: 9px; flex-wrap: wrap; }
.featured-primary, .featured-secondary { min-height: 46px; padding: 0 18px; border-radius: 14px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 10px; font-weight: 900; }
.featured-primary { border: 0; background: #fffdf3; color: #352b06; }
.featured-secondary { border: 1px solid rgba(255,255,255,.12); background: rgba(29,24,6,.18); color: #fffbe6; }
.featured-bottom { position: absolute; left: 28px; right: 28px; bottom: 18px; display: flex; gap: 16px; flex-wrap: wrap; color: rgba(49,39,5,.68); font-size: 8px; font-weight: 850; }
.featured-bottom span { display: inline-flex; align-items: center; gap: 5px; }
.home-utility-stack { display: grid; gap: 18px; }
.home-utility-stack .wallet-card { min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.quick-status-card { min-height: 280px; padding: 20px; display: flex; flex-direction: column; border-radius: 28px; background: #17191a; border: 1px solid var(--line); }
.quick-status-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.quick-status-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--yellow-soft); color: var(--yellow); }
.quick-status-head div { min-width: 0; display: grid; gap: 3px; }
.quick-status-head strong { font-size: 11px; }
.quick-status-head span:not(.status-badge):not(.quick-status-icon) { color: var(--muted); font-size: 8px; }
.quick-status-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-status-grid div { min-height: 66px; padding: 11px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; background: #202324; border: 1px solid rgba(255,255,255,.025); }
.quick-status-grid span { color: var(--muted); font-size: 8px; }
.quick-status-grid strong { font-size: 10px; }
.quick-library-link { margin-top: auto; min-height: 41px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; background: var(--yellow); color: #2b2405; cursor: pointer; font-size: 9px; font-weight: 900; }
.home-section { display: grid; gap: 17px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.home-section-head h2 { margin: 5px 0 0; font-size: 29px; letter-spacing: -1.25px; }
.continue-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.continue-game { min-width: 0; min-height: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto auto; align-items: center; gap: 10px; background: #17191a; color: var(--text); text-align: left; cursor: pointer; }
.continue-art { width: 54px; height: 54px; border-radius: 13px; overflow: hidden; display: grid; place-items: end; position: relative; color: rgba(43,34,4,.82); font-weight: 1000; font-size: 18px; letter-spacing: -2px; }
.continue-art span { padding: 0 5px 3px 0; }
.continue-copy { min-width: 0; display: grid; gap: 4px; }
.continue-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.continue-copy small { color: var(--muted); font-size: 8px; }
.continue-cost { display: none; align-items: center; gap: 4px; color: #cfd2cf; font-size: 8px; font-weight: 800; }
.continue-game > i { color: #686e6b; }
.home-game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
@media (hover:hover) and (pointer:fine) { .continue-game:hover { border-color: rgba(255,211,56,.2); background: #1b1e1f; } }

.game-page { display: grid; gap: 18px; }
.game-page-topbar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
.game-back-btn, .game-page-favorite { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; display: inline-flex; align-items: center; gap: 7px; background: #181a1b; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 850; }
.game-page-favorite.active { color: var(--yellow); border-color: rgba(255,211,56,.18); background: var(--yellow-softer); }
.game-page-hero { min-height: 560px; position: relative; overflow: hidden; border-radius: 34px; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.game-page-art { position: absolute; inset: 0; overflow: hidden; }
.game-page-initials { position: absolute; right: 2%; bottom: -7%; font-size: clamp(260px,32vw,520px); line-height: .72; font-weight: 1000; letter-spacing: -36px; color: rgba(37,29,4,.77); transform: rotate(-5deg); text-shadow: -32px 26px 0 rgba(255,255,255,.11); }
.game-page-orbit { position: absolute; border-radius: 50%; border: 70px solid rgba(255,255,255,.13); }
.game-page-orbit.one { width: 420px; height: 420px; right: -110px; top: -140px; }
.game-page-orbit.two { width: 250px; height: 250px; right: 28%; bottom: -110px; border-width: 46px; border-color: rgba(34,27,5,.17); }
.game-page-copy { position: absolute; left: 34px; bottom: 74px; width: min(55%,720px); min-width: 440px; padding: clamp(34px,4vw,54px); border-radius: 30px; background: linear-gradient(145deg,rgba(65,52,12,.5),rgba(44,35,8,.24)); border: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(8px); color: #fffbe8; }
.game-page-status { display: inline-flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1.6px; font-weight: 900; }
.game-page-copy h1 { margin: 13px 0 10px; font-size: clamp(48px,6.2vw,92px); line-height: .88; letter-spacing: -5.5px; }
.game-page-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.game-page-tags span { min-height: 29px; padding: 0 9px; border-radius: 9px; display: inline-flex; align-items: center; gap: 5px; background: rgba(31,25,6,.17); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.79); font-size: 8px; font-weight: 800; }
.game-page-copy p { max-width: 620px; margin: 17px 0 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.65; }
.game-page-actions { margin-top: 24px; display: flex; gap: 9px; flex-wrap: wrap; }
.game-page-play, .game-page-secondary { min-height: 48px; padding: 0 18px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-size: 10px; font-weight: 900; }
.game-page-play { border: 0; background: #fffdf3; color: #332a06; }
.game-page-play.wide { width: 100%; background: var(--yellow); color: #292204; }
.game-page-secondary { border: 1px solid rgba(255,255,255,.12); background: rgba(24,20,5,.16); color: #fffbe6; }
.game-page-security { position: absolute; left: 34px; right: 34px; bottom: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: rgba(51,40,5,.72); font-size: 8px; font-weight: 850; }
.game-page-security span { display: inline-flex; align-items: center; gap: 5px; }
.game-page-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.game-page-stats div { min-height: 78px; padding: 15px 17px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 18px; background: #17191a; border: 1px solid var(--line); }
.game-page-stats span { color: var(--muted); font-size: 8px; }
.game-page-stats strong { font-size: 12px; }
.game-page-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); gap: 18px; align-items: start; }
.game-page-main { display: grid; gap: 18px; }
.game-about > p { margin: 0; color: #c8cbc8; font-size: 11px; line-height: 1.75; }
.game-id-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-id-grid div { min-height: 64px; padding: 11px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; background: #202324; }
.game-id-grid span { color: var(--muted); font-size: 8px; }
.game-id-grid strong { font-size: 10px; }
.game-media-section { display: grid; gap: 14px; }
.game-media-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; }
.game-media-grid > div { min-height: 180px; position: relative; overflow: hidden; border-radius: 21px; display: grid; place-items: center; color: rgba(45,36,6,.74); font-size: 58px; font-weight: 1000; letter-spacing: -5px; }
.game-media-grid > div::after { content: ""; position: absolute; width: 130px; height: 130px; right: -35px; top: -45px; border-radius: 50%; border: 26px solid rgba(255,255,255,.14); }
.game-media-grid i { font-size: 38px; }
.game-page-side { display: grid; gap: 18px; }
.session-card { padding: 22px; border-radius: 25px; background: #17191a; border: 1px solid var(--line); }
.session-card h3 { margin: 7px 0 17px; font-size: 22px; letter-spacing: -1px; }
.session-cost { min-height: 88px; padding: 14px; display: flex; align-items: center; gap: 13px; border-radius: 18px; background: linear-gradient(135deg,rgba(255,211,56,.12),rgba(255,184,13,.045)); border: 1px solid rgba(255,211,56,.09); }
.session-nana-icon { width: 56px; height: 56px; }
.session-cost div { display: grid; gap: 3px; }
.session-cost strong { font-size: 25px; letter-spacing: -1px; }
.session-cost span { color: var(--muted); font-size: 8px; }
.session-balance { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 9px; }
.session-balance span { color: var(--muted); }
.session-card .wide { margin-top: 16px; }
.related-list { display: grid; gap: 8px; }
.related-panel .continue-game { grid-template-columns: 48px minmax(0,1fr) auto; min-height: 66px; padding: 8px; }
.related-panel .continue-art { width: 48px; height: 48px; }
.related-panel .continue-cost { display: none; }

.nana-shop-page { display: grid; gap: 25px; }
.nana-shop-heading { align-items: center; }
.shop-heading-icon { width: 94px; height: 94px; }
.nana-shop-top { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 18px; }
.nana-shop-top .wallet-card { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.nana-store-banner { min-height: 280px; position: relative; overflow: hidden; padding: 34px; display: flex; align-items: center; gap: 28px; border-radius: 30px; background: linear-gradient(135deg,#ffd83e,#ffb60a); color: #2e2606; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.nana-store-banner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; top: -120px; border-radius: 50%; border: 60px solid rgba(255,255,255,.15); }
.nana-store-banner > div:not(.nana-store-art) { position: relative; z-index: 2; }
.nana-store-art { width: 170px; min-width: 170px; display: grid; place-items: center; position: relative; z-index: 2; }
.nana-store-giant { width: 150px; height: 150px; filter: drop-shadow(0 22px 28px rgba(80,55,0,.18)); }
.nana-store-banner .home-kicker { color: rgba(54,43,5,.66); }
.nana-store-banner h2 { margin: 7px 0 8px; font-size: clamp(29px,3vw,43px); letter-spacing: -2px; }
.nana-store-banner p { margin: 0; max-width: 520px; color: rgba(46,38,6,.7); font-size: 10px; line-height: 1.6; }
.store-preview-badge { margin-top: 16px; min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; background: rgba(47,38,5,.11); font-size: 8px; font-weight: 900; }
.nana-packages-section { display: grid; gap: 15px; }
.store-note { color: var(--muted); font-size: 8px; }
.nana-package-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.nana-package { min-height: 340px; position: relative; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 25px; background: #17191a; border: 1px solid var(--line); }
.nana-package.featured { border-color: rgba(255,211,56,.28); background: linear-gradient(160deg,rgba(255,211,56,.095),#17191a 48%); }
.package-badge { position: absolute; top: 13px; right: 13px; padding: 5px 7px; border-radius: 8px; background: var(--yellow); color: #302705; font-size: 7px; font-weight: 950; letter-spacing: .8px; }
.package-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--yellow-soft); }
.package-nana-icon { width: 48px; height: 48px; }
.package-label { margin-top: 16px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 850; }
.package-amount { margin-top: 4px; font-size: 35px; letter-spacing: -2px; }
.package-nanas { color: #d8dbd7; font-size: 9px; font-weight: 800; }
.package-bonus { margin-top: 10px; padding: 5px 7px; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow); font-size: 8px; font-weight: 850; }
.muted-bonus { background: #202324; color: var(--muted); }
.nana-package p { margin: 12px 0 0; color: var(--muted); font-size: 9px; }
.package-price { margin-top: auto; padding-top: 18px; font-size: 18px; font-weight: 900; }
.package-buy { width: 100%; min-height: 43px; margin-top: 10px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 13px; background: var(--yellow); color: #2d2505; cursor: pointer; font-size: 9px; font-weight: 900; }
.nana-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.empty-purchases { min-height: 140px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-purchases i { color: var(--yellow); font-size: 25px; }
.empty-purchases strong { margin-top: 9px; color: var(--text); font-size: 11px; }
.empty-purchases span { margin-top: 4px; max-width: 310px; font-size: 8px; line-height: 1.5; }

@media (max-width: 1320px) {
  .continue-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .continue-cost { display: inline-flex; }
  .home-showcase { grid-template-columns: minmax(0,1fr) 300px; }
  .featured-copy-panel { width: min(58%,520px); }
}
@media (max-width: 1120px) {
  .home-showcase { grid-template-columns: 1fr; }
  .home-utility-stack { grid-template-columns: 1fr 1fr; }
  .home-utility-stack .wallet-card, .quick-status-card { min-height: 240px; }
  .home-game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .game-page-content { grid-template-columns: 1fr; }
  .game-page-side { grid-template-columns: 1fr 1fr; }
  .nana-package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 930px) {
  .top-nana-btn span { display: none; }
  .top-nana-btn { width: 48px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
  .top-nana-btn img { width: 30px; height: 30px; }
  .featured-copy-panel { width: min(68%,560px); }
  .continue-grid { grid-template-columns: 1fr 1fr; }
  .home-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-page-copy { width: min(72%,620px); }
  .game-page-stats { grid-template-columns: 1fr 1fr; }
  .nana-shop-top { grid-template-columns: 1fr; }
  .nana-shop-top .wallet-card { min-height: auto; }
}
@media (max-width: 720px) {
  .top-nana-btn { display: none; }
  .mobile-nav { grid-template-columns: repeat(5,1fr); }
  .mobile-nav-item img { filter: none; }
  .mobile-nav-item.active img { filter: brightness(.35) saturate(1.4); }
  .home-welcome { align-items: flex-start; flex-direction: column; }
  .home-host-pill { width: 100%; }
  .featured-game { min-height: 600px; border-radius: 27px; }
  .featured-decoration { inset: 42% 0 0; }
  .featured-initials { font-size: 210px; right: -2%; bottom: -4%; }
  .featured-copy-panel { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; min-width: 0; padding: 27px; border-radius: 23px; }
  .featured-copy-panel h2 { font-size: clamp(42px,13vw,64px); }
  .featured-bottom { left: 19px; right: 19px; bottom: 18px; gap: 9px; }
  .home-utility-stack { grid-template-columns: 1fr; }
  .continue-grid { grid-template-columns: 1fr; }
  .continue-cost { display: inline-flex; }
  .home-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .home-game-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-page-hero { min-height: 650px; border-radius: 27px; }
  .game-page-copy { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; min-width: 0; padding: 27px; border-radius: 23px; }
  .game-page-copy h1 { font-size: clamp(46px,14vw,70px); }
  .game-page-art { inset: 45% 0 0; }
  .game-page-initials { font-size: 225px; bottom: -4%; right: -2%; }
  .game-page-security { left: 18px; right: 18px; bottom: 18px; }
  .game-page-stats { grid-template-columns: 1fr 1fr; }
  .game-page-side { grid-template-columns: 1fr; }
  .game-media-grid { grid-template-columns: 1fr; }
  .game-media-grid > div { min-height: 150px; }
  .nana-shop-heading { align-items: flex-start; }
  .shop-heading-icon { width: 70px; height: 70px; }
  .nana-store-banner { align-items: flex-start; flex-direction: column; padding: 26px; }
  .nana-store-art { width: auto; min-width: 0; }
  .nana-store-giant { width: 110px; height: 110px; }
  .nana-package-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nana-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .home-game-grid { grid-template-columns: 1fr; }
  .game-page-stats { grid-template-columns: 1fr 1fr; }
  .game-id-grid { grid-template-columns: 1fr; }
  .nana-package-grid { grid-template-columns: 1fr; }
  .nana-package { min-height: 315px; }
}

.nana-outline-icon { width: 23px; height: 23px; display: block; background: currentColor; -webkit-mask: url("https://i.ibb.co/3yMRBx3Z/nana-outline2.png") center / contain no-repeat; mask: url("https://i.ibb.co/3yMRBx3Z/nana-outline2.png") center / contain no-repeat; }
.nana-nav-button .nana-outline-icon { width: 24px; height: 24px; }
.mobile-nav-item .mobile-nana-icon { width: 18px; height: 18px; }
.mobile-nav-item.active .nana-outline-icon { background: #2b2405; }
.payment-brand-tile { width: 46px; height: 30px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.payment-brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.payment-brand-generic { color: #7e8581; font-size: 23px; }
.nana-shop-v5 { gap: 30px; }
.nana-store-hero { min-height: 390px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); align-items: center; border-radius: 34px; background: radial-gradient(circle at 82% 18%,rgba(255,255,255,.27),transparent 27%), linear-gradient(135deg,#ffd93f 0%,#ffc61b 46%,#ffb208 100%); color: #2c2505; isolation: isolate; }
.nana-store-hero::before { content: ""; position: absolute; width: 360px; height: 360px; left: -150px; bottom: -220px; border: 64px solid rgba(255,255,255,.12); border-radius: 50%; z-index: -1; }
.nana-store-hero-copy { padding: 48px clamp(30px,4.5vw,68px); position: relative; z-index: 4; }
.store-pill { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 11px; background: rgba(52,43,6,.1); font-size: 8px; font-weight: 950; letter-spacing: 1.4px; }
.nana-store-hero h1 { max-width: 720px; margin: 16px 0 13px; font-size: clamp(42px,5.1vw,72px); line-height: .94; letter-spacing: -4px; }
.nana-store-hero p { max-width: 650px; margin: 0; color: rgba(45,37,5,.68); font-size: 11px; line-height: 1.7; }
.store-hero-actions { margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-scroll-packs { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 14px; background: #292306; color: #fff2b2; cursor: pointer; font-size: 10px; font-weight: 900; }
.store-scroll-packs i { color: var(--yellow); }
.nana-store-hero .store-preview-badge { margin: 0; background: rgba(46,38,5,.09); }
.nana-store-hero-art { min-height: 390px; position: relative; display: grid; place-items: center; overflow: hidden; }
.nana-orbit { position: absolute; border: 1px solid rgba(55,43,4,.13); border-radius: 50%; }
.nana-orbit-one { width: 310px; height: 310px; }
.nana-orbit-two { width: 445px; height: 445px; }
.nana-pile { position: relative; width: 100%; height: 100%; }
.nana-pile img { position: absolute; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(83,61,0,.14)); transform-origin: 50% 100%; }
.hero-nana-pile { width: 360px; height: 300px; z-index: 3; }
.hero-nana-pile img { width: 96px; height: 96px; }
.nana-pile img:nth-child(1) { left: 6%; bottom: 8%; transform: rotate(-22deg); }
.nana-pile img:nth-child(2) { left: 24%; bottom: 2%; transform: rotate(-10deg); }
.nana-pile img:nth-child(3) { left: 42%; bottom: 4%; transform: rotate(7deg); }
.nana-pile img:nth-child(4) { left: 61%; bottom: 10%; transform: rotate(17deg); }
.nana-pile img:nth-child(5) { left: 16%; bottom: 29%; transform: rotate(-16deg); }
.nana-pile img:nth-child(6) { left: 36%; bottom: 31%; transform: rotate(-3deg); }
.nana-pile img:nth-child(7) { left: 56%; bottom: 34%; transform: rotate(12deg); }
.nana-pile img:nth-child(8) { left: 27%; bottom: 55%; transform: rotate(-7deg); }
.nana-pile img:nth-child(9) { left: 48%; bottom: 58%; transform: rotate(8deg); }
.nana-pile img:nth-child(10) { left: 68%; bottom: 52%; transform: rotate(20deg); }
.nana-shop-dashboard { display: grid; grid-template-columns: minmax(300px,1.2fr) minmax(240px,.8fr) minmax(240px,.8fr); gap: 14px; }
.nana-shop-dashboard .wallet-card { min-height: 190px; }
.nana-balance-insight, .nana-secure-card { min-height: 190px; padding: 22px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 25px; background: #17191a; }
.insight-icon, .secure-card-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; background: var(--yellow-soft); }
.insight-nana-icon { width: 47px; height: 47px; }
.secure-card-icon i { color: var(--yellow); font-size: 22px; }
.nana-balance-insight > div:last-child, .nana-secure-card > div { display: grid; gap: 5px; }
.nana-balance-insight span, .nana-secure-card span { color: var(--muted); font-size: 7px; letter-spacing: 1.3px; font-weight: 900; }
.nana-balance-insight strong, .nana-secure-card strong { font-size: 18px; letter-spacing: -.6px; }
.nana-balance-insight p, .nana-secure-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.nana-pack-head > div > p { max-width: 560px; margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.store-note { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: #17191a; }
.nana-package-grid-v5 { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; }
.nana-package-v5 { min-height: 470px; padding: 14px; overflow: hidden; }
.nana-package-v5.featured { transform: translateY(-7px); border-color: rgba(255,211,56,.36); box-shadow: 0 22px 50px rgba(0,0,0,.22); }
.nana-package-v5.premium { background: radial-gradient(circle at 80% 5%,rgba(255,211,56,.16),transparent 34%), linear-gradient(160deg,#1c1f20,#151718 62%); border-color: rgba(255,211,56,.2); }
.nana-package-v5 .package-badge { z-index: 5; top: 12px; right: 12px; }
.package-visual { min-height: 172px; position: relative; overflow: hidden; border-radius: 19px; background: radial-gradient(circle at 50% 72%,rgba(255,211,56,.18),transparent 46%), #202324; }
.bundle-art { width: 100%; height: 100%; position: absolute; inset: 0; display: grid; place-items: center; }
.bundle-art > img { width: min(86%,230px); height: min(86%,160px); object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.24)); }
.bundle-art-small > img { width: min(68%,175px); height: min(68%,125px); }
.bundle-art-large > img { width: min(94%,250px); height: min(94%,170px); }
.bundle-art-stash img { position: absolute; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.24)); }
.bundle-stash-sack { width: 58%; height: 78%; right: 8%; bottom: 3%; z-index: 3; }
.bundle-stash-box { width: 47%; height: 64%; left: 4%; bottom: 1%; z-index: 2; transform: rotate(-4deg); }
.bundle-stash-pile { width: 42%; height: 46%; left: 30%; bottom: 0; z-index: 4; }
.package-copy { padding: 15px 5px 0; }
.package-total { margin-top: 5px; display: flex; align-items: baseline; gap: 7px; }
.package-total strong { font-size: 29px; letter-spacing: -1.5px; }
.package-total span { color: #d4d7d4; font-size: 9px; font-weight: 850; }
.package-copy p { margin: 8px 0 0; min-height: 40px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.package-breakdown { margin-top: 11px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.package-breakdown > div { min-width: 0; padding: 8px 7px; display: grid; gap: 3px; border-radius: 10px; background: #202324; }
.package-breakdown span { color: var(--muted); font-size: 6px; }
.package-breakdown strong { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bonus-value { color: var(--yellow) !important; }
.package-playtime { margin: 9px 4px 0; display: flex; align-items: center; gap: 7px; color: #b4b9b6; font-size: 7px; }
.package-playtime i { color: var(--yellow); }
.package-purchase-row { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; gap: 9px; }
.package-purchase-row .package-price { margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; }
.package-purchase-row .package-price span { color: var(--muted); font-size: 6px; }
.package-purchase-row .package-price strong { font-size: 16px; }
.package-purchase-row .package-buy { width: auto; min-width: 82px; margin: 0; }
.nana-payment-preview { min-height: 360px; padding: 34px; display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); align-items: center; gap: 35px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(circle at 12% 15%,rgba(255,211,56,.08),transparent 25%), #17191a; }
.payment-preview-copy h2 { max-width: 580px; margin: 8px 0 10px; font-size: clamp(29px,3.5vw,46px); letter-spacing: -2px; line-height: 1; }
.payment-preview-copy > p { max-width: 570px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.accepted-brands { margin-top: 24px; display: grid; gap: 8px; }
.accepted-brands > span { color: var(--muted); font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
.accepted-brands > div { display: flex; gap: 7px; flex-wrap: wrap; }
.accepted-brands .payment-brand-tile, .checkout-brand-strip .payment-brand-tile { width: 46px; height: 30px; }
.payment-preview-card { min-height: 230px; padding: 25px; position: relative; overflow: hidden; border-radius: 25px; background: linear-gradient(145deg,#f8cf2e,#f1aa00); color: #2c2404; box-shadow: 0 30px 55px rgba(0,0,0,.24); transform: rotate(2deg); }
.payment-preview-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border: 46px solid rgba(255,255,255,.18); border-radius: 50%; }
.fake-card-top, .fake-card-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fake-card-top > span { font-size: 10px; font-weight: 950; }
.fake-card-nana { width: 44px; height: 44px; }
.fake-card-number { margin: 47px 0 34px; position: relative; z-index: 2; font-size: 17px; font-weight: 850; letter-spacing: 1px; }
.fake-card-bottom > div { display: grid; gap: 4px; }
.fake-card-bottom span { font-size: 6px; opacity: .58; font-weight: 900; }
.fake-card-bottom strong { font-size: 8px; }
.fake-card-brand { width: 50px; height: 31px; }
.checkout-page { display: grid; gap: 20px; }
.checkout-topbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.checkout-back { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: #181a1b; color: #dedfdd; cursor: pointer; font-size: 9px; font-weight: 850; }
.checkout-steps { display: flex; align-items: center; gap: 8px; color: #626864; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 900; }
.checkout-steps span.active { color: var(--yellow); }
.checkout-steps b { color: inherit; font-size: 8px; }
.checkout-steps i { font-size: 11px; }
.checkout-step { color: var(--yellow); font-size: 8px; letter-spacing: 1.5px; font-weight: 950; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 18px; align-items: start; }
.checkout-main-card, .checkout-summary { border: 1px solid var(--line); border-radius: 30px; background: #17191a; }
.checkout-main-card { padding: clamp(22px,3.5vw,42px); }
.checkout-heading h1 { margin: 6px 0 7px; font-size: clamp(34px,4vw,52px); letter-spacing: -2.5px; }
.checkout-heading p { margin: 0; max-width: 650px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.checkout-brand-strip { margin: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout-brand-strip > span { color: var(--muted); font-size: 8px; font-weight: 850; }
.checkout-brand-strip > div { display: flex; gap: 6px; flex-wrap: wrap; }
.checkout-card-preview { min-height: 270px; max-width: 560px; margin: 0 auto 24px; padding: 27px; position: relative; overflow: hidden; border-radius: 27px; background: linear-gradient(145deg,#f7d33c,#ecac08); color: #2c2504; box-shadow: 0 25px 60px rgba(0,0,0,.28); }
.card-preview-glow { position: absolute; width: 310px; height: 310px; right: -130px; top: -150px; border: 60px solid rgba(255,255,255,.16); border-radius: 50%; }
.card-preview-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 950; }
.checkout-preview-nana { width: 49px; height: 49px; }
.card-preview-chip { width: 42px; height: 30px; margin-top: 30px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; padding: 4px; border-radius: 8px; background: rgba(43,35,4,.15); }
.card-preview-chip span { border-radius: 3px; background: rgba(255,255,255,.27); }
.card-preview-number { margin-top: 25px; position: relative; z-index: 2; min-height: 25px; font-size: clamp(16px,2.3vw,22px); font-weight: 900; letter-spacing: 1.2px; }
.card-preview-bottom { margin-top: 24px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 22px; }
.card-preview-bottom > div:not(.card-preview-brand) { display: grid; gap: 4px; }
.card-preview-bottom span { font-size: 6px; font-weight: 900; opacity: .58; }
.card-preview-bottom strong { font-size: 9px; }
.card-preview-brand-logo { width: 58px; height: 34px; }
.checkout-form { max-width: 680px; margin: 0 auto; display: grid; gap: 13px; }
.checkout-field { display: grid; gap: 7px; min-width: 0; }
.checkout-field > span { color: #c9cdca; font-size: 8px; font-weight: 850; }
.checkout-field input, .checkout-field select { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 13px; outline: 0; padding: 0 13px; background: #111314; color: var(--text); font-size: 10px; }
.checkout-field input:focus, .checkout-field select:focus { border-color: rgba(255,211,56,.38); background: #131617; }
.checkout-field input::placeholder { color: #545a57; }
.checkout-field small { min-height: 13px; color: var(--muted); font-size: 7px; }
.checkout-field small.valid { color: var(--green); }
.checkout-field small.invalid { color: #ff9598; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.checkout-input-wrap { position: relative; }
.checkout-input-wrap input { padding-right: 72px; }
.detected-brand { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 48px; height: 30px; display: grid; place-items: center; border-radius: 0; background: transparent; overflow: visible; }
.detected-brand .payment-brand-tile { width: 46px; height: 30px; }
.checkout-primary { min-height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 15px; background: var(--yellow); color: #2b2304; cursor: pointer; font-size: 10px; font-weight: 950; }
.checkout-submit { margin-top: 5px; justify-content: space-between; }
.checkout-submit strong { font-size: 11px; }
.checkout-privacy { display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--muted); font-size: 7px; line-height: 1.5; text-align: center; }
.checkout-privacy i { margin-top: 1px; color: var(--green); }
.checkout-summary { padding: 25px; position: sticky; top: calc(var(--topbar-h) + 18px); overflow: hidden; }
.summary-pack-art { height: 220px; margin: -10px -10px 18px; position: relative; overflow: hidden; border-radius: 21px; background: radial-gradient(circle at 50% 75%,rgba(255,211,56,.18),transparent 45%), #202324; }
.summary-bundle-art { position: absolute; inset: 0; }
.summary-bundle-art.bundle-art > img { width: min(82%,300px); height: min(86%,195px); }
.summary-bundle-art .bundle-stash-sack { width: 54%; height: 77%; }
.summary-bundle-art .bundle-stash-box { width: 45%; height: 61%; }
.summary-bundle-art .bundle-stash-pile { width: 39%; height: 43%; }
.checkout-summary h2 { margin: 7px 0 5px; font-size: 27px; letter-spacing: -1.2px; }
.checkout-summary > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.summary-total-nanas { margin: 19px 0; display: flex; align-items: baseline; gap: 8px; }
.summary-total-nanas strong { font-size: 34px; letter-spacing: -1.7px; }
.summary-total-nanas span { color: var(--muted); font-size: 9px; font-weight: 850; }
.summary-lines { display: grid; gap: 8px; }
.summary-lines > div, .summary-price { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 8px; }
.summary-lines span, .summary-price span { color: var(--muted); }
.summary-price { min-height: 58px; border-bottom: 0; }
.summary-price strong { font-size: 20px; }
.summary-balance { padding: 13px; display: grid; gap: 5px; border-radius: 15px; background: var(--yellow-softer); }
.summary-balance span { color: var(--muted); font-size: 7px; }
.summary-balance strong { font-size: 10px; }
.summary-balance i { margin: 2px 0; color: var(--yellow); font-size: 10px; }
.summary-note { margin-top: 11px; display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.summary-note i { color: var(--yellow); }
.checkout-success { min-height: 610px; max-width: 850px; width: 100%; margin: 0 auto; padding: 60px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 50% 10%,rgba(255,211,56,.11),transparent 33%), #17191a; }
.checkout-success-icon { width: 74px; height: 74px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 23px; background: var(--yellow); color: #302704; font-size: 27px; box-shadow: 0 18px 38px rgba(255,193,17,.12); }
.checkout-success h1 { margin: 9px 0 10px; font-size: clamp(37px,5vw,58px); line-height: .98; letter-spacing: -3px; }
.checkout-success > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.checkout-success-pack { width: min(100%,540px); min-height: 150px; margin: 30px 0 20px; padding: 14px 18px; display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 15px; text-align: left; border-radius: 21px; background: #202324; }
.success-bundle-art { width: 165px; height: 120px; position: relative; }
.success-bundle-art.bundle-art > img { width: 150px; height: 112px; }
.success-bundle-art .bundle-stash-sack { width: 55%; height: 75%; }
.success-bundle-art .bundle-stash-box { width: 45%; height: 58%; }
.success-bundle-art .bundle-stash-pile { width: 38%; height: 42%; }
.checkout-success-pack > div:last-child { display: grid; gap: 4px; }
.checkout-success-pack span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.checkout-success-pack strong { font-size: 20px; }
.checkout-success-pack small { color: var(--muted); font-size: 8px; }
.checkout-success .checkout-primary { min-width: 210px; }

@media (max-width: 1440px) {
  .nana-package-grid-v5 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nana-package-v5.featured { transform: none; }
}
@media (max-width: 1120px) {
  .nana-store-hero { grid-template-columns: 1fr; }
  .nana-store-hero-art { min-height: 300px; }
  .nana-shop-dashboard { grid-template-columns: 1fr 1fr; }
  .nana-shop-dashboard > div:first-child { grid-column: 1 / -1; }
  .nana-payment-preview { grid-template-columns: 1fr; }
  .payment-preview-card { width: min(100%,520px); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 760px) {
  .nana-store-hero-copy { padding: 32px 24px; }
  .nana-store-hero h1 { letter-spacing: -2.7px; }
  .nana-store-hero-art { min-height: 250px; }
  .hero-nana-pile { width: 300px; height: 245px; }
  .hero-nana-pile img { width: 80px; height: 80px; }
  .nana-shop-dashboard { grid-template-columns: 1fr; }
  .nana-shop-dashboard > div:first-child { grid-column: auto; }
  .nana-package-grid-v5 { grid-template-columns: 1fr 1fr; }
  .nana-payment-preview { padding: 24px; }
  .payment-preview-card { min-height: 215px; }
  .checkout-topbar { align-items: flex-start; flex-direction: column; }
  .checkout-steps { width: 100%; justify-content: space-between; }
  .checkout-main-card, .checkout-summary { border-radius: 24px; }
  .checkout-main-card { padding: 20px; }
  .checkout-card-preview { min-height: 235px; padding: 21px; }
  .card-preview-bottom { gap: 12px; }
}
@media (max-width: 520px) {
  .nana-package-grid-v5 { grid-template-columns: 1fr; }
  .nana-package-v5 { min-height: 445px; }
  .checkout-brand-strip { align-items: flex-start; flex-direction: column; }
  .checkout-field-row { grid-template-columns: 1fr; }
  .checkout-demo-row { align-items: flex-start; flex-direction: column; }
  .checkout-demo-row button { width: 100%; }
  .checkout-card-preview { min-height: 220px; }
  .card-preview-number { font-size: 15px; }
  .card-preview-bottom { grid-template-columns: 1fr auto; }
  .card-preview-bottom > div:nth-child(2) { display: none; }
  .checkout-success { padding: 38px 20px; }
  .checkout-success-pack { grid-template-columns: 1fr; text-align: center; }
  .success-nana-pile { margin: 0 auto; }
}

.checkout-country-note { color: var(--muted); }

@media (max-width: 760px) {
  .stream-top-bar { top: 10px; left: 10px; right: 10px; gap: 7px; }
  .stream-top-back, .stream-top-icon { width: 40px; height: 40px; border-radius: 13px; }
  .stream-session-card { height: 40px; padding-inline: 11px; border-radius: 13px; }
  .stream-session-copy strong { max-width: 34vw; }
  .stream-top-chip.host-chip { display: none; }
  .stream-top-chip { height: 40px; padding-inline: 10px; border-radius: 13px; }
  .stream-hud { bottom: 10px; width: calc(100% - 20px); min-height: 54px; border-radius: 18px; }
  .hud-stat { height: 40px; padding-inline: 9px; }
  .hud-stat:nth-child(2) { display: none; }
  .hud-btn { width: 40px; height: 40px; border-radius: 12px; }
  .stream-control-tip { bottom: 76px; }
}
@media (max-width: 520px) {
  .stream-top-chip.nana-stream-chip { display: none; }
  .stream-session-copy span { display: none; }
  .hud-stat:nth-child(3) { display: none; }
  .stream-hud-status { flex: 0 1 auto; }
}

/* Live host integration */
.package-buy.server-only-buy,
.package-buy.server-only-buy:hover,
.package-buy.server-only-buy:active {
  background: #b4232b;
  border: 1px solid #e34d55;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.settings-page-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 18px; align-items: start; }
.settings-form-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; margin-top: 10px; border: 1px solid rgba(255,255,255,.04); border-radius: 16px; background: #202324; }
.settings-form-row > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.settings-form-row > div > i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; background: #2a2d2e; color: var(--yellow); }
.settings-form-row strong, .settings-form-row small { display: block; }
.settings-form-row strong { font-size: 10px; }
.settings-form-row small { max-width: 440px; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.settings-toggle-stack { margin-top: 10px; }
.setting-select { min-width: 168px; height: 42px; padding: 0 35px 0 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #111314; color: var(--text); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.setting-select:focus { border-color: rgba(255,211,56,.55); box-shadow: 0 0 0 3px rgba(255,211,56,.08); }
.game-setting-picker { display: grid; gap: 7px; margin: 12px 0 16px; }
.game-setting-picker > span { color: var(--muted); font-size: 8px; font-weight: 850; }
.game-setting-picker .setting-select { width: 100%; }
.keybind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keybind-row { min-width: 0; display: grid; grid-template-columns: minmax(100px,1fr) minmax(120px,.8fr); align-items: center; gap: 10px; min-height: 54px; padding: 9px 11px; border-radius: 14px; background: #202324; border: 1px solid rgba(255,255,255,.035); }
.keybind-row > span { color: #d9dcda; font-size: 8px; font-weight: 800; }
.keybind-select { width: 100%; min-width: 0; height: 36px; }
.settings-footnote { display: flex; gap: 8px; margin: 14px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.settings-footnote i { margin-top: 2px; color: var(--yellow); }
.settings-footnote code { color: #e9c94b; font-family: ui-monospace,"Cascadia Code",monospace; }
.stream-video { user-select: none; -webkit-user-drag: none; image-rendering: auto; }
@media (max-width: 1050px) { .settings-page-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .settings-form-row { align-items: stretch; flex-direction: column; } .setting-select { width: 100%; } .keybind-grid { grid-template-columns: 1fr; } }

/* CloudBanana media cards + home polish */
.text-btn {
  appearance: none;
  min-height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #191c1d;
  color: #c8ccc9;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.text-btn i { color: #747b77; font-size: 13px; transition: transform .16s ease, color .16s ease; }
@media (hover:hover) and (pointer:fine) {
  .text-btn:hover { color: #fff; background: #202425; border-color: rgba(255,211,56,.2); transform: translateY(-1px); }
  .text-btn:hover i { color: var(--yellow); transform: translateX(2px); }
}
.text-btn:focus-visible { outline: 2px solid rgba(255,211,56,.55); outline-offset: 2px; }

.home-empty-strip {
  min-height: 88px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #17191a;
  color: var(--muted);
}
.home-empty-strip > i {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 17px;
}
.home-empty-strip div { display: grid; gap: 4px; }
.home-empty-strip strong { color: var(--text); font-size: 10px; }
.home-empty-strip span { font-size: 8px; }

.library-grid,
.home-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.game-scroller { grid-auto-columns: minmax(430px,1fr); }
.game-card { border-radius: 23px; }
.game-card-media {
  min-height: 205px;
  display: grid;
  grid-template-columns: minmax(112px,34%) minmax(0,66%);
  background: #101213;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.game-media-pair { overflow: hidden; }
.game-cover-panel {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #1d2021;
  border-right: 1px solid rgba(255,255,255,.055);
}
.game-cover-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.game-cover-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 62%,rgba(5,6,6,.38));
}
.game-cover-fallback {
  display: grid;
  place-items: end;
  color: rgba(255,255,255,.66);
  font-size: 46px;
  font-weight: 1000;
  letter-spacing: -5px;
}
.game-cover-fallback span { padding: 0 10px 8px 0; position: relative; z-index: 2; }
.game-shot-carousel {
  min-width: 0;
  min-height: 205px;
  position: relative;
  overflow: hidden;
  background: #111314;
}
.game-shot-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(4,5,5,.02) 50%,rgba(4,5,5,.48) 100%);
  z-index: 1;
}
.game-shot-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.001);
  transition: opacity .18s ease, transform .32s ease;
}
.game-shot-image.switching { opacity: .58; transform: scale(1.018); }
.game-shot-fallback {
  display: grid;
  place-items: end;
  color: rgba(255,255,255,.34);
  font-size: 64px;
  font-weight: 1000;
  letter-spacing: -7px;
}
.game-shot-fallback-mark { padding: 0 13px 9px 0; position: relative; z-index: 2; }
.game-shot-dots {
  position: absolute;
  left: 50%;
  bottom: 11px;
  z-index: 3;
  transform: translateX(-50%);
  min-height: 22px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(8,9,9,.42);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(8px);
}
.game-shot-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.43);
  cursor: pointer;
  transition: width .16s ease, background .16s ease, transform .16s ease;
}
.game-shot-dot.active { width: 17px; background: var(--yellow); }
@media (hover:hover) and (pointer:fine) {
  .game-shot-dot:hover { background: #fff; transform: scale(1.12); }
  .game-card:hover .game-shot-image { transform: scale(1.015); }
}
.game-shot-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.game-page-media-pair {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(190px,25%) minmax(0,75%);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #121415;
}
.game-page-media-pair .game-shot-carousel { min-height: 360px; }
.game-page-media-pair .game-shot-dots { bottom: 16px; }

/* Featured art should stay clean: no giant initials, rings, or decorative letters. */
.featured-decoration,
.featured-ring,
.featured-block,
.featured-initials { display: none !important; }

/* Make the Nana balance feel liquid instead of like a plain progress meter. */
.nana-progress { height: 24px; box-shadow: inset 0 1px 3px rgba(0,0,0,.36); }
.nana-progress-fill {
  background: linear-gradient(90deg,#e7a300 0%,#ffd337 54%,#ffe77f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 0 22px rgba(255,200,25,.08);
}
.nana-progress-fill::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.32),rgba(255,255,255,.05));
  pointer-events: none;
}
.bubble {
  bottom: -12px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.bubble:nth-child(1) { width: 7px; height: 7px; left: 6%; animation-delay: -.3s; animation-duration: 3.8s; }
.bubble:nth-child(2) { width: 4px; height: 4px; left: 15%; animation-delay: -2.2s; animation-duration: 4.4s; }
.bubble:nth-child(3) { width: 9px; height: 9px; left: 25%; animation-delay: -1.5s; animation-duration: 4.9s; }
.bubble:nth-child(4) { width: 5px; height: 5px; left: 34%; animation-delay: -3.1s; animation-duration: 4.1s; }
.bubble:nth-child(5) { width: 8px; height: 8px; left: 43%; animation-delay: -.8s; animation-duration: 5.1s; }
.bubble:nth-child(6) { width: 4px; height: 4px; left: 52%; animation-delay: -2.7s; animation-duration: 3.7s; }
.bubble:nth-child(7) { width: 10px; height: 10px; left: 61%; animation-delay: -1.1s; animation-duration: 5.3s; }
.bubble:nth-child(8) { width: 5px; height: 5px; left: 69%; animation-delay: -3.6s; animation-duration: 4.6s; }
.bubble:nth-child(9) { width: 7px; height: 7px; left: 76%; animation-delay: -1.9s; animation-duration: 4.2s; }
.bubble:nth-child(10) { width: 4px; height: 4px; left: 83%; animation-delay: -.5s; animation-duration: 3.9s; }
.bubble:nth-child(11) { width: 9px; height: 9px; left: 90%; animation-delay: -2.4s; animation-duration: 5s; }
.bubble:nth-child(12) { width: 5px; height: 5px; left: 96%; animation-delay: -3.3s; animation-duration: 4.5s; }
@keyframes bubbleRise { from { transform: translateY(20px) scale(.74); opacity: 0; } 28% { opacity: .72; } 72% { opacity: .52; } to { transform: translateY(-30px) scale(1.08); opacity: 0; } }

@media (max-width: 1120px) {
  .library-grid,
  .home-game-grid { grid-template-columns: 1fr; }
  .game-card-media { min-height: 220px; grid-template-columns: minmax(125px,31%) minmax(0,69%); }
}
@media (max-width: 720px) {
  .game-card-media { min-height: 178px; grid-template-columns: minmax(102px,34%) minmax(0,66%); }
  .game-shot-carousel { min-height: 178px; }
  .game-page-media-pair { min-height: 280px; grid-template-columns: minmax(115px,34%) minmax(0,66%); border-radius: 20px; }
  .game-page-media-pair .game-shot-carousel { min-height: 280px; }
  .text-btn { min-height: 34px; }
}
@media (max-width: 470px) {
  .game-card-media { min-height: 160px; grid-template-columns: 35% 65%; }
  .game-shot-carousel { min-height: 160px; }
  .game-shot-dots { bottom: 8px; gap: 4px; padding: 5px 6px; }
  .game-shot-dot { width: 5px; height: 5px; }
  .game-shot-dot.active { width: 13px; }
  .game-page-media-pair { grid-template-columns: 1fr; }
  .game-page-media-pair .game-cover-panel { min-height: 390px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.055); }
  .game-page-media-pair .game-shot-carousel { min-height: 210px; }
}

/* v1.2 compact library, reliable favorites, progressive home feed, clean game heroes */
.library-grid,
.home-game-grid {
  grid-template-columns: repeat(auto-fill,minmax(285px,1fr));
  gap: 11px;
}
.game-card {
  border-radius: 18px;
}
.game-card-media {
  min-height: 148px;
  grid-template-columns: minmax(88px,32%) minmax(0,68%);
}
.game-shot-carousel {
  min-height: 148px;
}
.game-card-body {
  padding: 10px 11px 11px;
}
.game-card h3 {
  font-size: 11px;
}
.favorite-btn {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-radius: 9px;
}
.game-meta {
  margin-top: 4px;
  font-size: 7px;
}
.game-tag-row {
  margin-top: 7px;
  gap: 4px;
}
.game-tag {
  padding: 4px 6px;
  font-size: 6px;
  border-radius: 7px;
}
.game-card-foot {
  margin-top: 8px;
}
.nana-cost {
  font-size: 8px;
}
.card-play {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}
.game-shot-dots {
  bottom: 7px;
  min-height: 18px;
  padding: 4px 6px;
  gap: 4px;
}
.game-shot-dot {
  width: 5px;
  height: 5px;
}
.game-shot-dot.active {
  width: 13px;
}
.home-library-feed {
  padding-bottom: 8px;
}
.home-game-count {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}
.home-infinite-grid {
  min-height: 120px;
}
.home-load-sentinel {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.home-load-sentinel span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: homeLoadPulse .9s ease-in-out infinite alternate;
}
.home-load-sentinel span:nth-child(2) { animation-delay: -.3s; }
.home-load-sentinel span:nth-child(3) { animation-delay: -.6s; }
@keyframes homeLoadPulse {
  from { opacity: .26; transform: translateY(2px) scale(.8); }
  to { opacity: 1; transform: translateY(-2px) scale(1); }
}
.home-library-end {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
}
.home-library-end i { color: var(--yellow); }
.favorite-empty { min-height: 92px; }

.game-page-art,
.game-page-orbit,
.game-page-initials {
  display: none !important;
}
.game-page-hero::before,
.game-page-hero::after {
  content: none !important;
}

.package-purchase-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
}
.package-purchase-row .package-price {
  width: max-content;
  max-width: 100%;
  flex: none;
}
.package-purchase-row .package-buy {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
}
.package-purchase-row .package-buy i {
  font-size: 13px;
}

.nana-progress-fill .bubble {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.52);
  box-shadow: inset 0 0 4px rgba(255,255,255,.22), 0 0 6px rgba(255,255,255,.08);
}

@media (min-width: 1500px) {
  .library-grid,
  .home-game-grid { grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); }
}
@media (max-width: 1120px) {
  .library-grid,
  .home-game-grid { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
  .game-card-media { min-height: 145px; grid-template-columns: minmax(84px,32%) minmax(0,68%); }
  .game-shot-carousel { min-height: 145px; }
}
@media (max-width: 640px) {
  .library-grid,
  .home-game-grid { grid-template-columns: 1fr; }
  .game-card-media { min-height: 158px; }
  .game-shot-carousel { min-height: 158px; }
}

/* v1.3 — layered game cards: full screenshot canvas + floating portrait cover */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  background: linear-gradient(180deg,#181a1b 0%,#151718 100%);
  border-color: rgba(255,255,255,.075);
}
.game-card-media {
  position: relative;
  display: block;
  min-height: 158px;
  overflow: hidden;
  background: #0f1112;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.game-card-media .game-shot-carousel {
  width: 100%;
  min-height: 158px;
}
.game-card-media .game-shot-carousel::after {
  background:
    linear-gradient(90deg,rgba(5,6,6,.22) 0%,rgba(5,6,6,.03) 42%,rgba(5,6,6,.08) 100%),
    linear-gradient(180deg,rgba(5,6,6,0) 50%,rgba(5,6,6,.5) 100%);
}
.game-card-media .game-cover-panel {
  position: absolute;
  z-index: 5;
  left: 11px;
  bottom: 11px;
  width: 72px;
  height: 104px;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: 0 13px 28px rgba(0,0,0,.48), 0 1px 0 rgba(255,255,255,.08) inset;
  background: #17191a;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card-media .game-cover-panel::after {
  background: linear-gradient(180deg,transparent 72%,rgba(4,5,5,.2));
}
.game-card-media .game-cover-panel img {
  border-radius: 10px;
}
.game-card-media .game-shot-dots {
  left: auto;
  right: 10px;
  bottom: 9px;
  transform: none;
  background: rgba(8,9,9,.54);
  border-color: rgba(255,255,255,.1);
}
.card-favorite {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
  background: rgba(12,14,14,.66);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.card-favorite.active {
  color: #2c2403;
  background: var(--yellow);
  border-color: var(--yellow);
}
.game-card-body {
  padding: 11px 12px 12px;
}
.game-card-line {
  align-items: center;
}
.game-card h3 {
  font-size: 12px;
  letter-spacing: -.25px;
}
.game-meta {
  margin-top: 5px;
  font-size: 7.5px;
}
.game-card-foot {
  margin-top: 10px;
}
.card-play {
  width: auto;
  min-width: 66px;
  height: 30px;
  padding: 0 10px 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -.05px;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.card-play i {
  display: inline-flex;
  font-size: 10px;
}
@media (hover:hover) and (pointer:fine) {
  .game-card:hover .game-cover-panel {
    transform: translateY(-2px) scale(1.015);
    border-color: rgba(255,211,56,.46);
    box-shadow: 0 16px 34px rgba(0,0,0,.54), 0 0 0 1px rgba(255,211,56,.07);
  }
  .card-play:hover {
    transform: translateY(-1px);
    background: #ffdc51;
    box-shadow: 0 8px 18px rgba(255,205,36,.16);
  }
  .card-favorite:hover {
    color: #fff;
    border-color: rgba(255,255,255,.18);
  }
  .card-favorite.active:hover {
    color: #2c2403;
    border-color: var(--yellow);
  }
}
@media (max-width: 470px) {
  .game-card-media,
  .game-card-media .game-shot-carousel { min-height: 150px; }
  .game-card-media .game-cover-panel {
    width: 66px;
    height: 96px;
    left: 9px;
    bottom: 9px;
  }
  .game-card-media .game-shot-dots { right: 8px; bottom: 8px; }
  .card-play { min-width: 62px; height: 29px; padding-inline: 9px; }
}

.controls-page { display: grid; gap: 22px; padding-bottom: 36px; }
.controls-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.controls-page-head h1 { margin: 4px 0 0; font-size: clamp(30px,4vw,52px); letter-spacing: -2px; }
.controls-page-head p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.control-mode-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.control-mode-tab { min-width: 0; min-height: 78px; border: 1px solid var(--line); border-radius: 20px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; text-align: left; background: #17191a; cursor: pointer; transition: border-color .16s ease,background .16s ease,transform .16s ease; }
.control-mode-tab > span { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; display: grid; place-items: center; background: #252829; color: #aeb3af; font-size: 18px; }
.control-mode-tab > div { min-width: 0; }
.control-mode-tab strong, .control-mode-tab small { display: block; }
.control-mode-tab strong { font-size: 12px; }
.control-mode-tab small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.control-mode-tab.active { border-color: rgba(255,211,56,.35); background: linear-gradient(135deg,rgba(255,211,56,.105),rgba(255,211,56,.025)),#191b1c; }
.control-mode-tab.active > span { background: var(--yellow); color: #2a2305; box-shadow: 0 10px 28px rgba(255,211,56,.12); }
@media (hover:hover) and (pointer:fine) { .control-mode-tab:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.13); } .control-mode-tab.active:hover { border-color: rgba(255,211,56,.48); } }
.controls-mode-panel, .keyboard-mode-panel { border: 1px solid var(--line); border-radius: 26px; background: #17191a; overflow: hidden; }
.controls-mode-hero { min-height: 104px; padding: 18px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg,rgba(255,211,56,.035),transparent 48%); }
.controls-mode-hero > div:nth-child(2) { min-width: 0; flex: 1; }
.controls-mode-hero h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.7px; }
.controls-mode-hero p { margin: 5px 0 0; max-width: 650px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.controls-mode-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 19px; background: var(--yellow); color: #292204; font-size: 23px; }
.controls-primary-btn { min-height: 43px; border: 0; border-radius: 14px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: #292204; font-size: 9px; font-weight: 900; cursor: pointer; }
.controls-primary-btn.detecting i { animation: controlSpin 1.1s linear infinite; }
@keyframes controlSpin { to { transform: rotate(360deg); } }
.controller-list { padding: 14px; display: grid; gap: 9px; }
.controller-card { min-height: 72px; padding: 11px 13px; display: flex; align-items: center; gap: 12px; border-radius: 17px; background: #202324; border: 1px solid rgba(255,255,255,.045); }
.controller-card-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: #2a2d2e; color: var(--yellow); font-size: 18px; }
.controller-card-copy { min-width: 0; flex: 1; }
.controller-card-copy strong, .controller-card-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controller-card-copy strong { font-size: 10px; }
.controller-card-copy span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.controller-live { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(105,223,155,.1); color: #86e9ae; border: 1px solid rgba(105,223,155,.13); font-size: 8px; font-weight: 900; white-space: nowrap; }
.controller-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--muted); }
.controller-empty strong { color: var(--text); font-size: 13px; }
.controller-empty > span:last-child { font-size: 8px; }
.controller-pulse { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 23px; background: #232627; color: #858b87; font-size: 24px; box-shadow: 0 0 0 8px rgba(255,255,255,.018),0 0 0 16px rgba(255,255,255,.008); }
.player-edge-setting { min-height: 102px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 22px; background: #17191a; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.player-edge-copy { min-width: 0; display: flex; align-items: center; gap: 13px; }
.player-edge-copy h3 { margin: 3px 0 0; font-size: 13px; }
.player-edge-copy p { max-width: 650px; margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.player-edge-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; background: #252829; color: var(--yellow); font-size: 18px; }
.edge-side-picker { flex: 0 0 auto; padding: 4px; display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; border-radius: 14px; background: #0f1112; border: 1px solid var(--line); }
.edge-side-picker button { min-width: 82px; height: 38px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: #848a86; font-size: 8px; font-weight: 900; cursor: pointer; }
.edge-side-picker button.active { background: var(--yellow); color: #292204; }
.touch-layout-workspace { min-height: 610px; display: grid; grid-template-columns: 210px minmax(0,1fr) 260px; border: 1px solid var(--line); border-radius: 27px; overflow: hidden; background: #151718; }
.touch-layout-sidebar { min-width: 0; padding: 14px; border-right: 1px solid var(--line); background: #131516; }
.touch-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 3px 12px; }
.touch-sidebar-head h3 { margin: 3px 0 0; font-size: 12px; }
.touch-add-layout { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: #202324; color: var(--yellow); cursor: pointer; font-size: 15px; }
.touch-layout-list { display: grid; gap: 7px; }
.touch-layout-item { min-width: 0; min-height: 61px; padding: 7px; border: 1px solid transparent; border-radius: 15px; display: grid; grid-template-columns: 40px minmax(0,1fr) 16px; align-items: center; gap: 8px; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.touch-layout-item.active { border-color: rgba(255,211,56,.2); background: rgba(255,211,56,.08); }
.touch-layout-thumb { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #252829; color: #929894; }
.touch-layout-item.active .touch-layout-thumb { background: var(--yellow); color: #292204; }
.touch-layout-item > span:nth-child(2) { min-width: 0; }
.touch-layout-item strong, .touch-layout-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.touch-layout-item strong { font-size: 9px; }
.touch-layout-item small { margin-top: 3px; color: var(--muted); font-size: 6.5px; }
.touch-layout-item > i { color: #6f7572; }
.touch-layout-list-empty, .touch-default-placeholder { min-height: 82px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed rgba(255,255,255,.075); border-radius: 15px; color: #6f7572; text-align: center; font-size: 7px; }
.touch-defaults-block { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.touch-defaults-block > .home-kicker { display: block; margin: 0 3px 8px; }
.touch-editor-shell { min-width: 0; display: flex; flex-direction: column; background: #101213; }
.touch-editor-toolbar { min-height: 69px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #17191a; }
.touch-editor-title { min-width: 0; }
.touch-editor-title span, .touch-editor-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.touch-editor-title span { font-size: 11px; font-weight: 900; }
.touch-editor-title small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.touch-editor-actions { display: flex; align-items: center; gap: 6px; }
.touch-editor-actions button { height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; background: #232627; color: #d7dad7; font-size: 8px; font-weight: 800; cursor: pointer; }
.touch-editor-actions button:last-child { background: var(--yellow); border-color: transparent; color: #292204; }
.touch-stage-wrap { flex: 1; min-height: 0; padding: 20px; display: grid; place-items: center; align-content: center; gap: 11px; }
.touch-stage { width: min(100%,820px); aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: 21px; border: 1px solid rgba(255,255,255,.11); background: radial-gradient(circle at 50% 50%,rgba(255,211,56,.035),transparent 25%),linear-gradient(145deg,#1d2021,#121415); box-shadow: inset 0 0 60px rgba(0,0,0,.28),0 20px 60px rgba(0,0,0,.25); touch-action: none; }
.touch-stage::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 32px 32px; pointer-events: none; }
.touch-axis { position: absolute; z-index: 1; pointer-events: none; background: rgba(255,211,56,.34); box-shadow: 0 0 16px rgba(255,211,56,.08); }
.touch-axis-x { left: 0; right: 0; top: 50%; height: 1px; }
.touch-axis-y { top: 0; bottom: 0; left: 50%; width: 1px; }
.touch-center-dot { position: absolute; z-index: 2; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,211,56,.12); }
.touch-quadrant-label { position: absolute; z-index: 1; color: rgba(255,255,255,.17); font-size: 6px; font-weight: 900; letter-spacing: 1.1px; pointer-events: none; }
.q-tl { top: 10px; left: 12px; } .q-tr { top: 10px; right: 12px; } .q-bl { bottom: 10px; left: 12px; } .q-br { bottom: 10px; right: 12px; }
.touch-editor-control { position: absolute; z-index: 5; transform: translate(-50%,-50%); margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; background: rgba(22,24,24,.78); color: #fff; box-shadow: 0 9px 26px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); cursor: grab; touch-action: none; }
.touch-editor-control:active { cursor: grabbing; }
.touch-editor-control.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,211,56,.14),0 9px 26px rgba(0,0,0,.3); }
.touch-editor-control.action-button > i { pointer-events: none; }
.touch-control-key { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); max-width: 120px; padding: 2px 5px; border-radius: 5px; background: rgba(0,0,0,.62); color: #bfc3c0; font-size: 5.5px; white-space: nowrap; pointer-events: none; }
.touch-joystick-ring { width: 72%; height: 72%; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.035); }
.touch-joystick-nub { width: 48%; height: 48%; border-radius: 50%; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.26); box-shadow: 0 5px 15px rgba(0,0,0,.2); }
.touch-stage-note { width: min(100%,820px); display: flex; align-items: flex-start; gap: 7px; color: #767c78; font-size: 7px; line-height: 1.5; }
.touch-stage-note i { margin-top: 1px; color: var(--yellow); }
.touch-editor-empty { flex: 1; min-height: 500px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 30px; }
.touch-editor-empty-icon { width: 68px; height: 68px; border-radius: 23px; display: grid; place-items: center; background: #202324; color: var(--yellow); font-size: 24px; }
.touch-editor-empty h2 { margin: 6px 0 0; font-size: 20px; }
.touch-editor-empty p { max-width: 380px; margin: 0 0 9px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.touch-inspector { min-width: 0; padding: 15px; border-left: 1px solid var(--line); background: #17191a; }
.touch-inspector-section h3 { margin: 3px 0 15px; font-size: 15px; }
.touch-inspector-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; color: var(--muted); }
.touch-inspector-empty > i { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: #242728; color: var(--yellow); font-size: 19px; }
.touch-inspector-empty strong { color: var(--text); font-size: 11px; }
.touch-inspector-empty span { max-width: 190px; font-size: 8px; line-height: 1.5; }
.control-field { display: grid; gap: 6px; margin-top: 11px; }
.control-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #b7bbb8; font-size: 7px; font-weight: 800; }
.control-field b { color: var(--yellow); font-weight: 900; }
.control-field input[type="text"], .control-field select { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 11px; padding: 0 10px; background: #101213; color: #f4f5f2; outline: 0; font-size: 8px; }
.control-field input[type="range"] { width: 100%; accent-color: var(--yellow); }
.touch-bind-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; }
.uicon-entry { display: grid; grid-template-columns: 39px minmax(0,1fr); gap: 6px; }
.uicon-entry > i { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; background: #252829; color: var(--yellow); }
.color-control { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 6px; }
.color-control input[type="color"] { width: 42px; height: 39px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #101213; }
.layout-id-note { margin-top: 10px; padding: 9px 10px; border-radius: 11px; display: flex; gap: 7px; background: rgba(255,211,56,.055); color: #8f958f; font-size: 7px; line-height: 1.5; }
.layout-id-note i { color: var(--yellow); margin-top: 1px; }
.control-danger-btn { width: 100%; height: 39px; margin-top: 15px; border: 1px solid rgba(255,110,114,.12); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(255,110,114,.06); color: #ff999c; font-size: 8px; font-weight: 900; cursor: pointer; }
.keyboard-control-grid { padding: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.keyboard-control-grid article { min-height: 180px; padding: 17px; border-radius: 20px; background: #202324; border: 1px solid rgba(255,255,255,.035); }
.keyboard-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #2a2d2e; color: var(--yellow); font-size: 18px; }
.keyboard-control-grid strong { display: block; margin-top: 13px; font-size: 12px; }
.keyboard-control-grid p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.keyboard-key-row { margin-top: 15px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.keyboard-key-row kbd { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; background: #111314; border: 1px solid rgba(255,255,255,.09); color: #d9dcd8; font-family: inherit; font-size: 7px; box-shadow: inset 0 -2px 0 rgba(255,255,255,.035); }
.mouse-preview { width: 80px; height: 86px; margin-top: 14px; position: relative; border-radius: 38px 38px 32px 32px; border: 2px solid #4a4f4c; background: #151718; }
.mouse-preview::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 52%; width: 1px; background: #4a4f4c; }
.mouse-preview span { position: absolute; left: 50%; top: 13px; width: 7px; height: 18px; transform: translateX(-50%); border-radius: 7px; background: var(--yellow); }
.mouse-preview i { position: absolute; right: -24px; bottom: 0; color: #8f9591; font-size: 20px; }
.stream-edge-zone { left: 0; right: auto; justify-content: flex-start; }
.stream-edge-handle { left: 0; right: auto; border-radius: 0 8px 8px 0; }
.stream-edge-actions { left: 12px; right: auto; transform: translate(-18px,-50%); }
.stream-stage.edge-right .stream-edge-zone { left: auto; right: 0; justify-content: flex-end; }
.stream-stage.edge-right .stream-edge-handle { left: auto; right: 0; border-radius: 8px 0 0 8px; }
.stream-stage.edge-right .stream-edge-actions { left: auto; right: 12px; transform: translate(18px,-50%); }
.stream-stage.hud-hidden .stream-edge-zone:hover .stream-edge-actions,
.stream-stage.hud-hidden .stream-edge-zone:focus-within .stream-edge-actions,
.stream-stage.hud-hidden .stream-edge-zone.edge-peek .stream-edge-actions { transform: translate(0,-50%); }
@media (max-width: 1180px) { .touch-layout-workspace { grid-template-columns: 180px minmax(0,1fr) 230px; } .touch-editor-actions button span { display: none; } .touch-editor-actions button { width: 39px; padding: 0; justify-content: center; } }
@media (max-width: 980px) { .touch-layout-workspace { grid-template-columns: 1fr; } .touch-layout-sidebar { border-right: 0; border-bottom: 1px solid var(--line); } .touch-layout-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .touch-defaults-block { display: none; } .touch-inspector { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 720px) { .control-mode-tabs { grid-template-columns: 1fr; } .control-mode-tab { min-height: 66px; } .controls-mode-hero { align-items: flex-start; flex-wrap: wrap; } .controls-mode-hero .controls-primary-btn { width: 100%; } .player-edge-setting { align-items: stretch; flex-direction: column; } .edge-side-picker { width: 100%; } .edge-side-picker button { min-width: 0; } .keyboard-control-grid { grid-template-columns: 1fr; } .touch-stage-wrap { padding: 12px; } .touch-layout-list { grid-template-columns: 1fr; } .touch-editor-toolbar { align-items: flex-start; } .touch-editor-actions { flex-wrap: wrap; justify-content: flex-end; } .mobile-nav { grid-template-columns: repeat(6,1fr); } .mobile-nav-item span { font-size: 6.5px; } }

.setting-switch-inline { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.setting-switch-inline > span { min-width: 30px; color: var(--muted); font-size: 8px; font-weight: 900; text-align: right; }
.touch-sidebar-actions { display: flex; align-items: center; gap: 5px; }
.controls-secondary-btn { min-height: 41px; border: 1px solid var(--line); border-radius: 13px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #232627; color: #d8dbd8; font-size: 8px; font-weight: 900; cursor: pointer; }
.touch-editor-empty .controls-secondary-btn { margin-top: 2px; }
.touch-axis[data-touch-axis] { z-index: 3; pointer-events: auto; background: rgba(255,211,56,.42); box-shadow: 0 0 18px rgba(255,211,56,.1); }
.touch-axis-horizontal { left: 0; right: 0; height: 1px; cursor: ns-resize; }
.touch-axis-vertical { top: 0; bottom: 0; width: 1px; cursor: ew-resize; }
.touch-axis[data-touch-axis] > span { position: absolute; display: block; border: 1px solid rgba(255,211,56,.5); background: #17191a; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.touch-axis-horizontal > span { width: 28px; height: 10px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 999px; }
.touch-axis-vertical > span { width: 10px; height: 28px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 999px; }
.touch-axis[data-touch-axis]:hover { background: rgba(255,211,56,.72); }
.touch-center-dot { z-index: 4; }
.axis-settings { margin-top: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.045); border-radius: 13px; background: #131516; }
.axis-settings .control-field:first-child { margin-top: 0; }
.layout-tags { display: grid; gap: 7px; }
.layout-tag-list { min-height: 28px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.layout-tag { min-height: 26px; border: 1px solid rgba(255,211,56,.16); border-radius: 999px; padding: 0 7px 0 9px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,211,56,.07); color: #e8ddb2; font-size: 7px; font-weight: 800; cursor: pointer; }
.layout-tag i { font-size: 9px; color: #969b97; }
.layout-tags-empty { color: #686e6a; font-size: 7px; }
.layout-tag-entry { display: grid; grid-template-columns: minmax(0,1fr) 38px; gap: 6px; }
.layout-tag-entry input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 11px; padding: 0 10px; background: #101213; color: #f4f5f2; outline: 0; font-size: 8px; }
.layout-tag-entry button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; background: #252829; color: var(--yellow); cursor: pointer; }
.touch-toggle-list { margin-top: 13px; display: grid; gap: 7px; }
.touch-option-row { min-height: 57px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.04); border-radius: 13px; display: flex; align-items: center; gap: 9px; background: #101213; }
.touch-option-row > div { min-width: 0; flex: 1; }
.touch-option-row strong, .touch-option-row span { display: block; }
.touch-option-row strong { font-size: 8px; }
.touch-option-row span { margin-top: 3px; color: var(--muted); font-size: 6.5px; line-height: 1.4; }
.touch-control-mode-badge { position: absolute; z-index: 2; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,211,56,.3); background: #17191a; color: var(--yellow); font-size: 8px; box-shadow: 0 5px 15px rgba(0,0,0,.28); pointer-events: none; }
.touch-control-mode-badge.repeat { left: -8px; right: auto; }
.touch-control-mode-badge.toggle { right: -8px; }
.touch-control-mode-badge.passthrough { top: auto; bottom: -8px; left: auto; right: -8px; background: #202324; color: #f7d94c; }
.custom-color-picker { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #101213; }
.color-picker-canvas { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: 10px; }
.color-hue-wheel { width: 82px; height: 82px; position: relative; border-radius: 50%; background: conic-gradient(from 0deg,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1),0 7px 20px rgba(0,0,0,.18); cursor: crosshair; touch-action: none; }
.color-wheel-center { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); border: 5px solid #161819; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12),inset 0 0 0 1px rgba(0,0,0,.22); pointer-events: none; }
.color-hue-marker { position: absolute; z-index: 3; width: 10px; height: 10px; transform: translate(-50%,-50%); border: 2px solid #fff; border-radius: 50%; background: transparent; box-shadow: 0 1px 5px rgba(0,0,0,.65); pointer-events: none; }
.color-sv-pad { min-width: 0; height: 82px; position: relative; border-radius: 11px; overflow: hidden; background: linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--picker-hue,#ff0000); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); cursor: crosshair; touch-action: none; }
.color-sv-marker { position: absolute; width: 11px; height: 11px; transform: translate(-50%,-50%); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.75); pointer-events: none; }
.color-picker-value-row { margin-top: 8px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 7px; }
.color-picker-swatch { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.color-picker-value-row input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; background: #17191a; color: var(--text); outline: 0; font-size: 8px; text-transform: uppercase; }
@media (max-width: 1180px) { .color-picker-canvas { grid-template-columns: 74px minmax(0,1fr); } .color-hue-wheel { width: 70px; height: 70px; } .color-wheel-center { width: 40px; height: 40px; } .color-sv-pad { height: 70px; } }
@media (max-width: 620px) { .setting-switch-inline { width: 100%; justify-content: flex-end; } }
.layout-tag-match-note { display: flex; align-items: flex-start; gap: 6px; color: #787e7a; font-size: 6.5px; line-height: 1.45; }
.layout-tag-match-note i { margin-top: 1px; color: var(--yellow); }

/* v2.1 controls refinements */
.cb-dropdown { position: relative; min-width: 0; }
.cb-dropdown-trigger { width: 100%; height: 39px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; padding: 0 10px 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(180deg,#1b1e1f,#141617); color: #eef0ec; font: inherit; font-size: 8px; font-weight: 800; text-align: left; cursor: pointer; outline: 0; transition: border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.cb-dropdown-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-dropdown-trigger > i { flex: 0 0 auto; color: #848b86; font-size: 13px; transition: transform .16s ease,color .16s ease; }
.cb-dropdown.open .cb-dropdown-trigger { border-color: rgba(255,211,56,.38); background: #1c1f20; box-shadow: 0 0 0 3px rgba(255,211,56,.07); }
.cb-dropdown.open .cb-dropdown-trigger > i { transform: rotate(180deg); color: var(--yellow); }
.cb-dropdown-menu { position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); max-height: 230px; overflow: auto; padding: 5px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(20,22,23,.98); box-shadow: 0 18px 48px rgba(0,0,0,.42); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: opacity .14s ease,transform .14s ease,visibility .14s ease; }
.cb-dropdown.open .cb-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cb-dropdown-option { width: 100%; min-height: 34px; border: 0; border-radius: 9px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: transparent; color: #b7bcb8; font: inherit; font-size: 8px; font-weight: 800; text-align: left; cursor: pointer; }
.cb-dropdown-option i { color: var(--yellow); font-size: 10px; }
.cb-dropdown-option.selected { background: rgba(255,211,56,.09); color: #fff4c0; }
@media (hover:hover) and (pointer:fine) { .cb-dropdown-option:hover { background: #2a2d2e; color: #fff; } .cb-dropdown-trigger:hover { border-color: rgba(255,255,255,.15); } }

.controller-device-strip { padding: 12px 14px; display: grid; gap: 7px; border-bottom: 1px solid var(--line); background: #131516; }
.controller-device { width: 100%; min-width: 0; min-height: 62px; border: 1px solid transparent; border-radius: 15px; padding: 8px 10px; display: grid; grid-template-columns: 44px minmax(0,1fr) 16px; align-items: center; gap: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.controller-device.active { border-color: rgba(255,211,56,.22); background: rgba(255,211,56,.065); }
.controller-device > span:nth-child(2) { min-width: 0; }
.controller-device strong,.controller-device small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controller-device strong { font-size: 9px; }
.controller-device small { margin-top: 3px; color: var(--muted); font-size: 6.5px; }
.controller-device > i { color: #747a76; }
.controller-config { padding: 16px; }
.controller-config-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.controller-config-head h3 { margin: 3px 0 0; font-size: 16px; }
.controller-config-head p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.controller-live-panel { margin-bottom: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.045); border-radius: 15px; background: #101213; }
.controller-axis-live { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 8px; }
.controller-axis-live > div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) 34px; align-items: center; gap: 7px; }
.controller-axis-live span,.controller-axis-live small { color: #8b918d; font-size: 6.5px; }
.controller-axis-live small { text-align: right; font-variant-numeric: tabular-nums; }
.axis-meter { height: 6px; position: relative; overflow: hidden; border-radius: 999px; background: #26292a; }
.axis-meter::after { content:""; position:absolute; left:50%; top:0; bottom:0; width:1px; background:rgba(255,255,255,.17); }
.axis-meter b { position: absolute; top: 0; left: 50%; width: 0; height: 100%; border-radius: inherit; background: var(--yellow); transition: width .04s linear,left .04s linear; }
.controller-axis-empty { grid-column: 1/-1; padding: 4px; }
.controller-bind-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.controller-bind-row { min-width: 0; min-height: 62px; padding: 8px; display: grid; grid-template-columns: 38px minmax(0,1fr) minmax(120px,170px); align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.04); border-radius: 14px; background: #202324; }
.controller-bind-live { width: 38px; height: 38px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #2b2e2f; color: #9ba19d; font-size: 8px; font-weight: 900; }
.controller-bind-live::before { content:""; position:absolute; inset:auto 0 0; height:calc(var(--button-pressure,0) * 100%); background:rgba(255,211,56,.22); transition:height .04s linear; }
.controller-bind-live span { position: relative; z-index: 1; }
.controller-bind-live.pressed { background: var(--yellow); color:#2a2305; box-shadow:0 0 0 3px rgba(255,211,56,.09); }
.controller-bind-copy { min-width: 0; }
.controller-bind-copy strong,.controller-bind-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.controller-bind-copy strong { font-size:8px; }
.controller-bind-copy small { margin-top:3px; color:var(--muted); font-size:6.5px; }
.controller-bind-row .cb-dropdown-menu { left:auto; right:0; width:max(100%,185px); }

.keyboard-lab { padding: 16px; }
.keyboard-lab-head { margin-bottom: 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.keyboard-lab-head strong { display:block; font-size:11px; }
.keyboard-lab-head span { display:block; margin-top:3px; color:var(--muted); font-size:7px; }
.keyboard-pressed-list { max-width: 55%; min-height: 30px; padding: 8px 10px; border:1px solid rgba(255,255,255,.045); border-radius:10px; background:#101213; color:#aaaFAA; font-size:7px; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.keyboard-visual,.player-keyboard-visual { display:grid; gap:5px; }
.keyboard-row { min-width:0; display:flex; gap:5px; }
.keyboard-key { min-width:0; flex:var(--key-grow,1) 1 0; height:44px; border:1px solid rgba(255,255,255,.075); border-radius:9px; padding:3px; display:grid; place-items:center; align-content:center; gap:2px; background:linear-gradient(180deg,#292c2d,#1d2021); color:#e7e9e5; font:inherit; cursor:default; box-shadow:inset 0 -3px 0 rgba(0,0,0,.22); transition:transform .05s ease,background .08s ease,color .08s ease,border-color .08s ease; }
.keyboard-key span { font-size:7px; font-weight:900; }
.keyboard-key small { color:#777e79; font-size:4.8px; line-height:1; }
.keyboard-key.pressed { transform:translateY(2px); background:var(--yellow); color:#292204; border-color:var(--yellow); box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 0 0 2px rgba(255,211,56,.09); }
.keyboard-key.pressed small { color:#5b4d0e; }
.keyboard-mouse-card { margin-top:12px; padding:12px; display:flex; align-items:center; gap:13px; border:1px solid rgba(255,255,255,.045); border-radius:15px; background:#101213; }
.keyboard-mouse-card > div:last-child { min-width:0; }
.keyboard-mouse-card strong,.keyboard-mouse-card span { display:block; }
.keyboard-mouse-card strong { font-size:9px; }
.keyboard-mouse-card span { margin-top:3px; color:var(--muted); font-size:7px; line-height:1.45; }
.keyboard-mouse-visual { width:58px; height:76px; flex:0 0 58px; position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:27px 27px 22px 22px; background:#252829; color:var(--yellow); display:grid; place-items:center; cursor:pointer; }
.keyboard-mouse-visual > span { position:absolute; top:0; width:50%; height:34px; background:#303435; border-bottom:1px solid rgba(255,255,255,.06); }
.keyboard-mouse-visual > span:first-child { left:0; border-right:1px solid rgba(255,255,255,.06); }
.keyboard-mouse-visual > span:nth-child(2) { right:0; }
.keyboard-mouse-visual > span.pressed { background:var(--yellow); }
.keyboard-mouse-visual i { position:relative; z-index:2; margin-top:17px; font-size:18px; }

.touch-control-mode-badge.keyboard { top:-8px; left:50%; right:auto; transform:translateX(-50%); background:#202324; color:var(--yellow); }
.layout-id-note.compact { margin:0 0 12px; }

.player-touch-keyboard { position:absolute; z-index:30; left:50%; bottom:92px; width:min(920px,calc(100% - 32px)); padding:10px; transform:translateX(-50%); border:1px solid rgba(255,255,255,.1); border-radius:20px; background:rgba(13,15,14,.93); box-shadow:0 28px 80px rgba(0,0,0,.48); backdrop-filter:blur(24px); }
.player-touch-keyboard.hidden { display:none; }
.player-touch-keyboard-head { min-height:42px; padding:0 2px 8px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.player-touch-keyboard-head strong { display:block; margin-top:2px; font-size:12px; }
.player-touch-keyboard-head button { width:36px; height:36px; border:1px solid rgba(255,255,255,.08); border-radius:11px; display:grid; place-items:center; background:#202324; color:#fff; cursor:pointer; }
.player-touch-layer { position:absolute; inset:0; z-index:7; pointer-events:none; }
.player-touch-layout { position:absolute; inset:0; z-index:7; pointer-events:none; touch-action:none; }
.player-touch-control { position:absolute; z-index:2; margin:0; padding:0; transform:translate(-50%,-50%); display:grid; place-items:center; border:1px solid rgba(255,255,255,.24); background:rgba(13,15,14,.48); color:#fff; box-shadow:0 8px 26px rgba(0,0,0,.24),inset 0 0 0 1px rgba(255,255,255,.035); backdrop-filter:blur(8px); pointer-events:auto; touch-action:none; user-select:none; -webkit-user-select:none; }
.player-touch-control.pressed,.player-touch-control.latched { border-color:rgba(255,211,56,.8); background:rgba(255,211,56,.28); }
.player-touch-control.pressed:not(.player-touch-action),.player-touch-control.latched:not(.player-touch-action) { transform:translate(-50%,-50%) scale(.94); }
.player-touch-action.keyboard-action { border-radius:22px; }
.player-touch-joystick { border-radius:50%; }
.player-touch-joystick .touch-joystick-nub { transition:transform .04s linear; }
.player-layout-name { position:absolute; left:50%; top:72px; transform:translateX(-50%); min-height:27px; padding:0 9px; border-radius:9px; display:inline-flex; align-items:center; gap:6px; background:rgba(13,15,14,.5); color:rgba(255,255,255,.62); font-size:7px; font-weight:800; pointer-events:none; backdrop-filter:blur(8px); }
.touch-default-item { min-height:54px; margin-top:7px; padding:8px 9px; display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:8px; border:1px solid var(--line); border-radius:12px; background:#17191a; }
.touch-default-item > i { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--yellow-soft); color:var(--yellow); }
.touch-default-item span { min-width:0; display:grid; gap:3px; }
.touch-default-item strong,.touch-default-item small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.touch-default-item strong { color:var(--text); font-size:8px; }
.touch-default-item small { color:var(--muted); font-size:6px; }
.audio-refresh-devices { margin-top:14px; }
.player-keyboard-visual .keyboard-key { height:42px; cursor:pointer; user-select:none; touch-action:none; }
.player-keyboard-visual .keyboard-key small { display:none; }

@media (max-width: 980px) {
  .controller-bind-grid { grid-template-columns:1fr; }
  .controller-bind-row { grid-template-columns:38px minmax(0,1fr) minmax(116px,155px); }
  .keyboard-key { height:39px; }
  .keyboard-key small { display:none; }
}
@media (max-width: 700px) {
  .stream-hud { align-items:stretch; }
  .stream-hud-status { display:grid; grid-template-columns:auto minmax(124px,1fr); }
  .stream-hud-status .hud-stat:nth-child(2) { display:none; }
  .stream-input-mode { min-width:0; }
  .controller-config-head { flex-direction:column; }
  .controller-config-head .controls-secondary-btn { width:100%; }
  .controller-bind-row { grid-template-columns:34px minmax(0,1fr); }
  .controller-bind-row .cb-dropdown { grid-column:1/-1; }
  .controller-bind-live { width:34px; height:34px; }
  .keyboard-lab { padding:10px; overflow-x:auto; }
  .keyboard-visual { min-width:720px; }
  .player-touch-keyboard { bottom:72px; width:calc(100% - 12px); padding:7px; border-radius:15px; overflow-x:auto; }
  .player-keyboard-visual { min-width:720px; }
  .player-keyboard-visual .keyboard-key { height:48px; }
  .touch-editor-actions button { width:auto; min-width:39px; padding:0 10px; }
}

@media (pointer:coarse) {
  button, [role="button"], select { touch-action:manipulation; }
  .stream-top-back,.stream-top-icon,.hud-btn,.edge-btn { min-width:48px; min-height:48px; }
  .stream-input-mode { min-height:48px; }
  .player-layout-name { top:66px; }
}
