@import url("./original-theme.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.connection-hub-page {
  background: var(--ink);
  width: 100dvw;
  max-width: 100dvw;
  overflow-x: clip;
}

.page-backdrop,
.page-backdrop::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-backdrop {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.32), rgba(7, 7, 7, 0.82)),
    var(--background-image) left center / cover no-repeat,
    #111827;
}

.page-backdrop::after {
  content: "";
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 224, 212, 0.14), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(245, 243, 235, 0.08), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.app-shell,
main,
.youme-footer {
  width: min(1180px, calc(100% - clamp(40px, 7vw, 88px)));
  margin-inline: auto;
}

.app-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 10px;
}

.app-shell__brand,
.product-mark,
.app-shell__nav {
  display: flex;
  align-items: center;
}

.app-shell__brand {
  gap: 12px;
}

.logo-link {
  width: 118px;
  padding: 0;
  border-radius: 0;
}

.original-logo--light {
  filter: brightness(0) invert(1);
}

.logo-link img {
  width: 118px;
  height: auto;
}

.app-shell__label {
  padding: 7px 10px;
  border: 1px solid rgba(245, 243, 235, 0.28);
  border-radius: 999px;
  color: var(--off-white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.connection-hub-page .app-shell {
  position: relative;
  top: auto;
  z-index: 2;
  justify-content: flex-end;
  padding: clamp(14px, 2vw, 22px) 0 0;
}

.connection-hub-page .app-shell__nav {
  width: min(520px, 100%);
  margin-left: auto;
  box-shadow: 0 16px 44px rgba(7, 7, 7, 0.18);
}

.app-shell__nav {
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(245, 243, 235, 0.16);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.34);
  backdrop-filter: blur(16px);
}

.app-shell__nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(245, 243, 235, 0.84);
  font-weight: 800;
  font-size: 0.88rem;
}

.app-shell__nav a:hover,
.app-shell__nav a:focus-visible {
  background: rgba(245, 243, 235, 0.14);
  color: var(--off-white);
}

main {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(16px, 3vw, 40px) 0 70px;
}

.app-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: min(700px, calc(100vh - 94px));
}

.app-entry__copy {
  display: grid;
  gap: 18px;
  max-width: 660px;
}

.product-mark {
  gap: 14px;
}

.product-mark img {
  width: clamp(190px, 25vw, 260px);
  height: auto;
}

.product-mark > span:not(.youme-beta-logo) {
  padding: 8px 12px;
  border: 1px solid rgba(245, 243, 235, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--off-white-strong);
  font-family: var(--font-display);
}

h1 {
  max-width: 680px;
  font-size: clamp(2.65rem, 6.2vw, 4.85rem);
  line-height: 0.96;
}

.app-entry__copy > p {
  max-width: 620px;
  color: rgba(245, 243, 235, 0.82);
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  line-height: 1.5;
}

.loop-preview {
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.loop-preview span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(245, 243, 235, 0.18);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.28);
  color: rgba(245, 243, 235, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  backdrop-filter: blur(12px);
}

.loop-preview strong {
  width: 1.8em;
  height: 1.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1;
}

.hero-proof {
  max-width: 620px;
  color: rgba(245, 243, 235, 0.68);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.status-banner,
.join-box,
.access-panel,
.game-card,
.flow-grid article,
.checkout-panel {
  border: 1px solid rgba(245, 243, 235, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.status-banner {
  max-width: 540px;
  padding: 14px 16px;
  background: rgba(7, 7, 7, 0.5);
  color: var(--off-white);
  line-height: 1.5;
}

.status-banner[data-state="connected"] {
  border-color: rgba(192, 244, 200, 0.42);
}

.status-banner[data-state="pending"] {
  border-color: rgba(246, 224, 212, 0.5);
}

.social-proof-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(245, 243, 235, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.34);
  color: var(--off-white);
  backdrop-filter: blur(16px);
}

.social-proof-strip__heading {
  display: grid;
  align-content: center;
  gap: 8px;
}

.social-proof-strip__heading h2 {
  margin: 0;
  color: var(--off-white-strong);
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.05;
}

.social-proof-strip__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.social-proof-strip__cards article {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 243, 235, 0.16);
  border-radius: 8px;
  background: rgba(245, 243, 235, 0.08);
}

.social-proof-strip__cards p {
  margin: 0;
  color: rgba(245, 243, 235, 0.76);
  font-size: 0.94rem;
  line-height: 1.38;
}

.proof-logo {
  width: fit-content;
  min-height: 36px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(245, 243, 235, 0.2);
  border-radius: 8px;
  line-height: 1;
}

.proof-logo--curiocity {
  gap: 0;
  background: #101010;
  color: #fffaf0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.proof-logo--curiocity span:first-child {
  color: #ffcf33;
}

.proof-logo--thursday {
  background: #ffffff;
  color: #111111;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.article-link {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(245, 243, 235, 0.18);
  border-radius: 8px;
  background: rgba(245, 243, 235, 0.1);
  color: rgba(245, 243, 235, 0.88);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.event-link-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid rgba(245, 243, 235, 0.2);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.4);
  color: var(--off-white);
  backdrop-filter: blur(16px);
}

