/* Studio91 website: homepage, log in, create account, account, big screen. */
:root {
  --bg: #0b0b0d;
  --white: #ffffff;
  --ink: #14110f;
  --lime: #c6ff66;
  --lime-ink: #14260a;
  --pink: #ff9bf0;
  --soft: #e6c8cc;
  --muted: #cdb6a8;
  --line: rgba(255, 255, 255, 0.14);
  --sans: Montserrat, Inter, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: #fff; font-family: var(--sans); }
a { color: inherit; text-decoration: none; }

/* The homepage glow starts at the very top of the page, behind the header. */
body.home { background: radial-gradient(ellipse 1100px 820px at 24% 0%, #7a1626 0%, #2a0f14 48%, rgba(11, 11, 13, 0) 100%) no-repeat, var(--bg); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 5vw, 72px); position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-size: 18px; font-weight: 800; letter-spacing: 2.5px; }
.top nav { display: flex; gap: 36px; font-size: 14px; font-weight: 700; }
.top nav a:hover { color: #ffb3d1; }
.top .actions { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 999px; font: 800 14px var(--sans); letter-spacing: 1px; border: 0; cursor: pointer; background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); font-weight: 700; letter-spacing: 0.4px; }
.btn.small { height: 42px; padding: 0 20px; font-size: 13px; }
.btn.wide { width: 100%; height: 56px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.avatar { width: 42px; height: 42px; border-radius: 50%; background: #2f5bd0; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; border: 1.5px solid rgba(255, 255, 255, 0.6); }

/* Hero */
.hero { padding: 36px clamp(20px, 5vw, 72px) 70px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 680px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--lime-ink); padding: 9px 18px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-ink); }
.hero h1 { margin: 26px 0 0; font-size: clamp(54px, 7vw, 88px); line-height: 0.95; font-weight: 900; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p.lead { margin: 28px 0 0; max-width: 470px; font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--soft); }
.cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.codecard { justify-self: center; width: min(500px, 100%); padding: 44px; border-radius: 32px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.codecard .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.codecard h2 { margin: 22px 0 0; font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.codecard p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--soft); }
.codecard form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.codecard small { display: block; margin-top: 18px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--muted); }

.code-input { width: 100%; height: 64px; padding: 0 24px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: #fff; font: 900 22px var(--sans); letter-spacing: 0.36em; text-align: center; text-transform: uppercase; }
.code-input::placeholder { color: rgba(255, 255, 255, 0.4); letter-spacing: 0.2em; }

/* Marquee band: the words scroll sideways, like in the app. */
.band { margin: 0 -40px; transform: rotate(-1.5deg); background: var(--lime); color: var(--lime-ink); padding: 16px 0; overflow: hidden; font-size: 22px; font-weight: 900; letter-spacing: 3px; }
.band-track { display: flex; width: max-content; white-space: nowrap; animation: band-scroll 32s linear infinite; }
.band-track span { padding: 0 18px; }
@keyframes band-scroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* Sections */
.section { padding: 110px clamp(20px, 5vw, 72px) 0; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.section h2 { margin: 12px 0 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; }
.types { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.type { position: relative; height: 340px; border-radius: 24px; overflow: hidden; }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.type::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72)); }
.type div { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; }
.type b { display: block; font-size: 22px; font-weight: 800; }
.type span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #e4e0da; }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 30px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.step .n { font-size: 40px; font-weight: 900; }
.step b { display: block; margin-top: 14px; font-size: 22px; font-weight: 800; }
.step p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; font-weight: 500; color: #d9d4cc; }

.screenband { margin: 120px clamp(20px, 5vw, 72px) 0; border-radius: 32px; background: linear-gradient(135deg, #8a3512, #3a140a 55%, #14090a); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: clamp(28px, 4vw, 64px); }
.screenband h2 { font-size: clamp(32px, 3.6vw, 46px); }
.screenband p { margin: 18px 0 0; max-width: 440px; font-size: 17px; line-height: 1.55; font-weight: 500; color: #f3ded2; }
.tv { border-radius: 22px; border: 6px solid #1a1210; background: var(--bg); padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.tv .q { margin-top: 14px; font-size: 24px; line-height: 1.25; font-weight: 800; }
.tv .a { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tv .a div { padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 800; }

.final { padding: 130px 20px 100px; text-align: center; }
.final h2 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -0.035em; }

footer.foot { padding: 30px clamp(20px, 5vw, 72px) 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: #cfc8bd; }
footer.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer.foot a:hover { color: #fff; }

/* Auth pages */
.auth-bg { min-height: 100vh; background: radial-gradient(70% 90% at 50% 0%, #7a1626 0%, #2a0f14 45%, var(--bg) 80%); }
.authcard { width: min(460px, calc(100% - 40px)); margin: 50px auto 0; padding: 44px; border-radius: 28px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.authcard h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.authcard .sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--soft); }
.authcard form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.authcard label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; color: #e5cfc1; }
.field { width: 100%; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.1); color: #fff; font: 600 15px var(--sans); }
.field::placeholder { color: rgba(255, 255, 255, 0.55); }
.field:focus, .code-input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.authcard .alt { margin-top: 24px; text-align: center; font-size: 14px; font-weight: 600; color: var(--soft); }
.authcard .alt a { color: #fff; font-weight: 800; text-decoration: underline; }
.forgot { text-align: right; font-size: 13px; font-weight: 700; color: #ffb3d1; background: none; border: 0; cursor: pointer; font-family: var(--sans); padding: 0; align-self: flex-end; }
.msg { min-height: 20px; font-size: 14px; line-height: 1.45; font-weight: 600; color: #ff9aaa; }
.msg.ok { color: #7fe0b0; }

/* Account */
.account { padding: 28px clamp(20px, 5vw, 72px) 80px; background: radial-gradient(70% 60% at 30% 0%, #7a1626 0%, #2a0f14 42%, var(--bg) 78%); min-height: 100vh; }
.account h1 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; }
.cards { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.card { padding: 32px; border-radius: 28px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.card.warm { background: linear-gradient(135deg, #8a3512, #3a140a 60%, #14090a); border: 0; }
.card h2 { margin: 10px 0 0; font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
.card p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; font-weight: 500; color: #f3ded2; }
.codeform { margin-top: 24px; display: flex; gap: 12px; }
.codeform .code-input { height: 56px; font-size: 18px; flex: 1; min-width: 0; }
.codeform .btn { height: 56px; }
.game { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); margin-top: 12px; }
.game .art { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #e8742a, #5c220d); flex: none; }
.game b { display: block; font-size: 16px; font-weight: 800; }
.game span { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #cfc8bd; }
.game .grow { flex: 1; min-width: 0; }
.foot-note { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; font-weight: 600; color: var(--soft); }

/* Big screen entry */
.screen { min-height: 100vh; background: radial-gradient(70% 90% at 50% 10%, #8a3512 0%, #2a130b 45%, var(--bg) 80%); text-align: center; display: flex; flex-direction: column; }
.screen main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.screen h1 { margin: 16px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
.screen .sub { margin: 20px 0 0; font-size: 20px; font-weight: 600; color: #f3ded2; }
.screen form { margin-top: 44px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.screen .code-input { width: min(520px, 100%); height: 110px; border-radius: 28px; font-size: 64px; }
.screen form .btn { height: 110px; width: 220px; border-radius: 28px; font-size: 20px; }
.screen .result { margin-top: 30px; max-width: 560px; font-size: 18px; line-height: 1.5; font-weight: 600; color: #f3ded2; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .hero, .screenband, .cards { grid-template-columns: 1fr; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .screen .code-input { height: 84px; font-size: 44px; }
  .screen form .btn { height: 84px; }
}
