:root {
  --paper: #fcf0e8;
  --paper-soft: rgba(255, 247, 240, 0.9);
  --ink: #7f5b46;
  --ink-deep: #684735;
  --line: rgba(115, 77, 56, 0.16);
  --peach: #fae3d9;
  --rose: #f4d0d6;
  --latte: #e5c2a5;
  --wood: rgba(123, 83, 57, 0.28);
  --shadow: rgba(88, 57, 39, 0.14);
  --font-title: "Gamja Flower", cursive;
  --font-body: "Gamja Flower", cursive;
  --font-japanese: "Yomogi", "Yu Gothic", "Hiragino Maru Gothic ProN", cursive;
  --viewport-width: 100vw;
  --viewport-height: 100vh;
  --responsive-ui-scale: 1;
  --landscape-ui-scale: 1;
  --landscape-title-top: 2rem;
  --landscape-title-right: 2rem;
  --landscape-title-width: 34rem;
  --landscape-menu-top: 13rem;
  --landscape-menu-right: 2rem;
  --landscape-menu-width: 20rem;
  --landscape-menu-gap: 0.65rem;
  --landscape-button-min-height: 3.25rem;
  --landscape-button-padding-y: 0.55rem;
  --landscape-button-padding-x: 1rem;
  --landscape-button-font-size: 1.2rem;
  --landscape-title-font-size: 4.6rem;
  --landscape-subtitle-font-size: 0.95rem;
  --landscape-stroke-width: 5px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::selection {
  background: #ff94c1;
  color: #fff8fb;
}

input::selection,
textarea::selection {
  background: #ff94c1;
  color: #fff8fb;
  -webkit-text-fill-color: #fff8fb;
}

html {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink-deep);
  position: fixed;
  inset: 0;
  min-height: var(--app-height, 100svh);
  width: 100%;
  overflow: hidden;
  overflow-x: hidden;
  background: #ecd6c4;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  touch-action: none;
}

@media (pointer: fine) {
  html[data-custom-cursor="true"],
  html[data-custom-cursor="true"] body,
  html[data-custom-cursor="true"] * {
    cursor: none !important;
  }
}

html.has-project-cursor,
html.has-project-cursor body,
html.has-project-cursor * {
  cursor: none !important;
}

.project-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--project-cursor-size, 0.7cm);
  height: var(--project-cursor-size, 0.7cm);
  margin: 0;
  transform: translate(-50%, 0);
  transform-origin: center center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  filter:
    drop-shadow(0 0 4px rgba(207, 162, 163, 0.78))
    drop-shadow(0 0 12px rgba(207, 162, 163, 0.48));
  pointer-events: none;
  z-index: 2147483647;
  will-change: transform, left, top, opacity, width, height, filter;
  transition: opacity 0.12s ease, width 0.12s ease, height 0.12s ease;
  animation: projectCursorGlow 2.8s ease-in-out infinite;
}

.project-cursor[hidden] {
  display: none !important;
}

.snackbar-layer {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2rem);
  z-index: 260;
  width: min(calc(100vw - 1.5rem), 42rem);
  pointer-events: none;
  transform: translateX(-50%);
}

.snack-message {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(0.85rem, 2.3vw, 1.1rem) clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(239, 148, 173, 0.42);
  border-radius: clamp(1rem, 3vw, 1.45rem);
  background:
    linear-gradient(180deg, rgba(255, 247, 245, 0.96), rgba(252, 221, 229, 0.96));
  box-shadow: 0 18px 46px rgba(112, 70, 54, 0.18);
  color: #755140;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, min(3.8vw, 2.8vh), 1.55rem);
  line-height: 1.08;
  opacity: 0;
  text-align: center;
  transform: translateY(0.65rem) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.snack-message.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.snack-message[hidden] {
  display: none !important;
}

.translation-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 245;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 248, 246, 0.42), transparent 34%),
    rgba(121, 83, 65, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
}

.translation-loading-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.translation-loading-screen[hidden] {
  display: none !important;
}

.translation-loading-card {
  display: grid;
  justify-items: center;
  gap: clamp(0.75rem, 2.5vw, 1rem);
  width: min(calc(100vw - 2rem), 24rem);
  padding: clamp(1.15rem, 4vw, 1.65rem) clamp(1.3rem, 5vw, 2rem);
  border: 1px solid rgba(239, 136, 151, 0.32);
  border-radius: clamp(1.15rem, 4vw, 1.75rem);
  background:
    linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(252, 224, 231, 0.94));
  box-shadow: 0 24px 62px rgba(91, 58, 42, 0.18);
  color: #7b5142;
  text-align: center;
}

.translation-loading-card p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, min(5vw, 4vh), 2.15rem);
  line-height: 1;
}

.translation-loading-spinner {
  width: clamp(2.2rem, 8vw, 3rem);
  height: clamp(2.2rem, 8vw, 3rem);
  border: 0.28rem solid rgba(239, 136, 151, 0.24);
  border-top-color: #ef8897;
  border-radius: 50%;
  animation: translationSpinnerSpin 0.9s linear infinite;
}

@keyframes translationSpinnerSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes projectCursorGlow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 4px rgba(207, 162, 163, 0.74))
      drop-shadow(0 0 12px rgba(207, 162, 163, 0.46));
  }
  50% {
    filter:
      drop-shadow(0 0 6px rgba(207, 162, 163, 0.88))
      drop-shadow(0 0 18px rgba(207, 162, 163, 0.58));
  }
}

html[data-sakura-disabled="true"] .sakura-front-layer,
html[data-sakura-disabled="true"] .petal-layer {
  display: none !important;
}

.project-cursor.is-visible {
  opacity: 1;
}

.project-cursor.is-pointer {
  width: var(--project-cursor-size, 0.7cm);
  height: var(--project-cursor-size, 0.7cm);
}

body.is-loading {
  overflow: hidden;
}

body.popup-open {
  overflow: hidden;
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.title-screen {
  position: relative;
  min-height: var(--app-height, 100svh);
  height: var(--app-height, 100svh);
  isolation: isolate;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.55s ease;
}

body.is-loading .title-screen {
  opacity: 0;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 248, 240, 0.74), transparent 36%),
    linear-gradient(180deg, rgba(116, 82, 63, 0.2), rgba(70, 46, 33, 0.32)),
    linear-gradient(180deg, #f0d4bf, #d7ac84);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.orientation-screen {
  display: none;
}

.orientation-card {
  width: min(88vw, 30rem);
  max-width: 30rem;
  padding: clamp(1.75rem, 8vw, 3.4rem) clamp(1.35rem, 7vw, 3rem);
  border-radius: clamp(1.35rem, 6vw, 2.4rem);
  background: rgba(255, 249, 245, 0.94);
  box-shadow: 0 16px 32px rgba(84, 54, 38, 0.16);
  text-align: center;
}

.orientation-card p {
  margin: 0;
  color: #744d3a;
  font-family: var(--font-title);
  font-size: clamp(2rem, 8.8vw, 3.6rem);
  line-height: 1.08;
}

body:not(.is-loading) .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card {
  width: min(100%, 280px);
  padding: 18px 18px 14px;
  border-radius: 24px;
  background: rgba(255, 250, 246, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 34px rgba(84, 54, 38, 0.18);
  text-align: center;
}

.loading-bar {
  margin: 0 0 12px;
  height: 12px;
  padding: 1px;
  border-radius: 999px;
  background: rgba(147, 104, 80, 0.12);
  overflow: hidden;
}

.loading-fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(236, 175, 161, 0.94), rgba(248, 219, 194, 0.98));
  animation: loadingSweep 1.2s ease-in-out infinite;
}

.loading-copy {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: rgba(111, 71, 54, 0.9);
}

.video-stack,
.bg-video,
.video-tint,
.petal-layer,
.sakura-layer {
  position: absolute;
  inset: 0;
}

.video-stack {
  z-index: 0;
  pointer-events: none;
  --fade-boost: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 254, 251, 0.99), rgba(255, 249, 243, 0.95) 48%, rgba(249, 236, 224, 0.9) 100%);
}

.video-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82), transparent 64%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.3), rgba(255, 248, 240, 0.1));
  opacity: var(--fade-boost);
  transition: opacity 0.34s ease;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0;
  transform: none;
  transition: opacity 0.68s ease;
  filter: saturate(1.0) sepia(0.01) brightness(1.26) contrast(1.0);
  will-change: opacity, transform;
}

.bg-video.active {
  opacity: 1;
}

.video-tint {
  background:
    radial-gradient(circle at top center, rgba(255, 254, 251, 0.58), transparent 40%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.18), rgba(255, 242, 232, 0.06));
  z-index: 2;
}

.petal-layer {
  z-index: 3;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 212, 220, 0.78) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 18%, rgba(255, 207, 214, 0.76) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 58%, rgba(255, 235, 238, 0.7) 0 3px, transparent 4px);
  animation: petalsFloat 18s linear infinite;
}

.sakura-source {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  mix-blend-mode: screen;
  filter: saturate(1.12) brightness(2.2) contrast(0.9);
  pointer-events: none;
  left: 0;
  top: 0;
  z-index: 2;
  transform: scaleX(-1);
  transform-origin: center;
}

.sakura-layer {
  display: none;
}

.sakura-front-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  overflow: hidden;
}

.title-legal-footer {
  position: static;
  width: fit-content;
  max-width: 100%;
  margin: 5px 0 0 auto;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  pointer-events: none;
  z-index: 60;
}

.title-legal-footer .small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  pointer-events: auto;
}

.title-legal-footer .small-pill {
  color: rgba(184, 99, 130, 0.98);
  background: rgba(255, 250, 247, 0.78);
  border: 1px solid rgba(223, 182, 171, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.84rem;
  text-decoration: none;
  opacity: 0.9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.title-legal-footer .small-pill:hover,
.title-legal-footer .small-pill:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.frame {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 40px;
  padding: 56px 64px;
}

.hero {
  position: relative;
  z-index: 5;
  min-height: var(--app-height, 100svh);
  height: var(--app-height, 100svh);
  padding: 18px 52px 34px;
  overflow: hidden;
}

.title-wrap {
  width: fit-content;
  max-width: min(92vw, 980px);
  margin-left: auto;
  text-align: center;
  transform: translateX(200px);
  animation: fadeLift 1s ease both;
}

.eyebrow {
  margin: 0 0 2px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: rgba(137, 99, 75, 0.74);
}

.title-wrap h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(4.4rem, 7vw, 6.8rem);
  line-height: 0.92;
  color: #f7efe5;
  -webkit-text-stroke: 7px rgba(131, 92, 69, 0.88);
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 rgba(124, 83, 59, 0.1),
    0 12px 22px rgba(102, 65, 42, 0.1);
  word-break: keep-all;
}

.subtitle {
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(113, 79, 60, 0.78);
}

.window-scene {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 16px 0 28px;
}

.music-hint {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 244, 235, 0.38);
  border: 1px solid rgba(170, 121, 91, 0.18);
  text-align: center;
  color: rgba(113, 79, 60, 0.92);
  backdrop-filter: blur(6px);
}

.menu-panel {
  position: absolute;
  right: 54px;
  top: 46%;
  transform: translateY(-50%);
  width: min(100%, 330px);
  max-width: calc(100vw - 32px);
  padding: 0;
  display: grid;
  gap: 10px;
  animation: fadeLift 1.15s ease both;
}

.menu-kicker {
  margin: 0 0 2px;
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: #f8eadf;
  text-shadow: 0 4px 12px rgba(94, 60, 41, 0.16);
}

.menu-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  padding: 16px 26px;
  border: 2px solid rgba(222, 171, 172, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 236, 231, 0.98), rgba(251, 225, 221, 0.98));
  color: #765241;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 5px 14px rgba(146, 110, 91, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
  isolation: isolate;
  line-height: 1.02;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.menu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 0;
}

.menu-btn::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 13px;
  border: 1px solid rgba(230, 178, 180, 0.8);
  opacity: 0;
  background: none;
  transform: scale(0.965);
  transition: opacity 0.22s ease, transform 0.22s ease, inset 0.22s ease;
  pointer-events: none;
  z-index: 0;
}

.menu-btn > * {
  position: relative;
  z-index: 1;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  transform: translate(3px, -1px) scale(1.002);
  border-color: rgba(224, 163, 168, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 241, 237, 1), rgba(250, 229, 225, 1));
  color: #765241;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(147, 99, 81, 0.14);
  text-shadow: none;
  outline: none;
}

.menu-btn:hover {
  filter: saturate(1.08) brightness(1.02);
}

.menu-btn:hover::before,
.menu-btn:focus-visible::before {
  opacity: 0.2;
}

.menu-btn:hover::after,
.menu-btn:focus-visible::after {
  opacity: 1;
  transform: scale(0.988);
  inset: 6px;
}

.menu-btn:active {
  transform: translateY(-2px) scale(1.01);
}

.menu-btn.primary {
  background:
    linear-gradient(180deg, rgba(255, 238, 233, 1), rgba(249, 220, 216, 0.98));
}

.popup-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.popup-open .popup-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(166, 125, 101, 0.18);
  backdrop-filter: blur(11px);
}

.popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 15px 15px 13px;
  border-radius: 24px;
  border: 1px solid rgba(230, 184, 177, 0.75);
  background:
    linear-gradient(180deg, rgba(252, 221, 209, 0.96), rgba(249, 213, 201, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 243, 0.8),
    0 20px 42px rgba(101, 67, 50, 0.12);
  color: rgba(114, 77, 58, 0.96);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.24s ease, transform 0.24s ease;
  isolation: isolate;
}

.popup-card[hidden] {
  display: none;
}

.popup-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-card.is-closing {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.popup-card,
.popup-card-tall,
.store-columns {
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.popup-card.is-scroll-active,
.popup-card:hover,
.popup-card:focus-within,
.popup-card-tall.is-scroll-active,
.popup-card-tall:hover,
.popup-card-tall:focus-within,
.store-columns.is-scroll-active,
.store-columns:hover,
.store-columns:focus-within {
  scrollbar-color: rgba(239, 136, 151, 0.86) rgba(255, 244, 248, 0.44);
}

.popup-card::-webkit-scrollbar,
.popup-card-tall::-webkit-scrollbar,
.store-columns::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.popup-card::-webkit-scrollbar-track,
.popup-card-tall::-webkit-scrollbar-track,
.store-columns::-webkit-scrollbar-track {
  background: rgba(255, 244, 248, 0);
  border-radius: 999px;
  transition: background 0.24s ease;
}

.popup-card::-webkit-scrollbar-thumb,
.popup-card-tall::-webkit-scrollbar-thumb,
.store-columns::-webkit-scrollbar-thumb {
  background: rgba(239, 136, 151, 0);
  border: 2px solid rgba(255, 244, 248, 0);
  border-radius: 999px;
  transition: background 0.24s ease, border-color 0.24s ease;
}

.popup-card.is-scroll-active::-webkit-scrollbar-track,
.popup-card:hover::-webkit-scrollbar-track,
.popup-card:focus-within::-webkit-scrollbar-track,
.popup-card-tall.is-scroll-active::-webkit-scrollbar-track,
.popup-card-tall:hover::-webkit-scrollbar-track,
.popup-card-tall:focus-within::-webkit-scrollbar-track,
.store-columns.is-scroll-active::-webkit-scrollbar-track,
.store-columns:hover::-webkit-scrollbar-track,
.store-columns:focus-within::-webkit-scrollbar-track {
  background: rgba(255, 244, 248, 0.44);
}

.popup-card.is-scroll-active::-webkit-scrollbar-thumb,
.popup-card:hover::-webkit-scrollbar-thumb,
.popup-card:focus-within::-webkit-scrollbar-thumb,
.popup-card-tall.is-scroll-active::-webkit-scrollbar-thumb,
.popup-card-tall:hover::-webkit-scrollbar-thumb,
.popup-card-tall:focus-within::-webkit-scrollbar-thumb,
.store-columns.is-scroll-active::-webkit-scrollbar-thumb,
.store-columns:hover::-webkit-scrollbar-thumb,
.store-columns:focus-within::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 148, 193, 0.94), rgba(239, 136, 151, 0.88));
  border-color: rgba(255, 244, 248, 0.68);
}

.popup-card h2,
.popup-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
}

.popup-card h2 {
  font-size: clamp(2rem, 3.2vw, 2.35rem);
  width: fit-content;
  max-width: calc(100% - clamp(6.4rem, 24vw, 8.4rem));
  min-height: 2.15rem;
  padding-inline: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #6f4838;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: keep-all;
}

.popup-card h2 > span {
  color: inherit;
  font-size: inherit;
}

.popup-card h2 > span:last-child {
  color: #ef8897;
  font-size: 0.68em;
  margin-left: 0.22em;
}

.popup-card h3 {
  margin-top: 6px;
  font-size: 1.8rem;
  color: #744b3b;
}

.popup-card-shop h2 {
  max-width: calc(100% - clamp(6.4rem, 14vw, 9rem));
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f4b3a;
  font-size: 1.2rem;
  line-height: 1;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
}

.popup-close-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 102px;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.88);
  border: 1px solid rgba(189, 137, 118, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.popup-close-cat > * {
  pointer-events: none;
}

.popup-close-cat-image {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.popup-close-text {
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1;
  color: #6f4b3a;
  text-transform: lowercase;
}

.accent-shrink {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 500;
  line-height: 1;
  text-shadow: none;
  vertical-align: baseline;
}

.accent-shrink.accent-cedilla {
  font-weight: 520;
  text-shadow: none;
}

.japanese-glyph {
  font-family: var(--font-japanese);
  font-weight: 400;
  line-height: 1;
}

.popup-input.has-lara-placeholder-overlay,
.popup-input.has-lara-input-value-overlay,
.profile-head.has-lara-placeholder-overlay,
.profile-head.has-lara-input-value-overlay {
  position: relative;
}

.lara-placeholder-overlay,
.lara-input-value-overlay {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  z-index: 3;
  transform: translateY(-50%);
  color: rgba(153, 111, 89, 0.9);
  font-family: var(--font-title);
  font-size: inherit;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lara-input-value-overlay {
  color: #7d5846;
}

.lara-input-value-text {
  display: inline-block;
  min-width: 100%;
  transform: translateX(calc(-1 * var(--lara-input-scroll, 0px)));
  white-space: pre;
}

.lara-input-selection-highlight {
  background: #ff94c1;
  border-radius: 0.1em;
  box-decoration-break: clone;
  color: #fff8fb;
  -webkit-box-decoration-break: clone;
}

.lara-input-selection-highlight .accent-shrink {
  color: inherit;
}

.lara-input-caret {
  position: absolute;
  top: 50%;
  left: var(--lara-input-caret-left, 0px);
  width: 2px;
  height: 1.05em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(-50%);
}

.lara-input-caret-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
}

.lock-input .lara-placeholder-overlay,
.lock-input .lara-input-value-overlay {
  right: 5.2rem;
}

.profile-head .lara-placeholder-overlay,
.profile-head .lara-input-value-overlay {
  left: 78px;
  right: 52px;
  font-size: inherit;
}

.profile-head .lara-input-value-overlay {
  color: #8a5f48;
}

.has-lara-placeholder-overlay input::placeholder {
  color: transparent !important;
}

.has-lara-input-value-overlay input {
  position: relative;
  z-index: 2;
  color: transparent !important;
  caret-color: transparent;
  -webkit-text-fill-color: transparent;
}

.has-lara-input-value-overlay input::selection {
  background: transparent;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.has-lara-input-value-overlay:focus-within .lara-input-caret {
  opacity: 1;
  animation: laraCaretBlink 1s steps(2, start) infinite;
}

.has-lara-input-selection .lara-input-caret {
  opacity: 0 !important;
  animation: none !important;
}

.popup-card-shop {
  width: min(100%, 920px);
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: min(96svh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 14px;
  border-radius: 22px;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.confirm-delete-popup {
  width: min(100%, 440px);
}

.store-columns {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

.store-columns::-webkit-scrollbar {
  width: 0;
}

.store-columns::-webkit-scrollbar-track {
  background: rgba(255, 244, 248, 0);
  border-radius: 999px;
  transition: background 0.24s ease;
}

.store-columns::-webkit-scrollbar-thumb {
  background: rgba(239, 136, 151, 0);
  border-radius: 999px;
  border: 2px solid rgba(255, 244, 248, 0);
  transition: background 0.24s ease, border-color 0.24s ease;
}

.store-columns::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 148, 193, 0.94), rgba(239, 136, 151, 0.88));
  border-color: rgba(255, 244, 248, 0.68);
}

.profile-auth-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

#profile-auth-signed-out {
  display: grid;
  gap: 10px;
}

#profile-auth-signed-out[hidden],
#profile-auth-signed-in[hidden] {
  display: none !important;
}

.google-login-slot {
  display: contents;
}

.profile-account-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 249, 246, 0.76);
  border: 1px solid rgba(189, 137, 118, 0.14);
}

.profile-account-card[hidden] {
  display: none !important;
}

.profile-account-card img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.72);
}

.profile-account-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-account-copy strong,
.profile-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-account-copy strong {
  font-size: 1.2rem;
  color: #744b3b;
}

.profile-account-copy span {
  font-size: 0.98rem;
  color: rgba(132, 92, 73, 0.82);
}

.profile-auth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.google-login-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(189, 137, 118, 0.24);
  border-radius: 999px;
  background: rgba(255, 252, 250, 0.99);
  color: #6f4b3a;
  font-family: var(--font-title);
  font-size: 1.18rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  cursor: pointer;
  user-select: none;
}

.store-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 12px;
  font-size: 1.08rem;
  color: rgba(116, 75, 59, 0.9);
}

.store-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.store-tab {
  min-height: 42px;
  border: 1px solid rgba(189, 137, 118, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 247, 0.92);
  color: rgba(118, 79, 61, 0.9);
  font-family: var(--font-title);
  font-size: 1.22rem;
  cursor: pointer;
}

.store-tab.is-active {
  background: rgba(250, 228, 219, 0.96);
  border-color: rgba(169, 115, 94, 0.2);
}

.store-columns {
  display: grid;
  gap: 14px;
}

.store-category-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 249, 246, 0.64);
  border: 1px solid rgba(189, 137, 118, 0.12);
}

.confirm-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-delete-btn {
  min-height: 42px;
}

.store-category-panel[hidden] {
  display: none !important;
}

.store-category-panel h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.45rem;
  color: #744b3b;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.skin-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 249, 246, 0.84);
  border: 1px solid rgba(189, 137, 118, 0.12);
  text-align: center;
}

.skin-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.skin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.skin-name {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #744b3b;
}

.skin-price {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(132, 92, 73, 0.84);
}

.skin-buy-btn,
.skin-equip-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(189, 137, 118, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.99), rgba(248, 236, 229, 0.98));
  color: #6f4b3a;
  font-family: var(--font-title);
  font-size: 1rem;
}

.skin-buy-btn:disabled,
.skin-equip-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.skin-owned-tag,
.skin-equipped-tag {
  font-size: 0.88rem;
  color: rgba(132, 92, 73, 0.8);
}

.popup-stack {
  display: grid;
  gap: 10px;
  margin-top: clamp(0.95rem, 1.7vh, 1.35rem);
}

.popup-card > .popup-stack {
  margin-top: clamp(1rem, 1.9vh, 1.45rem);
}

.popup-input,
.room-pill,
.profile-wide-btn,
.profile-split-btn,
.popup-action,
.popup-mini-action,
.choice-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  font-family: var(--font-title);
}

.popup-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  background: rgba(252, 241, 236, 0.8);
  color: rgba(136, 96, 76, 0.96);
  font-size: 1.5rem;
}

.popup-inline-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.popup-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #7d5846;
  font-family: var(--font-title);
  font-size: 1.5rem;
}

.popup-input input::placeholder {
  color: rgba(153, 111, 89, 0.9);
}

.lock-input {
  gap: 12px;
}

.input-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-editable {
  padding-right: 12px;
}

.icon-lock,
.icon-btn,
.room-meta {
  flex: 0 0 auto;
  color: rgba(150, 106, 84, 0.95);
}

.icon-lock.material-symbols-rounded,
.room-meta.material-symbols-rounded {
  font-size: 1.3rem;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-title);
  cursor: pointer;
  color: rgba(130, 88, 68, 0.95);
}

.icon-btn .material-symbols-rounded {
  font-size: 1.25rem;
}

.popup-row,
.inline-input {
  font-size: 1.35rem;
}

.popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toggle-chip {
  position: relative;
  width: 50px;
  height: 28px;
  border: 1px solid rgba(132, 96, 76, 0.16);
  border-radius: 999px;
  background: rgba(154, 118, 101, 0.7);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-chip::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f7dccf;
  transition: transform 0.18s ease, background 0.18s ease;
}

.toggle-chip[aria-pressed="true"] {
  background: rgba(232, 151, 156, 0.92);
  border-color: rgba(175, 101, 108, 0.3);
}

.toggle-chip[aria-pressed="true"]::after {
  transform: translateX(-22px);
  background: #fff4eb;
}

.toggle-chip:disabled,
.toggle-chip[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  filter: saturate(0.78);
}

.toggle-chip:disabled::after,
.toggle-chip[aria-disabled="true"]::after {
  background: rgba(255, 244, 235, 0.72);
}

.mouse-control-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  flex-wrap: wrap;
}

.mouse-more-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  min-width: 1.45rem;
  min-height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  box-shadow: none;
  color: #ef8897;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}

.mouse-more-btn[hidden] {
  display: none !important;
}

.mouse-more-btn .material-symbols-rounded {
  font-size: 1.45rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: none;
  transition: transform 0.18s ease;
}

.mouse-more-btn[aria-expanded="true"] .material-symbols-rounded {
  transform: rotate(180deg);
}

.mouse-more-btn:hover,
.mouse-more-btn:focus-visible,
.mouse-more-btn[aria-expanded="true"] {
  transform: translateY(-1px);
  color: #d96d86;
  opacity: 1;
}

.mouse-more-btn:focus-visible .material-symbols-rounded {
  text-shadow: 0 0 8px rgba(239, 136, 151, 0.5);
}

.mouse-unlock-btn {
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(239, 136, 151, 0.42);
  border-radius: 999px;
  background: rgba(255, 244, 248, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: #9d5567;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.mouse-unlock-btn:hover,
.mouse-unlock-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 235, 243, 0.96);
  box-shadow: 0 8px 16px rgba(137, 95, 72, 0.12);
}