.event-link-strip h2 {
  margin: 0;
  color: var(--off-white-strong);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

.event-link-strip p:not(.eyebrow) {
  color: rgba(245, 243, 235, 0.78);
  line-height: 1.45;
}

.event-link-strip .button {
  min-width: max-content;
}

.access-panel,
.checkout-panel {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.7vw, 24px);
  background: var(--panel);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.access-panel h2,
.checkout-panel h1,
.checkout-panel h2,
.game-card h3,
.flow-grid h3 {
  color: var(--ink);
}

.access-panel__top,
.game-card__header,
.section__heading-row,
.checkout-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-panel h2,
.section h2,
.checkout-panel h1 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.access-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--stroke-dark);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.08);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

[data-access-state="unlocked"] .access-pill {
  border-color: rgba(47, 107, 85, 0.32);
  background: rgba(47, 107, 85, 0.12);
  color: var(--success);
}

[data-access-state="free-sale"] .access-pill {
  border-color: rgba(47, 107, 85, 0.32);
  background: rgba(47, 107, 85, 0.12);
  color: var(--success);
}

[data-access-state="free"] .access-pill {
  border-color: rgba(196, 122, 43, 0.34);
  background: rgba(249, 204, 122, 0.18);
  color: var(--ink);
}

[data-access-state="locked"] .access-pill,
[data-access-state="signed-out"] .access-pill {
  border-color: rgba(142, 36, 28, 0.24);
  background: rgba(142, 36, 28, 0.1);
  color: var(--error);
}

.access-price {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.access-price--old {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.access-price--free {
  color: var(--success);
  font-weight: 900;
}

.control-group {
  display: grid;
  gap: 7px;
}

label,
.toggle-row {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--off-white-strong);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(246, 224, 212, 0.75);
  outline-offset: 2px;
}

.helper-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.button-row,
.button-stack,
.join-box__row,
.mini-game-connect__actions {
  display: flex;
  gap: 10px;
}

.button-stack {
  flex-wrap: wrap;
}

.access-panel .button-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 17px;
  font-weight: 850;
  text-align: center;
}

.button--dark {
  background: var(--ink);
  color: var(--off-white);
}

.button--light {
  background: var(--off-white-strong);
  color: var(--ink);
  border-color: var(--stroke);
}

.button--light[aria-pressed='true'] {
  background: rgba(142, 36, 28, 0.1);
  color: var(--error);
  border-color: rgba(142, 36, 28, 0.24);
}

.button--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--stroke-dark);
}

.button:hover,
.mini-game-connect button:hover,
.mini-game-connect__launch:hover {
  transform: translateY(-1px);
}

.button:disabled,
.mini-game-connect button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

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

.settings-disclosure {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.05);
  box-shadow: none;
  overflow: hidden;
}

.settings-disclosure summary {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  list-style: none;
}

.settings-disclosure summary::-webkit-details-marker {
  display: none;
}

.settings-disclosure summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.72);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
}

.settings-disclosure[open] summary::after {
  content: "-";
}

.settings-disclosure summary small {
  min-width: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-disclosure__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.settings-disclosure__body > .button {
  width: 100%;
}

.toggle-grid {
  display: grid;
  gap: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.74);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.join-box {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: rgba(7, 7, 7, 0.06);
  box-shadow: none;
}

.join-box__row {
  align-items: center;
}

.join-box__row .button {
  min-width: 96px;
}

.section {
  display: grid;
  gap: 22px;
}

.section__heading-row {
  color: var(--off-white);
}

.section__heading-row p:last-child {
  max-width: 440px;
  color: rgba(245, 243, 235, 0.75);
  line-height: 1.55;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card,
.flow-grid article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.game-card__header {
  align-items: center;
}

.game-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--off-white);
  font-size: 1.1rem;
}

