:root {
  --black: #000;
  --ivory: #f2ede6;
  --ivory-dim: #96908a;
  --panel: #121110;
  --panel-2: #1f1c1a;
  --line-dark: #332f2b;
  --mcga-orange: #f96a15;

  --ink: #111114;
  --paper: #fafaf8;
  --hair: #e8e6e1;
  --sand: #f1f0ec;
  --muted: #6b6b73;
  --red: #e53212;
  --accent: #e53710;
  --orange: #ee7601;
  --yellow: #fab900;
  --green: #13a538;
  --grad: linear-gradient(118deg, #e53710 0%, #ee7601 58%, #f5a623 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --display: "Archivo Black", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font: Inter, system-ui, -apple-system, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

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

html {
  font-size: clamp(13px, calc(8px + 1.05vmin), 22px);
  height: 100%;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body.booth-kiosk {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
svg { display: block; }

.booth { position: fixed; inset: 0; }

/* ---------- screens ---------- */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(1.5rem + var(--safe-t)) calc(1.75rem + var(--safe-r)) calc(1.5rem + var(--safe-b)) calc(1.75rem + var(--safe-l));
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
  overflow: hidden;
}

.booth[data-scene="home"] .screen-home,
.booth[data-scene="ring"] .screen-ring,
.booth[data-scene="call"] .screen-call,
.booth[data-scene="analyzing"] .screen-analyzing,
.booth[data-scene="ready"] .screen-analyzing,
.booth[data-scene="analysis"] .screen-analysis {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease), visibility 0s;
}

.sw-surface {
  background:
    radial-gradient(60rem 40rem at 105% -10%, rgba(238, 118, 1, .10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, rgba(229, 55, 16, .07), transparent 60%),
    var(--paper);
  color: var(--ink);
}

/* ---------- 1. home ---------- */

.screen-home {
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  background: var(--black);
}

.home-glow {
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(249, 106, 21, .22), transparent);
  pointer-events: none;
  animation: glow 6s ease-in-out infinite alternate;
}

@keyframes glow { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }

.home-logo {
  position: relative;
  width: min(62vw, 72vh * 1.705);
  height: auto;
  max-height: 44vh;
  object-fit: contain;
}

.home-lead {
  position: relative;
  max-width: 36em;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ivory-dim);
}

.home-choices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  width: min(100%, 64rem);
}

.choice {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.4rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-dark);
  border-radius: 1.2rem;
  transition: transform .15s var(--ease), border-color .2s, box-shadow .2s;
}

.choice:active {
  transform: scale(.97);
  border-color: var(--mcga-orange);
  box-shadow: 0 0 0 4px rgba(249, 106, 21, .25), 0 18px 40px rgba(249, 106, 21, .25);
}

.choice-key {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--mcga-orange);
  color: #fff;
  font-family: var(--display);
  font-size: 1.6rem;
  box-shadow: 0 0 0 0 rgba(249, 106, 21, .5);
  animation: key-pulse 2.8s ease-out infinite;
}

.choice:nth-child(2) .choice-key { animation-delay: .5s; }
.choice:nth-child(3) .choice-key { animation-delay: 1s; }

@keyframes key-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 106, 21, .55); }
  70%, 100% { box-shadow: 0 0 0 1rem rgba(249, 106, 21, 0); }
}

.choice-copy { display: grid; gap: .3rem; min-width: 0; flex: 1; }
.choice-title { font-size: 1.15rem; font-weight: 700; line-height: 1.2; color: var(--ivory); }
.choice-sub { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--ivory-dim); }
.choice-icon { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; color: var(--mcga-orange); }

/* ---------- 2. ringing ---------- */

.screen-ring {
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: radial-gradient(closest-side at 50% 42%, rgba(249, 106, 21, .16), transparent 70%), var(--black);
}

.ring-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 46vmin;
  height: 50vmin;
}

.ring-wave {
  position: absolute;
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  border: 3px solid var(--mcga-orange);
  opacity: 0;
  animation: ring-wave 1.8s ease-out infinite;
}