.mouse-unlock-btn[hidden] {
  display: none !important;
}

.mouse-size-panel[hidden] {
  display: none !important;
}

#options-popup .mouse-size-panel {
  width: min(100%, 20rem);
  margin-top: -0.2rem;
  padding: 0.15rem 0.2rem 0.24rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#options-popup .mouse-size-panel > span:first-child {
  font-size: 0.95em;
  color: rgba(157, 85, 103, 0.9);
}

#options-popup .mouse-size-shell {
  min-height: 0.8rem;
  gap: 0.55rem;
}

#options-popup .mouse-size-shell::after {
  inset: 0.34rem 0;
  background: rgba(255, 250, 248, 0.68);
}

#options-popup .mouse-size-shell::before {
  inset: 0.29rem auto 0.29rem 0;
  background: linear-gradient(90deg,
    rgba(236, 193, 201, 0.98) 0%,
    rgba(244, 208, 214, 0.98) 100%);
}

#options-popup .mouse-size-shell input[type="range"],
#options-popup .mouse-size-shell input[type="range"]::-webkit-slider-runnable-track,
#options-popup .mouse-size-shell input[type="range"]::-moz-range-track,
#options-popup .mouse-size-shell input[type="range"]::-moz-range-progress {
  height: 1rem;
}

#options-popup .mouse-size-shell input[type="range"]::-webkit-slider-thumb {
  width: 0.2rem;
  height: 1rem;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

#options-popup .mouse-size-shell input[type="range"]::-moz-range-thumb {
  width: 0.2rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

.inline-input {
  font-size: 1.3rem;
}

.popup-input.inline-input {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.popup-input.inline-input > span:first-child {
  display: block;
  color: rgba(118, 79, 60, 0.96);
}

.stepper-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-left: 0;
  padding: 5px 8px;
  border-radius: 16px;
  background: rgba(252, 242, 237, 0.78);
}

.choice-value {
  flex: 1 1 auto;
  min-width: 3.2ch;
  text-align: center;
  color: #744b3b;
  white-space: nowrap;
}

.choice-arrow-btn,
.choice-btn,
.popup-mini-action,
.profile-wide-btn,
.profile-split-btn,
.room-pill,
.popup-action,
.popup-close,
.icon-btn {
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.choice-btn,
.popup-mini-action {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(252, 242, 237, 0.78);
  color: #744b3b;
  font-size: 1.18rem;
  cursor: pointer;
}

.choice-btn {
  width: auto;
  justify-self: end;
}

.choice-arrow-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 248, 244, 0.94);
  color: #744b3b;
  cursor: pointer;
}

.choice-arrow-btn .material-symbols-rounded {
  font-size: 1.15rem;
}

.popup-action {
  min-height: 52px;
  border: 2px dotted rgba(123, 91, 74, 0.56);
  background: rgba(250, 231, 221, 0.82);
  color: #734d3d;
  font-size: 1.6rem;
  cursor: pointer;
}

.popup-action.is-disabled,
.popup-action:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.popup-card-tall {
  width: min(100%, 470px);
}

.popup-flip-shell {
  position: relative;
  margin-top: 12px;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.popup-flip-face {
  backface-visibility: hidden;
  transition: transform 0.36s ease, opacity 0.3s ease;
}

.popup-flip-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(-90deg);
}

#enter-room-popup.is-info-view .popup-flip-front {
  opacity: 0;
  pointer-events: none;
  transform: rotateY(90deg);
}

#enter-room-popup.is-info-view .popup-flip-back {
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg);
}

.popup-top-actions {
  display: flex;
  justify-content: flex-start;
}

.popup-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-preview-state {
  justify-content: center;
  text-align: center;
  min-height: 88px;
  color: rgba(132, 92, 73, 0.88);
}

.room-list {
  display: grid;
  gap: 10px;
}

.room-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(190, 141, 121, 0.12);
  background: rgba(252, 243, 239, 0.84);
  color: rgba(142, 99, 77, 0.95);
  font-size: 1.35rem;
  cursor: pointer;
  text-align: left;
}

.room-preview {
  cursor: default;
  gap: 12px;
}

.room-preview-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.room-preview-name {
  color: rgba(118, 79, 61, 0.98);
}

.room-preview-meta {
  font-size: 1rem;
  color: rgba(141, 101, 81, 0.92);
}

.room-meta {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  font-size: 0;
}

.room-info-btn {
  background: transparent;
  color: rgba(150, 106, 84, 0.95);
  cursor: pointer;
  box-shadow: none;
}

.room-info-btn .material-symbols-rounded {
  font-size: 1.24rem;
}

.profile-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 10px;
  border-radius: 18px;
  background: rgba(252, 243, 239, 0.82);
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.profile-head .avatar-badge {
  grid-column: 1;
}

.profile-name-display,
.profile-head input {
  grid-column: 2;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #8a5f48;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.profile-name-display {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
}

.profile-head .icon-btn {
  grid-column: 3;
}

.profile-head.is-editing .profile-name-display {
  display: none;
}

.profile-head:not(.is-editing) input {
  display: none;
}

.avatar-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(193, 143, 118, 0.9);
  color: #f8e9db;
  font-size: 0;
  overflow: hidden;
}

.avatar-badge img {
  width: 120%;
  height: 120%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 4px 7px rgba(113, 77, 54, 0.14));
}

.avatar-badge .material-symbols-rounded {
  font-size: 1.6rem;
  color: #f8e9db;
}

.profile-wide-btn {
  min-height: 48px;
  background: rgba(252, 243, 239, 0.86);
  color: #734d3d;
  font-size: 1.45rem;
  cursor: pointer;
}

.profile-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.profile-more-btn .material-symbols-rounded {
  font-size: 1.18em;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-more-actions[hidden] {
  display: none !important;
}

.profile-more-actions .profile-account-card {
  grid-column: 1 / -1;
}

.profile-split-btn {
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 153, 133, 0.14);
  background: rgba(252, 243, 239, 0.86);
  color: #855844;
  font-size: 1.08rem;
  text-align: left;
  cursor: pointer;
}

.profile-split-btn .material-symbols-rounded {
  font-size: 1.18rem;
  vertical-align: middle;
}

.profile-split-btn .button-label {
  float: none;
  display: inline;
}

.profile-split-btn .material-symbols-rounded {
  float: right;
}

.version-updates-popup {
  width: min(calc(100vw - 1.6rem), 34rem);
}

.version-updates-stack {
  gap: 0.75rem;
}

#updates-popup #updates-title {
  transform: translateX(-10px);
}

.version-update-group {
  border: 1px solid rgba(147, 104, 92, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 249, 246, 0.66);
  overflow: hidden;
}

