/* ==========================================================================
   rcs.bytebased.at - Spiele-Prototyp (Gluecksrad + Quiz)
   Mobile-first, BEM, neutrales bytebased-Branding (hell + Akzent-Blau)
   ========================================================================== */

:root {
  --bg:            #f4f7fc;
  --bg-2:          #f6f8fd;
  --panel:         #ffffff;
  --panel-2:       #eef3fb;
  --border:        #e3e9f4;
  --text:          #16223f;
  --muted:         #5c6a88;
  --accent:        #2f6fe0;
  --accent-dark:   #1e5bd6;
  --accent-glow:   rgba(47, 111, 224, 0.22);
  --accent-bright: #4a90ff;
  --accent-cyan:   #24b3ff;
  --accent-soft:   #e9f1ff;
  --gold:          #b26a00;
  --radius:        16px;
  --radius-sm:     11px;
  --font: 'Segoe UI', 'Helvetica Neue', system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100dvh;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(74,144,255,0.12), transparent 55%),
    radial-gradient(90% 60% at 50% 110%, rgba(74,144,255,0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Entrance-Animationen ------------------------------------------------ */

@keyframes fadeUp   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes popIn    { from { opacity: 0; transform: scale(0.92); }      to { opacity: 1; transform: none; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popScale { 0% { opacity: 0; transform: scale(0.82); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes wheelIdle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }

/* ---- Screen-System (Fade) ------------------------------------------------ */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1;
  overflow-y: auto;
}

.screen--active { opacity: 1; visibility: visible; z-index: 10; }

.card {
  width: 100%;
  max-width: 27rem;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 12px 34px -16px rgba(23,42,80,0.16), 0 0 0 1px rgba(23,42,80,0.03) inset;
}

/* ---- Brand / Text -------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  animation: fadeUp 0.3s ease both;
}

.brand__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow);
}

.title {
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.01em;
  animation: fadeUp 0.3s ease 0.04s both;
}

.subtitle {
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
  animation: fadeUp 0.3s ease 0.1s both;
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  animation: fadeUp 0.3s ease 0.16s both;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.24s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgba(47,111,224,0.26); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: none; transform: translateY(-1px); }

/* ---- Name-Eingabe -------------------------------------------------------- */

.field { width: 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.field__label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,111,224,0.18);
}

.input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
#name-hint { color: #dc2626; min-height: 1rem; }

.privacy {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  width: 100%;
}

/* ---- Spiel-Auswahl ------------------------------------------------------- */

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; width: 100%; }

.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.4rem 0.75rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.2s ease, box-shadow 0.24s ease;
  color: var(--text);
  font-family: var(--font);
  animation: fadeUp 0.32s ease backwards;
  -webkit-tap-highlight-color: transparent;
}
.choice:nth-child(1) { animation-delay: 0.05s; }
.choice:nth-child(2) { animation-delay: 0.13s; }
.choice:nth-child(3) { animation-delay: 0.21s; }
.choice:nth-child(4) { animation-delay: 0.29s; }
.choice:hover { border-color: var(--accent); box-shadow: 0 18px 44px -18px rgba(47,111,224,0.26); transform: translateY(-3px); }
.choice:active { transform: scale(0.97); }
.choice__emoji { font-size: 2.6rem; line-height: 1; }
.choice__label { font-size: 1.05rem; font-weight: 700; }
.choice__sub { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ---- Gluecksrad ---------------------------------------------------------- */

.wheel {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 0.25rem auto;
}

.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid var(--accent);
  z-index: 20;
  filter: drop-shadow(0 2px 8px var(--accent-glow));
}

.wheel__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--panel-2),
    0 0 0 8px var(--border),
    0 0 45px -6px var(--accent-glow);
  animation: wheelIdle 7s ease-in-out infinite;
}

/* ---- Quiz ---------------------------------------------------------------- */

.quiz { width: 100%; display: flex; flex-direction: column; gap: 1rem; }

.quiz__progress {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}
.quiz__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
}
.quiz__dot--done { background: var(--accent); }
.quiz__dot--active { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 10px 1px var(--accent-glow); }

.quiz__question {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.3s ease both;
}

.quiz__options { display: flex; flex-direction: column; gap: 0.65rem; }