.game-card p,
.flow-grid p {
  color: var(--text-muted);
  line-height: 1.52;
}

.mini-game-connect {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.mini-game-connect__top,
.mini-game-connect__join,
.mini-game-connect__generated {
  display: grid;
  gap: 10px;
}

.mini-game-connect__top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.mini-game-connect__top > .mini-game-connect__button:only-child {
  grid-column: 1 / -1;
}

.mini-game-connect__join {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.mini-game-connect label {
  display: grid;
  gap: 7px;
}

.mini-game-connect button,
.mini-game-connect__launch {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--off-white);
  font-weight: 850;
  padding: 0 13px;
}

.mini-game-connect__generated {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.78);
}

.mini-game-connect__generated[hidden] {
  display: none;
}

.mini-game-connect__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-game-connect__generated strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.mini-game-connect__generated > div:first-child {
  min-width: 0;
}

.mini-game-connect__actions {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.mini-game-connect__actions button {
  width: 44px;
  padding: 0;
}

.mini-game-connect__launch {
  min-width: 0;
  text-align: center;
}

.mini-game-connect__feedback {
  min-height: 20px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.9rem);
}

.section--flow {
  gap: clamp(0.75rem, 1.8vw, 1.1rem);
  padding: clamp(0.85rem, 2vw, 1.15rem);
  border: 1px solid rgba(245, 243, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 7, 7, 0.34);
  backdrop-filter: blur(16px);
}

.section--flow .section__heading-row {
  align-items: center;
}

.section--flow .eyebrow {
  color: rgba(245, 243, 235, 0.58);
}

.section--flow h2 {
  color: var(--off-white-strong);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}

.section--flow .flow-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(0.55rem, 1.3vw, 0.85rem);
  row-gap: 0.15rem;
  min-width: 0;
  padding: clamp(0.7rem, 1.6vw, 1rem);
  border-radius: calc(var(--radius) * 0.75);
  box-shadow: none;
}

.section--flow .flow-grid strong {
  grid-row: 1 / 3;
}

.section--flow .flow-grid h3 {
  font-size: clamp(0.92rem, 1.7vw, 1.15rem);
  line-height: 1.1;
}

.section--flow .flow-grid p {
  font-size: clamp(0.78rem, 1.35vw, 0.9rem);
  line-height: 1.25;
}

.flow-grid strong {
  width: 2.5em;
  height: 2.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--off-white);
}

.youme-footer {
  width: 100%;
  margin-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1180px) / 2)) 42px;
  border-top: 1px solid rgba(245, 243, 235, 0.16);
  background: rgba(7, 7, 7, 0.34);
  color: rgba(245, 243, 235, 0.78);
}

.youme-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
}

.youme-footer__mark {
  flex: 0 0 auto;
  width: 126px;
}

.youme-footer__mark img {
  width: 126px;
  height: auto;
}

.youme-footer__brand p:not(.youme-footer__eyebrow) {
  max-width: 360px;
  color: rgba(245, 243, 235, 0.72);
  line-height: 1.55;
}

.youme-footer__eyebrow {
  margin-bottom: 4px;
  color: var(--off-white-strong);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.youme-footer__links {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.youme-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.youme-footer a {
  font-weight: 800;
}

.youme-footer nav[aria-label="YouMe navigation"] a {
  color: rgba(245, 243, 235, 0.78);
}

.youme-footer nav[aria-label="YouMe navigation"] a:hover,
.youme-footer nav[aria-label="YouMe navigation"] a:focus-visible {
  color: var(--off-white-strong);
}

.youme-footer__social {
  width: max-content;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}

.youme-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 243, 235, 0.18);
  border-radius: var(--radius);
  background: rgba(245, 243, 235, 0.08);
  color: var(--off-white-strong);
  font-size: 1rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.youme-footer__social a:hover,
.youme-footer__social a:focus-visible {
  border-color: rgba(245, 243, 235, 0.34);
  background: rgba(245, 243, 235, 0.16);
  transform: translateY(-1px);
}

.checkout-page main {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.checkout-page.legal-page {
  padding-bottom: 96px;
}

.checkout-panel {
  width: min(480px, 100%);
}

.checkout-panel.legal-document {
  width: min(840px, 100%);
  align-content: start;
}

.legal-document__section {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.legal-document__section h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.legal-document__section p,
.legal-document__section ul {
  margin: 0;
}

.legal-document__section ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.74);
}

.about-profile-card__avatar {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(31, 20, 16, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 253, 246, 0.14), rgba(255, 253, 246, 0)),
    var(--ink);
  color: var(--off-white);
  font-size: 1.06rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(31, 20, 16, 0.14);
}

