:root {
  --bg: #06070a;
  --panel: rgba(7, 11, 18, 0.88);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3f4f7;
  --muted: #bfc7d4;
  --accent: #88f0c8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@font-face {
  font-family: "TickerGothamUltra";
  src: url("app-asset.php?name=GOTHAM-ULTRA.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TickerGothamMedium";
  src: url("app-asset.php?name=GOTHAM-MEDIUM.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TickerGothamLight";
  src: url("app-asset.php?name=GOTHAM-LIGHT.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "TickerGothamBook";
  src: url("app-asset.php?name=GOTHAM-BOOK.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050608;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

.preview-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050608;
}

.control-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 30;
  width: 360px;
  max-width: calc(100vw - 40px);
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

body.kiosk .control-panel {
  display: none;
}

.control-header h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  color: var(--muted);
  font-size: 14px;
}

.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.primary-button,
.secondary-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  background: #116466;
  color: #fff;
}

.secondary-button {
  background: rgba(17, 100, 102, 0.12);
  color: var(--accent);
}

.status-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.status-line {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.35;
}

.status-line.muted {
  color: var(--muted);
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.slide-image.is-cover {
  object-fit: cover;
}

.corner-logo {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 118px;
  height: 118px;
  object-fit: contain;
  z-index: 7;
}

.ticker-bar {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  height: 142px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(38, 43, 52, 0.85);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  z-index: 6;
}

.ticker-brand {
  flex: 0 0 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  background: rgba(24, 77, 165, 0.95);
}

.ticker-logo {
  width: 100%;
  height: 100%;
  max-width: 240px;
  max-height: 92px;
  object-fit: contain;
}

.ticker-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 34px 18px 30px;
  color: #fff;
  text-align: left;
}

.ticker-title {
  color: #fff;
  font-family: "TickerGothamUltra", "TickerGothamMedium", "Arial Black", Arial, sans-serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.ticker-text {
  font-family: "TickerGothamBook", "TickerGothamLight", "TickerGothamMedium", "Segoe UI", Arial, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 8px;
}

.empty-state {
  position: absolute;
  inset: auto 50% 50% auto;
  transform: translate(50%, 50%);
  width: min(720px, calc(100vw - 48px));
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 8;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 40px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
}

.state-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(4, 5, 8, 0.62);
  z-index: 20;
}

.state-card {
  width: 100%;
  max-width: 980px;
  padding: 44px 48px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.state-eyebrow {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.state-title {
  margin: 0 0 14px;
  font-size: 62px;
  line-height: 1.05;
}

.state-message {
  margin: 0 auto 22px;
  max-width: 780px;
  color: var(--muted);
  font-size: 28px;
  line-height: 1.45;
}

.state-code {
  display: inline-block;
  min-width: 320px;
  margin: 12px auto 18px;
  padding: 22px 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 84px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.state-detail {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}
