:root {
  font-family: "DM Sans", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ecece8;
  background: #101114;
  font-synthesis: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #101114; }
body.is-on { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.app { min-height: 100vh; }
.launch { width: min(1160px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.launch-topbar { height: 92px; border-bottom: 1px solid #2c2e33; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f2f2ef; text-decoration: none; font-size: 22px; font-weight: 850; letter-spacing: -.07em; }
.brand-fade { color: #8b8d91; font-weight: 450; }
.brand-mark { width: 31px; height: 31px; padding: 7px 6px; border: 1px solid #45474c; border-radius: 10px; display: flex; align-items: end; justify-content: center; gap: 2px; background: #1c1e22; }
.brand-mark span { width: 4px; border-radius: 5px; background: #fff; }
.brand-mark span:nth-child(1) { height: 7px; opacity: .42; }
.brand-mark span:nth-child(2) { height: 12px; opacity: .7; }
.brand-mark span:nth-child(3) { height: 16px; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; color: #8d9097; font-size: 11px; padding: 9px 13px; border: 1px solid #303238; border-radius: 30px; }
.local-badge span { width: 6px; height: 6px; border-radius: 50%; background: #a4d58c; box-shadow: 0 0 0 3px #a4d58c22; }

.launch-content { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; padding: 64px 0 60px; }
.eyebrow { margin: 0 0 16px; color: #80838b; font-size: 11px; font-weight: 850; letter-spacing: .18em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 22px; color: #f6f6f2; font-size: clamp(46px, 6vw, 78px); line-height: 1.08; letter-spacing: -.08em; font-weight: 850; }
h1 em { color: #a7a8a4; font-style: normal; }
.intro { max-width: 540px; margin-bottom: 25px; color: #a4a5aa; font-size: 15px; line-height: 1.9; }
.feature-list { display: flex; flex-wrap: wrap; gap: 11px 18px; color: #7e8087; font-size: 12px; }
.power-button { display: flex; align-items: center; gap: 13px; min-width: 225px; margin-top: 37px; padding: 15px 18px; border: 0; border-radius: 12px; color: #161719; background: #f4f4ef; box-shadow: 0 12px 35px #0008; font-weight: 850; transition: transform .2s, background .2s, box-shadow .2s; }
.power-button:hover { background: #fff; box-shadow: 0 14px 40px #000b; transform: translateY(-2px); }
.power-icon { font-size: 19px; line-height: 1; }
.button-arrow { margin-left: auto; font-size: 20px; }
.keyboard-hint { margin: 13px 0 0 4px; color: #777a81; font-size: 11px; }
kbd { display: inline-grid; min-width: 21px; height: 20px; padding: 0 5px; place-items: center; border: 1px solid #4a4c53; border-bottom-width: 2px; border-radius: 5px; color: #c2c3c0; font-family: inherit; font-size: 10px; }

.lamp-visual { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(1px); }
.glow-back { width: 420px; height: 420px; background: #f3edcf0d; }
.glow-mid { width: 275px; height: 275px; background: #f9f4dd12; }
.lamp-orb { position: relative; width: 178px; height: 178px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffef3 0 6%, #f8f1d7 25%, #c8c4ad 61%, #37383a 63% 100%); box-shadow: 0 0 40px #f6efd55a, 0 0 150px #f6efd51f; }
.lamp-orb::after { content: ""; position: absolute; inset: 12px; border: 1px solid #fff8; border-radius: 50%; }
.lamp-orb span { position: absolute; left: 50%; bottom: -75px; width: 1px; height: 73px; background: linear-gradient(#9a9a8f, transparent); }
.visual-label { position: absolute; right: 12%; bottom: 55px; color: #686a70; font-size: 10px; line-height: 1.55; letter-spacing: .17em; transform: rotate(8deg); }
.visual-label strong { color: #d8d7c9; font-size: 15px; letter-spacing: .04em; }
.launch-footer { display: flex; gap: 12px; padding: 21px 0 31px; color: #66686e; border-top: 1px solid #2b2d32; font-size: 11px; }

.light-stage { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: #fff; color: #141414; transition: background-color .25s ease; }
.light-stage[hidden] { display: none; }
.stage-hud { position: fixed; top: max(20px, env(safe-area-inset-top)); left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; color: #171717aa; font-size: 11px; font-weight: 850; letter-spacing: .14em; pointer-events: none; transition: opacity .25s; }
.stage-status, .stage-timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 20px; background: #ffffff66; backdrop-filter: blur(7px); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4d9054; box-shadow: 0 0 0 4px #4d905422; }
.stage-timer { letter-spacing: .02em; }
.reveal-button { position: fixed; right: 22px; top: 58px; z-index: 2; width: 39px; height: 39px; border: 1px solid #1113; border-radius: 50%; color: #111b; background: #fff5; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.reveal-button:hover { transform: rotate(18deg); background: #fff9; }
.controls-hidden .reveal-button { opacity: 1; pointer-events: auto; }
.controls-hidden .stage-hud { opacity: 0; }
.controls { width: min(920px, calc(100% - 34px)); margin-bottom: max(24px, env(safe-area-inset-bottom)); padding: 23px 25px 20px; border: 1px solid #ffffff2b; border-radius: 20px; color: #ecece8; background: #17181bdd; box-shadow: 0 18px 50px #0004; backdrop-filter: blur(19px); transition: opacity .25s, transform .25s; }
.controls.hidden { opacity: 0; pointer-events: none; transform: translateY(18px); }
.controls-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.controls .eyebrow { margin-bottom: 7px; color: #8c9098; font-size: 10px; }
.controls h2 { margin-bottom: 0; color: #f4f4ef; font-size: 20px; letter-spacing: -.05em; }
.icon-button { width: 29px; height: 29px; border: 1px solid #555860; border-radius: 50%; color: #b8bac0; background: transparent; font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: #fff; color: #fff; }
.control-grid { display: grid; grid-template-columns: 1.2fr 1.1fr .9fr; gap: 11px; margin-top: 20px; }
.control-card { min-width: 0; padding: 14px; border: 1px solid #ffffff16; border-radius: 12px; background: #ffffff08; }
.control-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: #babcc0; font-size: 12px; font-weight: 700; }
.control-label strong { color: #fff; font-size: 13px; }
.brightness-card input { width: 100%; accent-color: #fff; }
.range-labels { display: flex; justify-content: space-between; color: #7e8189; font-size: 10px; }
.color-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.color-option { padding: 7px 3px 5px; border: 1px solid transparent; border-radius: 8px; color: #999ba1; background: transparent; font-size: 10px; }
.color-option i { display: block; width: 25px; height: 25px; margin: 0 auto 5px; border: 2px solid #ffffff4a; border-radius: 50%; background: #fff; }
.color-option[data-color="warm"] i { background: #fff1d1; }
.color-option[data-color="cool"] i { background: #edf8ff; }
.color-option[data-color="red"] i { background: #ff3939; }
.color-option:hover, .color-option.active { border-color: #ffffff66; color: #fff; background: #fff1; }
.timer-card select { width: 100%; height: 37px; padding: 0 9px; border: 1px solid #ffffff25; border-radius: 8px; color: #eee; background: #ffffff0b; outline: none; font-size: 11px; }
.timer-card select option { color: #151515; background: #fff; }
.control-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #ffffff15; }
.action-hints { display: flex; flex-direction: column; gap: 5px; color: #858890; font-size: 10px; }
.action-hints kbd { height: 17px; min-width: 18px; border-color: #555860; color: #d4d4d0; font-size: 9px; }
.action-buttons { display: flex; gap: 7px; }
.secondary-button, .power-off-button { padding: 9px 12px; border-radius: 8px; font-size: 11px; font-weight: 750; }
.secondary-button { border: 1px solid #ffffff2b; color: #d5d6d3; background: #fff0; }
.secondary-button:hover { border-color: #fff8; background: #fff1; }
.power-off-button { border: 1px solid #f2e4e433; color: #1a1917; background: #f7f5e8; }
.power-off-button:hover { background: #fff; }
.stage-tip { position: fixed; bottom: max(8px, env(safe-area-inset-bottom)); margin: 0; color: #14141488; font-size: 10px; pointer-events: none; transition: opacity .25s; }
.controls-hidden .stage-tip { opacity: 0; }

@media (max-width: 820px) {
  .launch-content { grid-template-columns: 1fr .7fr; gap: 15px; }
  .lamp-visual { transform: scale(.85); }
  .control-grid { grid-template-columns: 1fr 1fr; }
  .timer-card { grid-column: 1 / -1; }
  .control-actions { align-items: flex-end; flex-direction: column; }
  .action-hints { align-self: stretch; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 620px) {
  .launch { width: calc(100% - 28px); }
  .launch-topbar { height: 70px; }
  .local-badge { padding: 7px 9px; font-size: 10px; }
  .launch-content { display: block; padding: 49px 3px 35px; }
  h1 { font-size: 45px; }
  .intro { font-size: 13px; }
  .feature-list { gap: 9px 12px; font-size: 10px; }
  .power-button { margin-top: 30px; }
  .lamp-visual { display: none; }
  .launch-footer { flex-wrap: wrap; line-height: 1.6; }
  .stage-hud { left: 13px; right: 13px; }
  .controls { width: calc(100% - 18px); margin-bottom: max(9px, env(safe-area-inset-bottom)); padding: 18px 15px 14px; border-radius: 16px; }
  .control-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 15px; }
  .timer-card { grid-column: auto; }
  .control-actions { gap: 12px; }
  .action-hints { font-size: 9px; }
  .action-buttons { width: 100%; }
  .secondary-button, .power-off-button { flex: 1; padding: 10px 7px; font-size: 10px; }
  .stage-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
