:root {
  color-scheme: dark;
  --bg: #09090d;
  --panel: rgba(22, 22, 29, .78);
  --line: rgba(255, 255, 255, .1);
  --muted: #9696a5;
  --text: #f7f7fa;
  --purple: #9b72ff;
  --green: #53fc18;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ambient { position: fixed; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(140px); opacity: .1; pointer-events: none; }
.ambient-one { background: var(--purple); top: -22rem; left: -14rem; }
.ambient-two { background: var(--green); right: -25rem; bottom: -22rem; }
main { width: min(1040px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.brand { height: 92px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #09090d; background: var(--text); border-radius: 9px; font-size: 13px; letter-spacing: -.06em; }
.hero { width: min(780px, 100%); margin: auto; padding: 60px 0 90px; }
.eyebrow { margin: 0 0 24px; color: var(--purple); font: 700 12px/1 monospace; letter-spacing: .16em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.065em; font-weight: 760; }
h1 span { color: #74747e; }
.intro { max-width: 610px; margin: 30px 0 42px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.finder { padding: 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.38); backdrop-filter: blur(18px); }
.platforms { display: flex; gap: 6px; border: 0; padding: 4px; margin: 0 0 4px; }
.platform { cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 700; transition: .2s ease; }
.platform input { position: absolute; opacity: 0; }
.platform:has(input:checked) { background: rgba(255,255,255,.07); color: white; }
.platform-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font: 900 11px/1 monospace; }
.twitch .platform-icon { background: var(--purple); color: white; }
.kick .platform-icon { background: var(--green); color: #061500; }
.search-row { display: flex; gap: 8px; }
input[type="text"] { min-width: 0; flex: 1; height: 62px; padding: 0 19px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: rgba(5,5,8,.7); color: white; font: 500 16px/1 inherit; transition: border-color .2s, box-shadow .2s; }
input[type="text"]:focus { border-color: rgba(155,114,255,.7); box-shadow: 0 0 0 3px rgba(155,114,255,.12); }
input::placeholder { color: #62626e; }
button { border: 0; border-radius: 13px; font: 750 14px/1 inherit; cursor: pointer; }
.search-row button { min-width: 130px; padding: 0 22px; background: white; color: #101014; transition: transform .15s, opacity .15s; }
.search-row button:hover { transform: translateY(-1px); }
.search-row button:disabled { cursor: wait; opacity: .7; transform: none; }
.hint { margin: 10px 12px 5px; color: #686875; font-size: 12px; }
.message { display: none; margin: 10px 10px 5px; padding: 11px 13px; border-radius: 10px; color: #ffb5b8; background: rgba(255,77,84,.09); font-size: 13px; }
.message.visible { display: block; }
.spinner { display: none; width: 17px; height: 17px; margin: auto; border: 2px solid #aaa; border-top-color: #111; border-radius: 50%; animation: spin .7s linear infinite; }
.loading .spinner { display: block; } .loading .button-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(18,18,24,.88); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.result-top { display: flex; gap: 17px; align-items: center; }
.avatar { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 18px; background: #292933 center/cover; color: #aaa; font-weight: 800; font-size: 20px; }
.badge { display: inline-block; margin-bottom: 5px; color: var(--purple); font: 700 10px/1 monospace; letter-spacing: .12em; text-transform: uppercase; }
.badge.kick-badge { color: var(--green); }
.result h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; }
.result a { color: var(--muted); font-size: 13px; text-decoration: none; }
.result a:hover { color: white; }
.id-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: #0b0b10; }
.id-panel div { min-width: 0; }
.id-panel span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.id-panel strong { font: 700 clamp(20px, 4vw, 28px)/1 monospace; letter-spacing: -.03em; overflow-wrap: anywhere; }
.id-panel button { padding: 11px 16px; color: white; background: #292932; }
.id-panel button:hover { background: #373741; }
footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); color: #5f5f6a; font-size: 11px; }
footer span::before { content: "·"; margin-right: 8px; color: #888; }
.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; }
@media (max-width: 600px) {
  main { width: min(100% - 24px, 1040px); }
  .brand { height: 72px; }
  .hero { padding: 42px 0 70px; }
  .intro { font-size: 16px; margin: 24px 0 32px; }
  .search-row { flex-direction: column; }
  .search-row button { height: 54px; }
  .result { padding: 18px; }
  footer { gap: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

