:root {
  color-scheme: light;
  --ink: #15110d;
  --muted: rgba(21, 17, 13, 0.62);
  --line: rgba(80, 52, 28, 0.12);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #ff6a17;
  --accent-soft: rgba(255, 106, 23, 0.13);
  --accent-strong: #ed4f08;
  --warn: #e8552d;
  --amber: #ffb23e;
  --gold: #ffcf72;
  --surface: #f5eddf;
  --deep: #332820;
  --button-ink: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(121, 234, 216, 0.32), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(240, 213, 143, 0.26), transparent 26rem),
    #d7e8e5;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  width: min(100vw, 430px);
  height: min(100vh, 900px);
  min-height: 720px;
  padding: 14px;
}

.app-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 10px solid rgba(31, 67, 75, 0.88);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 88% 88%, rgba(240, 213, 143, 0.18), transparent 20rem),
    linear-gradient(155deg, #8abfba 0%, #6fa8a7 46%, #5f929c 100%),
    var(--surface);
  box-shadow: 0 28px 80px rgba(41, 77, 82, 0.28);
}

.native-app body {
  display: block;
  background: var(--surface);
}

.native-app .phone-shell {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding: 0;
}

.native-app .app-screen {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.view {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 18px 12px;
}

.view::-webkit-scrollbar {
  display: none;
}

.status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.ios-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.signal,
.wifi,
.battery {
  display: block;
  background: rgba(255, 255, 255, 0.9);
}

.signal {
  width: 14px;
  height: 9px;
  clip-path: polygon(0 100%, 18% 58%, 35% 100%, 52% 35%, 70% 100%, 88% 10%, 100% 100%);
}

.wifi {
  width: 12px;
  height: 9px;
  border-radius: 50% 50% 0 0;
  clip-path: polygon(0 35%, 50% 0, 100% 35%, 85% 52%, 50% 25%, 15% 52%);
}

.battery {
  width: 19px;
  height: 9px;
  border-radius: 2px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.topbar {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin: 12px 0 18px;
}

.topbar h1,
.topbar h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.05;
}

.topbar small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  justify-content: space-between;
  padding: 22px 26px 20px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.23), rgba(242, 237, 228, 0.29)),
    url("assets/home-collage-reference-match.png") center / cover no-repeat;
}