.version-update-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  color: #6f4838;
  cursor: pointer;
  font-size: clamp(1.14rem, 2.6vw, 1.34rem);
  list-style: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.version-update-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.version-update-heading > span:first-child {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.version-update-heading .accent-shrink,
.version-update-group li .accent-shrink {
  display: inline;
  font-size: 0.65em;
  font-weight: 450;
  line-height: 1;
  vertical-align: baseline;
}

.version-update-heading .accent-shrink.accent-cedilla,
.version-update-group li .accent-shrink.accent-cedilla {
  font-weight: 470;
}

.version-update-heading time {
  flex: 0 0 auto;
  padding: 0.12rem 0.48rem;
  border: 1px solid rgba(239, 136, 151, 0.22);
  border-radius: 999px;
  background: rgba(255, 244, 248, 0.74);
  color: rgba(157, 85, 103, 0.84);
  font-size: 0.72em;
  line-height: 1.05;
  white-space: nowrap;
}

.version-update-group summary::-webkit-details-marker {
  display: none;
}

.version-update-group summary .material-symbols-rounded {
  flex: 0 0 auto;
  color: #ef8897;
  font-size: 1.18em;
  transition: transform 0.18s ease;
}

.version-update-group[open] summary .material-symbols-rounded {
  transform: rotate(180deg);
}

.version-update-group ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0 1rem 0.9rem 1.35rem;
  color: rgba(118, 80, 61, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.version-update-group li {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.version-update-group li::marker {
  color: #ef8897;
}

.popup-note,
.popup-status {
  margin: 2px 2px 0;
  font-size: 1rem;
  color: rgba(118, 80, 61, 0.82);
}

.popup-note {
  text-align: center;
}

.room-choice.is-selected,
.choice-arrow-btn:hover,
.choice-arrow-btn:focus-visible,
.choice-btn:hover,
.popup-mini-action:hover,
.profile-wide-btn:hover,
.profile-split-btn:hover,
.room-pill:hover,
.popup-action:not(:disabled):hover,
.popup-close:hover,
.game-version-badge:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(137, 95, 72, 0.12);
}

.choice-btn:hover,
.choice-arrow-btn:hover,
.popup-mini-action:hover,
.profile-wide-btn:hover,
.room-pill:hover,
.popup-action:not(:disabled):hover {
  background: rgba(255, 248, 244, 0.94);
}

.room-preview:hover {
  background: rgba(212, 164, 144, 0.22);
  box-shadow: none;
  transform: none;
}

.room-info-btn:hover,
.room-info-btn:focus-visible {
  color: rgba(122, 80, 61, 1);
  background: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.profile-split-btn:hover {
  background: rgba(255, 248, 244, 0.94);
}

.room-choice.is-selected {
  background: rgba(252, 232, 224, 0.96);
  border-color: rgba(189, 137, 118, 0.24);
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes petalsFloat {
  from {
    transform: translateY(-1%) translateX(0);
  }
  50% {
    transform: translateY(1.5%) translateX(1.4%);
  }
  to {
    transform: translateY(-1%) translateX(0);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes laraCaretBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hero {
    padding: 22px 32px 30px;
  }

  .title-wrap {
    transform: translateX(110px);
  }

  .menu-panel {
    right: 28px;
    width: min(100%, 308px);
  }
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
  }

  .loading-screen {
    place-items: start end;
    padding: 12px;
    background: transparent;
  }

  .loading-card {
    width: 110px;
    padding: 8px 8px 7px;
    border-radius: 14px;
    background: rgba(252, 238, 229, 0.92);
  }

  .loading-bar {
    height: 7px;
    margin-bottom: 6px;
  }

  .loading-copy {
    font-size: 1rem;
  }

  .bg-video {
    object-position: 40% center;
  }

  .video-tint {
    background:
      radial-gradient(circle at top center, rgba(255, 245, 236, 0.32), transparent 34%),
      linear-gradient(180deg, rgba(255, 242, 231, 0.18), rgba(201, 162, 128, 0.24));
  }

  .hero {
    min-height: var(--app-height, 100svh);
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .title-wrap {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .eyebrow {
    font-size: 0.95rem;
  }

  .title-wrap h1 {
    font-size: clamp(3.2rem, 13vw, 5rem);
    -webkit-text-stroke: 5px rgba(131, 92, 69, 0.86);
  }

  .subtitle {
    font-size: clamp(0.92rem, 3.6vw, 1.08rem);
  }

  .menu-panel {
    position: static;
    transform: none;
    margin: 14px auto 0;
    width: min(100%, 238px);
    max-width: calc(100vw - 32px);
    gap: 7px;
  }

  .menu-btn {
    min-height: 42px;
    padding: 9px 16px;
    font-size: clamp(1rem, 4.4vw, 1.22rem);
  }

  .popup-layer {
    padding: 14px;
  }

  .popup-card,
  .popup-card-tall {
    width: min(calc(100vw - 28px), 420px);
    padding: clamp(40px, 9vw, 60px) clamp(24px, 5vw, 34px) clamp(22px, 4vw, 30px);
  }

  .popup-card h2 {
    font-size: 1.9rem;
  }

  .popup-card h3 {
    font-size: 1.55rem;
  }

  .popup-inline-submit {
    grid-template-columns: 1fr;
  }

  .popup-input,
  .room-pill,
  .profile-head {
    min-height: 46px;
  }

  .popup-row,
  .inline-input {
    gap: 8px;
    flex-wrap: wrap;
  }

  .stepper-control {
    width: 100%;
  }

  .popup-input input,
  .popup-input,
  .popup-row,
  .inline-input,
  .room-pill,
  .profile-head,
  .profile-wide-btn {
    font-size: 1.15rem;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .choice-btn {
    width: 100%;
    justify-self: stretch;
  }

  .profile-split-btn {
    min-height: 52px;
  }

  .popup-action {
    min-height: 46px;
    font-size: 1.35rem;
  }
}

@media (orientation: landscape) {
  html[data-mobile="true"] body {
    overflow: hidden;
  }

  html[data-mobile="true"] .loading-screen {
    place-items: start end;
    padding: 10px;
    background: transparent;
  }

  html[data-mobile="true"] .loading-card {
    width: 154px;
    padding: 11px 12px 9px;
    border-radius: 17px;
    background: rgba(252, 238, 229, 0.92);
  }

  html[data-mobile="true"] .loading-bar {
    height: 8px;
    margin-bottom: 7px;
  }

  html[data-mobile="true"] .loading-copy {
    font-size: 1.14rem;
  }

  html[data-mobile="true"] .bg-video {
    object-position: center 42%;
  }

  html[data-mobile="true"] .video-tint {
    background:
      radial-gradient(circle at top center, rgba(255, 245, 236, 0.26), transparent 30%),
      linear-gradient(180deg, rgba(255, 242, 231, 0.16), rgba(201, 162, 128, 0.22));
  }

  html[data-mobile="true"] .hero {
    min-height: var(--app-height, 100svh);
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  html[data-mobile="true"] .title-wrap {
    width: 100%;
    max-width: none;
    transform: none;
  }

  html[data-mobile="true"] .eyebrow {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  html[data-mobile="true"] .title-wrap h1 {
    font-size: clamp(4.2rem, 13vw, 6rem);
    -webkit-text-stroke: 4px rgba(131, 92, 69, 0.84);
  }

  html[data-mobile="true"] .subtitle {
    font-size: 0.82rem;
    margin-top: 1px;
  }

  html[data-mobile="true"] .menu-panel {
    position: static;
    transform: none;
    margin: 10px auto 0;
    width: min(100%, 210px);
    max-width: calc(100vw - 28px);
    gap: 6px;
  }

  html[data-mobile="true"] .menu-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.92rem;
  }

  html[data-mobile="true"] .popup-card,
  html[data-mobile="true"] .popup-card-tall {
    width: min(calc(100vw - 24px), 340px);
    padding: clamp(36px, 8vw, 56px) clamp(22px, 5vw, 30px) clamp(20px, 4vw, 28px);
  }

  html[data-mobile="true"] .popup-stack {
    gap: 8px;
    margin-top: 10px;
  }

  html[data-mobile="true"] .popup-card h2 {
    font-size: 1.7rem;
  }

  html[data-mobile="true"] .popup-card h3 {
    font-size: 1.35rem;
  }

  html[data-mobile="true"] .popup-inline-submit {
    grid-template-columns: 1fr 94px;
  }

  html[data-mobile="true"] .popup-row,
  html[data-mobile="true"] .inline-input {
    gap: 7px;
    flex-wrap: wrap;
  }

  html[data-mobile="true"] .stepper-control {
    width: 100%;
  }

  html[data-mobile="true"] .popup-input,
  html[data-mobile="true"] .room-pill,
  html[data-mobile="true"] .profile-head {
    min-height: 40px;
  }

  html[data-mobile="true"] .popup-input input,
  html[data-mobile="true"] .popup-row,
  html[data-mobile="true"] .inline-input,
  html[data-mobile="true"] .room-pill,
  html[data-mobile="true"] .profile-head,
  html[data-mobile="true"] .profile-wide-btn,
  html[data-mobile="true"] .profile-split-btn {
    font-size: 1rem;
  }

  html[data-mobile="true"] .choice-btn {
    width: 100%;
    justify-self: stretch;
  }

  html[data-mobile="true"] .popup-action {
    min-height: 40px;
    font-size: 1.15rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  body {
    overflow: hidden;
  }

  .loading-screen {
    place-items: start end;
    padding: 10px;
    background: transparent;
  }

  .loading-card {
    width: 104px;
    padding: 7px 8px 6px;
    border-radius: 13px;
    background: rgba(252, 238, 229, 0.92);
  }

  .loading-bar {
    height: 6px;
    margin-bottom: 5px;
  }

  .loading-copy {
    font-size: 0.92rem;
  }

  .bg-video {
    object-position: center 42%;
  }

  .video-tint {
    background:
      radial-gradient(circle at top center, rgba(255, 245, 236, 0.26), transparent 30%),
      linear-gradient(180deg, rgba(255, 242, 231, 0.16), rgba(201, 162, 128, 0.22));
  }

  .hero {
    min-height: var(--app-height, 100svh);
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .title-wrap {
    width: 100%;
    max-width: none;
    transform: none;
  }

  .eyebrow {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .title-wrap h1 {
    font-size: clamp(2.25rem, 6.8vw, 3.4rem);
    -webkit-text-stroke: 3px rgba(131, 92, 69, 0.84);
  }

  .subtitle {
    font-size: 0.82rem;
    margin-top: 1px;
  }

  .menu-panel {
    position: static;
    transform: none;
    margin: 10px auto 0;
    width: min(100%, 210px);
    max-width: calc(100vw - 28px);
    gap: 6px;
  }

  .menu-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.92rem;
  }

  .popup-card,
  .popup-card-tall {
    width: min(calc(100vw - 24px), 340px);
    padding: clamp(36px, 8vw, 56px) clamp(22px, 5vw, 30px) clamp(20px, 4vw, 28px);
  }

  .popup-stack {
    gap: 8px;
    margin-top: 10px;
  }

  .popup-card h2 {
    font-size: 1.7rem;
  }

  .popup-card h3 {
    font-size: 1.35rem;
  }

  .popup-inline-submit {
    grid-template-columns: 1fr 94px;
  }

  .popup-row,
  .inline-input {
    gap: 7px;
    flex-wrap: wrap;
  }

  .stepper-control {
    width: 100%;
  }

  .popup-input,
  .room-pill,
  .profile-head {
    min-height: 40px;
  }

  .popup-input input,
  .popup-input,
  .popup-row,
  .inline-input,
  .room-pill,
  .profile-head,
  .profile-wide-btn,
  .profile-split-btn {
    font-size: 1rem;
  }

  .choice-btn {
    width: 100%;
    justify-self: stretch;
  }

  .popup-action {
    min-height: 40px;
    font-size: 1.15rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: var(--app-height, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px 10px;
  }

  .title-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 6px;
    transform: none;
  }

  .eyebrow {
    display: none;
  }

  .title-wrap h1 {
    font-size: clamp(2.25rem, 6.8vw, 3.4rem);
    -webkit-text-stroke: 3px rgba(131, 92, 69, 0.84);
  }

  .subtitle {
    font-size: 0.76rem;
    margin-top: 0;
  }

  .menu-panel {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    margin-top: 6px;
    width: min(100%, 252px);
    max-width: calc(100vw - 24px);
    gap: 5px;
  }

  .menu-btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 1.05rem;
  }
}

@media (orientation: portrait) {
  html[data-mobile="true"] .loading-screen,
  html[data-mobile="true"] .title-screen,
  html[data-mobile="true"] .popup-layer {
    display: none !important;
  }

  html[data-mobile="true"] .orientation-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(circle at top, rgba(255, 240, 230, 0.6), transparent 36%),
      linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
      linear-gradient(180deg, #e7c2ab, #c99673);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .loading-screen,
  .title-screen,
  .popup-layer {
    display: none !important;
  }

  .orientation-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(circle at top, rgba(255, 240, 230, 0.6), transparent 36%),
      linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
      linear-gradient(180deg, #e7c2ab, #c99673);
  }
}

html[data-mobile-landscape="true"] body {
  overflow: hidden;
}

html[data-mobile-landscape="true"] .loading-screen {
  place-items: start end;
  padding: 10px;
  background: transparent;
}

html[data-mobile-landscape="true"] .loading-card {
  width: 154px;
  padding: 11px 12px 9px;
  border-radius: 17px;
  background: rgba(252, 238, 229, 0.92);
}

html[data-mobile-landscape="true"] .loading-bar {
  height: 8px;
  margin-bottom: 7px;
}

html[data-mobile-landscape="true"] .loading-copy {
  font-size: 1.14rem;
}

html[data-mobile-landscape="true"] .bg-video {
  object-position: center 42%;
}

html[data-mobile-landscape="true"] .video-tint {
  background:
    radial-gradient(circle at top center, rgba(255, 245, 236, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 242, 231, 0.16), rgba(201, 162, 128, 0.22));
}

html[data-mobile-landscape="true"] .hero {
  min-height: var(--app-height, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 12px 10px;
}

@media (pointer: coarse) and (orientation: portrait) {
  .loading-screen,
  .title-screen,
  .popup-layer {
    display: none !important;
  }

  .orientation-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(circle at top, rgba(255, 240, 230, 0.6), transparent 36%),
      linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
      linear-gradient(180deg, #e7c2ab, #c99673);
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  body {
    overflow: hidden;
  }

  .loading-screen {
    place-items: start end;
    padding: 10px;
    background: transparent;
  }

  .loading-card {
    width: 154px;
    padding: 11px 12px 9px;
    border-radius: 17px;
    background: rgba(252, 238, 229, 0.92);
  }

  .loading-bar {
    height: 8px;
    margin-bottom: 7px;
  }

  .loading-copy {
    font-size: 1.14rem;
  }

  .bg-video {
    object-position: center 42%;
  }

  .video-tint {
    background:
      radial-gradient(circle at top center, rgba(255, 245, 236, 0.26), transparent 30%),
      linear-gradient(180deg, rgba(255, 242, 231, 0.16), rgba(201, 162, 128, 0.22));
  }

  .hero {
    min-height: var(--app-height, 100svh);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px 10px;
  }

  .title-wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 6px;
    transform: none;
  }

  .eyebrow {
    display: none;
  }

  .title-wrap h1 {
    font-size: clamp(2.25rem, 6.8vw, 3.4rem);
    -webkit-text-stroke: 3px rgba(131, 92, 69, 0.84);
  }

  .subtitle {
    font-size: 0.76rem;
    margin-top: 0;
  }

  .menu-panel {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    margin: 6px auto 0;
    width: min(100%, 252px);
    max-width: calc(100vw - 24px);
    gap: 5px;
  }

  .menu-btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 1.05rem;
  }
}

html[data-mobile-landscape="true"] .title-wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-top: 6px;
  transform: none;
}

html[data-mobile-landscape="true"] .eyebrow {
  display: none;
}

html[data-mobile-landscape="true"] .title-wrap h1 {
  font-size: clamp(4rem, 11vw, 5.8rem);
  -webkit-text-stroke: 4px rgba(131, 92, 69, 0.84);
}

html[data-mobile-landscape="true"] .subtitle {
  font-size: 0.76rem;
  margin-top: 0;
}

html[data-mobile-landscape="true"] .menu-panel {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  margin: 6px auto 0;
  width: min(100%, 252px);
  max-width: calc(100vw - 24px);
  gap: 5px;
}

html[data-mobile-landscape="true"] .menu-btn {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 1.05rem;
}

/* Universal fluid layout: adapts by available space instead of device/orientation presets. */
.orientation-screen {
  display: none !important;
}

body {
  overflow-x: hidden;
}

.title-screen {
  min-height: var(--app-height, 100svh);
  display: grid;
}

.hero {
  min-height: var(--app-height, 100svh);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-content: center;
  align-items: center;
  justify-items: stretch;
  gap: clamp(0.35rem, 2vw, 1.4rem);
  padding:
    clamp(0.9rem, 3vh, 2rem)
    clamp(0.9rem, 4vw, 3.25rem)
    clamp(1rem, 4vh, 2.4rem);
  overflow: hidden;
}

.title-wrap {
  width: min(100%, 36rem);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  justify-self: end;
  text-align: right;
  transform: none;
  overflow: hidden;
}

.eyebrow {
  margin-bottom: clamp(0.1rem, 0.8vh, 0.45rem);
  font-size: clamp(0.82rem, 1.6vw, 1.2rem);
}

.title-wrap h1 {
  font-size: clamp(3.2rem, min(12vw, 11vh), 7.8rem);
  -webkit-text-stroke: clamp(2px, 0.5vw, 7px) rgba(131, 92, 69, 0.88);
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  line-height: 0.9;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.subtitle {
  margin-top: clamp(0.15rem, 1vh, 0.5rem);
  font-size: clamp(0.88rem, min(2.4vw, 2.2vh), 1.16rem);
  max-width: min(100%, 24rem);
  margin-left: auto;
}

.menu-panel {
  position: static;
  inset: auto;
  justify-self: start;
  align-self: center;
  width: min(100%, 21rem);
  max-width: 100%;
  min-width: 0;
  margin: 0;
  transform: none;
  gap: clamp(0.4rem, 1.6vh, 0.8rem);
}

.menu-btn {
  min-height: clamp(2.7rem, 6.2vh, 3.5rem);
  padding: clamp(0.55rem, 1.8vh, 0.9rem) clamp(0.8rem, 2.5vw, 1.5rem);
  font-size: clamp(1rem, min(2.7vw, 2.5vh), 1.55rem);
}

.popup-layer {
  padding: clamp(0.8rem, 3vw, 1.5rem);
}

.popup-card,
.popup-card-tall {
  width: min(100%, 26rem);
  max-width: calc(100vw - 1.6rem);
  max-height: calc(var(--app-height, 100svh) - 1.6rem);
  padding: clamp(0.9rem, 2.8vw, 1.2rem);
  overflow: auto;
}

.popup-card h2 {
  font-size: clamp(1.6rem, min(5vw, 4vh), 2.35rem);
}

.popup-card h3 {
  font-size: clamp(1.25rem, min(4vw, 3.2vh), 1.8rem);
}

.popup-input,
.room-pill,
.profile-head {
  min-height: clamp(2.6rem, 6vh, 3.75rem);
}

.popup-input input,
.popup-row,
.inline-input,
.room-pill,
.profile-head,
.profile-wide-btn,
.profile-split-btn {
  font-size: clamp(0.98rem, min(3.3vw, 2.7vh), 1.35rem);
}

.popup-action {
  min-height: clamp(2.7rem, 6vh, 3.25rem);
  font-size: clamp(1.15rem, min(3.8vw, 3vh), 1.6rem);
}

#options-popup .popup-stack {
  gap: 0.7rem;
}

#options-popup {
  overflow: visible;
  padding-top: clamp(0.85rem, 2.2vw, 1.15rem);
}

#options-popup .popup-close-cat {
  top: clamp(0.6rem, 1.6vw, 0.9rem);
}

#options-popup #options-title {
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
}

html[data-language="Japanese"] #options-popup #options-title {
  transform: translateX(-10px);
}

#options-popup .options-shell {
  gap: 0.7rem;
  margin-top: clamp(0.75rem, 1.4vh, 1.05rem);
}

#options-popup .options-orbit {
  position: relative;
  height: var(--options-orbit-height, 23.5rem);
  min-height: var(--options-orbit-height, 23.5rem);
  perspective: 1200px;
  transition: height 0.26s ease, min-height 0.26s ease;
}

#options-popup .options-face {
  position: absolute;
  inset: 0 0 auto 0;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

#options-popup .options-main-face {
  transform: rotateY(0deg);
}

#options-popup .options-advanced-face {
  transform: rotateY(180deg);
  pointer-events: none;
  opacity: 0;
}

#options-popup.is-advanced .options-main-face {
  transform: rotateY(-180deg);
  opacity: 0;
  pointer-events: none;
}