.about-profile-card h2,
.about-profile-card .eyebrow,
.about-profile-card .helper-text {
  margin: 0;
}

.about-profile-card h2 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.legal-bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 16px;
  z-index: 20;
  display: flex;
  width: min(840px, calc(100vw - 28px));
  transform: translateX(50%);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(245, 243, 235, 0.24);
  border-radius: var(--radius);
  background: rgba(31, 20, 16, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.legal-bottom-nav a {
  flex: 1 1 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 243, 235, 0.2);
  border-radius: var(--radius);
  color: var(--off-white);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
}

.legal-bottom-nav a:hover,
.legal-bottom-nav a:focus-visible {
  background: rgba(245, 243, 235, 0.12);
}

.checkout-panel__logo {
  width: 150px;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.72);
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
}

.checkout-summary__row strong {
  color: var(--ink);
  text-align: right;
}

.checkout-summary__price {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
}

.checkout-status {
  min-height: 22px;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkout-status[data-state="error"] {
  color: var(--error);
}

.checkout-status[data-state="success"] {
  color: var(--success);
}

@media (max-width: 980px) {
  .app-entry,
  .game-grid,
  .flow-grid,
  .social-proof-strip,
  .event-link-strip {
    grid-template-columns: 1fr;
  }

  .app-entry {
    align-items: start;
    min-height: 0;
  }

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

  .event-link-strip .button {
    width: 100%;
  }
}

@media (max-aspect-ratio: 4 / 5) {
  .app-shell,
  main {
    width: calc(100dvw - 2rem);
    max-width: 73.75rem;
  }

  .app-shell {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
    min-width: 0;
  }

  .app-shell__brand {
    justify-content: space-between;
    min-width: 0;
  }

  .app-shell__nav {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .app-shell__nav a {
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
    padding-inline: 0.5rem;
    font-size: clamp(0.72rem, 2.6dvi, 0.9rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .connection-hub-page .app-shell {
    padding-top: 0.9rem;
  }

  .connection-hub-page .app-shell__nav {
    width: 100%;
    margin-left: 0;
  }

  .product-mark {
    gap: 10px;
    min-width: 0;
  }

  .product-mark img {
    width: clamp(10rem, 42vi, 13.75rem);
  }

  h1 {
    max-width: min(100%, 12em);
    font-size: clamp(1.45rem, 5.8dvi, 2.35rem);
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .app-entry__copy > p,
  .status-banner {
    max-width: min(100%, 30em);
  }

  .app-entry {
    gap: 28px;
  }

  .app-entry__copy {
    gap: 18px;
    min-width: 0;
  }

  .app-entry__copy > p,
  .status-banner,
  .access-panel,
  .join-box {
    max-width: 100%;
    min-width: 0;
  }

  .room-grid,
  .about-profile-grid,
  .mini-game-connect__top,
  .mini-game-connect__join,
  .mini-game-connect__generated,
  .social-proof-strip__cards {
    grid-template-columns: 1fr;
  }

  .loop-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .loop-preview span {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    min-height: 72px;
    padding: 8px 7px;
    font-size: clamp(0.68rem, 2.4dvi, 0.76rem);
  }

  .loop-preview strong {
    width: 1.55em;
    height: 1.55em;
    font-size: 0.72rem;
  }

  .status-banner {
    display: none;
  }

  .button-row,
  .button-stack,
  .join-box__row,
  .mini-game-connect__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .mini-game-connect button,
  .mini-game-connect__launch {
    width: 100%;
  }

  .access-panel .button-stack {
    grid-template-columns: 1fr;
  }

  .settings-disclosure summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-disclosure summary small {
    display: none;
  }

  .about-profile-card {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .about-profile-card__avatar {
    width: 68px;
    height: 68px;
  }

  .checkout-page.legal-page {
    padding-bottom: 176px;
  }

  .legal-bottom-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-game-connect__actions button {
    width: 100%;
  }

  .access-panel__top,
  .game-card__header,
  .checkout-panel__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .section:not(.section--flow) .section__heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .youme-footer nav {
    justify-content: flex-start;
  }

  .youme-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-inline: 14px;
  }

  .youme-footer__brand {
    align-items: flex-start;
  }

  .youme-footer__links {
    justify-items: start;
  }

  .youme-footer__social {
    justify-content: flex-start;
  }
}