.hero::before {
  content: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.spark {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: 0 8px 20px rgba(106, 57, 24, 0.08);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.spark span {
  width: 23px;
  height: 20px;
  color: var(--accent-strong);
}

.spark svg,
.hero-actions svg,
.nav-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero-copy {
  margin-top: auto;
  margin-bottom: 24px;
  margin-inline: 18px;
  transform: translateY(-34px);
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 300px;
  font-size: clamp(40px, 10vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  max-width: 290px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: grid;
  gap: 9px;
  margin-inline: 18px;
  transform: translateY(-20px);
}

.hero-actions .primary,
.hero-actions .secondary {
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 13px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(106, 57, 24, 0.1);
}

.hero-actions .secondary {
  color: var(--ink);
  background: rgba(255, 250, 243, 0.86);
  border-color: rgba(255, 106, 23, 0.22);
}

.hero-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.hero-actions .primary .hero-action-icon {
  padding: 8px;
  border-radius: 50%;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.9);
}

.hero-action-arrow {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.hero-actions .primary .hero-action-arrow {
  color: #fff;
}

.hero .bottom-nav {
  margin-top: 14px;
  padding: 8px 5px max(6px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 246, 232, 0.7);
  box-shadow: 0 10px 26px rgba(106, 57, 24, 0.08);
  backdrop-filter: blur(10px);
}

.hero .nav-btn {
  min-height: 60px;
}

.hero .nav-btn {
  color: rgba(21, 17, 13, 0.68);
}

.hero .nav-btn.active {
  color: var(--accent-strong);
}

.hero .nav-btn[data-tab="rooms"].active svg {
  fill: currentColor;
}

.hero .nav-btn[data-tab="rooms"].active svg path:last-child {
  stroke: #fff;
}

.hero .status {
  color: #fff;
  text-shadow: 0 1px 3px rgba(82, 42, 20, 0.28);
}

.hero .signal,
.hero .wifi,
.hero .battery,
.hero .battery::after {
  background: #fff;
}

.hero .nav-btn.active::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 5px auto 0;
  border-radius: 2px;
  background: var(--accent-strong);
}

.primary,
.secondary {
  width: 100%;
  min-height: 54px;
  border-radius: 10px;
  font-weight: 850;
}

.primary {
  color: var(--button-ink);
  background: #fff;
  box-shadow: 0 14px 30px rgba(38, 81, 84, 0.2);
}

.secondary {
  margin-top: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.category-list,
.room-list,
.history-list,
.activity-list {
  display: grid;
  gap: 14px;
}

.category-pick-view {
  position: relative;
  padding: 18px 28px 18px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 88% 82%, rgba(240, 213, 143, 0.18), transparent 18rem),
    linear-gradient(155deg, #8abfba 0%, #6fa8a7 46%, #5f929c 100%);
}

.category-back {
  margin-top: 18px;
  background: transparent;
  font-size: 34px;
}

.category-pick-header {
  margin: 18px 0 28px;
}

.category-pick-header h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: 0;
}

.category-pick-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 750;
}

.category-list-large {
  gap: 18px;
}

.category-card,
.room-card,
.history-card,
.activity-row,
.settings-row {
  display: grid;
  align-items: center;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.category-card {
  grid-template-columns: 62px 1fr 24px;
  min-height: 92px;
  padding: 12px;
  color: #fff;
  text-align: left;
}

.category-card-large {
  grid-template-columns: 92px 1fr 28px;
  min-height: 126px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 36px rgba(38, 81, 84, 0.18);
  backdrop-filter: blur(12px);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 26px;
}

.category-card-large .category-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 40px;
}

.category-card strong,
.room-card strong,
.history-card strong {
  display: block;
  font-size: 16px;
}

.category-card-large strong {
  font-size: 24px;
  line-height: 1.05;
}

.category-card span,
.room-card span,
.history-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.category-card-large .category-card-copy span {
  display: block;
  max-width: 170px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.28;
  font-weight: 650;
}

.category-arrow {
  color: rgba(255, 255, 255, 0.6);
  font-size: 36px;
  line-height: 1;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.field textarea {
  min-height: 86px;
  padding-top: 14px;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.room-created {
  text-align: center;
  align-items: center;
}

.ready-room-name {
  width: 100%;
  display: grid;
  gap: 5px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.ready-room-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ready-room-name strong {
  font-size: 24px;
  line-height: 1.1;
}

.qr {
  width: 170px;
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin: 30px auto 24px;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}

.qr span {
  border-radius: 3px;
  background: #151926;
}

.code-label {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.room-code {
  margin: 4px 0 22px;
  font-size: 31px;
  font-weight: 900;
}

.joined-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
  text-align: left;
}

.joined-status span,
.joined-status strong {
  display: block;
}

.joined-status > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.joined-status > div:first-child strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.joined-status .avatars {
  justify-content: flex-end;
  margin: 0;
}

.avatars {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d58f, #79ead8);
  font-size: 15px;
  overflow: hidden;
}

.image-avatar img,
.profile-avatar-preview img,
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.profile-picker {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-preview {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 12px;
}

.profile-preview > div strong,
.profile-preview > div span {
  display: block;
}

.profile-preview > div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-avatar-preview {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d58f, #79ead8);
  font-size: 28px;
}

.avatar-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.avatar-choice-grid button {
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.avatar-choice-grid .cartoon-face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.avatar-choice-grid button.active {
  border-color: rgba(121, 234, 216, 0.8);
  background: rgba(121, 234, 216, 0.28);
}

.avatar-choice-grid .more-avatars {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 106, 23, 0.35);
}

.more-avatars span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.cartoon-face {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: #fff1de;
}

.cartoon-shirt,
.cartoon-neck,
.cartoon-head,
.cartoon-ear,
.cartoon-hair,
.cartoon-eye,
.cartoon-smile {
  position: absolute;
  display: block;
}

.cartoon-shirt {
  width: 78%;
  height: 34%;
  left: 11%;
  bottom: -13%;
  border-radius: 50% 50% 0 0;
  background: var(--shirt);
}

.cartoon-neck {
  width: 21%;
  height: 22%;
  left: 39.5%;
  bottom: 13%;
  border-radius: 0 0 40% 40%;
  background: var(--skin);
}

.cartoon-head {
  width: 58%;
  height: 62%;
  left: 21%;
  top: 17%;
  border-radius: 44% 44% 48% 48%;
  background: var(--skin);
}

.cartoon-ear {
  width: 16%;
  height: 24%;
  top: 42%;
  border-radius: 50%;
  background: var(--skin);
}

.cartoon-ear.left {
  left: -9%;
}

.cartoon-ear.right {
  right: -9%;
}

.cartoon-hair {
  width: 110%;
  height: 48%;
  left: -5%;
  top: -13%;
  border-radius: 55% 55% 30% 30%;
  background: var(--hair);
}

.cartoon-eye {
  width: 8%;
  aspect-ratio: 1;
  top: 48%;
  border-radius: 50%;
  background: #33231f;
}

.cartoon-eye.left {
  left: 27%;
}

.cartoon-eye.right {
  right: 27%;
}

.cartoon-smile {
  width: 24%;
  height: 12%;
  left: 38%;
  top: 68%;
  border-bottom: 2px solid #a05248;
  border-radius: 50%;
}

.hair-bob .cartoon-hair,
.hair-long .cartoon-hair {
  width: 120%;
  height: 94%;
  left: -10%;
  border-radius: 52% 52% 36% 36%;
}

.hair-bob .cartoon-head::after,
.hair-long .cartoon-head::after {
  content: "";
  position: absolute;
  width: 92%;
  height: 82%;
  left: 4%;
  top: 14%;
  border-radius: 42% 42% 46% 46%;
  background: var(--skin);
}

.hair-bob .cartoon-ear,
.hair-bob .cartoon-eye,
.hair-bob .cartoon-smile,
.hair-long .cartoon-ear,
.hair-long .cartoon-eye,
.hair-long .cartoon-smile {
  z-index: 1;
}

.hair-bun .cartoon-hair::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  left: 29%;
  top: -62%;
  border-radius: 50%;
  background: var(--hair);
}

.hair-wave .cartoon-hair {
  border-radius: 64% 36% 58% 35%;
}

.hair-curl .cartoon-hair,
.hair-coils .cartoon-hair {
  height: 42%;
  border-radius: 58% 58% 42% 42%;
  box-shadow: -5px 4px 0 var(--hair), 5px 3px 0 var(--hair), 0 -4px 0 var(--hair);
}

.hair-short .cartoon-hair {
  height: 35%;
  border-radius: 60% 60% 20% 20%;
}

.upload-photo {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.upload-photo input {
  display: none;
}

.room-photo-picker {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.room-photo-picker img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}

.room-photo-picker div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.room-photo-picker strong {
  color: var(--ink);
  font-size: 15px;
}

.room-photo-picker span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.room-photo-upload {
  width: fit-content;
  margin-top: 4px;
}

.room-photo-upload input {
  display: none;
}

.room-photo-upload span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.room-photo-upload.compact span {
  min-height: 38px;
  border-radius: 9px;
}

.swipe-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.vote-progress {
  text-align: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.flag-btn {
  justify-self: end;
  font-size: 23px;
}

.card-stack {
  position: relative;
  width: min(88%, 320px);
  height: min(56vh, 455px);
  min-height: 390px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: 12px;
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(38, 81, 84, 0.28);
  touch-action: none;
  transform: rotate(var(--tilt, 0deg)) translate(var(--x, 0px), var(--y, 0px));
  transition: transform 180ms ease, opacity 180ms ease;
}

.swipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.swipe-card img,
.info-poster img,
.room-card img,
.history-card img,
.match-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swipe-card h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 18px 22px;
  color: #fff;
  font-size: 26px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.swipe-badge {
  position: absolute;
  top: 26px;
  z-index: 3;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(36, 79, 86, 0.76);
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
}

.swipe-badge.like {
  right: 18px;
  color: var(--accent);
  transform: rotate(7deg);
}

.swipe-badge.nope {
  left: 18px;
  color: #e8a293;
  transform: rotate(-7deg);
}

.suggestion-badge {
  position: absolute;
  left: 18px;
  bottom: 68px;
  z-index: 3;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 106, 23, 0.9);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.swipe-card.liking .like,
.swipe-card.rejecting .nope {
  opacity: 1;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 86px);
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}

.round-action {
  width: 86px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.round-action.reject {
  background: rgba(231, 131, 114, 0.28);
  color: #ffe2dc;
}

.round-action.info {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.round-action.like {
  background: rgba(121, 234, 216, 0.28);
  color: #cafff5;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}

.nav-btn {
  min-height: 52px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.nav-btn.active {
  color: var(--accent);
}

.nav-btn b {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
  font-size: 22px;
  line-height: 1;
}

.chat-view {
  overflow: hidden;
}

.chat-inbox-view {
  overflow: hidden;
}

.chat-inbox-head {
  margin-bottom: 10px;
}

.chat-create-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.chat-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.chat-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.chat-search input {
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.chat-conversation-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  margin-inline: -6px;
}

.chat-list-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 5px;
  color: var(--ink);
  font-size: 12px;
}

.chat-list-section span {
  color: var(--accent);
}

.chat-list-section.earlier {
  margin-top: 10px;
}

.chat-conversation {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 6px;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.chat-conversation:active {
  background: rgba(255, 106, 23, 0.08);
}

.chat-group-avatar {
  position: relative;
  width: 58px;
  height: 58px;
}

.chat-group-avatar img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
}

.chat-group-avatar span {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.chat-group-avatar svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

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

.chat-conversation-copy strong,
.chat-conversation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-conversation-copy strong {
  font-size: 14px;
}

.chat-conversation-copy small,
.chat-conversation time {
  color: var(--muted);
  font-size: 12px;
}

.chat-room-context {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.chat-room-context span,
.chat-room-context small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.chat-room-context strong {
  color: var(--ink);
  font-size: 17px;
}

.chat-message-list {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 10px;
  overflow-y: auto;
  padding: 10px 0;
}

.chat-message {
  display: flex;
  align-items: end;
  gap: 8px;
}

.chat-message .avatar {
  flex: 0 0 auto;
  margin: 0;
}

.chat-message > div {
  max-width: 78%;
  padding: 9px 11px 7px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--panel);
}

.chat-message.own {
  justify-content: flex-end;
}

.chat-message.own > div {
  color: #fff;
  border-color: rgba(255, 106, 23, 0.5);
  border-radius: 12px 12px 3px 12px;
  background: var(--accent);
}

.chat-message span,
.chat-message time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.chat-message p {
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.35;
}

.chat-message.own span,
.chat-message.own time {
  color: rgba(255, 255, 255, 0.76);
}

.chat-compose {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.chat-compose input {
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
  outline: 0;
}

.chat-compose button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 9px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.chat-compose .chat-compose-plus {
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--panel);
}

.chat-compose svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.chat-invite-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.form-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.secondary.compact,
.primary.compact {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 7px 10px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.secondary.compact svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
  vertical-align: middle;
}

.chat-thread-add {
  color: #fff;
  background: var(--accent);
}

.chat-thread-add svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.chat-thread-avatar {
  width: 58px;
  height: 58px;
  align-self: center;
  margin: 4px auto -7px;
}

.chat-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
}

.chat-thread-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.chat-thread-tabs button {
  min-height: 34px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(118, 82, 42, 0.05);
  font-size: 12px;
  font-weight: 850;
}

.chat-thread-tabs button.active {
  color: #fff;
  background: var(--accent);
}

.chat-day {
  justify-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.chat-empty-state {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

.chat-empty-state > span {
  width: 76px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 15px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
}

.chat-empty-state svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chat-empty-state p {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.chat-invite-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chat-share-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 3px 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.chat-share-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chat-invite-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-invite-panel input {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.form-hint {
  margin: -6px 0 2px;
  line-height: 1.45;
}

.new-chat-people {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.new-chat-people-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.new-chat-people-head div {
  display: grid;
  gap: 3px;
}

.new-chat-people-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.new-chat-photo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(255, 106, 23, 0.18);
}

.new-chat-photo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.create-chat-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.create-chat-form > .primary {
  flex: 0 0 54px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  margin-top: auto;
}

.create-chat-form .new-chat-people {
  min-height: 0;
}

.chat-add-people-button {
  color: #fff;
  background: var(--accent);
}

.chat-add-people-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.selected-chat-members {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-chat-member {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(255, 106, 23, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 106, 23, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.selected-chat-member .avatar,
.chat-contact .avatar {
  width: 26px;
  height: 26px;
  margin: 0;
  font-size: 12px;
}

.selected-chat-member b {
  color: var(--accent);
  font-size: 16px;
}

.chat-contact-picker {
  display: grid;
  gap: 2px;
  max-height: 310px;
  overflow-y: auto;
}

.chat-contact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  text-align: left;
}

.chat-contact.selected {
  color: var(--accent-strong);
  background: rgba(255, 106, 23, 0.1);
}

.chat-contact b {
  color: var(--accent);
  font-size: 18px;
  text-align: center;
}

.info-view {
  padding: 0;
  background:
    linear-gradient(155deg, #8abfba 0%, #6fa8a7 46%, #5f929c 100%),
    var(--surface);
}

.info-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.info-hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.info-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(111, 166, 165, 0.98) 94%);
}

.info-content {
  padding: 0 18px 18px;
}

.meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.stars {
  color: var(--gold);
  margin: 10px 0;
}

.cast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cast figure {
  margin: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.cast .avatar {
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
}

.recipe-card {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

.recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recipe-head h3 {
  margin: 0;
}

.recipe-head span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.recipe-card strong {
  font-size: 13px;
}

.recipe-card ul,
.recipe-card ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.match {
  position: relative;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.match h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.match p,
.match h2,
.match-card,
.match .avatars,
.match button {
  position: relative;
  z-index: 2;
}

.match-card {
  width: 176px;
  height: 226px;
  overflow: hidden;
  margin: 24px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(38, 81, 84, 0.24);
}

.match-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(50, 91, 98, 0.78);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.match-popup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  border: 1px solid rgba(95, 211, 192, 0.42);
  border-radius: 12px;
  background: linear-gradient(155deg, #6aa2a0, #416e79);
  box-shadow: 0 28px 80px rgba(38, 81, 84, 0.32);
  text-align: center;
}

.match-popup h1 {
  margin: 0;
  color: #fff;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: 0;
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.confetti span {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 9px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(var(--r));
  animation: confetti-burst 2.8s cubic-bezier(0.13, 0.8, 0.24, 1) var(--d) forwards;
}

.confetti span:nth-child(3n) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.confetti span:nth-child(3n + 1) {
  background: #ffffff;
}

.confetti span:nth-child(4n) {
  background: var(--warn);
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.5) rotate(var(--r));
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
    transform:
      translate3d(
        calc(-50% + var(--burst-x)),
        calc(-50% + var(--burst-y)),
        0
      )
      scale(1)
      rotate(calc(var(--r) + 220deg));
  }

  100% {
    opacity: 0;
    transform:
      translate3d(
        calc(-50% + var(--burst-x)),
        calc(-50% + var(--burst-y) + var(--fall)),
        0
      )
      scale(0.9)
      rotate(calc(var(--r) + 560deg));
  }
}

.match-kicker {
  color: #cafff5;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-popup p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: 850;
}

.match-popup img {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.room-card,
.history-card {
  grid-template-columns: 76px 1fr auto;
  min-height: 92px;
  padding: 10px;
  gap: 12px;
}

.room-card img,
.history-card img {
  width: 66px;
  height: 66px;
  border-radius: 8px;
}

.pill {
  min-width: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--button-ink);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.pill.dim {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.room-card .avatars {
  justify-content: flex-start;
  margin-top: 8px;
}

.room-card .pill {
  color: #10312c;
}

.room-card .pill.dim {
  color: #fff;
}

.room-card.clickable {
  cursor: pointer;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.summary-row img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.summary-copy {
  min-width: 0;
}

.summary-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.summary-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.summary-title span {
  flex: 0 0 auto;
  color: #cafff5;
  font-size: 12px;
  font-weight: 900;
}

.vote-meter {
  height: 8px;
  overflow: hidden;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.vote-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.summary-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.lobby-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lobby-room-image {
  width: 100%;
  height: 138px;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 8px;
}

.lobby-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lobby-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.lobby-settings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.owner-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.owner-panel strong,
.owner-panel span {
  display: block;
}

.owner-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.room-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.room-settings-panel strong,
.room-settings-panel span {
  display: block;
}

.room-settings-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.owner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.owner-actions button {
  min-height: 40px;
  border: 1px solid rgba(255, 106, 23, 0.18);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(255, 106, 23, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.owner-actions .danger {
  color: #c43c1a;
  background: rgba(196, 60, 26, 0.08);
  border-color: rgba(196, 60, 26, 0.18);
}

.delete-room-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(54, 38, 27, 0.42);
  backdrop-filter: blur(8px);
}

.delete-room-modal {
  width: 100%;
  max-width: 330px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 18px;
  border: 1px solid rgba(196, 60, 26, 0.2);
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: 0 28px 80px rgba(80, 52, 28, 0.22);
  text-align: center;
}

.delete-room-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #c43c1a;
  font-size: 24px;
  font-weight: 900;
}

.delete-room-modal h2,
.delete-room-modal p {
  margin: 0;
}

.delete-room-modal p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.delete-room-modal > div {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.delete-room-modal button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 900;
}

.delete-room-modal .danger {
  color: #fff;
  background: #c43c1a;
  border-color: #c43c1a;
}

.lobby-settings label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.category-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-switch button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.13);
  font-weight: 900;
}

.category-switch button.active {
  color: var(--button-ink);
  background: var(--accent);
}

.threshold-control {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.threshold-control label {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.threshold-control input {
  width: 100%;
  accent-color: var(--accent);
}

.threshold-control small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lobby-matches {
  display: grid;
  gap: 10px;
  margin: 16px 0 6px;
}

.lobby-matches h3 {
  margin: 0;
  font-size: 18px;
}

.match-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(121, 234, 216, 0.34);
  border-radius: 8px;
  background: rgba(121, 234, 216, 0.16);
}

.match-row img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.match-row strong,
.match-row span {
  display: block;
}

.match-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.saved-match-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.saved-match-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.saved-match-card img {
  width: 86px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.saved-match-card span,
.saved-match-card p,
.saved-match-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.saved-match-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 18px;
}

.saved-match-card p {
  margin: 0 0 8px;
  line-height: 1.3;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.empty-state strong,
.empty-state p {
  display: block;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.lobby-head {
  margin-top: 22px;
}

.participant-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.participant-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.participant-row .avatar {
  margin: 0;
}

.participant-row strong {
  font-size: 16px;
}

.remove-person {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(196, 60, 26, 0.18);
  border-radius: 8px;
  color: #c43c1a;
  background: rgba(196, 60, 26, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
}

.section-head h1 {
  margin: 0;
  font-size: 26px;
}

.section-subtitle {
  margin: 5px 0 0;
  max-width: 270px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.rooms-main-menu {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 14px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.rooms-main-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.activity-row {
  grid-template-columns: 44px 1fr;
  min-height: 62px;
  padding: 9px;
  background: transparent;
  border-color: transparent;
}

.activity-row p {
  margin: 0;
  font-weight: 800;
}

.activity-row time {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.profile {
  align-items: center;
  text-align: center;
}

.profile-photo {
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 28px 0 14px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d58f, #46c7b5);
  font-size: 56px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin: 18px 0 24px;
}

.stats strong {
  display: block;
  font-size: 26px;
}

.stats span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
}

.settings {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.settings-row {
  grid-template-columns: 1fr auto;
  min-height: 58px;
  padding: 0 15px;
  color: #fff;
  text-align: left;
}

/* Warm light theme */
body {
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 152, 49, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 86%, rgba(255, 206, 130, 0.28), transparent 30rem),
    #f2eadc;
}

.app-screen,
.category-pick-view,
.info-view {
  background:
    radial-gradient(circle at 94% 18%, rgba(255, 136, 33, 0.11), transparent 11rem),
    radial-gradient(circle at 70% 82%, rgba(255, 177, 69, 0.13), transparent 15rem),
    linear-gradient(155deg, #fffaf2 0%, #f5ecdd 58%, #efe3d2 100%),
    var(--surface);
}

.app-screen {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px rgba(103, 69, 34, 0.16);
}

.native-app body {
  background: #f5ecdd;
}

.signal,
.wifi,
.battery,
.battery::after {
  background: rgba(21, 17, 13, 0.88);
}

.topbar h1,
.topbar h2,
.hero h1,
.match h1,
.section-head h1,
.profile h1,
.room-created h2,
.lobby-panel h3,
.summary-title strong,
.participant-row strong,
.settings-row,
.activity-row p,
.room-card strong,
.history-card strong,
.category-card strong {
  color: var(--ink);
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero p,
.spark,
.category-pick-header p,
.category-card span,
.category-card-large .category-card-copy span,
.field label,
.code-label,
.meta,
.summary-copy small,
.lobby-panel p,
.lobby-settings label,
.threshold-control label,
.match-row span,
.activity-row time,
.stats span,
.profile-preview > div span,
.topbar small {
  color: var(--muted);
}

.spark,
.icon-btn,
.secondary,
.category-card,
.room-card,
.history-card,
.settings-row,
.summary-row,
.lobby-panel,
.threshold-control,
.participant-row,
.profile-picker,
.ready-room-name,
.field input,
.field textarea {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(103, 69, 34, 0.06);
}

.icon-btn,
.category-back {
  color: var(--ink);
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(255, 106, 23, 0.24);
}

.secondary {
  color: var(--ink);
}

.category-card {
  color: var(--ink);
}

.category-card-large {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(80, 52, 28, 0.1);
}

.category-card-large .category-icon {
  color: #fff;
  border: 0;
  box-shadow: 0 12px 24px rgba(255, 106, 23, 0.16);
}

.category-film .category-icon {
  background: linear-gradient(135deg, #ff7a1a, #ff4d12);
}

.category-mad .category-icon {
  background: linear-gradient(135deg, #ffb13d, #ff6a17);
}

.category-aktivitet .category-icon {
  background: linear-gradient(135deg, #8fb35a, #5f8f43);
}

.profile-avatar-preview,
.avatar,
.profile-photo {
  background: linear-gradient(135deg, #fff3df, #ff8b2b);
  border-color: rgba(255, 106, 23, 0.18);
}

.field input,
.field textarea {
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(21, 17, 13, 0.42);
}

.upload-photo,
.avatar-choice-grid button,
.round-action,
.category-switch button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
}

.avatar-choice-grid button.active,
.category-switch button.active,
.nav-btn.active {
  color: var(--accent);
}

.category-switch button.active {
  background: rgba(255, 106, 23, 0.12);
  border-color: rgba(255, 106, 23, 0.48);
}

.round-action.reject {
  color: #c43c1a;
  background: rgba(255, 106, 23, 0.1);
}

.round-action.info {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.round-action.info {
  font-size: 0;
}

.round-action.info::before {
  content: "↓";
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.round-action.like {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.bottom-nav {
  border-top: 1px solid rgba(80, 52, 28, 0.08);
}

.nav-btn {
  color: rgba(21, 17, 13, 0.48);
}

.swipe-card {
  border-color: rgba(80, 52, 28, 0.12);
  box-shadow: 0 24px 60px rgba(103, 69, 34, 0.18);
}

.vote-progress {
  color: var(--ink);
}

.info-hero::after {
  background: linear-gradient(180deg, rgba(245, 236, 221, 0), #f5ecdd 94%);
}

.stars,
.summary-title span,
.match-kicker {
  color: var(--accent);
}

.vote-meter {
  background: rgba(80, 52, 28, 0.09);
}

.vote-meter span {
  background: var(--accent);
}

.match-overlay {
  background: rgba(245, 236, 221, 0.78);
}

.match-popup {
  border-color: rgba(255, 106, 23, 0.18);
  background: linear-gradient(155deg, #fffaf2, #f3e5d1);
  box-shadow: 0 28px 80px rgba(103, 69, 34, 0.18);
}

.match-popup h1,
.match-popup p {
  color: var(--ink);
}

.match-row {
  border-color: rgba(255, 106, 23, 0.14);
  background: rgba(255, 106, 23, 0.08);
}

.pill {
  color: #fff;
  background: var(--accent);
}

.pill.dim {
  color: var(--muted);
  background: rgba(80, 52, 28, 0.08);
}

.profile-photo {
  color: #fff;
}

@media (max-width: 390px) {
  .phone-shell {
    padding: 0;
  }

  .app-screen {
    border: 0;
    border-radius: 0;
  }

  .view {
    padding-inline: 15px;
  }

  .action-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .round-action {
    width: 100%;
    height: 52px;
  }
}