#options-popup.is-advanced .options-advanced-face {
  transform: rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
}

#options-popup .options-inline-row,
#options-popup .popup-row {
  width: min(100%, 21.5rem);
  margin-left: auto;
  margin-right: auto;
}

#options-popup .options-language-row {
  width: min(100%, 22.5rem);
}

#options-popup .options-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 0;
  padding: 0;
  background: transparent;
}

#options-popup .options-inline-row > span:first-child,
#options-popup .popup-row > span:first-child {
  min-width: 0;
  color: rgba(118, 79, 60, 0.96);
  line-height: 1.05;
}

#options-popup .options-inline-row .stepper-control {
  width: 8.9rem;
  min-width: 8.9rem;
  margin-left: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#options-popup .options-inline-row .choice-arrow-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.8rem;
}

#options-popup .options-inline-row .choice-value {
  min-width: 4.8ch;
  font-size: 1.05rem;
}

#options-popup .options-language-row .stepper-control {
  width: 9.8rem;
  min-width: 9.8rem;
}

#options-popup .options-language-row .choice-value {
  min-width: 5.8ch;
}

#options-popup .popup-row {
  gap: 0.55rem;
  font-size: 1.1rem;
}

#options-popup .toggle-chip {
  flex: 0 0 auto;
}

#options-popup .popup-action {
  width: min(100%, 12.5rem);
  min-height: 3rem;
  margin: 0.2rem auto 0;
}

#options-popup .options-advanced-btn,
#options-popup .options-back-btn {
  width: min(100%, 11rem);
  margin-left: auto;
  margin-right: auto;
}

#options-popup .options-action-row {
  display: grid;
  gap: 0.6rem;
  width: min(100%, 21.5rem);
  margin: 0.2rem auto 0;
}

#options-popup .options-main-action-row {
  grid-template-columns: minmax(6.9rem, 0.78fr) minmax(12rem, 1.35fr);
}

#options-popup .options-advanced-action-row {
  grid-template-columns: minmax(12rem, 1.35fr) minmax(6.9rem, 0.78fr);
}

#options-popup .options-action-row .popup-action,
#options-popup .options-action-row .popup-mini-action,
#options-popup .options-action-row .options-advanced-btn,
#options-popup .options-action-row .options-back-btn {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  line-height: 0.98;
  white-space: normal;
}

#options-popup .options-action-row [data-options-save-btn] {
  overflow-wrap: normal;
}

#options-popup .options-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  width: min(100%, 21.5rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  background: transparent;
}

#options-popup .range-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  border-radius: 999px;
  overflow: visible;
}

#options-popup .range-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(189, 137, 118, 0.2);
  border-radius: inherit;
  background: rgba(255, 250, 248, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(177, 127, 103, 0.12);
  pointer-events: none;
  z-index: 0;
}

#options-popup .range-shell::before {
  content: "";
  position: absolute;
  inset: -0.1cm auto -0.1cm 0;
  width: calc(var(--range-progress, 42%) + 0.06cm);
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(236, 193, 201, 0.98) 0%,
    rgba(244, 208, 214, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}

#options-popup .range-shell input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

#options-popup .range-shell input[type="range"]::-webkit-slider-runnable-track {
  height: 2rem;
  border-radius: 999px;
  background: transparent;
}

#options-popup .range-shell input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.2rem;
  height: 2.6rem;
  margin-top: calc((2rem - 2.6rem) / 2);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: none;
}

#options-popup .range-shell input[type="range"]::-moz-range-track {
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

#options-popup .range-shell input[type="range"]::-moz-range-progress {
  height: 2rem;
  border-radius: 999px;
  background: transparent;
}

#options-popup .range-shell input[type="range"]::-moz-range-thumb {
  width: 0.2rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: none;
}

#options-popup .range-shell input[type="range"]:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(177, 127, 103, 0.12),
    0 0 0 2px rgba(225, 160, 171, 0.34);
}

#options-popup .range-shell .choice-value {
  min-width: 4.5ch;
  text-align: right;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transform: translateX(-0.15rem);
}

#options-popup .options-range-row > span:first-child {
  color: rgba(118, 79, 60, 0.96);
  line-height: 1.05;
}

#options-popup .mouse-size-shell {
  min-height: 0.8rem;
}

#options-popup .mouse-size-shell::after {
  inset: 0.34rem 0;
  background: rgba(255, 250, 248, 0.68);
}

#options-popup .mouse-size-shell::before {
  inset: 0.29rem auto 0.29rem 0;
  background: linear-gradient(90deg,
    rgba(236, 193, 201, 0.98) 0%,
    rgba(244, 208, 214, 0.98) 100%);
}

#options-popup .mouse-size-shell input[type="range"],
#options-popup .mouse-size-shell input[type="range"]::-webkit-slider-runnable-track,
#options-popup .mouse-size-shell input[type="range"]::-moz-range-track,
#options-popup .mouse-size-shell input[type="range"]::-moz-range-progress {
  height: 1rem;
}

#options-popup .mouse-size-shell input[type="range"]::-webkit-slider-thumb {
  width: 0.2rem;
  height: 1rem;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

#options-popup .mouse-size-shell input[type="range"]::-moz-range-thumb {
  width: 0.2rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
}

#create-room-popup .create-capacity-row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 0;
  padding: 0 0.2rem 0 0.35rem;
  background: transparent;
}

#create-room-popup .create-capacity-row > span:first-child {
  min-width: 0;
  color: rgba(118, 79, 60, 0.96);
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

#create-room-popup .create-capacity-row .stepper-control {
  width: 8.5rem;
  min-width: 8.5rem;
  margin-left: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

#create-room-popup .create-capacity-row .choice-arrow-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.9rem;
}

#create-room-popup .create-capacity-row .choice-value {
  min-width: 2.8ch;
  font-size: 1.05rem;
}

@media (min-width: 58rem) and (min-height: 34rem) {
  .hero {
    display: block;
    min-height: var(--app-height, 100svh);
    padding:
      clamp(1rem, 3vh, 2rem)
      clamp(1rem, 3.6vw, 3rem)
      clamp(1rem, 3vh, 2rem);
  }

  .title-wrap {
    position: absolute;
    top: clamp(0.5rem, 2.4vh, 1.25rem);
    right: clamp(1.1rem, 3.8vw, 3.4rem);
    width: min(60vw, 54rem);
    max-width: 54rem;
    margin: 0;
    padding: 0.2rem 0.4rem 0.4rem 0.8rem;
    text-align: right;
    overflow: visible;
    z-index: 5;
  }

  .eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
  }

  .title-wrap h1 {
    font-size: clamp(4.8rem, 8vw, 7.4rem);
    display: inline-block;
    max-width: none;
    line-height: 0.92;
  }

  .subtitle {
    display: block;
    max-width: 28rem;
    margin-top: 0.35rem;
    margin-left: auto;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  }

  .menu-panel {
    position: absolute;
    top: calc(44% - 20px);
    right: clamp(1.2rem, 4vw, 3.4rem);
    transform: translateY(-28%);
    width: min(100%, 21.15rem);
    justify-self: auto;
    align-self: auto;
    gap: 0.78rem;
    z-index: 5;
  }

  .menu-btn {
    min-height: 4.65rem;
    padding: 0.9rem 1.5rem;
    font-size: clamp(1.6rem, 2vw, 2.05rem);
  }

  .popup-layer {
    padding: clamp(1.5rem, 3.2vw, 3.5rem);
  }

  .popup-card,
  .popup-card-tall {
    width: min(100%, clamp(31rem, 44vw, 38rem));
    max-width: calc(100vw - clamp(3rem, 6vw, 7rem));
    max-height: calc(var(--app-height, 100svh) - clamp(3rem, 7vh, 6rem));
    padding: clamp(1.35rem, 1.85vw, 1.85rem);
    border-radius: clamp(1.6rem, 1.7vw, 2.15rem);
  }

  .popup-card-tall,
  .confirm-delete-popup {
    width: min(100%, clamp(33rem, 48vw, 42rem));
  }

  .popup-card h2 {
    font-size: clamp(2.25rem, 2.45vw, 3.1rem);
  }

  .popup-card h3 {
    font-size: clamp(1.7rem, 1.8vw, 2.25rem);
  }

  .popup-stack {
    gap: clamp(0.75rem, 1.05vw, 1.1rem);
    margin-top: clamp(0.9rem, 1.15vw, 1.25rem);
  }

  .popup-input,
  .room-pill,
  .profile-head {
    min-height: clamp(3.35rem, 6.2vh, 4.2rem);
    padding-left: clamp(1rem, 1.35vw, 1.35rem);
    padding-right: clamp(1rem, 1.35vw, 1.35rem);
    border-radius: clamp(1rem, 1.2vw, 1.4rem);
  }

  .popup-input input,
  .popup-input,
  .popup-row,
  .inline-input,
  .room-pill,
  .profile-head,
  .profile-wide-btn,
  .profile-split-btn {
    font-size: clamp(1.3rem, 1.45vw, 1.65rem);
  }

  .popup-action,
  .profile-wide-btn,
  .profile-split-btn {
    min-height: clamp(3.05rem, 5.8vh, 4.15rem);
    border-radius: clamp(1rem, 1.05vw, 1.35rem);
    font-size: clamp(1.45rem, 1.65vw, 1.9rem);
  }

  .popup-close-cat {
    min-width: clamp(6.2rem, 7vw, 7.9rem);
    padding:
      clamp(0.25rem, 0.45vw, 0.38rem)
      clamp(0.55rem, 0.85vw, 0.8rem);
    gap: clamp(0.35rem, 0.55vw, 0.52rem);
  }

  .popup-close-cat-image {
    width: clamp(1.55rem, 1.8vw, 1.95rem);
    height: clamp(1.55rem, 1.8vw, 1.95rem);
  }

  .popup-close-text {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
  }

  #options-popup .popup-stack {
    gap: clamp(0.85rem, 1.1vw, 1.15rem);
  }

  #options-popup .options-inline-row,
  #options-popup .popup-row,
  #options-popup .options-range-row,
  #options-popup .options-action-row {
    width: min(100%, 27.5rem);
  }

  #options-popup .options-language-row {
    width: min(100%, 28.5rem);
  }

  #options-popup .options-inline-row,
  #options-popup .popup-row {
    gap: clamp(0.65rem, 1vw, 0.9rem);
  }

  #options-popup .options-inline-row > span:first-child,
  #options-popup .popup-row > span:first-child,
  #options-popup .options-range-row > span:first-child {
    font-size: clamp(1.3rem, 1.35vw, 1.55rem);
  }

  #options-popup .options-inline-row .stepper-control {
    width: clamp(10.2rem, 12vw, 11.5rem);
    min-width: clamp(10.2rem, 12vw, 11.5rem);
  }

  #options-popup .options-language-row .stepper-control {
    width: clamp(11rem, 12.8vw, 12.4rem);
    min-width: clamp(11rem, 12.8vw, 12.4rem);
  }

  #options-popup .options-inline-row .choice-arrow-btn {
    width: clamp(2.1rem, 2.4vw, 2.45rem);
    height: clamp(2.1rem, 2.4vw, 2.45rem);
    border-radius: 999px;
  }

  #options-popup .options-inline-row .choice-value {
    font-size: clamp(1.2rem, 1.2vw, 1.42rem);
  }

  #options-popup .toggle-chip {
    width: clamp(3.75rem, 4.4vw, 4.35rem);
    height: clamp(2rem, 2.35vw, 2.28rem);
  }

  #options-popup .toggle-chip::after {
    width: clamp(1.45rem, 1.65vw, 1.65rem);
    height: clamp(1.45rem, 1.65vw, 1.65rem);
  }

  #options-popup .toggle-chip[aria-pressed="true"]::after {
    transform: translateX(clamp(-1.85rem, -1.8vw, -1.55rem));
  }

  #options-popup .popup-action,
  #options-popup .options-advanced-btn,
  #options-popup .options-back-btn {
    width: min(100%, clamp(13.5rem, 17vw, 16rem));
    min-height: clamp(3rem, 5.5vh, 3.65rem);
    font-size: clamp(1.3rem, 1.35vw, 1.55rem);
  }

  #options-popup .options-action-row .popup-action,
  #options-popup .options-action-row .popup-mini-action,
  #options-popup .options-action-row .options-advanced-btn,
  #options-popup .options-action-row .options-back-btn {
    width: 100%;
  }

  #create-room-popup .create-capacity-row .stepper-control {
    width: clamp(9.5rem, 11vw, 11rem);
    min-width: clamp(9.5rem, 11vw, 11rem);
  }

  #create-room-popup .create-capacity-row .choice-arrow-btn {
    width: clamp(2.05rem, 2.25vw, 2.35rem);
    height: clamp(2.05rem, 2.25vw, 2.35rem);
  }

  #create-room-popup .create-capacity-row .choice-value {
    font-size: clamp(1.2rem, 1.2vw, 1.4rem);
  }
}

