:root {
  --harfika-shell-max: 43rem;
  --harfika-shell-gutter: clamp(1rem, 3vw, 2.75rem);
  --harfika-section-gap: clamp(1rem, 2vw, 1.75rem);
  --harfika-safe-top: env(safe-area-inset-top, 0px);
  --harfika-header-top-gap: clamp(0.22rem, 0.45vw, 0.4rem);
  --harfika-header-reserve: calc(clamp(4.6rem, 7vw, 5.3rem) + var(--harfika-safe-top) + 0.95rem + var(--harfika-header-top-gap));
  --harfika-safe-bottom: env(safe-area-inset-bottom, 0px);
  --harfika-nav-bottom: 0px;
  --harfika-nav-height: clamp(5.15rem, 8vw, 6rem);
  --harfika-nav-reserve: calc(var(--harfika-nav-height) + var(--harfika-safe-bottom) + 0.8rem);
  --harfika-primary: #279bd7;
  --harfika-primary-dim: #1d89c2;
  --harfika-primary-accent: #83d6fb;
  --harfika-primary-soft: #d7f1ff;
  --harfika-primary-soft-alt: #e8f8ff;
  --harfika-primary-ink: #164d68;
  --harfika-primary-ink-soft: #2a6077;
  --harfika-primary-rgb: 39, 155, 215;
  --harfika-primary-accent-rgb: 131, 214, 251;
  --harfika-primary-soft-rgb: 215, 241, 255;
  --harfika-accent-gradient: linear-gradient(135deg, #279bd7 0%, #83d6fb 100%);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fafdff 0%, #eef9ff 18%, #e6f4fb 100%);
}

.harfika-main {
  padding-top: calc(var(--harfika-header-reserve) + clamp(0.12rem, 0.45vw, 0.35rem));
  padding-bottom: var(--harfika-nav-reserve);
}

.harfika-page-frame {
  width: min(var(--harfika-shell-max), calc(100% - (var(--harfika-shell-gutter) * 2)));
  margin-inline: auto;
}

.harfika-topbar {
  min-height: clamp(4.6rem, 7vw, 5.3rem);
}

.harfika-app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: calc(var(--harfika-safe-top) + var(--harfika-header-top-gap));
  background: rgba(244, 252, 255, 0.84);
  backdrop-filter: blur(18px) saturate(138%);
  -webkit-backdrop-filter: blur(18px) saturate(138%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(44, 47, 49, 0.04);
}

.harfika-header-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--harfika-primary);
  flex-shrink: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.harfika-header-menu:hover {
  opacity: 0.82;
}

.harfika-header-menu:active {
  transform: scale(0.95);
}

.harfika-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(var(--harfika-primary-accent-rgb), 0.92);
  box-shadow: 0 8px 18px rgba(var(--harfika-primary-rgb), 0.12);
  background: #ffffff;
  flex-shrink: 0;
}

.harfika-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.harfika-page-stack {
  gap: var(--harfika-section-gap);
}

.harfika-brand {
  letter-spacing: clamp(0.14em, 0.3vw, 0.24em);
  white-space: nowrap;
}

.harfika-bottom-nav {
  position: fixed;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
  bottom: var(--harfika-nav-bottom);
  width: min(var(--harfika-shell-max), calc(100% - (var(--harfika-shell-gutter) * 2)));
  min-height: var(--harfika-nav-height);
  gap: clamp(0.3rem, 0.8vw, 0.7rem);
  padding-top: clamp(0.55rem, 1vw, 0.8rem) !important;
  padding-right: clamp(0.55rem, 1vw, 0.8rem) !important;
  padding-bottom: calc(clamp(0.55rem, 1vw, 0.8rem) + var(--harfika-safe-bottom)) !important;
  padding-left: clamp(0.55rem, 1vw, 0.8rem) !important;
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.1);
  box-shadow:
    0 10px 28px rgba(22, 77, 104, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  flex-wrap: nowrap !important;
}

.harfika-bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 42%);
  pointer-events: none;
  z-index: -1;
}

.harfika-bottom-nav > * {
  flex: 1 1 0 !important;
  min-width: 0;
  min-height: calc(var(--harfika-nav-height) - 1.1rem);
  padding-left: clamp(0.45rem, 1vw, 0.85rem);
  padding-right: clamp(0.45rem, 1vw, 0.85rem);
}

