:root {
  --app-bg: #171d2b;
  --app-bg-strong: #111722;
  --app-panel: #1d2433;
  --app-panel-soft: #242c3d;
  --app-line: rgba(255, 255, 255, 0.08);
  --app-line-strong: rgba(255, 255, 255, 0.14);
  --app-text: #f5f7fb;
  --app-muted: #a9b2c8;
  --app-brand: #f05d8b;
  --app-brand-strong: #e54786;
  --app-brand-soft: rgba(240, 93, 139, 0.16);
  --app-blue: #77b7ff;
  --app-blue-soft: rgba(119, 183, 255, 0.18);
  --app-white-card: rgba(251, 252, 255, 0.98);
  --app-white-line: rgba(14, 23, 38, 0.08);
  --app-white-text: #1e2330;
  --app-white-muted: #677287;
  --app-shadow: 0 28px 64px rgba(7, 11, 19, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--app-text);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 163, 76, 0.2), transparent 24%),
    radial-gradient(circle at 30% 28%, rgba(240, 93, 139, 0.3), transparent 30%),
    radial-gradient(circle at 56% 18%, rgba(120, 155, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #1b2230 0%, #171d2b 42%, #141a27 100%);
}

body[data-page="room"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 93, 139, 0.15), transparent 22%),
    radial-gradient(circle at 82% 84%, rgba(88, 168, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #1b2230 0%, #171d2b 48%, #131925 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 21, 31, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff6b7a, #e54786 82%);
  box-shadow: 0 14px 26px rgba(229, 71, 134, 0.26);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--app-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--app-muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.topbar-link:hover,
.topbar-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.topbar-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.simple-page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.simple-page--home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 430px);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.simple-page--room {
  display: grid;
  gap: 28px;
  padding-top: 34px;
}

.simple-hero {
  display: grid;
  gap: 24px;
  align-content: center;
}

.simple-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7d8e4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.simple-hero h1 {
  margin: 0;
  max-width: 620px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.simple-hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffad67 0%, #ff6f82 42%, #ec5d97 70%, #d868ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.simple-hero p {
  margin: 0;
  max-width: 560px;
  color: #d8deea;
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note,
.panel-note {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-btn,
.ghost-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  min-height: 52px;
  padding: 14px 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.home-btn {
  color: #fff;
  background: linear-gradient(135deg, #ff6b7a, #e54786 82%);
  box-shadow: 0 18px 34px rgba(229, 71, 134, 0.24);
}

.home-btn:hover,
.home-btn:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
}

.ghost-btn {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.home-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.simple-card,
.room-card,
.summary-card {
  border-radius: 30px;
  box-shadow: var(--app-shadow);
}

.simple-card {
  background: var(--app-white-card);
  color: var(--app-white-text);
  border: 1px solid var(--app-white-line);
  padding: 26px;
}

.simple-card .ghost-btn {
  color: var(--app-white-text);
  background: rgba(20, 26, 39, 0.06);
  border-color: rgba(20, 26, 39, 0.08);
}

.simple-card .status-pill {
  color: var(--app-white-text);
  background: rgba(20, 26, 39, 0.08);
}

.simple-card .sequence-card,
.simple-card .lobby-card {
  background: rgba(20, 26, 39, 0.04);
  border-color: rgba(20, 26, 39, 0.08);
}

.room-card {
  background: rgba(29, 36, 51, 0.92);
  color: var(--app-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

.launcher-card,
.room-layout {
  display: grid;
  gap: 22px;
}

.card-heading {
  display: grid;
  gap: 10px;
}

.card-heading h2,
.card-heading h3,
.summary-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.card-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.card-heading h3 {
  font-size: 1.6rem;
}

.card-heading p {
  margin: 0;
  color: var(--app-white-muted);
  line-height: 1.7;
}

.room-card .card-heading p,
.room-card .panel-note {
  color: var(--app-muted);
}

.challenge-banner {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(20, 26, 39, 0.06);
  border: 1px solid rgba(20, 26, 39, 0.08);
}

.challenge-banner h3,
.profile-copy h3,
.sequence-card h3,
.lobby-card h3 {
  margin: 0;
}

.room-card .challenge-banner {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-mini,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-mini {
  color: var(--app-brand-strong);
  background: rgba(240, 93, 139, 0.12);
}

.status-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.status-pill--muted {
  color: var(--app-muted);
  background: rgba(255, 255, 255, 0.06);
}

.form-stack,
.form-stack--compact,
.launch-form,
.sequence-builder,
.room-form-grid {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(20, 26, 39, 0.04);
  border: 1px solid rgba(20, 26, 39, 0.08);
}

.room-card .profile-card,
.room-card .sequence-card,
.room-card .lobby-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar,
.player-avatar,
.search-avatar,
.leaderboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #7184a5, #c1ccdd);
}

.leaderboard-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.88rem;
}

.profile-copy {
  display: grid;
  gap: 4px;
}

.profile-copy h3,
.profile-copy p {
  margin: 0;
}

.profile-copy p {
  color: var(--app-white-muted);
  line-height: 1.55;
}

.room-card .profile-copy p {
  color: var(--app-muted);
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-white-muted);
}

.room-card .input-shell span {
  color: var(--app-muted);
}

.form-control {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(20, 26, 39, 0.12);
  background: #eef2f8;
  color: #202532;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.room-card .form-control,
.summary-card .form-control {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(93, 105, 129, 0.72);
  color: #f5f7fb;
}

.form-control::placeholder {
  color: #7f8aa1;
}

.room-card .form-control::placeholder {
  color: #c5cede;
}

.form-control:focus,
.home-btn:focus-visible,
.ghost-btn:focus-visible {
  border-color: rgba(229, 71, 134, 0.6);
  box-shadow: 0 0 0 4px rgba(229, 71, 134, 0.12);
}

.inline-input-group,
.profile-row,
.room-controls-grid {
  display: grid;
  gap: 12px;
}

.inline-input-group {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.sequence-builder,
.sequence-card,
.lobby-card {
  display: grid;
  gap: 16px;
}

.sequence-card,
.lobby-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--app-line);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-title-row h3 {
  margin: 4px 0 0;
}

.sequence-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sequence-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 26, 39, 0.1);
  background: rgba(20, 26, 39, 0.04);
  color: #34405a;
  font-size: 0.92rem;
  font-weight: 700;
}

.room-card .sequence-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e9eef7;
}

.sequence-pill strong {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-brand-soft);
  color: var(--app-brand-strong);
  font-size: 0.78rem;
}

.room-card .sequence-pill strong {
  color: #fff;
  background: rgba(240, 93, 139, 0.2);
}

.activity-grid {
  display: grid;
  gap: 12px;
}

.activity-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(20, 26, 39, 0.04);
  border: 1px solid rgba(20, 26, 39, 0.08);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.room-card .activity-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.activity-card.is-active {
  border-color: rgba(229, 71, 134, 0.26);
  box-shadow: 0 0 0 1px rgba(229, 71, 134, 0.12);
}

.activity-visual {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.activity-visual--digit {
  background: linear-gradient(135deg, #ff8c5c, #ec5d97);
}

.activity-visual--switch {
  background: linear-gradient(135deg, #2cb176, #5cd4ba);
}

.activity-visual--grid {
  background: linear-gradient(135deg, #8a66ff, #d868ff);
}

.activity-copy {
  display: grid;
  gap: 3px;
}

.mode-card-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-brand-strong);
}

.room-card .mode-card-kicker {
  color: #ff92b6;
}

.activity-copy h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.activity-copy p {
  margin: 0;
  color: var(--app-white-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.room-card .activity-copy p {
  color: var(--app-muted);
}

.activity-toggle {
  min-width: 138px;
}

.room-overview {
  display: grid;
  gap: 18px;
}

.room-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.room-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lobby-card {
  min-height: 100%;
}

.room-lobby {
  display: grid;
  gap: 14px;
}

.room-player-list {
  display: grid;
  gap: 12px;
}

.room-player-card,
.invite-result,
.standings-row,
.leaderboard-row {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.room-player-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.player-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.player-name {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-subtitle {
  font-size: 0.88rem;
  color: var(--app-muted);
}

.player-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-status.waiting {
  color: #dfe6f4;
  background: rgba(255, 255, 255, 0.08);
}

.player-status.ready {
  color: #90f0be;
  background: rgba(62, 207, 126, 0.14);
}

.player-status.playing {
  color: #ffd6a2;
  background: rgba(255, 168, 77, 0.14);
}

.player-status.finished {
  color: #b1c9ff;
  background: rgba(94, 143, 255, 0.14);
}

.room-search-results {
  display: grid;
  gap: 12px;
}

.invite-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.search-avatar {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #b8c6da, #8f9fb7);
}

.invite-result-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.invite-result-copy strong,
.leaderboard-copy strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-result-copy span,
.leaderboard-copy span {
  font-size: 0.86rem;
  color: var(--app-muted);
  line-height: 1.5;
}

.leaderboard-stack {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.leaderboard-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leaderboard-score {
  font-size: 1.3rem;
  font-weight: 900;
}

.leaderboard-row--current {
  border-color: rgba(240, 93, 139, 0.26);
  box-shadow: 0 0 0 1px rgba(240, 93, 139, 0.12);
}

.room-shell-note {
  color: var(--app-muted);
}

.panel-card--spotlight {
  border-color: rgba(240, 93, 139, 0.28) !important;
  box-shadow: 0 0 0 1px rgba(240, 93, 139, 0.12), 0 22px 38px rgba(5, 8, 14, 0.22);
}

.panel-card--muted {
  opacity: 0.82;
}

.infinity-home,
.exam-shell,
.summary-screen {
  color: var(--app-text);
}

.exam-shell {
  background:
    linear-gradient(180deg, #1b2230 0%, #151b27 100%);
}

.exam-root {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

.exam-top {
  width: 100%;
  padding-top: 0;
}

.exam-header {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: auto;
  padding: 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.exam-header .left,
.exam-header .right {
  display: contents;
}

.challenge-copy,
.right .score-chip,
.right .level-chip {
  min-height: 98px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.challenge-copy {
  gap: 8px;
  justify-content: center;
}

.challenge-name,
.right .score-chip strong,
.right .level-chip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1;
}

.challenge-help {
  font-size: 0.92rem;
  color: var(--app-muted);
}

.right .score-chip,
.right .level-chip {
  gap: 8px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timer-row {
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  padding: 24px 0 0;
}

.timer-text {
  order: -1;
  min-width: 188px;
  min-height: 76px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b7a, #e54786 82%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(229, 71, 134, 0.24);
}

.timer-track {
  width: min(760px, 100%);
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.meta-strip {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 12px;
}

.exam-stage-wrap {
  width: 100%;
  min-height: 0;
  margin-top: 24px;
}

.exam-stage {
  min-height: 560px;
  padding: 34px 30px;
  border-radius: 34px;
  background: rgba(17, 23, 34, 0.74) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.digit-stage {
  gap: 22px;
}

.digit-meta,
.switch-meta,
.grid-meta {
  justify-content: center;
}

.digit-card {
  min-width: min(96vw, 860px);
  padding: 30px;
  border-radius: 28px;
}

.digit-equation {
  min-height: 128px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.digit-pad {
  width: min(640px, 100%);
}

.digit-key,
.lock-btn,
.trash-btn,
.yesno-btn,
.choice-btn {
  border-radius: 16px;
}

.live-standings-panel {
  position: static;
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sequence-overlay {
  padding: 24px;
}

.sequence-overlay-card {
  background: rgba(20, 26, 39, 0.96);
}

.summary-screen {
  background:
    linear-gradient(180deg, #1b2230 0%, #151b27 100%);
}

.summary-card {
  width: min(1020px, calc(100vw - 28px));
  padding: 28px;
  border-radius: 32px;
  background: rgba(29, 36, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card::before,
.summary-card::after {
  display: none;
}

.summary-grid--poster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-metric,
.summary-panel,
.summary-chart-shell {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-metric,
.summary-panel {
  padding: 18px;
}

.summary-chart-shell {
  padding: 20px;
}

.summary-metric strong,
.summary-panel strong {
  display: block;
  margin-top: 8px;
}

.summary-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.histogram-grid {
  min-height: 180px;
}

.loader,
#background-video,
.hero,
.navbar,
.footer,
#contact,
#writing,
.insight-grid,
#communitySnapshot,
#leaderboardGrid,
.section-head,
.contact-grid {
  display: none !important;
}

@media (max-width: 1120px) {
  .simple-page--home,
  .room-overview-grid {
    grid-template-columns: 1fr;
  }

  .room-form-grid {
    grid-template-columns: 1fr;
  }

  .simple-hero {
    order: -1;
  }

  .exam-header {
    grid-template-columns: 1fr;
  }

  .challenge-copy,
  .right .score-chip,
  .right .level-chip {
    min-height: 84px;
  }

  .meta-strip,
  .summary-insight-grid,
  .summary-grid--poster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .simple-page {
    width: min(100vw - 20px, 100%);
  }

  .topbar-inner {
    min-height: 68px;
  }

  .topbar-links {
    gap: 6px;
  }

  .topbar-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .simple-page {
    padding: 24px 0 38px;
  }

  .simple-card,
  .room-card,
  .summary-card {
    padding: 18px;
    border-radius: 24px;
  }

  .simple-hero h1 {
    font-size: clamp(2.5rem, 16vw, 4rem);
  }

  .inline-input-group,
  .invite-result,
  .activity-card,
  .room-player-card,
  .leaderboard-row {
    grid-template-columns: 1fr;
  }

  .room-form-grid {
    grid-template-columns: 1fr;
  }

  .activity-card {
    justify-items: start;
  }

  .activity-toggle {
    width: 100%;
  }

  .meta-strip,
  .summary-insight-grid,
  .summary-grid--poster {
    grid-template-columns: 1fr;
  }

  .timer-text {
    min-width: 148px;
    min-height: 66px;
    font-size: 2.4rem;
  }

  .digit-card {
    padding: 20px;
  }

  .exam-stage {
    padding: 24px 18px;
    min-height: 500px;
  }
}