@media (min-width: 100rem) and (min-height: 53rem) and (orientation: landscape) {
  .hero {
    padding:
      clamp(1.25rem, 3.2vh, 3rem)
      clamp(2.25rem, 4.4vw, 6rem)
      clamp(1.25rem, 3.2vh, 3rem);
  }

  .title-wrap {
    top: clamp(0.9rem, 2.6vh, 2.75rem);
    right: clamp(3.4rem, 5vw, 8rem);
    width: min(62vw, 72rem);
    max-width: 72rem;
  }

  .eyebrow {
    margin-bottom: clamp(0.2rem, 0.5vh, 0.45rem);
    font-size: clamp(1.25rem, 1.1vw, 1.75rem);
  }

  .title-wrap h1 {
    font-size: clamp(7.4rem, min(7.6vw, 13vh), 14rem);
    -webkit-text-stroke: clamp(7px, 0.42vw, 12px) rgba(131, 92, 69, 0.88);
  }

  .subtitle {
    max-width: min(34rem, 34vw);
    margin-top: clamp(0.35rem, 0.8vh, 0.8rem);
    font-size: clamp(1.2rem, 1vw, 1.65rem);
  }

  .menu-panel {
    top: calc(44% - clamp(1.25rem, 3vh, 2.75rem));
    right: clamp(3.5rem, 5vw, 8rem);
    width: clamp(21.15rem, 24vw, 38rem);
    gap: clamp(0.78rem, 1.35vh, 1.45rem);
  }

  .menu-btn {
    min-height: clamp(4.65rem, 7.4vh, 8rem);
    padding:
      clamp(0.9rem, 1.6vh, 1.55rem)
      clamp(1.5rem, 2.2vw, 2.8rem);
    border-radius: clamp(1.125rem, 1.35vw, 1.9rem);
    font-size: clamp(2.05rem, min(2vw, 3.2vh), 3.4rem);
  }

  .title-legal-footer {
    margin-top: clamp(0.45rem, 0.85vh, 0.95rem);
  }

  .title-legal-footer .small-links {
    gap: clamp(0.65rem, 0.95vw, 1.25rem);
  }

  .title-legal-footer .small-pill {
    padding:
      clamp(0.34rem, 0.55vh, 0.6rem)
      clamp(0.8rem, 1vw, 1.3rem);
    font-size: clamp(0.98rem, 0.82vw, 1.32rem);
  }

  .popup-layer {
    padding: clamp(2rem, 4vw, 5rem);
  }

  .popup-card,
  .popup-card-tall {
    width: min(100%, clamp(31rem, 32vw, 46rem));
    max-width: calc(100vw - clamp(4rem, 8vw, 10rem));
    max-height: calc(var(--app-height, 100svh) - clamp(4rem, 9vh, 9rem));
    padding: clamp(1.45rem, 1.45vw, 2.25rem);
    border-radius: clamp(1.75rem, 1.8vw, 2.55rem);
  }

  .popup-card-tall,
  .confirm-delete-popup {
    width: min(100%, clamp(34rem, 35vw, 50rem));
  }

  .popup-card-shop {
    width: min(
      calc(100vw - clamp(4rem, 8vw, 10rem)),
      calc(var(--app-height, 100svh) - clamp(4rem, 8vh, 8rem)),
      78rem
    );
    max-height: calc(var(--app-height, 100svh) - clamp(4rem, 8vh, 8rem));
    padding-bottom: clamp(1rem, 1.2vw, 1.75rem);
    border-radius: clamp(1.7rem, 1.6vw, 2.3rem);
  }

  .popup-card h2 {
    font-size: clamp(2.35rem, 2.25vw, 3.8rem);
  }

  .popup-card h3 {
    font-size: clamp(1.8rem, 1.55vw, 2.65rem);
  }

  .popup-stack {
    gap: clamp(0.7rem, 0.95vw, 1.35rem);
    margin-top: clamp(0.85rem, 1vw, 1.45rem);
  }

  .popup-input,
  .room-pill,
  .profile-head {
    min-height: clamp(3.75rem, 5.6vh, 5.8rem);
    padding-left: clamp(1rem, 1.25vw, 1.75rem);
    padding-right: clamp(1rem, 1.25vw, 1.75rem);
    border-radius: clamp(1.1rem, 1.15vw, 1.75rem);
  }

  .popup-input input,
  .popup-input,
  .popup-row,
  .inline-input,
  .room-pill,
  .profile-head,
  .profile-wide-btn,
  .profile-split-btn {
    font-size: clamp(1.35rem, 1.22vw, 2.05rem);
  }

  .popup-action,
  .profile-wide-btn,
  .profile-split-btn {
    min-height: clamp(3.25rem, 5.5vh, 5.45rem);
    border-radius: clamp(1.05rem, 1vw, 1.6rem);
    font-size: clamp(1.6rem, 1.35vw, 2.35rem);
  }

  .popup-close-cat {
    min-width: clamp(6.4rem, 6vw, 9.2rem);
    padding:
      clamp(0.25rem, 0.4vw, 0.5rem)
      clamp(0.55rem, 0.75vw, 1rem);
    gap: clamp(0.38rem, 0.45vw, 0.7rem);
  }

  .popup-close-cat-image {
    width: clamp(1.65rem, 1.45vw, 2.35rem);
    height: clamp(1.65rem, 1.45vw, 2.35rem);
  }

  .popup-close-text {
    font-size: clamp(1rem, 0.9vw, 1.4rem);
  }

  .choice-btn,
  .popup-mini-action {
    min-height: clamp(2.75rem, 4.3vh, 4.45rem);
    padding-left: clamp(0.9rem, 1vw, 1.45rem);
    padding-right: clamp(0.9rem, 1vw, 1.45rem);
    font-size: clamp(1.18rem, 1vw, 1.7rem);
  }

  .choice-arrow-btn {
    width: clamp(2.125rem, 2.1vw, 3.4rem);
    height: clamp(2.125rem, 2.1vw, 3.4rem);
    border-radius: clamp(0.75rem, 0.8vw, 1.2rem);
  }

  .choice-arrow-btn .material-symbols-rounded,
  .icon-btn .material-symbols-rounded,
  .icon-lock.material-symbols-rounded,
  .room-meta.material-symbols-rounded {
    font-size: clamp(1.25rem, 1.05vw, 1.85rem);
  }

  .toggle-chip {
    width: clamp(3.125rem, 3.1vw, 4.6rem);
    height: clamp(1.75rem, 1.72vw, 2.65rem);
  }

  .toggle-chip::after {
    top: clamp(0.25rem, 0.25vw, 0.42rem);
    right: clamp(0.25rem, 0.25vw, 0.42rem);
    width: clamp(1.25rem, 1.22vw, 1.8rem);
    height: clamp(1.25rem, 1.22vw, 1.8rem);
  }

  .toggle-chip[aria-pressed="true"]::after {
    transform: translateX(clamp(-2.05rem, -1.9vw, -1.375rem));
  }

  #options-popup .options-orbit {
    height: var(--options-orbit-height, clamp(25rem, 30vw, 39rem));
    min-height: var(--options-orbit-height, clamp(25rem, 30vw, 39rem));
  }

  #options-popup .options-inline-row,
  #options-popup .popup-row,
  #options-popup .options-range-row,
  #options-popup .options-action-row {
    width: min(100%, clamp(25rem, 27vw, 42rem));
    font-size: clamp(1.55rem, 1.18vw, 2.15rem);
  }

  #options-popup .options-language-row {
    width: min(100%, clamp(26rem, 29vw, 44rem));
  }

  #options-popup .options-inline-row,
  #options-popup .popup-row {
    gap: clamp(0.75rem, 0.85vw, 1.2rem);
  }

  #options-popup .options-inline-row > span:first-child,
  #options-popup .popup-row > span:first-child,
  #options-popup .options-range-row > span:first-child {
    font-size: inherit;
    line-height: 1.05;
  }

  #options-popup .options-inline-row .stepper-control,
  #options-popup .options-language-row .stepper-control {
    width: clamp(12rem, 11.2vw, 18rem);
    min-width: clamp(12rem, 11.2vw, 18rem);
  }

  #options-popup .options-inline-row .choice-arrow-btn {
    width: clamp(2.35rem, 2.1vw, 3.45rem);
    height: clamp(2.35rem, 2.1vw, 3.45rem);
    border-radius: clamp(0.85rem, 0.82vw, 1.2rem);
  }

  #options-popup .options-inline-row .choice-value {
    min-width: 5.4ch;
    font-size: clamp(1.35rem, 1.05vw, 1.9rem);
  }

  #options-popup .options-language-row .choice-value {
    min-width: 6.2ch;
  }

  #options-popup .toggle-chip {
    width: clamp(3.8rem, 3.3vw, 5.2rem);
    height: clamp(2.1rem, 1.9vw, 3rem);
  }

  #options-popup .toggle-chip::after {
    top: clamp(0.28rem, 0.28vw, 0.45rem);
    right: clamp(0.28rem, 0.28vw, 0.45rem);
    width: clamp(1.5rem, 1.32vw, 2.05rem);
    height: clamp(1.5rem, 1.32vw, 2.05rem);
  }

  #options-popup .toggle-chip[aria-pressed="true"]::after {
    transform: translateX(clamp(-2.35rem, -2vw, -1.6rem));
  }

  #options-popup .popup-action,
  #options-popup .options-advanced-btn,
  #options-popup .options-back-btn {
    width: min(100%, clamp(15rem, 15vw, 22rem));
    font-size: clamp(1.45rem, 1.15vw, 2rem);
  }

  #options-popup .options-action-row .popup-action,
  #options-popup .options-action-row .popup-mini-action,
  #options-popup .options-action-row .options-advanced-btn,
  #options-popup .options-action-row .options-back-btn {
    width: 100%;
  }

  .skin-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(9.5rem, 9.2vw, 13rem), 1fr));
    gap: clamp(0.75rem, 0.9vw, 1.25rem);
  }

  .skin-card {
    gap: clamp(0.5rem, 0.65vw, 0.95rem);
    padding: clamp(0.65rem, 0.8vw, 1.15rem);
    border-radius: clamp(0.9rem, 0.9vw, 1.35rem);
  }
}

@media (max-width: 30rem) {
  .title-wrap {
    width: min(100%, 17rem);
    justify-self: end;
    text-align: right;
  }

  .title-wrap h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
    max-width: min(100%, 7ch);
  }

  .menu-panel {
    width: min(100%, 17rem);
    justify-self: end;
  }

  #options-popup .options-action-row {
    grid-template-columns: 1fr;
  }
}

html[data-mobile="true"] .loading-screen,
html[data-mobile="true"] .popup-layer {
  display: grid !important;
}

html[data-mobile="true"] .title-screen {
  display: grid !important;
}

html[data-responsive-portrait="true"] .loading-screen,
html[data-responsive-portrait="true"] .title-screen,
html[data-responsive-portrait="true"] .popup-layer {
  display: none !important;
}

html[data-responsive-portrait="true"] .orientation-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid !important;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 240, 230, 0.6), transparent 36%),
    linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
    linear-gradient(180deg, #e7c2ab, #c99673);
}

html[data-mobile-landscape="true"] .orientation-screen {
  display: none !important;
}

html[data-mobile="true"] body {
  overflow: hidden !important;
}

html[data-mobile="true"] .title-screen,
html[data-mobile="true"] .hero {
  overflow: hidden !important;
}

html[data-mobile-landscape="true"] body {
  overflow: hidden !important;
}

html[data-mobile="true"] .hero {
  padding-bottom: 12px !important;
}

html[data-mobile="true"] .menu-panel {
  margin-bottom: 0 !important;
}

@media (orientation: portrait) {
  html[data-mobile="true"] .loading-screen,
  html[data-mobile="true"] .title-screen,
  html[data-mobile="true"] .popup-layer {
    display: none !important;
  }

  html[data-mobile="true"] .orientation-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid !important;
    place-items: center;
    padding: 20px;
    background:
      radial-gradient(circle at top, rgba(255, 240, 230, 0.6), transparent 36%),
      linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
      linear-gradient(180deg, #e7c2ab, #c99673);
  }
}