.harfika-bottom-nav > * span:last-child {
  white-space: nowrap;
}

.harfika-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #2c2f31;
  border-radius: 24px;
  text-decoration: none;
  transition: all 200ms ease-out;
  width: 100%;
}

.harfika-bottom-link:hover {
  background: rgba(var(--harfika-primary-soft-rgb), 0.74);
  color: var(--harfika-primary-ink);
}

.harfika-bottom-link:active {
  transform: scale(0.9);
}

.harfika-bottom-link.is-active {
  background: linear-gradient(135deg, rgba(var(--harfika-primary-soft-rgb), 0.98) 0%, rgba(var(--harfika-primary-accent-rgb), 0.92) 100%);
  color: var(--harfika-primary-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(var(--harfika-primary-rgb), 0.16);
}

.harfika-bottom-link .material-symbols-outlined {
  font-size: 1.65rem;
  line-height: 1;
}

.harfika-bottom-link.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.text-\[\#4647d3\],
.text-primary {
  color: var(--harfika-primary) !important;
}

.text-primary-dim,
.text-secondary,
.text-tertiary {
  color: var(--harfika-primary-dim) !important;
}

.text-secondary-dim,
.text-tertiary-dim {
  color: #3c9ecb !important;
}

.text-primary\/60 {
  color: rgba(var(--harfika-primary-rgb), 0.6) !important;
}

.text-on-primary-container,
.text-on-secondary-container,
.text-on-tertiary-container {
  color: var(--harfika-primary-ink) !important;
}

.bg-primary {
  background-color: var(--harfika-primary) !important;
}

.bg-primary\/10 {
  background-color: rgba(var(--harfika-primary-rgb), 0.12) !important;
}

.from-primary {
  --tw-gradient-from: var(--harfika-primary) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(var(--harfika-primary-rgb), 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-primary-container {
  --tw-gradient-to: var(--harfika-primary-accent) var(--tw-gradient-to-position) !important;
}

.bg-primary-container {
  background-color: var(--harfika-primary-soft) !important;
}

.bg-primary-container\/20 {
  background-color: rgba(var(--harfika-primary-soft-rgb), 0.44) !important;
}

.bg-secondary-container {
  background-color: var(--harfika-primary-soft-alt) !important;
}

.bg-secondary-container\/20 {
  background-color: rgba(var(--harfika-primary-soft-rgb), 0.3) !important;
}

.bg-secondary-container\/30 {
  background-color: rgba(var(--harfika-primary-soft-rgb), 0.48) !important;
}

.bg-secondary-container\/40 {
  background-color: rgba(var(--harfika-primary-soft-rgb), 0.68) !important;
}

.bg-tertiary-container\/20 {
  background-color: rgba(var(--harfika-primary-accent-rgb), 0.26) !important;
}

.bg-tertiary-container\/30 {
  background-color: rgba(var(--harfika-primary-accent-rgb), 0.38) !important;
}

.border-primary,
.border-indigo-600 {
  border-color: var(--harfika-primary) !important;
}

.border-secondary-container\/10 {
  border-color: rgba(var(--harfika-primary-soft-rgb), 0.72) !important;
}

.border-tertiary-container\/10 {
  border-color: rgba(var(--harfika-primary-accent-rgb), 0.5) !important;
}

.shadow-primary\/10 {
  --tw-shadow-color: rgba(var(--harfika-primary-rgb), 0.1) !important;
  --tw-shadow: var(--tw-shadow-colored) !important;
}

.shadow-primary\/20 {
  --tw-shadow-color: rgba(var(--harfika-primary-rgb), 0.2) !important;
  --tw-shadow: var(--tw-shadow-colored) !important;
}

.shadow-\[0_12px_24px_-8px_rgba\(70\2c 71\2c 211\2c 0\.4\)\] {
  --tw-shadow: 0 12px 24px -8px rgba(var(--harfika-primary-rgb), 0.28) !important;
  --tw-shadow-colored: 0 12px 24px -8px var(--tw-shadow-color) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}

.shadow-\[0_20px_40px_rgba\(70\2c 71\2c 211\2c 0\.2\)\] {
  --tw-shadow: 0 20px 40px rgba(var(--harfika-primary-rgb), 0.18) !important;
  --tw-shadow-colored: 0 20px 40px var(--tw-shadow-color) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}

.focus\:ring-primary\/10:focus {
  --tw-ring-color: rgba(var(--harfika-primary-rgb), 0.1) !important;
}

.focus\:ring-primary\/20:focus {
  --tw-ring-color: rgba(var(--harfika-primary-rgb), 0.2) !important;
}

.selection\:bg-primary-container ::selection,
.selection\:bg-primary-container::selection {
  background-color: var(--harfika-primary-soft) !important;
}

.selection\:bg-primary-container ::-moz-selection,
.selection\:bg-primary-container::-moz-selection {
  background-color: var(--harfika-primary-soft) !important;
}

.selection\:text-on-primary-container ::selection,
.selection\:text-on-primary-container::selection {
  color: var(--harfika-primary-ink) !important;
}

.selection\:text-on-primary-container ::-moz-selection,
.selection\:text-on-primary-container::-moz-selection {
  color: var(--harfika-primary-ink) !important;
}

.harfika-bottom-label {
  margin-top: 0.25rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.harfika-room-emoji-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(242, 250, 255, 0.94) 100%);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.1);
  box-shadow:
    0 16px 32px rgba(22, 77, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.harfika-room-emoji-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.harfika-room-emoji-feed {
  display: grid;
  gap: 0.6rem;
  max-height: 15.5rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.harfika-room-emoji-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.08);
}

.harfika-room-emoji-row.is-me {
  background: rgba(var(--harfika-primary-soft-rgb), 0.58);
  border-color: rgba(var(--harfika-primary-rgb), 0.16);
}

.harfika-room-emoji-meta {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.harfika-room-emoji-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #16384a;
  line-height: 1.1;
}

.harfika-room-emoji-time {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(22, 77, 104, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.harfika-room-emoji-bubble {
  flex-shrink: 0;
  min-width: 3.1rem;
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.72rem;
  line-height: 1;
  background: rgba(var(--harfika-primary-rgb), 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.harfika-room-emoji-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.harfika-room-emoji-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #16384a;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow:
    0 10px 18px rgba(22, 77, 104, 0.07),
    inset 0 0 0 1px rgba(var(--harfika-primary-rgb), 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.harfika-room-emoji-button:hover {
  background: rgba(var(--harfika-primary-soft-rgb), 0.88);
  box-shadow:
    0 12px 22px rgba(22, 77, 104, 0.1),
    inset 0 0 0 1px rgba(var(--harfika-primary-rgb), 0.16);
}

.harfika-room-emoji-button:active {
  transform: scale(0.96);
}

.harfika-room-emoji-empty {
  padding: 1rem 0.95rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(var(--harfika-primary-rgb), 0.15);
  color: rgba(22, 77, 104, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.harfika-player-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

.harfika-player-name-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harfika-player-reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.95rem;
  min-height: 1.95rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.12);
  box-shadow:
    0 8px 16px rgba(22, 77, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1;
  animation: harfikaReactionPop 180ms ease-out;
}

.harfika-player-reaction-chip.is-me {
  background: rgba(var(--harfika-primary-soft-rgb), 0.88);
  border-color: rgba(var(--harfika-primary-rgb), 0.18);
}

.harfika-player-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
}

.harfika-player-status-inline {
  min-height: 1.55rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.harfika-player-status-inline.is-ready {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.harfika-player-status-inline.is-waiting {
  background: rgba(226, 232, 240, 0.9);
  color: rgba(44, 47, 49, 0.72);
}

.harfika-leaderboard-row-tail {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

.harfika-player-kick {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
  box-shadow:
    inset 0 0 0 1px rgba(225, 29, 72, 0.12),
    0 8px 16px rgba(190, 18, 60, 0.08);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.harfika-player-kick:hover {
  background: rgba(225, 29, 72, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(225, 29, 72, 0.18),
    0 10px 18px rgba(190, 18, 60, 0.11);
}

.harfika-player-kick:active {
  transform: scale(0.95);
}

.harfika-player-kick .material-symbols-outlined {
  font-size: 1.02rem;
  line-height: 1;
}

.harfika-reaction-launcher {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.08);
  box-shadow:
    0 12px 24px rgba(22, 77, 104, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.harfika-reaction-launcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.harfika-reaction-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--harfika-primary-soft-rgb), 0.92);
  color: #164d68;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 20px rgba(22, 77, 104, 0.08),
    inset 0 0 0 1px rgba(var(--harfika-primary-rgb), 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.harfika-reaction-toggle.is-open {
  background: rgba(var(--harfika-primary-rgb), 0.12);
}

.harfika-reaction-toggle:active {
  transform: scale(0.97);
}

.harfika-reaction-panel {
  display: none;
}

.harfika-reaction-panel.is-open {
  display: block;
}

.harfika-room-reaction-strip {
  display: grid;
  gap: 0.78rem;
  padding: 0.95rem 1rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(242, 250, 255, 0.96) 100%);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.1);
  box-shadow:
    0 14px 28px rgba(22, 77, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.harfika-room-reaction-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.harfika-room-reaction-tray {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  min-height: 2.25rem;
}

.harfika-room-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--harfika-primary-rgb), 0.1);
  box-shadow:
    0 10px 18px rgba(22, 77, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  animation: harfikaReactionPop 180ms ease-out;
}

.harfika-room-reaction-pill.is-me {
  background: rgba(var(--harfika-primary-soft-rgb), 0.82);
  border-color: rgba(var(--harfika-primary-rgb), 0.18);
}

.harfika-room-reaction-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.harfika-room-reaction-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #16384a;
  line-height: 1;
}

.harfika-room-reaction-hint {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(var(--harfika-primary-rgb), 0.14);
  color: rgba(22, 77, 104, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.harfika-room-reaction-composer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.harfika-room-reaction-button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 0;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow:
    0 10px 18px rgba(22, 77, 104, 0.07),
    inset 0 0 0 1px rgba(var(--harfika-primary-rgb), 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.harfika-room-reaction-button:hover {
  background: rgba(var(--harfika-primary-soft-rgb), 0.88);
  box-shadow:
    0 12px 22px rgba(22, 77, 104, 0.1),
    inset 0 0 0 1px rgba(var(--harfika-primary-rgb), 0.16);
}

.harfika-room-reaction-button:active {
  transform: scale(0.96);
}

@keyframes harfikaReactionPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  :root {
    --harfika-shell-gutter: 0.85rem;
    --harfika-section-gap: 0.85rem;
    --harfika-header-top-gap: 0.18rem;
    --harfika-header-reserve: calc(4rem + var(--harfika-safe-top) + 0.78rem + var(--harfika-header-top-gap));
    --harfika-nav-height: 4.45rem;
    --harfika-nav-reserve: calc(var(--harfika-nav-height) + var(--harfika-safe-bottom) + 0.7rem);
  }

  body {
    min-height: 100dvh;
  }

  .harfika-brand {
    font-size: 0.9rem !important;
    letter-spacing: 0.13em;
  }

  .harfika-main {
    padding-top: calc(var(--harfika-header-reserve) + 0.15rem);
  }

  .harfika-topbar {
    min-height: 4rem;
  }

  .harfika-header-menu,
  .harfika-header-avatar {
    width: 2.35rem;
    height: 2.35rem;
  }

  .harfika-bottom-nav {
    gap: 0.2rem;
    padding-top: 0.38rem !important;
    padding-right: 0.38rem !important;
    padding-bottom: calc(0.38rem + var(--harfika-safe-bottom)) !important;
    padding-left: 0.38rem !important;
  }

  .harfika-bottom-nav > * {
    min-height: calc(var(--harfika-nav-height) - 0.55rem);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .harfika-bottom-link {
    border-radius: 18px;
  }

  .harfika-bottom-link .material-symbols-outlined {
    font-size: 1.22rem;
  }

  .harfika-bottom-label {
    font-size: 0.54rem;
    letter-spacing: 0.01em;
  }

  .harfika-room-emoji-card {
    gap: 0.78rem;
    padding: 0.9rem 0.92rem;
    border-radius: 1.35rem;
  }

  .harfika-room-emoji-feed {
    max-height: 13.75rem;
  }

  .harfika-room-emoji-row {
    padding: 0.72rem 0.78rem;
    border-radius: 1rem;
  }

  .harfika-room-emoji-bubble {
    min-width: 2.85rem;
    min-height: 2.85rem;
    font-size: 1.58rem;
  }

  .harfika-room-emoji-actions {
    gap: 0.45rem;
  }

  .harfika-room-emoji-button {
    min-height: 2.7rem;
    border-radius: 0.9rem;
    font-size: 1.34rem;
  }

  .harfika-player-reaction-chip {
    min-width: 1.8rem;
    min-height: 1.8rem;
    font-size: 0.92rem;
  }

  .harfika-player-card-actions,
  .harfika-leaderboard-row-tail {
    gap: 0.5rem;
  }

  .harfika-player-status-inline {
    min-height: 1.42rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.48rem;
    letter-spacing: 0.05em;
  }

  .harfika-player-kick {
    width: 2.3rem;
    height: 2.3rem;
  }

  .harfika-reaction-launcher {
    gap: 0.62rem;
    padding: 0.78rem 0.86rem;
    border-radius: 1rem;
  }

  .harfika-reaction-toggle {
    min-height: 2.45rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.76rem;
  }

  .harfika-room-reaction-strip {
    gap: 0.7rem;
    padding: 0.85rem 0.92rem;
    border-radius: 1.15rem;
  }

  .harfika-room-reaction-tray {
    justify-content: flex-start;
    min-height: 2.1rem;
  }

  .harfika-room-reaction-pill {
    padding: 0.42rem 0.66rem;
  }

  .harfika-room-reaction-name {
    font-size: 0.7rem;
  }

  .harfika-room-reaction-button {
    min-height: 2.55rem;
    font-size: 1.24rem;
  }
}

@media (max-width: 399.98px) {
  :root {
    --harfika-shell-gutter: 0.72rem;
    --harfika-section-gap: 0.75rem;
    --harfika-header-top-gap: 0.14rem;
    --harfika-header-reserve: calc(3.8rem + var(--harfika-safe-top) + 0.68rem + var(--harfika-header-top-gap));
    --harfika-nav-height: 4.25rem;
    --harfika-nav-reserve: calc(var(--harfika-nav-height) + var(--harfika-safe-bottom) + 0.56rem);
  }

  .harfika-brand {
    font-size: 0.84rem !important;
    letter-spacing: 0.11em;
  }

  .harfika-topbar {
    min-height: 3.8rem;
  }

  .harfika-room-emoji-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .harfika-room-emoji-button {
    min-height: 2.5rem;
    font-size: 1.22rem;
  }

  .harfika-room-emoji-bubble {
    min-width: 2.55rem;
    min-height: 2.55rem;
    font-size: 1.42rem;
  }

  .harfika-player-reaction-chip {
    min-width: 1.7rem;
    min-height: 1.7rem;
    font-size: 0.86rem;
    padding-inline: 0.35rem;
  }

  .harfika-player-card-actions {
    width: auto;
    justify-content: flex-end;
  }

  .harfika-player-status-inline {
    min-height: 1.34rem;
    padding: 0.16rem 0.46rem;
    font-size: 0.46rem;
    letter-spacing: 0.04em;
  }

  .harfika-leaderboard-row-tail {
    gap: 0.42rem;
  }

  .harfika-player-kick {
    width: 2.15rem;
    height: 2.15rem;
  }

  .harfika-reaction-toggle {
    width: 100%;
  }

  .harfika-room-reaction-composer {
    gap: 0.35rem;
  }

  .harfika-room-reaction-button {
    min-height: 2.35rem;
    font-size: 1.16rem;
  }

  .harfika-room-reaction-pill {
    padding: 0.38rem 0.58rem;
  }
}

@media (min-width: 992px) {
  :root {
    --harfika-shell-gutter: clamp(1.75rem, 4vw, 3.25rem);
    --harfika-section-gap: clamp(1.15rem, 1.8vw, 1.9rem);
  }

  .harfika-bottom-nav {
    width: min(calc(var(--harfika-shell-max) + 0.75rem), calc(100vw - (var(--harfika-shell-gutter) * 2)));
  }
}