.ring-wave:nth-child(2) { animation-delay: .6s; }
.ring-wave:nth-child(3) { animation-delay: 1.2s; }

@keyframes ring-wave {
  0% { transform: scale(.55); opacity: .9; }
  100% { transform: scale(1.65); opacity: 0; }
}

.ring-handset {
  position: relative;
  height: 46vmin;
  width: auto;
  transform-origin: 60% 50%;
  animation: ring-shake 1.2s ease-in-out infinite;
}

@keyframes ring-shake {
  0%, 55%, 100% { transform: rotate(0) translateY(0); }
  5% { transform: rotate(-9deg) translateY(-2%); }
  10% { transform: rotate(8deg) translateY(-3%); }
  15% { transform: rotate(-8deg) translateY(-3%); }
  20% { transform: rotate(7deg) translateY(-2%); }
  25% { transform: rotate(-6deg) translateY(-2%); }
  30% { transform: rotate(5deg) translateY(-1%); }
  35% { transform: rotate(-3deg); }
  40% { transform: rotate(2deg); }
}

.ring-spark {
  position: absolute;
  width: 5vmin;
  height: 1.1vmin;
  border-radius: 1vmin;
  background: var(--mcga-orange);
  opacity: 0;
  animation: ring-spark 1.2s ease-in-out infinite;
}

.ring-spark.is-a { top: 4%; right: 2%; transform: rotate(-40deg); }
.ring-spark.is-b { top: 15%; right: -6%; transform: rotate(-12deg); }
.ring-spark.is-c { top: 26%; right: -2%; transform: rotate(14deg); }

@keyframes ring-spark {
  0%, 45%, 100% { opacity: 0; }
  8%, 32% { opacity: 1; }
}

.ring-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6.2vmin, 4.6rem);
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.01em;
}

.ring-title em {
  font-style: normal;
  color: var(--mcga-orange);
}

.ring-sub {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.ring-dot, .sw-live-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--mcga-orange);
  box-shadow: 0 0 .6rem var(--mcga-orange);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

/* ---------- 3. call ---------- */

.screen-call { gap: 1rem; }

.sw-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sw-bar-logo { display: block; height: 2.1rem; width: auto; }

.sw-bar-home {
  margin: -.6rem;
  padding: .6rem;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease);
}
.sw-bar-home:active { transform: scale(.95); }

.sw-live {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: #fde8e3;
  color: var(--red);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.sw-live-dot { background: var(--red); box-shadow: 0 0 .5rem rgba(229, 50, 18, .6); animation-duration: 1.2s; }
.transcript-head .sw-live { margin-left: auto; padding: .35rem .8rem; font-size: .78rem; }

.call-time {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.call-time-sep, .call-time span:last-child { color: #a9a8ad; font-weight: 600; font-size: 1.05rem; }

.call-progress {
  height: .32rem;
  border-radius: 1rem;
  background: var(--hair);
  overflow: hidden;
}

.call-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
}

.call-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(16rem, .38fr) 1fr;
  gap: 1.25rem;
}

.call-parties {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.party {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 12px 32px rgba(17, 17, 20, .05);
  transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease);
}

.party-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--ink);
  color: #fff;
}

.party.is-reception .party-avatar { background: var(--grad); }
.party-avatar svg { width: 2rem; height: 2rem; }
.party-copy { flex: 1; min-width: 0; }
.party-name { font-size: 1.25rem; font-weight: 800; }
.party-sub { margin-top: .15rem; font-size: .85rem; color: var(--muted); }

.party-eq { display: flex; align-items: center; gap: .2rem; height: 1.6rem; opacity: .25; transition: opacity .3s; }
.party-eq i { display: block; width: .28rem; height: 30%; border-radius: .2rem; background: var(--orange); }