@media (max-width: 900px) {
  #create-room-popup .create-room-option-row,
  #create-room-popup .create-capacity-row {
    width: min(100%, 17rem);
    margin-left: auto;
    margin-right: auto;
  }

  #create-room-popup .create-room-option-row {
    gap: 0.7rem;
    padding-left: 0.4rem;
    padding-right: 0.2rem;
    font-size: clamp(0.92rem, 3vw, 1.02rem);
  }

  #create-room-popup .create-room-option-row > span:first-child {
    min-width: 0;
    line-height: 1.05;
  }

  #create-room-popup .create-capacity-row {
    width: min(100%, 17rem);
    grid-template-columns: minmax(9rem, 1fr) auto;
    gap: 0.65rem;
    padding-left: 0.4rem;
  }

  #create-room-popup .create-capacity-row > span:first-child {
    font-size: clamp(0.82rem, 2.65vw, 0.96rem);
  }

  #create-room-popup .create-capacity-row .stepper-control {
    width: 7.25rem;
    min-width: 7.25rem;
  }

  #create-room-popup .create-capacity-row .choice-arrow-btn {
    width: 1.75rem;
    height: 1.75rem;
  }

  #create-room-popup .create-capacity-row .choice-value {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
  }

  #options-popup .options-inline-row,
  #options-popup .popup-row {
    width: min(100%, 17.6rem);
  }

  #options-popup .options-language-row {
    width: min(100%, 18.4rem);
  }

  #options-popup .options-inline-row > span:first-child,
  #options-popup .popup-row > span:first-child {
    font-size: clamp(0.9rem, 3.1vw, 1.02rem);
  }

  #options-popup .options-inline-row .stepper-control {
    width: 8rem;
    min-width: 8rem;
  }

  #options-popup .options-inline-row .choice-arrow-btn {
    width: 1.65rem;
    height: 1.65rem;
  }

  #options-popup .options-inline-row .choice-value {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    min-width: 4.6ch;
  }

  #options-popup .options-language-row .stepper-control {
    width: 8.6rem;
    min-width: 8.6rem;
  }

  #options-popup .options-language-row .choice-value {
    min-width: 5.2ch;
  }

  #options-popup .popup-action {
    width: min(100%, 11.5rem);
  }

  #options-popup .options-orbit {
    height: var(--options-orbit-height, 25rem);
    min-height: var(--options-orbit-height, 25rem);
  }

  #options-popup .options-range-row {
    width: min(100%, 17.6rem);
  }
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .loading-screen {
  place-items: start end;
  padding: 10px;
  background: transparent;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .loading-card {
  width: clamp(220px, calc(248px * var(--landscape-ui-scale)), 320px);
  padding:
    clamp(14px, calc(16px * var(--landscape-ui-scale)), 20px)
    clamp(16px, calc(18px * var(--landscape-ui-scale)), 24px)
    clamp(12px, calc(14px * var(--landscape-ui-scale)), 18px);
  border-radius: clamp(20px, calc(22px * var(--landscape-ui-scale)), 30px);
  background: rgba(252, 238, 229, 0.92);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .loading-bar {
  height: clamp(10px, calc(11px * var(--landscape-ui-scale)), 14px);
  margin-bottom: clamp(9px, calc(10px * var(--landscape-ui-scale)), 14px);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .loading-copy {
  font-size: clamp(1.4rem, calc(1.5rem * var(--landscape-ui-scale)), 2rem);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .hero {
  display: block;
  min-height: var(--app-height, 100svh);
  padding:
    clamp(0.55rem, calc(0.7rem * var(--landscape-ui-scale)), 1.05rem)
    clamp(0.7rem, calc(0.8rem * var(--landscape-ui-scale)), 1.6rem)
    clamp(0.75rem, calc(1rem * var(--landscape-ui-scale)), 1.35rem);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-wrap {
  position: absolute;
  top: var(--landscape-title-top);
  right: var(--landscape-title-right);
  left: auto;
  width: min(var(--landscape-title-width), calc(100vw - 1.8rem));
  max-width: var(--landscape-title-width);
  margin: 0;
  padding: 0;
  text-align: var(--landscape-title-align, right);
  transform: none !important;
  overflow: visible;
  z-index: 5;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .eyebrow {
  display: none;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-wrap h1 {
  font-size: var(--landscape-title-font-size);
  -webkit-text-stroke: var(--landscape-stroke-width) rgba(131, 92, 69, 0.88);
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0.92;
  text-align: var(--landscape-title-align, right);
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .subtitle {
  display: block;
  max-width: 100%;
  margin-top: clamp(0.12rem, calc(0.2rem * var(--landscape-ui-scale)), 0.3rem);
  font-size: clamp(0.74rem, var(--landscape-subtitle-font-size), 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-panel {
  position: absolute;
  right: var(--landscape-menu-right);
  left: auto;
  top: var(--landscape-menu-top);
  width: min(var(--landscape-menu-width), calc(100vw - 1.6rem));
  max-width: var(--landscape-menu-width);
  margin: 0;
  transform: none !important;
  justify-self: auto;
  align-self: auto;
  gap: var(--landscape-menu-gap);
  z-index: 5;
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn {
  min-height: max(64px, var(--landscape-button-min-height));
  padding: max(10px, var(--landscape-button-padding-y)) max(18px, var(--landscape-button-padding-x));
  font-size: max(24px, var(--landscape-button-font-size));
}

@media (min-width: 56rem) and (min-height: 36rem) {
html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card,
html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card-tall {
  width: min(calc(100vw - 1.4rem), clamp(20.8rem, 50vw, 25rem));
  padding-inline: clamp(1.15rem, 3.8vw, 1.75rem);
  padding-bottom: clamp(1rem, 3.4vw, 1.45rem);
  overflow-x: hidden;
}

html[data-desktop-device="true"] .popup-layer :is(#create-room-title, #enter-room-title) {
  transform: none;
}

html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) .popup-stack {
  gap: clamp(0.8rem, 2vh, 1.1rem);
  margin-top: clamp(0.95rem, 2.2vh, 1.25rem);
}

html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .room-pill, .empty-preview-state) {
  min-height: clamp(3.1rem, 7.6vh, 3.85rem);
  border-radius: clamp(1.15rem, 3.2vw, 1.55rem);
}

html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .popup-input input, .popup-row, .inline-input, .room-pill, .empty-preview-state, .popup-status) {
  font-size: clamp(1.24rem, 3.52vw, 1.52rem);
}

html[data-desktop-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-action, .popup-mini-action) {
  min-height: clamp(3rem, 7.3vh, 3.6rem);
  font-size: clamp(1.38rem, 3.8vw, 1.76rem);
}

html[data-desktop-device="true"] .popup-layer #enter-room-popup .popup-inline-submit {
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem);
  gap: clamp(0.7rem, 2vw, 1rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-room-option-row,
html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row {
  width: min(100%, 27rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-room-option-row {
  font-size: clamp(1.24rem, 3.52vw, 1.5rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.8rem, 2.2vw, 1.1rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row > span:first-child {
  font-size: clamp(1.12rem, 3.09vw, 1.35rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row .stepper-control {
  width: clamp(9rem, 24vw, 11rem);
  min-width: clamp(9rem, 24vw, 11rem);
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row .choice-arrow-btn {
  width: clamp(2.25rem, 6vw, 2.7rem);
  height: clamp(2.25rem, 6vw, 2.7rem);
  overflow: hidden;
}

html[data-desktop-device="true"] .popup-layer #create-room-popup .create-capacity-row .choice-value {
  font-size: clamp(1.12rem, 3.33vw, 1.38rem);
}

}

.game-version-badge {
  position: fixed;
  right: clamp(0.65rem, 2vw, 1.25rem);
  bottom: clamp(0.55rem, 1.8vw, 1rem);
  z-index: 120;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(139, 98, 84, 0.16);
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.72);
  box-shadow: 0 8px 20px rgba(94, 60, 41, 0.1);
  color: rgba(111, 75, 58, 0.78);
  font-family: var(--font-title);
  font-size: clamp(0.82rem, 1.9vw, 1.05rem);
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

html .popup-layer .popup-card,
html .popup-layer .popup-card-tall {
  --popup-header-top: clamp(0.85rem, 2.2vw, 1.2rem);
  --popup-header-height: clamp(2.35rem, 6.2vw, 3rem);
  padding-top: var(--popup-header-top);
}

html .popup-layer .popup-close-cat {
  right: clamp(0.35rem, 1vw, 0.7rem);
  top: var(--popup-header-top);
  min-height: var(--popup-header-height);
}

html .popup-layer .popup-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--popup-header-height);
  max-width: 100%;
  transform: none;
}

@media (max-width: 900px) and (orientation: landscape) {
  html .popup-layer .popup-card,
  html .popup-layer .popup-card-tall {
    width: min(calc(100vw - 24px), 340px);
    padding:
      clamp(0.75rem, 1.9vw, 1rem)
      clamp(0.95rem, 3.3vw, 1.35rem)
      clamp(0.9rem, 3vw, 1.15rem);
  }

  html .popup-layer .popup-card h2 {
    font-size: clamp(1.9rem, 5.2vw, 2.25rem);
  }

  html .popup-layer .popup-stack {
    gap: clamp(0.7rem, 2vh, 0.95rem);
    margin-top: clamp(0.85rem, 2.1vh, 1.1rem);
  }

  html .popup-layer .popup-input,
  html .popup-layer .room-pill,
  html .popup-layer .profile-head {
    min-height: clamp(2.75rem, 7.4vh, 3.35rem);
  }

  html .popup-layer .popup-input input,
  html .popup-layer .popup-input,
  html .popup-layer .popup-row,
  html .popup-layer .inline-input,
  html .popup-layer .room-pill,
  html .popup-layer .profile-head,
  html .popup-layer .profile-wide-btn,
  html .popup-layer .profile-split-btn {
    font-size: clamp(1.12rem, 3.45vw, 1.34rem);
  }

  html .popup-layer .popup-action,
  html .popup-layer .popup-mini-action,
  html .popup-layer .choice-btn {
    min-height: clamp(2.65rem, 7vh, 3.15rem);
    font-size: clamp(1.18rem, 3.55vw, 1.45rem);
  }

  html .popup-layer .choice-arrow-btn {
    width: clamp(2.05rem, 5.7vw, 2.45rem);
    height: clamp(2.05rem, 5.7vw, 2.45rem);
  }

  html .popup-layer .choice-arrow-btn .material-symbols-rounded,
  html .popup-layer .icon-lock.material-symbols-rounded,
  html .popup-layer .room-meta.material-symbols-rounded {
    font-size: clamp(1.2rem, 3.6vw, 1.45rem);
  }

  html .popup-layer #create-room-popup .create-room-option-row,
  html .popup-layer #create-room-popup .create-capacity-row {
    width: min(100%, 27rem);
  }

  html .popup-layer #create-room-popup .create-room-option-row {
    font-size: clamp(1.24rem, 3.52vw, 1.5rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html .popup-layer #create-room-popup .create-capacity-row > span:first-child {
    font-size: clamp(1.12rem, 3.09vw, 1.35rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row .stepper-control {
    width: clamp(9rem, 24vw, 11rem);
    min-width: clamp(9rem, 24vw, 11rem);
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  html .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card,
  html .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card-tall {
    width: min(calc(100vw - 2.6rem), 21.4rem);
    padding-inline: clamp(1rem, 4vw, 1.35rem);
    padding-bottom: clamp(0.85rem, 3vw, 1.15rem);
  }

  html .popup-layer :is(#create-room-title, #enter-room-title) {
    transform: none;
  }

  html .popup-layer :is(#create-room-popup, #enter-room-popup) .popup-stack {
    gap: clamp(0.55rem, 1.65vh, 0.78rem);
    margin-top: clamp(0.65rem, 1.8vh, 0.85rem);
  }

  html .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .room-pill, .empty-preview-state) {
    min-height: clamp(2.35rem, 6.3vh, 2.85rem);
  }

  html .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .popup-input input, .popup-row, .inline-input, .room-pill, .empty-preview-state, .popup-status) {
    font-size: clamp(0.98rem, 3vw, 1.16rem);
  }

  html .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-action, .popup-mini-action) {
    min-height: clamp(2.35rem, 6.2vh, 2.75rem);
    font-size: clamp(1.08rem, 3.25vw, 1.28rem);
  }

  html .popup-layer #enter-room-popup .popup-inline-submit {
    grid-template-columns: minmax(0, 1fr) minmax(5.4rem, 6.7rem);
  }

  html .popup-layer #create-room-popup .create-room-option-row,
  html .popup-layer #create-room-popup .create-capacity-row {
    width: min(100%, 18rem);
  }

  html .popup-layer #create-room-popup .create-room-option-row {
    font-size: clamp(0.98rem, 3vw, 1.16rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row > span:first-child {
    font-size: clamp(0.88rem, 2.75vw, 1.02rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row .stepper-control {
    width: clamp(7rem, 21vw, 8.1rem);
    min-width: clamp(7rem, 21vw, 8.1rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row .choice-arrow-btn {
    width: clamp(1.7rem, 5vw, 2rem);
    height: clamp(1.7rem, 5vw, 2rem);
  }

  html .popup-layer #create-room-popup .create-capacity-row .choice-value {
    font-size: clamp(0.96rem, 3vw, 1.08rem);
  }
}

@media (orientation: landscape) {
  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card,
  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card-tall {
    width: min(calc(100vw - 2.6rem), 21.4rem);
    padding-inline: clamp(1rem, 4vw, 1.35rem);
    padding-bottom: clamp(0.85rem, 3vw, 1.15rem);
  }

  html[data-touch-device="true"] .popup-layer :is(#create-room-title, #enter-room-title) {
    transform: none;
  }

  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) .popup-stack {
    gap: clamp(0.55rem, 1.65vh, 0.78rem);
    margin-top: clamp(0.65rem, 1.8vh, 0.85rem);
  }

  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .room-pill, .empty-preview-state) {
    min-height: clamp(2.35rem, 6.3vh, 2.85rem);
  }

  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-input, .popup-input input, .popup-row, .inline-input, .room-pill, .empty-preview-state, .popup-status) {
    font-size: clamp(0.98rem, 3vw, 1.16rem);
  }

  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup) :is(.popup-action, .popup-mini-action) {
    min-height: clamp(2.35rem, 6.2vh, 2.75rem);
    font-size: clamp(1.08rem, 3.25vw, 1.28rem);
  }

  html[data-touch-device="true"] .popup-layer #enter-room-popup .popup-inline-submit {
    grid-template-columns: minmax(0, 1fr) minmax(5.4rem, 6.7rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-room-option-row,
  html[data-touch-device="true"] .popup-layer #create-room-popup .create-capacity-row {
    width: min(100%, 18rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-room-option-row {
    font-size: clamp(0.98rem, 3vw, 1.16rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-capacity-row > span:first-child {
    font-size: clamp(0.88rem, 2.75vw, 1.02rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-capacity-row .stepper-control {
    width: clamp(7rem, 21vw, 8.1rem);
    min-width: clamp(7rem, 21vw, 8.1rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-capacity-row .choice-arrow-btn {
    width: clamp(1.7rem, 5vw, 2rem);
    height: clamp(1.7rem, 5vw, 2rem);
  }

  html[data-touch-device="true"] .popup-layer #create-room-popup .create-capacity-row .choice-value {
    font-size: clamp(0.96rem, 3vw, 1.08rem);
  }
}

@media (max-width: 55.999rem), (max-height: 35.999rem) {
  html .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card,
  html .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card-tall {
    width: min(calc(100vw - 2rem), 20.5rem);
  }
}

@media (orientation: landscape) {
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #create-room-popup {
    left: clamp(0.35rem, 1.2vw, 0.625rem);
  }
}

@media (orientation: landscape) {
  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card,
  html[data-touch-device="true"] .popup-layer :is(#create-room-popup, #enter-room-popup).popup-card-tall {
    width: min(calc(100vw - 2rem), 18.75rem);
  }
}

html .popup-layer :is(#create-room-title, #enter-room-title),
html[data-desktop-device="true"] .popup-layer :is(#create-room-title, #enter-room-title),
html[data-touch-device="true"] .popup-layer :is(#create-room-title, #enter-room-title) {
  transform: translateX(-10px);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-legal-footer {
  width: 100%;
  margin-top: clamp(0.25rem, calc(0.45rem * var(--landscape-ui-scale)), 0.75rem);
  justify-content: center;
  justify-self: stretch;
}

.title-wrap h1 {
  font-size: clamp(5.28rem, 8.4vw, 8.16rem);
}

html .popup-layer #enter-room-popup.popup-card-tall {
  width: min(calc(100vw - 1.4rem), 34rem) !important;
}

html .popup-layer #enter-room-popup .room-list,
html .popup-layer #enter-room-popup .empty-preview-state,
html .popup-layer #enter-room-popup .popup-inline-submit,
html .popup-layer #enter-room-popup .popup-status {
  width: 100%;
}

@media (orientation: landscape) {
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-wrap h1 {
    font-size: clamp(3.6rem, 14.4vh, 5.64rem) !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn {
    border-radius: 12px !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn::after {
    border-radius: 8px !important;
  }

  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #enter-room-popup.popup-card-tall {
    width: min(calc(100vw - 1.2rem), 27rem) !important;
  }
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-legal-footer .small-links {
  width: 100%;
  justify-content: center;
  gap: clamp(0.25rem, calc(0.45rem * var(--landscape-ui-scale)), 0.75rem);
}

:is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-legal-footer .small-pill {
  max-width: min(100%, 12rem);
  padding:
    clamp(0.2rem, calc(0.28rem * var(--landscape-ui-scale)), 0.42rem)
    clamp(0.45rem, calc(0.65rem * var(--landscape-ui-scale)), 0.9rem);
  font-size: clamp(0.72rem, calc(0.84rem * var(--landscape-ui-scale)), 1rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (orientation: portrait) {
  .loading-screen,
  .title-screen,
  .popup-layer {
    display: none !important;
  }

  .orientation-screen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;
    background:
      radial-gradient(circle at top, rgba(255, 240, 230, 0.68), transparent 36%),
      linear-gradient(180deg, rgba(116, 82, 63, 0.3), rgba(70, 46, 33, 0.46)),
      linear-gradient(180deg, #e7c2ab, #c99673) !important;
  }

  .orientation-card {
    width: min(88vw, 30rem) !important;
    max-width: 30rem !important;
    padding:
      clamp(1.75rem, 8vw, 3.4rem)
      clamp(1.35rem, 7vw, 3rem) !important;
    border-radius: clamp(1.35rem, 6vw, 2.4rem) !important;
  }

  .orientation-card p {
    font-size: clamp(2rem, 8.8vw, 3.6rem) !important;
    line-height: 1.08 !important;
  }
}

@media (orientation: landscape) {
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-wrap h1 {
    font-size: clamp(3rem, 12vh, 4.7rem) !important;
    line-height: 0.9 !important;
  }

  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn {
    min-height: clamp(2.25rem, 9vh, 3rem) !important;
    padding: clamp(0.38rem, 1.7vh, 0.62rem) clamp(0.7rem, 2.5vw, 1rem) !important;
    font-size: clamp(1rem, 4.2vh, 1.28rem) !important;
  }

  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer .popup-card,
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer .popup-card-tall {
    width: min(calc(100vw - 2rem), 19.5rem) !important;
    max-height: calc(var(--app-height, 100svh) - 1.4rem) !important;
  }

  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .room-preview,
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .empty-preview-state,
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-status {
    font-size: clamp(0.9rem, 3.2vh, 1.05rem) !important;
  }
}

:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-action,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-mini-action,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .profile-wide-btn,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .profile-split-btn,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .choice-btn,
:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .room-preview {
  border-radius: 10px !important;
}

:is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-btn::after {
  border-radius: 7px !important;
}

html .popup-layer #options-popup.popup-card {
  width: min(calc(100vw - 1.8rem), 33rem) !important;
  max-width: 33rem !important;
  max-height: calc(var(--app-height, 100svh) - 1.8rem) !important;
  padding:
    clamp(0.95rem, 2.4vw, 1.45rem)
    clamp(0.88rem, 2.2vw, 1.2rem)
    clamp(0.88rem, 2vw, 1.2rem) !important;
}

html .popup-layer #options-popup .popup-stack {
  gap: 0.9rem !important;
}

html .popup-layer #options-popup .options-orbit {
  height: auto !important;
  min-height: min(26rem, calc(var(--app-height, 100svh) - 10.4rem)) !important;
}

html .popup-layer #options-popup .options-face {
  gap: 0.85rem !important;
}

html .popup-layer #options-popup :is(.options-inline-row, .popup-row, .options-range-row, .options-action-row) {
  width: 100% !important;
  max-width: none !important;
}

html .popup-layer #options-popup :is(.options-inline-row, .popup-row) {
  font-size: clamp(1rem, 1vw, 1.18rem) !important;
}

html .popup-layer #options-popup .options-inline-row {
  grid-template-columns: minmax(0, 1fr) minmax(9.8rem, auto) !important;
  gap: 0.7rem !important;
}

html .popup-layer #options-popup .options-inline-row .stepper-control,
html .popup-layer #options-popup .options-language-row .stepper-control {
  width: min(100%, 9.8rem) !important;
  min-width: 9.8rem !important;
}

html .popup-layer #options-popup .options-inline-row .choice-value,
html .popup-layer #options-popup .options-language-row .choice-value,
html .popup-layer #options-popup .range-shell .choice-value {
  font-size: 1rem !important;
}

html .popup-layer #options-popup .options-action-row {
  align-items: stretch !important;
}

html .popup-layer #options-popup .options-main-action-row,
html .popup-layer #options-popup .options-advanced-action-row {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr) !important;
}

html .popup-layer #options-popup .options-action-row :is(.popup-action, .popup-mini-action, .options-advanced-btn, .options-back-btn) {
  min-height: 3rem !important;
  font-size: clamp(0.94rem, 0.92vw, 1.08rem) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

html .popup-layer #create-room-popup.popup-card {
  width: min(calc(100vw - 1.8rem), 30rem) !important;
  max-width: 30rem !important;
}

html .popup-layer #create-room-popup .popup-stack {
  width: min(100%, 25.75rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html .popup-layer #create-room-popup :is(.popup-input, .create-room-option-row, .create-capacity-row, .popup-action, .popup-note) {
  width: 100% !important;
}

html .popup-layer #create-room-popup .create-room-option-row,
html .popup-layer #create-room-popup .create-capacity-row {
  gap: 0.8rem !important;
}

html .popup-layer #create-room-popup .create-capacity-row > span:first-child {
  font-size: clamp(1.18rem, 1.12vw, 1.38rem) !important;
}

html .popup-layer #create-room-popup .create-capacity-row .stepper-control {
  width: 8.6rem !important;
  min-width: 8.6rem !important;
}

html .popup-layer :is(#store-popup, #inventory-popup).popup-card-shop {
  justify-self: center !important;
  align-self: center !important;
  width: min(calc(100vw - 2.2rem), 64rem) !important;
  max-width: 64rem !important;
  height: min(calc(var(--app-height, 100svh) - 2.2rem), 42rem) !important;
  max-height: min(calc(var(--app-height, 100svh) - 2.2rem), 42rem) !important;
  aspect-ratio: auto !important;
  padding:
    clamp(0.85rem, 1.8vw, 1.35rem)
    clamp(0.85rem, 2vw, 1.45rem)
    clamp(0.9rem, 1.8vw, 1.3rem) !important;
  border-radius: clamp(1.5rem, 2.2vw, 2.3rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup).popup-card-shop > :is(h2, .popup-status, .store-tabs, .store-summary, .store-columns) {
  width: min(100%, 56rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .popup-status {
  font-size: clamp(1rem, 0.98vw, 1.16rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-tabs {
  gap: 0.9rem !important;
  margin-top: 0.85rem !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-tab {
  min-height: 3rem !important;
  border-radius: 1rem !important;
  font-size: clamp(1.08rem, 1vw, 1.28rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-summary {
  font-size: clamp(0.98rem, 0.92vw, 1.12rem) !important;
  margin-bottom: 0.8rem !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-columns {
  gap: 1rem !important;
  padding-right: 0.2rem !important;
  justify-items: center !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-category-panel {
  gap: 0.9rem !important;
  padding: 0.85rem !important;
  border-radius: 1.2rem !important;
  width: 100% !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .store-category-panel h3 {
  font-size: clamp(1.22rem, 1.1vw, 1.48rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .skin-grid {
  grid-template-columns: repeat(auto-fit, minmax(148px, 148px)) !important;
  gap: 0.75rem !important;
  justify-content: center !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .skin-card {
  gap: 0.6rem !important;
  padding: 0.72rem !important;
  border-radius: 1rem !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) .skin-name {
  font-size: clamp(0.96rem, 0.9vw, 1.08rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) :is(.skin-price, .skin-owned-tag, .skin-equipped-tag) {
  font-size: clamp(0.86rem, 0.82vw, 0.98rem) !important;
}

html .popup-layer :is(#store-popup, #inventory-popup) :is(.skin-buy-btn, .skin-equip-btn) {
  min-height: 2.45rem !important;
  font-size: clamp(0.9rem, 0.82vw, 1rem) !important;
}

html[data-mobile="true"] .title-wrap h1 {
  font-size: clamp(5.55rem, 17.2vw, 7.95rem) !important;
}

html[data-mobile="true"] .menu-panel {
  margin-top: 1.15rem !important;
}

@media (orientation: landscape) {
  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .title-wrap h1 {
    font-size: clamp(4rem, 16vh, 6.2rem) !important;
  }

  :is(html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .menu-panel {
    margin-top: 1rem !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup.popup-card {
    width: min(calc(100vw - 1.2rem), 28rem) !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup .options-inline-row {
    grid-template-columns: minmax(0, 1fr) minmax(8.7rem, auto) !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup .options-inline-row .stepper-control,
  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup .options-language-row .stepper-control {
    width: 8.7rem !important;
    min-width: 8.7rem !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup .options-main-action-row,
  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #options-popup .options-advanced-action-row {
    grid-template-columns: 1fr !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer #create-room-popup.popup-card {
    width: min(calc(100vw - 1.2rem), 24.5rem) !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer :is(#store-popup, #inventory-popup).popup-card-shop {
    width: min(calc(100vw - 1.2rem), 44rem) !important;
    max-width: 44rem !important;
    height: min(calc(var(--app-height, 100svh) - 1.2rem), 33rem) !important;
    max-height: min(calc(var(--app-height, 100svh) - 1.2rem), 33rem) !important;
    padding: 0.75rem 0.75rem 0.85rem !important;
  }

  :is(html[data-mobile="true"], html[data-touch-device="true"], html[data-mobile-landscape="true"], html[data-responsive-landscape="true"]) .popup-layer :is(#store-popup, #inventory-popup) .skin-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 118px)) !important;
  }
}
