/* stream.reathy.eu – same family as reathy.eu: aurora, glass, Unbounded, coral. */
:root {
  --void: #07070b;
  --coral: #ff6666;
  --coral-2: #ff8a8a;
  --crimson: #c0405a;
  --lilac: #9b8bb4;
  --fur: #c5cdd6;
  --mint: #6ee7a0;

  --text: #eef0f4;
  --text-2: #aab0bb;
  --text-3: #767c88;
  --line: rgba(197, 205, 214, 0.14);
  --line-2: rgba(197, 205, 214, 0.22);
  --glass: rgba(20, 20, 30, 0.42);
  --glass-hi: rgba(255, 255, 255, 0.06);

  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 28px;
  --px: 0;
  --py: 0;
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--void); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #0e0d16 0%, var(--void) 60%); }
.blob { position: absolute; border-radius: 50%; opacity: 0.45; will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -16vmax; top: -20vmax; background: radial-gradient(circle, rgba(255, 102, 102, 0.55) 0%, transparent 62%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 46vmax; height: 46vmax; right: -18vmax; top: 10vmax; background: radial-gradient(circle, rgba(155, 139, 180, 0.5) 0%, transparent 62%); opacity: 0.38; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 56vmax; height: 56vmax; left: 20vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(192, 64, 90, 0.5) 0%, transparent 62%); opacity: 0.42; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 14vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -12vmax) scale(1.1); } }
.grain { position: absolute; inset: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- glass ---------- */
.glass {
  position: relative; background: rgba(18, 18, 27, 0.72); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 var(--glass-hi);
}
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 102, 102, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.spot::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 140, 140, 0.85), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.pad { padding: 26px; }
.corner { position: absolute; width: 20px; height: 20px; border: 2px solid var(--coral); opacity: 0.9; pointer-events: none; z-index: 2; }
.c-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.c-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.c-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.c-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* ---------- header capsule ---------- */
.header {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 100;
  display: flex; align-items: center; gap: 18px; padding: 7px 8px 7px 14px; border-radius: 99px;
  width: max-content; max-width: calc(100vw - 24px);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--glass-hi);
  transition: background 0.4s;
}
.header.scrolled { background: rgba(12, 12, 18, 0.78); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #1c1c26; }
.brand em { font-style: normal; color: var(--coral); }
.nav { position: relative; display: flex; gap: 2px; }
.nav-link { position: relative; z-index: 1; padding: 7px 14px; font-size: 0.88rem; font-weight: 500; color: var(--text-2); border-radius: 99px; transition: color 0.3s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav-link:hover, .nav-link.on { color: var(--text); }
.nav-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: none; }
body.is-live .nav-link .dot { display: inline-block; animation: blink 1.6s infinite; }
.nav-glow {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 99px; opacity: 0;
  background: linear-gradient(135deg, rgba(255, 102, 102, 0.28), rgba(155, 139, 180, 0.18)); border: 1px solid rgba(255, 102, 102, 0.35);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.head-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; }
.lang button { padding: 3px 9px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-3); border-radius: 99px; }
.lang button.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.chip { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: border-color 0.3s; }
.chip:hover { border-color: rgba(255, 102, 102, 0.45); }
.chip img, .chip .initial { width: 28px; height: 28px; border-radius: 50%; font-size: 0.75rem; }
.chip .nm { font-size: 0.85rem; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bal-pill { font-family: var(--display); font-size: 0.72rem; font-weight: 500; padding: 5px 10px; border-radius: 99px; background: linear-gradient(135deg, rgba(255, 102, 102, 0.22), rgba(192, 64, 90, 0.22)); color: #ffd0d0; white-space: nowrap; }
.bump { animation: bump 0.7s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); filter: brightness(1.4); } }
.initial { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1c1c26; color: var(--fur); font-family: var(--display); font-weight: 500; flex-shrink: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn svg { width: 17px; height: 17px; }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 78px; left: 12px; right: 12px; z-index: 99; padding: 10px; border-radius: 24px; display: flex; flex-direction: column;
  background: rgba(14, 14, 22, 0.94); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.mobile-menu a { padding: 13px 16px; border-radius: 14px; font-weight: 500; color: var(--text-2); }
.mobile-menu a.on, .mobile-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.mobile-menu .lang { align-self: flex-start; margin: 8px 12px 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 99px;
  font-weight: 600; font-size: 0.92rem; color: var(--void); white-space: nowrap;
  background: linear-gradient(135deg, var(--coral), var(--coral-2)); box-shadow: 0 8px 30px rgba(255, 102, 102, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 102, 102, 0.45); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(255, 102, 102, 0.5); background: rgba(255, 102, 102, 0.08); }
.btn.twitch { background: linear-gradient(135deg, #9146ff, #b17bff); color: #fff; box-shadow: 0 8px 30px rgba(145, 70, 255, 0.3); }
.btn.sm { padding: 8px 14px; font-size: 0.82rem; }
.btn svg { width: 16px; height: 16px; }
.field {
  height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); min-width: 0; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field:focus { outline: none; border-color: rgba(255, 102, 102, 0.6); }
input[type=checkbox] { accent-color: var(--coral); width: 17px; height: 17px; }
input[type=color] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; }

/* ---------- layout ---------- */
main { width: min(1160px, 100% - 40px); margin: 0 auto; padding: 118px 0 90px; flex: 1; }
main.wide { width: min(1560px, 100% - 32px); padding-top: 100px; }
.title { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; }
.title em { font-style: normal; color: var(--coral); }
.sub { margin-top: 12px; color: var(--text-2); max-width: 56ch; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.kicker { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.label { font-size: 0.78rem; color: var(--text-2); display: block; }
.h3 { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.section { margin-top: 64px; }
.section-title { font-family: var(--display); font-weight: 500; font-size: 1.3rem; margin-bottom: 20px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 16px; align-items: start; }
.g2 { grid-template-columns: 1fr 1fr; }
.g-3-2 { grid-template-columns: 3fr 2fr; }
.grid > * { min-width: 0; }
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: ping 2.2s ease-out infinite; flex-shrink: 0; display: inline-block; }
.live-dot.off { background: var(--text-3); animation: none; }
.live-dot.red { background: var(--coral); animation: pingRed 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(110, 231, 160, 0); } }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(255, 102, 102, 0.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 102, 102, 0); } }
@keyframes blink { 50% { opacity: 0.3; } }
.notice { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: rgba(192, 64, 90, 0.14); border: 1px solid rgba(255, 102, 102, 0.3); font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero { --px: 0; --py: 0; position: relative; min-height: calc(100vh - 118px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 40px; }
.hero-word { position: absolute; left: 0; right: 0; top: 2%; height: 1em; font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 17vw, 16rem); letter-spacing: -0.04em; line-height: 1; pointer-events: none; user-select: none; }
.hw { position: absolute; left: 50%; top: 0; white-space: nowrap; translate: calc(-50% + var(--dx, 0px)) var(--dy, 0px); }
.hw-back { color: transparent; -webkit-text-stroke: 1px rgba(255, 102, 102, 0.28); --dx: calc(var(--px) * -22px); --dy: calc(var(--py) * -14px); }
.hw-mid { color: transparent; -webkit-text-stroke: 1px rgba(155, 139, 180, 0.32); --dx: calc(var(--px) * -10px); --dy: calc(var(--py) * -6px); }
.hw-front { color: transparent; background: linear-gradient(180deg, rgba(238, 240, 244, 0.2) 0%, rgba(238, 240, 244, 0.02) 78%); -webkit-background-clip: text; background-clip: text; --dx: calc(var(--px) * 4px); --dy: calc(var(--py) * 3px); }
.wolf { position: relative; z-index: 2; width: min(320px, 60vw); margin-top: 7vh; filter: drop-shadow(0 30px 60px rgba(192, 64, 90, 0.45)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(-1deg); } }
.hero h1 { position: relative; z-index: 3; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p { position: relative; z-index: 3; color: var(--text-2); max-width: 50ch; margin-top: 14px; }
.hero .row { position: relative; z-index: 3; justify-content: center; margin-top: 26px; }
.status-strip { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 10px 18px; border-radius: 99px; font-size: 0.88rem; }

/* ---------- earn cards ---------- */
.earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; transition: transform 0.5s var(--ease), border-color 0.3s; }
.fact:hover { transform: translateY(-4px); border-color: rgba(255, 102, 102, 0.4); }
.fact .ico { color: var(--coral); width: 24px; height: 24px; margin-bottom: 8px; }
.fact b { font-weight: 600; }
.fact span { font-size: 0.86rem; color: var(--text-2); }
.fact .val { font-family: var(--display); font-size: 0.78rem; color: #ffc4c4; margin-top: auto; padding-top: 8px; }

/* ---------- dashboard ---------- */
.balance-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; overflow: hidden; }
.avatar-big img, .avatar-big .initial { width: 86px; height: 86px; font-size: 2rem; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 102, 102, 0.2); }
.big-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; background: linear-gradient(135deg, #fff, #ffb3b3 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.unit { color: var(--text-2); font-size: 0.9rem; margin-left: 8px; }
.mini-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mini-stats div { padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 110px; }
.mini-stats b { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.mini-stats span { font-size: 0.75rem; color: var(--text-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .h3 { display: flex; align-items: center; gap: 10px; }
.card-head .h3 .ico { color: var(--coral); }

/* code bar */
.codebar { margin: 4px 0 16px; }
.codebar .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--text-2); margin-bottom: 10px; }
.codebar .lbl b { color: var(--text); font-weight: 600; }
.codebar .lbl .t { font-family: var(--display); font-size: 0.78rem; color: var(--text); white-space: nowrap; }
.codebar .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.codebar .fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--fur)); opacity: 0.55; transition: width 1s linear; }
.codebar.active .fill { background: linear-gradient(90deg, var(--crimson), var(--coral), #ffb199); opacity: 1; box-shadow: 0 0 18px rgba(255, 102, 102, 0.6); }
.codebar.active .lbl b { color: var(--coral); }
.redeem { display: flex; gap: 8px; }
.redeem .field { flex: 1; font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* lists */
.list li { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .empty { color: var(--text-3); }
.plus { font-family: var(--display); font-size: 0.76rem; color: var(--mint); white-space: nowrap; }
.minus { font-family: var(--display); font-size: 0.76rem; color: var(--coral); white-space: nowrap; }
.ago { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ---------- rewards ---------- */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.reward {
  display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 22px; border-radius: 24px; text-align: left; color: var(--text);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.reward:hover:not(:disabled) { transform: translateY(-5px); border-color: rgba(255, 102, 102, 0.4); }
.reward:disabled { cursor: not-allowed; }
.reward:disabled > * { opacity: 0.42; }
.reward .name { font-family: var(--display); font-weight: 500; font-size: 0.95rem; line-height: 1.3; display: block; }
.reward .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reward .desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.35; }
.reward .head { align-items: flex-start; }
.reward .head .swatch { margin-top: 5px; }
.reward .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.tag.warn { color: #ffb3b3; border-color: rgba(255, 102, 102, 0.35); background: rgba(255, 102, 102, 0.08); }
.reward .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cost { font-family: var(--display); font-size: 0.78rem; font-weight: 500; padding: 5px 11px; border-radius: 99px; background: rgba(255, 102, 102, 0.12); color: #ffc4c4; white-space: nowrap; }
.reward .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); transition: 0.3s var(--ease); }
.reward .go svg { width: 15px; height: 15px; }
.reward:hover:not(:disabled) .go { color: var(--void); background: var(--coral); border-color: var(--coral); }
.shop.compact { grid-template-columns: 1fr; gap: 8px; }
.shop.compact .reward { min-height: 0; flex-direction: row; align-items: center; padding: 11px 14px; border-radius: 18px; gap: 12px; }
.shop.compact .reward .name { font-size: 0.82rem; }
.shop.compact .reward .head { flex: 1; min-width: 0; }
.shop.compact .reward .tags, .shop.compact .reward .go { display: none; }
.shop.compact .reward .bottom { margin: 0; }

dialog {
  margin: auto; border: 1px solid var(--line-2); border-radius: 28px; color: var(--text); padding: 28px; width: min(440px, calc(100vw - 32px));
  background: rgba(16, 16, 24, 0.94); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
dialog::backdrop { background: rgba(4, 4, 8, 0.72); }
dialog h2 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
dialog form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
dialog .row { justify-content: flex-end; }

/* ---------- live ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.player { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #000; }
.player iframe, .chat iframe { width: 100%; height: 100%; border: 0; display: block; }
.chat iframe { border-radius: 0; }
/* Twitch disables chatting if the chat frame is clipped or covered, so keep this container plain:
   no rounded clipping, no overflow:hidden, no glass/shadow effects. */
.chat { height: calc(100vh - 116px); min-height: 520px; position: sticky; top: 96px; background: #18181b; border: 1px solid var(--line); }
.live-under { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.live-under > * { min-width: 0; }
.embed-note { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-3); font-size: 0.88rem; padding: 20px; text-align: center; }

/* ---------- leaderboard ---------- */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); max-width: 100%; overflow-x: auto; }
.seg button { padding: 7px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color 0.2s, background 0.2s; }
.seg button.on { color: var(--text); background: linear-gradient(135deg, rgba(255, 102, 102, 0.28), rgba(155, 139, 180, 0.18)); box-shadow: inset 0 0 0 1px rgba(255, 102, 102, 0.35); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 16px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 16px; border-radius: 24px; min-width: 0; }
.pod .place { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.pod.p1 { padding-top: 34px; border-color: rgba(255, 209, 102, 0.4); }
.pod.p1 .place { color: #ffd166; } .pod.p2 .place { color: var(--fur); } .pod.p3 .place { color: #d9925b; }
.pod img, .pod .initial { width: 64px; height: 64px; border-radius: 50%; font-size: 1.4rem; }
.pod.p1 img, .pod.p1 .initial { width: 78px; height: 78px; box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.5); }
.pod .nm { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .v { font-family: var(--display); font-size: 0.82rem; color: #ffc4c4; }
.board li { padding: 12px 6px; }
.board .rank { width: 34px; font-family: var(--display); font-size: 0.8rem; color: var(--text-3); text-align: center; flex-shrink: 0; }
.board img, .board .initial { width: 32px; height: 32px; border-radius: 50%; font-size: 0.8rem; }
.board .v { font-family: var(--display); font-size: 0.8rem; }
.board li.me-row { background: rgba(255, 102, 102, 0.08); border-radius: 14px; }

/* ---------- rules ---------- */
.rules { counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.rules li:first-child { border-top: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-size: 0.8rem; color: var(--coral); padding-top: 2px; }
.rules li b { color: var(--text); }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 0; }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font-weight: 600; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-family: var(--display); color: var(--coral); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); margin-top: 8px; }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.profile > * { min-width: 0; }
.id-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 26px 28px; overflow: hidden; }
.id-card .pic img, .id-card .pic .initial { width: 124px; height: 124px; border-radius: 50%; font-size: 3rem; box-shadow: 0 0 0 4px rgba(255, 102, 102, 0.25), 0 20px 50px rgba(192, 64, 90, 0.4); }
.id-card h1 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; margin-top: 18px; letter-spacing: -0.01em; word-break: break-word; }
.id-card .handle { color: var(--text-2); font-size: 0.9rem; }
.id-card .badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.id-card .logged { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.82rem; color: var(--text-2); }
.id-card .bal { margin-top: 22px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 18px 20px; border-radius: 22px; }
.stat .ico { color: var(--coral); width: 20px; height: 20px; margin-bottom: 12px; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.stat span { font-size: 0.78rem; color: var(--text-2); }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.kv-list li:first-child { border-top: 0; }
.kv-list li span:first-child { color: var(--text-2); }
.pill { font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.pill.done, .pill.ok { color: var(--mint); border-color: rgba(110, 231, 160, 0.35); background: rgba(110, 231, 160, 0.08); }
.pill.refunded, .pill.failed, .pill.bad { color: #ffb3b3; border-color: rgba(255, 102, 102, 0.35); background: rgba(255, 102, 102, 0.08); }
.pill.pending, .pill.sent { color: #ffd98a; border-color: rgba(255, 209, 102, 0.3); }

/* ---------- admin ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.set-group + .set-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.set-group h4 { font-family: var(--display); font-weight: 500; font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.set-group h4 .ico { color: var(--coral); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kv label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--text-2); }
.kv .field { height: 42px; width: 100%; }
.codebig { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.06em; color: var(--coral); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th { text-align: left; font-weight: 500; font-size: 0.74rem; color: var(--text-3); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .field { height: 36px; padding: 0 12px; font-size: 0.85rem; width: 100%; min-width: 60px; border-radius: 12px; }
td.c { text-align: center; }
td.nw { white-space: nowrap; }

/* ---------- footer & toast ---------- */
.foot { width: min(1160px, 100% - 40px); margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.82rem; }
.foot a:hover { color: var(--coral); }
.foot .credit { display: flex; gap: 18px; }
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 200;
  padding: 12px 20px; border-radius: 99px; font-size: 0.92rem; font-weight: 500; max-width: calc(100vw - 32px);
  background: rgba(20, 20, 30, 0.92); border: 1px solid var(--line-2); visibility: hidden;
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.4s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition: opacity 0.3s, transform 0.4s var(--ease); }
#toast.good { border-color: rgba(110, 231, 160, 0.5); }
#toast.bad { border-color: rgba(255, 102, 102, 0.55); }

.rv { animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .live-grid { grid-template-columns: 1fr; }
  .chat { position: static; height: 520px; min-height: 0; }
}
@media (max-width: 980px) {
  .nav, .head-right .lang { display: none; }
  .burger { display: block; }
  .header { gap: 10px; left: 12px; right: 12px; translate: none; width: auto; max-width: none; justify-content: space-between; }
  .profile { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  main { width: calc(100% - 32px); padding-top: 96px; }
  main.wide { width: calc(100% - 24px); padding-top: 92px; }
  .g2, .g-3-2, .live-under { grid-template-columns: 1fr; }
  .stat-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .balance-card { grid-template-columns: 1fr; gap: 16px; }
  .podium { gap: 8px; }
  .pod { padding: 18px 8px; }
  .pod img, .pod .initial { width: 46px; height: 46px; font-size: 1rem; }
  .pod.p1 img, .pod.p1 .initial { width: 56px; height: 56px; }
  .pod .place { font-size: 1.2rem; }
  .hero { min-height: auto; padding-top: 10px; }
  .foot { width: calc(100% - 32px); }
  .pad { padding: 20px; }
}
@media (max-width: 480px) {
  .chip .nm { display: none; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
