:root{
  --bg-1:#050607;
  --bg-2:#0d1519;
  --ice-blue:#9bbdcc;
  --ice-blue-light:#c9e1eb;
  --gold:#d8a73a;
  --gold-light:#ffdd82;
  --text:#f8fbfc;
  --muted:#c8d7dd;
  --glass:rgba(9,17,21,.82);
  --stroke:rgba(201,225,235,.34);
}

*{box-sizing:border-box}

html,body{
  width:100%;
  min-height:100%;
  margin:0;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  background:#050607;
  color:var(--text);
}

body{
  background:
    radial-gradient(circle at 15% 10%, rgba(155,189,204,.26), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(255,221,130,.14), transparent 24%),
    linear-gradient(135deg,var(--bg-1),var(--bg-2));
  overflow-x:hidden;
}

.screen{
  width:100%;
  min-height:100vh;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.main{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.panel{
  position:relative;
  border-radius:22px;
  border:1px solid var(--stroke);
  background:var(--glass);
  overflow:hidden;
  backdrop-filter:blur(14px);
  box-shadow:0 0 34px rgba(155,189,204,.13);
}

.hero{
  padding:18px;
}

.logo-wrap{
  display:grid;
  grid-template-columns:86px 1fr;
  gap:14px;
  align-items:center;
}

.logo-box{
  width:86px;
  height:86px;
  border-radius:999px;
  display:grid;
  place-items:center;
  position:relative;
  overflow:visible;
  background:radial-gradient(circle,rgba(255,255,255,.15),rgba(155,189,204,.08));
}

.logo-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  position:relative;
  z-index:5;
}

.logo-pulse-ring{
  position:absolute;
  inset:8%;
  border-radius:999px;
  border:2px solid rgba(201,225,235,.44);
  box-shadow:0 0 18px rgba(155,189,204,.18);
  z-index:1;
  animation:logoPulseRing 4.2s linear infinite;
  pointer-events:none;
}

.logo-pulse-ring.delay{
  animation-delay:2.1s;
  border-color:rgba(255,221,130,.30);
}

@keyframes logoPulseRing{
  0%{transform:scale(.78);opacity:0}
  30%{opacity:.70}
  100%{transform:scale(1.38);opacity:0}
}

.brand-kicker{
  color:var(--gold-light);
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.title{
  margin:6px 0;
  font-size:30px;
  line-height:.95;
  font-weight:1000;
  text-transform:uppercase;
}

.subtitle{
  color:var(--muted);
  font-size:14px;
  line-height:1.3;
}

.status-pills{
  display:flex;
  gap:8px;
  margin-top:14px;
  flex-wrap:wrap;
  grid-column:1 / -1;
}

.pill{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  font-size:12px;
}

.pill strong{color:var(--gold-light)}

.right-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.twitch-video-panel{
  height:220px;
  padding:0;
}

.twitch-chat-panel{
  height:360px;
  padding:0;
}

.twitch-video-panel iframe,
.twitch-chat-panel iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.command-panel{
  padding:18px;
}

.movie-lights{
  position:absolute;
  inset:-30%;
  background:
    conic-gradient(
      from 180deg,
      transparent,
      rgba(216,167,58,.16),
      transparent,
      rgba(155,189,204,.20),
      transparent
    );
  filter:blur(24px);
  animation:movieLightsClockwise 24s linear infinite;
  opacity:.70;
  z-index:0;
  pointer-events:none;
}

@keyframes movieLightsClockwise{
  to{transform:rotate(360deg)}
}

.command-panel > *:not(.movie-lights){
  position:relative;
  z-index:2;
}

.panel-header{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}

.section-kicker{
  color:var(--gold-light);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.panel-header h1{
  margin:0;
  font-size:28px;
  line-height:1;
  text-transform:uppercase;
}

.mini-note{
  color:var(--muted);
  border:1px solid rgba(255,255,255,.12);
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.20);
  font-size:12px;
  font-weight:800;
  width:max-content;
  max-width:100%;
}

.form-grid{
  display:flex;
  flex-direction:column;
  gap:13px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

label{
  color:var(--ice-blue-light);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.10em;
  text-transform:uppercase;
}

select,
input,
textarea{
  width:100%;
  border:1px solid rgba(201,225,235,.28);
  background:rgba(5,6,7,.78);
  color:var(--text);
  border-radius:14px;
  padding:13px 14px;
  font-size:16px;
  font-weight:800;
  outline:none;
  box-shadow:inset 0 0 20px rgba(155,189,204,.04);
}

select:focus,
input:focus,
textarea:focus{
  border-color:rgba(255,221,130,.62);
  box-shadow:0 0 18px rgba(255,221,130,.12);
}

textarea{
  resize:none;
  min-height:76px;
}

.hint{
  color:var(--muted);
  font-size:12px;
  line-height:1.3;
}

.segmented{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.segmented label{
  cursor:pointer;
  letter-spacing:0;
  text-transform:none;
  font-size:14px;
}

.segmented input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.segmented span{
  display:block;
  text-align:center;
  border:1px solid rgba(201,225,235,.22);
  background:rgba(255,255,255,.07);
  color:var(--text);
  border-radius:999px;
  padding:11px 10px;
  font-weight:900;
}

.segmented input:checked + span{
  color:#050607;
  background:linear-gradient(135deg,var(--gold-light),var(--ice-blue-light));
  border-color:transparent;
}

.primary-button,
.copy-button{
  border:none;
  cursor:pointer;
  border-radius:16px;
  padding:14px;
  font-size:15px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.primary-button{
  color:#050607;
  background:linear-gradient(135deg,var(--gold-light),var(--ice-blue-light));
}

.copy-button{
  color:var(--text);
  background:rgba(255,255,255,.09);
  border:1px solid rgba(201,225,235,.30);
}

.copy-button:disabled{
  cursor:not-allowed;
  opacity:.45;
}

.ticker{
  min-height:48px;
  border-radius:16px;
  border:1px solid var(--stroke);
  display:flex;
  align-items:center;
  overflow:hidden;
  background:rgba(5,6,7,.7);
}

.ticker-track{
  display:flex;
  white-space:nowrap;
  animation:ticker 30s linear infinite;
  font-size:15px;
  font-weight:900;
}

.ticker-track span{
  padding-right:38px;
}

.ticker-track b{
  color:var(--gold-light);
}

@keyframes ticker{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* Tablet and desktop */
@media(min-width:760px){
  .screen{
    padding:26px;
  }

  .main{
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:20px;
  }

  .hero{
    padding:26px;
  }

  .logo-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
  }

  .logo-box{
    width:170px;
    height:170px;
  }

  .title{
    font-size:54px;
  }

  .subtitle{
    font-size:18px;
  }

  .right-stack{
    gap:16px;
  }

  .twitch-video-panel{
    height:300px;
  }

  .twitch-chat-panel{
    height:360px;
  }

  .command-panel{
    padding:24px;
  }

  .form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  .double{
    grid-column:span 2;
  }
}

@media(min-width:1180px){
  .screen{
    padding:36px;
  }

  .main{
    grid-template-columns:.75fr 1.25fr;
  }

  .logo-wrap{
    display:flex;
    flex-direction:row;
    align-items:center;
  }

  .logo-box{
    width:230px;
    height:230px;
    min-width:230px;
  }

  .title{
    font-size:64px;
  }

  .subtitle{
    font-size:20px;
  }

  .right-stack{
    display:grid;
    grid-template-columns:1fr 420px;
    grid-template-rows:300px auto;
    gap:18px;
  }

  .twitch-video-panel{
    grid-column:1;
    grid-row:1;
    height:auto;
  }

  .twitch-chat-panel{
    grid-column:2;
    grid-row:1 / span 2;
    height:auto;
    min-height:680px;
  }

  .command-panel{
    grid-column:1;
    grid-row:2;
  }
}

@media(max-width:420px){
  .title{
    font-size:26px;
  }

  .subtitle{
    font-size:13px;
  }

  .status-pills{
    display:none;
  }

  .twitch-video-panel{
    height:190px;
  }

  .twitch-chat-panel{
    height:320px;
  }
}