.booth[data-speaking="guest"] .party.is-guest,
.booth[data-speaking="reception"] .party.is-reception {
  border-color: rgba(238, 118, 1, .55);
  box-shadow: 0 0 0 .3rem rgba(238, 118, 1, .12), 0 18px 40px rgba(238, 118, 1, .16);
  transform: translateY(-2px);
}

.booth[data-speaking="guest"] .party.is-guest .party-eq,
.booth[data-speaking="reception"] .party.is-reception .party-eq { opacity: 1; }

.booth[data-speaking="guest"] .party.is-guest .party-eq i,
.booth[data-speaking="reception"] .party.is-reception .party-eq i { animation: eq .7s ease-in-out infinite alternate; }

.party-eq i:nth-child(2) { animation-delay: .15s !important; }
.party-eq i:nth-child(3) { animation-delay: .3s !important; }
.party-eq i:nth-child(4) { animation-delay: .45s !important; }

@keyframes eq { from { height: 20%; } to { height: 100%; } }

.party-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  height: 3.2rem;
}

.party-line i {
  display: block;
  width: .3rem;
  height: 25%;
  border-radius: .3rem;
  background: var(--grad);
  opacity: .35;
}

.booth[data-speaking] .party-line i {
  opacity: 1;
  animation: wave .9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.11s);
}

@keyframes wave { from { height: 18%; } to { height: 100%; } }

.transcript {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 18px 48px rgba(17, 17, 20, .06);
  overflow: hidden;
}

.transcript-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--hair);
  font-size: 1.05rem;
  font-weight: 700;
}

.transcript-head svg, .rp-card-head svg { width: 1.25rem; height: 1.25rem; color: var(--orange); }

.transcript-ai {
  margin-left: auto;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #fdf0e4;
  color: #b85c02;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bubbles {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.4rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.4rem);
}

.bubble {
  max-width: 78%;
  display: grid;
  gap: .4rem;
  animation: bubble-in .45s var(--ease) both;
}

@keyframes bubble-in { from { opacity: 0; transform: translateY(.8rem) scale(.98); } }

.bubble.is-reception { align-self: flex-end; }

.bubble-who {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bubble.is-reception .bubble-who { justify-content: flex-end; color: #b85c02; }
.bubble-time { font-weight: 500; letter-spacing: 0; color: #a9a8ad; font-variant-numeric: tabular-nums; }

.bubble-text {
  padding: 1rem 1.2rem;
  border-radius: 1.2rem 1.2rem 1.2rem .35rem;
  background: var(--sand);
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
  min-height: 3.2rem;
}

.bubble.is-reception .bubble-text {
  border-radius: 1.2rem 1.2rem .35rem 1.2rem;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(229, 55, 16, .18);
}

.bubble-ghost { opacity: 0; }

.bubble.is-typing .bubble-typed::after {
  content: "";
  display: inline-block;
  width: .12em;
  height: 1em;
  margin-left: .12em;
  vertical-align: -.12em;
  background: currentColor;
  animation: blink .8s steps(2, start) infinite;
}

/* ---------- 4. analyzing ---------- */

.screen-analyzing { align-items: center; justify-content: center; }

.an-card {
  width: min(100%, 36rem);
  padding: 2.4rem 2.4rem 2.2rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--hair);
  border-radius: 1.75rem;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 30px 80px rgba(17, 17, 20, .10);
  text-align: center;
}

.an-mark img { height: 2.3rem; width: auto; margin: 0 auto 1.6rem; }
.an-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.an-sub { margin-top: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }

.an-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.an-track {
  position: relative;
  flex: 1;
  height: .8rem;
  border-radius: 1rem;
  background: var(--sand);
  overflow: hidden;
}

.an-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  overflow: hidden;
}

.an-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.an-pct { min-width: 3.4rem; text-align: right; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.an-steps {
  list-style: none;
  display: grid;
  gap: .75rem;
  margin-top: 1.6rem;
  text-align: left;
}

.an-step {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #a9a8ad;
  transition: color .3s;
}

.an-step-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid var(--hair);
  color: transparent;
  transition: background .3s, border-color .3s, color .3s;
}

.an-step-dot svg { width: 1rem; height: 1rem; }
.an-step.is-active { color: var(--ink); }
.an-step.is-active .an-step-dot { border-color: var(--orange) transparent var(--orange) var(--orange); animation: spin .8s linear infinite; }
.an-step.is-done { color: var(--ink); }
.an-step.is-done .an-step-dot { background: var(--green); border-color: var(--green); color: #fff; }

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

.an-ready {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-height: 0;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease);
}

.booth[data-scene="ready"] .an-ready { max-height: 16rem; opacity: 1; margin-top: 1.6rem; padding-bottom: 1.6rem; overflow: visible; }
.booth[data-scene="ready"] .an-card { padding-bottom: .8rem; }
.booth[data-scene="ready"] .an-track span::after { animation: none; }

.an-notify {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #e6f5ea;
  color: #0e7a2a;
  font-size: .9rem;
  font-weight: 600;
}

.an-notify svg { width: 1.1rem; height: 1.1rem; }

.sw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(229, 55, 16, .30);
  transition: transform .15s var(--ease), box-shadow .2s;
}