.quiz__option {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz__option:hover:not(:disabled) { border-color: var(--accent); }
.quiz__option:active:not(:disabled) { transform: scale(0.99); }
.quiz__option--correct { border-color: #16a34a; background: rgba(22,163,74,0.12); color: #166534; }
.quiz__option--wrong   { border-color: #dc2626; background: rgba(220,38,38,0.10); color: #b91c1c; }
.quiz__option:disabled { cursor: default; }

/* ---- Ergebnis ------------------------------------------------------------ */

.prize {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(74,144,255,0.14), transparent 70%),
    var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  animation: popScale 0.4s ease both;
}

.prize__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
}
.prize__emoji { font-size: 3rem; line-height: 1; }
.prize__label { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }

.prize__code {
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: #fff7e6;
  border: 1px dashed #f0c46a;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  user-select: all;
}

.prize__delivery { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ---- Status / Fehler ----------------------------------------------------- */

.status { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.status__emoji { font-size: 2.75rem; }

.spinner {
  width: 2.5rem; height: 2.5rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Kiosk-Ansicht (Vollbild)
   ========================================================================== */

.kiosk {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.kiosk__header { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.kiosk__title { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; animation: fadeUp 0.32s ease both; }
.kiosk__subtitle { font-size: clamp(1rem, 2.4vw, 1.4rem); color: var(--muted); max-width: 34rem; line-height: 1.5; animation: fadeUp 0.32s ease 0.08s both; }

.kiosk__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.kiosk__demo { width: clamp(200px, 26vw, 320px); aspect-ratio: 1; position: relative; }

.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 12px 34px -16px rgba(23,42,80,0.16), 0 0 40px -18px var(--accent-glow);
  animation: popIn 0.34s ease 0.1s both;
}
.qr__img { width: clamp(180px, 24vw, 300px); height: auto; display: block; }
.qr__caption { font-size: 0.85rem; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 60rem;
}
.step { display: flex; align-items: center; gap: 0.65rem; font-size: clamp(0.9rem, 2vw, 1.15rem); color: var(--text); animation: fadeUp 0.3s ease backwards; }
.step:nth-child(1) { animation-delay: 0.06s; }
.step:nth-child(2) { animation-delay: 0.14s; }
.step:nth-child(3) { animation-delay: 0.22s; }
.step:nth-child(4) { animation-delay: 0.3s; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 0 16px -2px var(--accent-glow);
}

.kiosk__fallback { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.kiosk__fallback code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--accent);
  background: var(--panel-2);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 720px) {
  .kiosk__demo { display: none; }
}

@media (max-height: 700px) {
  .card { gap: 0.85rem; padding: 1.4rem 1.25rem; }
  .title { font-size: 1.35rem; }
}

/* ==========================================================================
   RCS-Chat-Demo (bewirbt RCS: verifizierter Absender, Rich-Cards, Buttons)
   ========================================================================== */

.chat-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem;
  background: #eef2f8;
}

.phone {
  width: 100%;
  max-width: 26rem;
  height: min(88dvh, 52rem);
  display: flex;
  flex-direction: column;
  background: #f6f8fd;
  border: 1px solid #dfe6f2;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(23,42,80,0.22), 0 0 0 1px #ffffff inset;
}

/* ---- Header -------------------------------------------------------------- */

.rcs-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.rcs-back { color: var(--muted); font-size: 1.6rem; line-height: 1; padding-right: 0.1rem; }

.rcs-agent { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.rcs-avatar {
  width: 2.4rem; height: 2.4rem; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; color: #fff;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent));
  box-shadow: 0 6px 16px -6px var(--accent-glow);
}
.rcs-agent__meta { display: flex; flex-direction: column; min-width: 0; }
.rcs-agent__name {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-weight: 700; font-size: 1rem; color: var(--text);
}
.rcs-verified { width: 1rem; height: 1rem; flex: 0 0 auto; }
.rcs-agent__sub { font-size: 0.72rem; color: var(--muted); }

.rcs-demo-pill {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(47,111,224,0.35);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

/* ---- Thread -------------------------------------------------------------- */

.rcs-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
.rcs-thread::-webkit-scrollbar { width: 0; }

.rcs-encnote {
  align-self: center;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(22,34,63,0.05);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.4rem;
}

.rcs-row { display: flex; max-width: 100%; animation: rcsIn 0.28s ease both; }
.rcs-row--bot { justify-content: flex-start; }
.rcs-row--user { justify-content: flex-end; }
@keyframes rcsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bubble {
  max-width: 82%;
  padding: 0.62rem 0.85rem;
  font-size: 0.96rem;
  line-height: 1.4;
  border-radius: 20px;
  word-wrap: break-word;
}
.bubble--bot {
  background: #eef2f8;
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.bubble--user {
  background: linear-gradient(180deg, #3b82f6, #2f6fe0);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble strong { font-weight: 700; }

/* Typing indicator */
.typing { display: inline-flex; gap: 0.25rem; padding: 0.7rem 0.9rem; }
.typing span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #9aa7c2;
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---- Rich Card ----------------------------------------------------------- */

.rcs-row--card { justify-content: flex-start; }
.card-rcs {
  max-width: 86%;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  border-bottom-left-radius: 6px;
}
.card-rcs__hero {
  height: 7rem;
  display: grid; place-items: center;
  font-size: 3.2rem;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(74,144,255,0.22), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(36,179,255,0.20), transparent 60%),
    #eef3fb;
}
.card-rcs__hero--prize {
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(245,196,81,0.30), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(74,144,255,0.20), transparent 60%),
    #fff7e6;
}
.card-rcs__body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.card-rcs__title { font-weight: 800; font-size: 1.12rem; }
.card-rcs__text { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

.card-rcs__code {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold);
  background: #fff7e6;
  border: 1px dashed #f0c46a;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  text-align: center;
  user-select: all;
  margin-top: 0.2rem;
}
.card-rcs__btns { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.55rem; }
.card-rcs__btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.92rem; font-weight: 700; font-family: var(--font);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47,111,224,0.3);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-rcs__btn:hover:not(:disabled) { background: rgba(47,111,224,0.14); }
.card-rcs__btn:active:not(:disabled) { transform: scale(0.98); }
.card-rcs__btn:disabled { opacity: 0.4; cursor: default; }
.card-rcs__btn--primary { color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border: none; }

/* In-Chat Rad */
.chat-wheel { position: relative; width: 78%; max-width: 15rem; aspect-ratio: 1; margin: 0.4rem auto 0; }
.chat-wheel__pointer {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 19px solid var(--accent); z-index: 5;
  filter: drop-shadow(0 2px 5px var(--accent-glow));
}
.chat-wheel canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 5px #ffffff, 0 0 0 7px var(--border), 0 10px 30px -12px var(--accent-glow); animation: wheelIdle 7s ease-in-out infinite; }

/* ---- Quick-Reply-Chips --------------------------------------------------- */

.rcs-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  justify-content: flex-end;
  padding: 0.15rem 0 0.2rem;
  animation: rcsIn 0.28s ease both;
}
.rcs-chip {
  padding: 0.55rem 1rem;
  font-size: 0.9rem; font-weight: 700; font-family: var(--font);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1.5px solid rgba(47,111,224,0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rcs-chip:hover { background: rgba(47,111,224,0.14); }
.rcs-chip:active { transform: scale(0.96); }

/* Inline number input for the "real SMS" proof-point */
.rcs-smsform { display: flex; gap: 0.4rem; width: 86%; }
.rcs-smsform input {
  flex: 1; min-width: 0;
  padding: 0.6rem 0.8rem; font-size: 0.95rem; font-family: var(--font);
  color: var(--text); background: #ffffff;
  border: 1px solid var(--border); border-radius: 11px;
}
.rcs-smsform input:focus { outline: none; border-color: var(--accent); }
.rcs-smsform button {
  padding: 0.6rem 0.9rem; font-weight: 700; font-family: var(--font);
  color: #fff; background: var(--accent); border: none; border-radius: 11px; cursor: pointer;
}

/* ---- Composer ------------------------------------------------------------ */

.rcs-composer {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  background: #ffffff;
  border-top: 1px solid var(--border);
}
.rcs-inputwrap { flex: 1; }
.rcs-input {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem; font-family: var(--font);
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.rcs-input:focus { outline: none; border-color: var(--accent); }
.rcs-input:disabled { opacity: 0.5; }
.rcs-send {
  width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; background: var(--accent);
  border: none; border-radius: 50%; cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.rcs-send svg { width: 1.2rem; height: 1.2rem; }
.rcs-send:disabled { opacity: 0.35; cursor: default; }
.rcs-send:active:not(:disabled) { transform: scale(0.92); }

.demo-footnote { font-size: 0.78rem; color: var(--muted); text-align: center; }
.demo-footnote strong { color: var(--text); }

@media (max-height: 720px) {
  .phone { height: 100dvh; max-width: 100%; border-radius: 0; border: none; }
  .chat-body { padding: 0; }
  .demo-footnote { display: none; }
}

/* ---- Gutschein aufs Handy (On-Screen-Spiel Ergebnis) --------------------- */
.sms-cta { width: 100%; border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.sms-cta__row { display: flex; gap: 0.5rem; }
.sms-cta__row .input { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; font-size: 1rem; }
.sms-cta__row .btn { width: auto; flex: 0 0 auto; padding: 0.7rem 1.25rem; font-size: 0.95rem; }
#sms-status { min-height: 1rem; }

/* ---- Second-Screen: großer „Drehen"-Auslöser im Handy-Chat -------------- */
.rcs-bigbtn { align-self: center; margin: 0.4rem 0; padding: 0.95rem 2.2rem; font-size: 1.2rem; font-weight: 800; font-family: var(--font); color: #fff; border: none; border-radius: 14px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); box-shadow: 0 12px 34px -8px var(--accent-glow); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.22s ease; animation: rcsIn 0.3s ease backwards; -webkit-tap-highlight-color: transparent; }
.rcs-bigbtn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(47,111,224,0.3); }
.rcs-bigbtn:active { transform: scale(0.97); }
.rcs-bigbtn:disabled { opacity: 0.5; cursor: default; }

/* ---- Reduced Motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
