:root {
  --ink: #101820;
  --muted: #54606d;
  --paper: #f8faf9;
  --white: #ffffff;
  --cyan: #21d7d3;
  --cyan-dark: #0ba7aa;
  --blue: #125db3;
  --navy: #07182b;
  --red: #ff4b43;
  --yellow: #ffe96b;
  --warning: #ffb02e;
  --danger: #ff4b43;
  --stage-w: 1920;
  --stage-h: 1080;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #02070d; }
body { color: var(--ink); }
button { font: inherit; }

#viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(33, 215, 211, .13), transparent 28%),
    radial-gradient(circle at 84% 86%, rgba(18, 93, 179, .18), transparent 32%),
    #02070d;
}

#stage {
  position: absolute;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}

.ambient { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .18; pointer-events: none; z-index: 0; }
.ambient-a { width: 520px; height: 520px; right: -260px; top: -230px; background: var(--cyan); }
.ambient-b { width: 560px; height: 560px; left: -320px; bottom: -360px; background: var(--blue); }

.deck-header,
.deck-footer {
  position: absolute;
  left: 72px;
  right: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #6e7882;
  pointer-events: none;
}
.deck-header { top: 32px; }
.deck-footer { bottom: 28px; }
.brand-lockup, .header-meta { display: flex; align-items: center; gap: 16px; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px rgba(33,215,211,.16); }
.brand-divider { width: 1px; height: 20px; background: #c5cbd0; }
.header-meta { color: #46515d; }
#wallClock { min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.footer-progress { position: absolute; left: 170px; right: 170px; height: 4px; border-radius: 99px; background: #d9dfe1; overflow: hidden; }
.footer-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .35s ease; }

.slides, .slide { position: absolute; inset: 0; }
.slide {
  display: none;
  overflow: hidden;
  padding: 104px 110px 92px;
  z-index: 2;
}
.slide.active { display: block; animation: slideIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.slide.light { background: rgba(248,250,249,.96); }
.slide.dark { background: var(--navy); color: var(--white); }
.content { position: relative; z-index: 2; }
.content.wide { width: 100%; }
.eyebrow { margin: 0 0 20px; font-size: 22px; font-weight: 900; letter-spacing: .16em; color: var(--cyan-dark); }
.eyebrow.red { color: var(--red); }
.cyan-text { color: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 40px; font-size: 78px; line-height: 1.12; letter-spacing: -.04em; }
h2 em { color: var(--red); font-style: normal; }
.slide-no {
  position: absolute;
  right: 84px;
  top: 82px;
  font-size: 180px;
  line-height: 1;
  font-weight: 950;
  color: rgba(7,24,43,.045);
}

/* Cover */
.cover { color: var(--white); background: var(--navy); padding: 150px 145px; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 42%, rgba(33,215,211,.1)); pointer-events: none; }
.cover-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(90deg, #000, transparent 76%); }
.cover-kicker { position: relative; z-index: 2; color: var(--cyan); font-size: 25px; font-weight: 900; letter-spacing: .18em; }
.cover h1 { position: relative; z-index: 2; margin: 126px 0 6px; font-size: 190px; line-height: .92; letter-spacing: -.07em; }
.cover-sub { position: relative; z-index: 2; font-size: 52px; font-weight: 800; letter-spacing: .04em; }
.cover-rule { position: relative; z-index: 2; width: 170px; height: 10px; margin: 48px 0 28px; background: var(--yellow); }
.cover-note { position: relative; z-index: 2; font-size: 31px; color: #dbe7ef; }
.cover-date { position: absolute; right: 120px; bottom: 92px; z-index: 2; font-size: 34px; font-weight: 800; letter-spacing: .08em; }

/* Intro */
.goal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 65px; }
.goal-card { min-height: 252px; padding: 34px 36px; border: 2px solid #dfe5e8; border-radius: 18px; background: var(--white); box-shadow: 0 16px 34px rgba(7,24,43,.07); }
.goal-card::before { content: ""; display: block; width: 58px; height: 8px; margin-bottom: 24px; border-radius: 99px; background: var(--cyan); }
.goal-card.blue::before { background: var(--blue); }
.goal-card.yellow::before { background: #efc800; }
.goal-card > span { font-size: 18px; font-weight: 900; letter-spacing: .16em; color: #65717e; }
.goal-card h3 { margin: 16px 0 14px; font-size: 38px; }
.goal-card p { font-size: 24px; line-height: 1.55; color: var(--muted); }
.mini-timer { position: absolute; right: 78px; bottom: 62px; z-index: 5; display: flex; align-items: baseline; gap: 15px; padding: 12px 20px; border-radius: 12px; color: var(--white); background: var(--navy); box-shadow: 0 12px 28px rgba(7,24,43,.18); }
.mini-timer span { font-size: 18px; font-weight: 800; }
.mini-timer strong { font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-timer.large { bottom: 66px; right: 72px; }

.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.theme-card { position: relative; min-height: 470px; padding: 38px 42px; border-radius: 22px; overflow: hidden; color: var(--white); box-shadow: 0 20px 42px rgba(7,24,43,.14); }
.theme-card::after { content: ""; position: absolute; width: 290px; height: 290px; right: -100px; bottom: -110px; border-radius: 50%; border: 54px solid rgba(255,255,255,.09); }
.theme-card.squad { background: linear-gradient(140deg, #13aeb4, #093f7d); }
.theme-card.bb { background: linear-gradient(140deg, #173d78, #09172a); }
.theme-company { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 800; }
.theme-company span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; color: var(--navy); background: var(--cyan); font-size: 23px; font-weight: 950; }
.theme-card h3 { position: relative; z-index: 2; margin: 54px 0 28px; font-size: 43px; line-height: 1.35; }
.theme-card h3 em { color: var(--yellow); font-style: normal; font-size: 1.28em; }
.theme-card .metric { position: relative; z-index: 2; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28); font-size: 23px; line-height: 1.5; color: #d8eff5; }
.lens-row { display: flex; gap: 18px; margin-top: 26px; }
.lens-row span { display: grid; place-items: center; flex: 1; min-height: 84px; padding: 22px 24px; border-radius: 14px; background: #e9f0f2; font-size: 29px; line-height: 1.25; font-weight: 900; text-align: center; }

.venue-slide, .seat-slide { padding: 92px 92px 70px; }
.venue-slide h2, .seat-slide h2 { margin-bottom: 18px; font-size: 58px; }
.seat-slide h2 em { color: var(--blue); }
.venue-shell { display: grid; grid-template: 82px 1fr 38px / 1fr; gap: 13px; height: 700px; padding: 20px 28px 18px; border: 5px solid #25313b; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px rgba(7,24,43,.09); }
.venue-stage { display: flex; align-items: center; justify-content: center; gap: 20px; border: 3px dashed #ea9b91; border-radius: 8px; background: repeating-linear-gradient(135deg, #fff8f6, #fff8f6 10px, #fdeae6 10px, #fdeae6 12px); text-align: center; }
.venue-stage strong { padding: 10px 25px; border-radius: 8px; color: #fff; background: var(--red); font-size: 25px; }
.venue-stage span { min-width: 180px; padding: 9px 16px; border: 2px solid #baa8a5; background: #fff; font-size: 17px; font-weight: 800; }
.venue-stage small { margin-left: 20px; color: #895f59; font-size: 15px; font-weight: 900; }
.venue-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: 14px 18px; width: 1180px; min-height: 0; justify-self: center; }
.venue-table { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 145px; min-height: 0; justify-self: center; padding: 25px 8px 10px; border: 3px solid #69808e; border-radius: 9px; text-align: center; box-shadow: 7px 0 0 #aeb9bf; }
.venue-table.squad { border-color: #0fa8aa; background: #dff8f5; box-shadow: 7px 0 0 #5ad6d1; }
.venue-table.bb { border-color: #d4a600; background: #fff8c5; box-shadow: 7px 0 0 #f0d54d; }
.venue-table b { position: absolute; left: 8px; top: 7px; font-size: 13px; letter-spacing: .05em; }
.venue-table span { display: -webkit-box; width: 100%; min-height: 45px; overflow: hidden; font-size: 14px; font-weight: 950; line-height: 1.12; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.venue-table small { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; width: 100%; margin-top: 5px; color: #46535c; font-size: 13px; font-weight: 850; line-height: 1.28; }
.venue-table small i { font-style: normal; white-space: nowrap; }
.venue-table small i:not(:last-child)::after { content: "・"; }
.venue-entrance { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-right: 20px; border-top: 4px solid #25313b; }
.venue-entrance strong { font-size: 18px; }
.venue-entrance span { color: var(--blue); font-size: 26px; font-weight: 950; }
.venue-legend { display: flex; align-items: center; gap: 16px; margin-top: 13px; font-size: 17px; font-weight: 900; }
.venue-legend span { padding: 8px 15px; border-radius: 999px; }
.venue-legend .squad-key { color: #087f82; background: #dff8f5; }
.venue-legend .bb-key { color: #8a6b00; background: #fff2a0; }
.venue-legend small { margin-left: auto; color: var(--muted); font-size: 16px; }

.seat-grid { display: grid; gap: 14px; height: 730px; grid-auto-rows: 1fr; }
.squad-seat-grid { grid-template-columns: repeat(4, 1fr); }
.bb-seat-grid { grid-template-columns: repeat(6, 1fr); }
.seat-card { min-width: 0; padding: 13px 15px 14px; border: 2px solid #d3dde1; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(7,24,43,.05); }
.seat-card.squad { border-top: 8px solid var(--cyan-dark); }
.seat-card.bb { border-top: 8px solid #e0b600; }
.seat-card header { display: flex; align-items: flex-start; gap: 10px; height: 55px; }
.seat-card header b { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; color: #fff; background: var(--blue); font-size: 14px; }
.seat-card.bb header b { color: #5e4800; background: var(--yellow); }
.seat-card header h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 18px; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.seat-diagram { display: grid; grid-template-columns: 1fr 1fr 1fr .95fr; grid-template-rows: 34px 58px 58px 34px; gap: 4px 6px; }
.seat-name { display: grid; place-items: center; min-width: 0; padding: 2px 5px; overflow: hidden; border: 1px solid #cbd5da; border-radius: 6px; color: #1c2a34; background: #f4f7f8; font-size: 15px; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.seat-name.empty { color: #aeb8bd; border-style: dashed; background: #fafbfb; }
.seat-name.top-left { grid-column: 1; grid-row: 1; }
.seat-name.top-right { grid-column: 3; grid-row: 1; }
.seat-name.right-top { grid-column: 4; grid-row: 2; }
.seat-name.right-bottom { grid-column: 4; grid-row: 3; }
.seat-name.bottom-right { grid-column: 3; grid-row: 4; }
.seat-name.bottom-left { grid-column: 1; grid-row: 4; }
.table-shape { grid-column: 1 / 4; grid-row: 2 / 4; display: grid; place-items: center; border: 3px solid #687782; border-right-width: 12px; border-radius: 5px; color: #63717a; background: linear-gradient(#e4e9eb 49%, #cbd3d7 50%); font-size: 12px; font-weight: 950; letter-spacing: .14em; }
.squad-seat-grid .seat-diagram { grid-template-rows: 40px 84px 84px 40px; }
.squad-seat-grid .seat-name { font-size: 17px; }
.bb-seat-grid .seat-card { min-height: 300px; padding: 15px 18px; }
.bb-seat-grid .seat-card { grid-column: span 2; }
.bb-seat-grid .seat-card header { height: 62px; }
.bb-seat-grid .seat-card header h3 { font-size: 20px; }
.bb-seat-grid .seat-diagram { grid-template-rows: 42px 96px 96px 42px; }
.bb-seat-grid .seat-name { font-size: 17px; }
.bb-seat-grid .seat-card:nth-child(4) { grid-column: 2 / 4; }
.bb-seat-grid .seat-card:nth-child(5) { grid-column: 4 / 6; }

.flow-line { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1fr 70px 1fr; align-items: center; margin: 80px 0 74px; }
.flow-item { position: relative; padding: 32px 12px 26px; border: 2px solid #dde4e7; border-radius: 16px; background: var(--white); text-align: center; box-shadow: 0 12px 30px rgba(7,24,43,.06); }
.flow-item b { position: absolute; left: 50%; top: -34px; display: grid; place-items: center; width: 64px; height: 64px; transform: translateX(-50%); border-radius: 50%; color: var(--white); background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 30px; }
.flow-item span { display: block; margin-top: 8px; font-size: 31px; font-weight: 900; }
.flow-item small { display: block; margin-top: 7px; font-size: 18px; color: var(--muted); }
.flow-arrow { color: var(--cyan-dark); text-align: center; font-size: 44px; font-weight: 900; }
.role-panel { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch; }
.role-panel > div { padding: 26px 32px; border-left: 10px solid var(--cyan); background: #e9f5f4; }
.role-label { margin-bottom: 8px; font-size: 20px; font-weight: 900; color: var(--cyan-dark); }
.role-panel h3 { margin: 0; font-size: 29px; line-height: 1.4; }
.point-copy { margin: 0; padding: 24px 28px; background: #fff7ad; font-size: 23px; line-height: 1.45; }
.point-copy strong { display: block; margin-bottom: 6px; color: #ad8700; letter-spacing: .12em; }

/* Phase */
.phase-slide { display: none; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; padding-left: 170px; }
.phase-slide.active { display: grid; }
.step-flag { position: absolute; left: 0; top: 0; bottom: 0; display: grid; place-items: center; width: 98px; color: var(--white); background: linear-gradient(180deg, var(--cyan), var(--blue)); font-size: 42px; font-weight: 950; writing-mode: vertical-rl; letter-spacing: .12em; }
.step-flag.hot { background: linear-gradient(180deg, var(--red), #dd2242); }
.phase-copy { padding-right: 10px; }
.phase-copy h2 { margin-bottom: 25px; font-size: 86px; }
.lead { margin-bottom: 38px; font-size: 31px; line-height: 1.55; color: #33404d; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.prompt-chips span { padding: 14px 20px; border-radius: 999px; background: #e5f1f1; font-size: 22px; font-weight: 800; }
.point-card { padding: 20px 24px; border-radius: 10px; background: #fff6a4; font-size: 24px; line-height: 1.45; box-shadow: inset 0 0 0 1px rgba(170,135,0,.18); }
.point-card b { margin-right: 14px; color: #a07800; letter-spacing: .12em; }
.instruction-list { display: grid; gap: 14px; margin: 0 0 42px; }
.instruction-list p { display: flex; align-items: center; gap: 18px; margin: 0; padding: 16px 20px; border-bottom: 1px solid #dbe2e5; font-size: 24px; }
.instruction-list p b { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: var(--blue); font-size: 17px; }
.instruction-list.large p { font-size: 27px; }
.timer-orbit { display: grid; place-items: center; }
.timer-ring { --progress: 1turn; width: 480px; height: 480px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle at center, var(--paper) 0 61%, transparent 62%), conic-gradient(var(--cyan) var(--progress), #dce4e7 0); box-shadow: 0 24px 56px rgba(7,24,43,.14); }
.timer-ring span { margin-bottom: 4px; font-size: 24px; font-weight: 800; color: var(--muted); }
.timer-ring strong { font-size: 115px; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.timer-warning .timer-ring { background: radial-gradient(circle at center, var(--paper) 0 61%, transparent 62%), conic-gradient(var(--warning) var(--progress), #f0e2cf 0); }
.timer-danger .timer-ring { background: radial-gradient(circle at center, var(--paper) 0 61%, transparent 62%), conic-gradient(var(--danger) var(--progress), #f2d5d5 0); }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.question-grid.two { grid-template-columns: repeat(2, 1fr); }
.question-grid article { min-height: 174px; padding: 24px; border: 2px solid #dce4e7; border-radius: 14px; background: var(--white); }
.question-grid article span { color: var(--cyan-dark); font-size: 17px; font-weight: 950; letter-spacing: .15em; }
.question-grid article h3 { margin: 14px 0 10px; font-size: 29px; }
.question-grid article p { margin: 0; color: var(--muted); font-size: 20px; }

/* Output */
.output-slide { padding-left: 160px; }
.output-content h2 { margin-bottom: 32px; font-size: 65px; }
.output-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; }
.poster-mock { display: grid; grid-template: 100px 1fr 1fr / 1fr 1fr; gap: 12px; padding: 24px; min-height: 600px; border: 5px solid #1f2933; background: #fffef4; box-shadow: 12px 14px 0 rgba(7,24,43,.1); transform: rotate(-.6deg); }
.poster-title { grid-column: 1 / -1; display: grid; place-items: center; border: 3px solid #1f2933; font-size: 32px; font-weight: 950; }
.poster-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; border: 2px dashed #7c8994; text-align: center; }
.poster-cell b { font-size: 28px; }
.poster-cell span { font-size: 20px; color: var(--muted); }
.poster-cell.a { background: #ddf7f4; }
.poster-cell.b { background: #e4efff; }
.poster-cell.c { background: #fff7bd; }
.poster-cell.d { background: #f7e9ef; }
.output-guide { padding: 28px 24px 20px; }
.output-guide h3 { margin-bottom: 28px; font-size: 40px; line-height: 1.35; color: var(--red); }
.output-guide ul { display: grid; gap: 17px; margin: 0 0 34px; padding: 0; list-style: none; }
.output-guide li { position: relative; padding-left: 38px; font-size: 26px; line-height: 1.45; }
.output-guide li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan-dark); font-weight: 950; }

/* Break */
.break-slide { display: none; place-items: center; align-content: center; text-align: center; color: var(--white); background: linear-gradient(145deg, #0b2541, #05212e 52%, #074a5a); }
.break-slide.active { display: grid; }
.break-word { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.06); font-size: 250px; line-height: 1; font-weight: 950; letter-spacing: .05em; }
.break-slide h2 { position: relative; z-index: 2; margin: 0 0 16px; font-size: 126px; }
.break-slide p { position: relative; z-index: 2; max-width: 1000px; font-size: 28px; color: #d4e7ed; }
.break-timer { position: relative; z-index: 2; margin-top: 30px; font-size: 150px; font-weight: 950; color: var(--yellow); font-variant-numeric: tabular-nums; }

/* Group presentations */
.group-slide { padding: 112px 120px 90px; }
.group-slide::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(circle at center, #000 0, transparent 72%); }
.group-topline, .group-footer, .group-name, .group-main { position: relative; z-index: 2; }
.group-topline { display: flex; align-items: flex-start; justify-content: space-between; }
.group-topline h2 { margin: 0; font-size: 58px; }
.group-count { display: flex; align-items: baseline; gap: 14px; padding: 16px 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.06); }
.group-count span { font-size: 18px; font-weight: 900; letter-spacing: .14em; color: #8ea2b2; }
.group-count strong { font-size: 62px; line-height: 1; color: var(--cyan); }
.group-count i, .group-count b { font-size: 32px; font-style: normal; color: #9db0bd; }
.group-name { margin-top: 26px; height: 72px; font-size: 42px; font-weight: 900; color: #e9f3f6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-main { display: grid; place-items: center; align-content: center; min-height: 590px; }
.segment-status { display: flex; align-items: baseline; gap: 20px; }
.segment-status span { font-size: 45px; font-weight: 950; color: var(--yellow); }
.segment-status small { font-size: 25px; color: #93a8b5; }
.group-timer { margin: 12px 0 36px; font-size: 220px; line-height: .98; font-weight: 950; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.segment-track { width: 980px; height: 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.segment-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #53f0b0); transform-origin: left; }
.group-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.group-footer p { margin: 0; color: #a9bac4; font-size: 25px; }
.group-footer b, .group-footer strong { color: var(--white); }
.squad-group .group-timer, .squad-group .group-count strong { color: #62e9e2; }
.group-slide.question-phase .segment-label { color: var(--warning); }
.group-slide.timer-danger .group-timer { color: var(--danger); }
.reshare-slide .group-timer { font-size: 240px; color: var(--cyan); }

/* Feedback / photo / closing */
.feedback-slide { display: none; place-items: center; align-content: center; text-align: center; color: var(--white); background: linear-gradient(135deg, #0b5870, #07182b 58%); }
.feedback-slide.active { display: grid; }
.feedback-label { margin-bottom: 30px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: var(--cyan); font-size: 19px; font-weight: 950; letter-spacing: .18em; }
.feedback-slide h2 { margin-bottom: 24px; font-size: 72px; }
.feedback-slide p { font-size: 27px; color: #bcd0d9; }
.feedback-timer { margin-top: 20px; font-size: 132px; line-height: 1; font-weight: 950; color: var(--yellow); font-variant-numeric: tabular-nums; }
.photo-slide { display: none; place-items: center; align-content: center; text-align: center; background: #f7faf9; }
.photo-slide.active { display: grid; }
.photo-frame { position: absolute; inset: 90px; pointer-events: none; }
.photo-frame span { position: absolute; width: 100px; height: 100px; border-color: var(--cyan-dark); border-style: solid; }
.photo-frame span:nth-child(1) { left: 0; top: 0; border-width: 8px 0 0 8px; }
.photo-frame span:nth-child(2) { right: 0; top: 0; border-width: 8px 8px 0 0; }
.photo-frame span:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 8px 8px; }
.photo-frame span:nth-child(4) { right: 0; bottom: 0; border-width: 0 8px 8px 0; }
.photo-slide h2 { margin-bottom: 24px; font-size: 108px; }
.photo-slide > p:not(.eyebrow) { font-size: 31px; color: var(--muted); }
.photo-timer { margin-top: 34px; font-size: 118px; font-weight: 950; color: var(--blue); font-variant-numeric: tabular-nums; }
.closing-slide { color: var(--white); background: var(--navy); padding: 170px 150px; }
.closing-slide::after { content: ""; position: absolute; width: 820px; height: 820px; right: -300px; top: -230px; border: 100px solid rgba(33,215,211,.1); border-radius: 50%; }
.closing-slide h2 { position: relative; z-index: 2; margin: 110px 0 30px; font-size: 130px; line-height: 1.08; }
.closing-slide > p:not(.eyebrow) { position: relative; z-index: 2; font-size: 38px; color: #d6e3e9; }
.closing-line { position: relative; z-index: 2; width: 180px; height: 10px; margin: 44px 0 28px; background: var(--yellow); }
.closing-slide small { position: relative; z-index: 2; font-size: 22px; letter-spacing: .16em; color: #8fa7b6; }

/* Controls */
.controls {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 9px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: rgba(4,12,20,.88);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  opacity: 1;
  transition: opacity .25s ease, transform .25s ease;
}
.controls.auto-hidden, body.hide-ui .controls { opacity: 0; transform: translate(-50%, 18px); pointer-events: none; }
.controls button { height: 44px; min-width: 48px; padding: 0 13px; border: 0; border-radius: 10px; color: #d9e6ed; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 900; cursor: pointer; }
.controls button:hover { background: rgba(255,255,255,.16); }
.controls button.primary { min-width: 88px; color: var(--navy); background: var(--cyan); }
.controls button.primary.running { color: var(--white); background: var(--red); }
.controls button.accent { color: var(--navy); background: var(--yellow); }
.controls .hidden { display: none; }

.help-panel { position: fixed; inset: 0; z-index: 1200; display: none; place-items: center; align-content: center; padding: 80px; color: var(--white); background: rgba(3,10,17,.96); }
.help-panel.open { display: grid; }
.help-panel h2 { margin: 0 0 40px; font-size: 64px; }
.help-panel #closeHelp { position: absolute; right: 40px; top: 30px; width: 54px; height: 54px; border: 0; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.12); font-size: 34px; cursor: pointer; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; min-width: 860px; }
.shortcut-grid div { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 22px; }
kbd { display: inline-grid; place-items: center; min-width: 50px; height: 42px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.1); font-weight: 900; }
.help-note { margin-top: 35px; color: #9bb0bd; font-size: 20px; }

.time-alert { position: absolute; inset: 0; z-index: 200; display: none; place-items: center; color: var(--white); background: rgba(255,50,52,.92); font-size: 250px; font-weight: 950; letter-spacing: .08em; }
.time-alert.show { display: grid; animation: alertFlash 1.15s ease both; }
@keyframes alertFlash { 0%, 32%, 64% { opacity: 0; } 16%, 48%, 80%, 100% { opacity: 1; } }

@media (max-width: 760px) {
  .controls { max-width: calc(100vw - 18px); overflow-x: auto; justify-content: flex-start; }
  .controls button { flex: 0 0 auto; }
}

@media print {
  html, body { overflow: visible; background: white; }
  #viewport { position: static; display: block; }
  #stage { position: static; width: 1920px; height: auto; transform: none !important; box-shadow: none; }
  .slides { position: static; }
  .slide { position: relative; display: block !important; page-break-after: always; width: 1920px; height: 1080px; }
  .controls, .help-panel, .deck-header, .deck-footer { display: none !important; }
}