.sw-cta svg { width: 1.4rem; height: 1.4rem; }
.sw-cta:active { transform: scale(.97); box-shadow: 0 6px 18px rgba(229, 55, 16, .3); }
.booth[data-scene="ready"] .an-ready .sw-cta { animation: cta-pulse 2.2s ease-in-out infinite; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(229, 55, 16, .30), 0 0 0 0 rgba(238, 118, 1, .45); }
  60% { box-shadow: 0 14px 34px rgba(229, 55, 16, .30), 0 0 0 .9rem rgba(238, 118, 1, 0); }
}

/* ---------- 5. report ---------- */

.screen-analysis { padding-bottom: 0; gap: 1rem; }

.rp-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.rp-logo { height: 2.1rem; width: auto; }

.corner-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.2rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--hair);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(17, 17, 20, .06);
  transition: transform .15s var(--ease);
}

.corner-btn svg { width: 1.4rem; height: 1.4rem; }
.corner-btn:active { transform: scale(.95); }

.rp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(1.5rem + var(--safe-b));
}

.rp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.rp-hotel { font-size: .9rem; font-weight: 600; color: var(--muted); }
.rp-title { order: 3; flex-basis: 100%; font-size: 1.7rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }

.rp-badge, [data-level] { --tone: var(--red); --tone-bg: #fde8e3; }
[data-level="warn"] { --tone: #b85c02; --tone-bg: #fdf0e4; }
[data-level="good"] { --tone: var(--green); --tone-bg: #e6f5ea; }

.rp-badge {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: .85rem;
  font-weight: 700;
}

.rp-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.7fr);
  gap: 1rem;
  align-items: stretch;
}

.rp-side, .rp-main { display: grid; gap: 1rem; align-content: start; }

.rp-card {
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 1.4rem;
  box-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 12px 32px rgba(17, 17, 20, .05);
  animation: card-in .6s var(--ease) both;
}

.rp-side .rp-card:nth-child(2) { animation-delay: .08s; }
.rp-main .rp-card { animation-delay: .12s; }
.rp-main .is-problem { animation-delay: .18s; }
.rp-cards .rp-card:nth-child(1) { animation-delay: .24s; }
.rp-cards .rp-card:nth-child(2) { animation-delay: .3s; }
.rp-cards .rp-card:nth-child(3) { animation-delay: .36s; }

@keyframes card-in { from { opacity: 0; transform: translateY(1rem); } }

.rp-card-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
  font-size: 1rem;
  font-weight: 700;
}

.rp-card p { font-size: .98rem; line-height: 1.5; color: #2b2b31; }

.rp-score-row { display: flex; align-items: center; gap: 1.1rem; }

.rp-gauge { position: relative; width: 5.6rem; height: 5.6rem; flex: 0 0 auto; }
.rp-gauge svg, .idle-count svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rp-gauge-bg, .idle-count-bg { fill: none; stroke: var(--sand); stroke-width: 10; }

.rp-gauge-fg {
  fill: none;
  stroke: var(--tone);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
}

.rp-gauge-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--tone);
  font-variant-numeric: tabular-nums;
}

.rp-score-copy b { display: block; font-size: 1.45rem; font-weight: 800; }
.rp-score-copy small { font-size: .92rem; color: var(--muted); }
.rp-reason { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--hair); font-size: .9rem !important; color: var(--muted) !important; }

.rp-card.is-shortcut { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }

.rp-shortcut {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 -1.25rem;
  border-top: 1px solid var(--hair);
  background: #f6f7f7;
}

.rp-shortcut > p { padding: .85rem 1.25rem; }
.rp-tags { flex: 1; background: #fdf3d0; }

.rp-tag {
  padding: .7rem 1.25rem .8rem;
  background: #fdf3d0;
  border-top: 1px solid #e8692c;
}

.rp-tag-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #e5541c;
}

.rp-tag-head svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.rp-tag p { margin-top: .25rem; font-size: .9rem !important; line-height: 1.4 !important; }

.rp-card.is-problem {
  background: linear-gradient(180deg, #fff6f3, #fff);
  border-color: #f7d3c8;
}

.rp-card.is-problem .rp-card-head, .rp-card.is-problem .rp-card-head svg { color: var(--red); }

.rp-summary { background: linear-gradient(180deg, #fff8f1, #fff); border-color: #f5dcc4; }
.rp-hero { font-size: 1.15rem !important; line-height: 1.5 !important; color: var(--ink) !important; font-weight: 500; }

.rp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rp-list { list-style: none; display: grid; gap: .55rem; }

.rp-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .92rem;
  line-height: 1.4;
  color: #2b2b31;
}

.rp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--yellow);
}

.rp-list li[data-tone="good"]::before { background: var(--green); }
.rp-list li[data-tone="bad"]::before { background: var(--red); }

/* ---------- modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 20, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade .25s ease both;
}

.modal[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } }

.modal-card {
  position: relative;
  width: min(100%, 30rem);
  padding: 2.2rem;
  background: #fff;
  color: var(--ink);
  border-radius: 1.75rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
  text-align: center;
  animation: pop .4s var(--ease) both;
}

@keyframes pop { from { opacity: 0; transform: translateY(1rem) scale(.96); } }

.modal-card h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.modal-card p { margin-top: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }

.idle-card .sw-cta { margin-top: 1.6rem; min-width: 14rem; }

.idle-count { position: relative; width: 6.5rem; height: 6.5rem; margin: 0 auto 1.2rem; }

.idle-count-fg {
  fill: none;
  stroke: var(--orange);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 0;
}

.idle-count span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- portrait tablet ---------- */

@media (orientation: portrait) {
  .screen-home { gap: 2rem; }
  .home-logo { width: min(92vw, 52rem); max-height: 34vh; }
  .home-choices { grid-template-columns: 1fr; width: min(100%, 38rem); gap: 1rem; }
  .choice { min-height: 5.8rem; }

  .ring-stage { width: 60vmin; height: 66vmin; }
  .ring-wave { width: 46vmin; height: 46vmin; }
  .ring-handset { height: 60vmin; }

  .call-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .call-parties { flex-direction: row; align-items: center; }
  .party { flex: 1; min-width: 0; }
  .party-line { flex: 0 0 auto; gap: .2rem; }
  .party-line i:nth-child(n + 12) { display: none; }
  .bubble { max-width: 86%; }

  .rp-grid { grid-template-columns: 1fr; }
  .rp-side { grid-template-columns: 1fr 1fr; }
}

@media (orientation: portrait) and (max-width: 700px) {
  .party-sub, .party-eq { display: none; }
  .rp-side, .rp-cards { grid-template-columns: 1fr; }
  .corner-btn span { display: none; }
}

@media (orientation: landscape) and (max-height: 620px) {
  .home-lead { display: none; }
  .screen-home { gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
