/* Account and sign-in screens: layout only. Colours, type and components come from /design/. */
/* ---------- sign-in ---------- */
.auth-page {
  min-height: 100vh;
  background: var(--surface);
}
.auth {
  display: grid;
  justify-items: center;
  padding: clamp(16px, 5vh, 56px) var(--gutter) 64px;
}
/* the sign-in page: no top bar, the logo sits centred above the card */
.auth-solo {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  align-content: center;
  gap: 26px;
  padding-top: 40px;
}
.auth-brand {
  font-size: 30px;
}
.auth-brand svg {
  width: 28px;
  height: 28px;
}
.auth-solo .auth-card h1,
.auth-solo .auth-sub {
  text-align: center;
}
.auth-solo .auth-sub {
  margin-bottom: 18px;
}
.auth-solo .auth-links,
.auth-solo .auth-switch,
.auth-paid {
  text-align: center;
}
.auth-ref-open {
  justify-self: start;
  margin-top: 6px;
  font-size: 14px;
}
.auth-paid {
  margin-top: 16px;
}
.auth-foot {
  font-size: 14px;
}
.auth-foot a {
  color: var(--muted);
}
@media (max-width: 480px) {
  .auth-solo {
    align-content: start;
    gap: 20px;
    padding-top: 28px;
  }
  .auth-solo .auth-card {
    padding: 26px 20px;
  }
}
.auth-card {
  position: relative;
  width: min(100%, 440px);
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(24, 20, 70, 0.1), inset 0 0 0 1px var(--line);
}
.auth-card[hidden] {
  display: none;
}
.auth-card h1 {
  font-size: 30px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.auth-sub {
  margin: 8px 0 14px;
  color: var(--muted);
}
.auth-card .btn {
  justify-self: stretch;
}
.auth-links {
  margin-top: 4px;
  font-size: 15px;
}
.auth-switch {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.auth-links a,
.auth-switch a {
  color: var(--violet-deep);
  font-weight: 700;
}

/* ---------- account shell ---------- */
.app-page {
  background: var(--surface);
}
.app-page::before {
  display: none; /* no hero wash on the account screens */
}
.draft {
  padding: 8px 16px;
  background: var(--warn-tint);
  color: var(--warn-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px;
  background: #fff;
  box-shadow: inset -1px 0 0 var(--line);
}
.side .brand {
  padding: 0 10px;
}
.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 30px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.side-nav a[hidden] {
  display: none;
}
.side-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.side-nav a[aria-current] {
  background: var(--violet-tint);
  color: var(--violet-deep);
}
/* line icons: menu items, the sign-out button */
.ico {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-short {
  display: none;
}
/* who is signed in, and the way out: a small card at the foot of the side bar */
.side-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-s);
  background: var(--surface);
}
.side-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--paper);
  font-weight: 700;
}
.side-avatar-admin {
  background: var(--ink);
}
.side-who {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.side-who b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-who small {
  color: var(--muted);
  font-size: 13px;
}
.side-out {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.side-out:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-soft);
}
.side-out .ico {
  width: 18px;
  height: 18px;
}

.main {
  width: 100%;
  min-width: 0; /* wide tables scroll inside their own box instead of widening the page */
  max-width: 1160px;
  margin: 0 auto; /* centred in the room beside the menu, so wide screens have no empty side */
  padding: 36px clamp(18px, 4vw, 48px) 96px;
}
.main > section {
  padding-top: 8px;
  scroll-margin-top: 20px;
}
.main > section[hidden] {
  display: none;
}
.main h1 {
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.main h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--track-soft);
  text-wrap: initial;
}
.minor {
  margin: 36px 0 14px;
  color: var(--muted);
}
.card,
.connect,
.owned,
.sub-row,
.upsell,
.setting,
.ways article,
.tiles li,
.locked li {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- TikTok connection ---------- */
.connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: center;
  padding: 24px;
}
.connect-text p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.connect-form {
  display: grid;
  grid-template-columns: 220px auto;
  gap: 8px;
  align-items: center;
}
.connect-form .form-note {
  grid-column: 1 / -1;
  min-height: 0;
}
.state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.state-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b9bccb;
}
.state-on .state-dot {
  background: var(--ok);
}

/* ---------- summary tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.tiles li {
  padding: 18px 20px;
}
.tiles span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.tiles b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}

/* ---------- an owned game ---------- */
.owned {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 14px;
  padding: 22px;
  box-shadow: inset 0 0 0 2px var(--violet), 0 20px 44px rgba(91, 61, 245, 0.1);
}
.owned img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 16px;
}
.owned-body h2 {
  font-size: 26px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-heading);
}
.owned-until {
  margin-top: 4px;
  color: var(--ok);
  font-weight: 700;
  font-size: 15px;
}
.owned-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.owned-hint {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.owned-more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 8px;
}

.locked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.locked li {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.locked h3 {
  font-size: 18px;
}
.locked p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- adding to the stream ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ways article {
  padding: 24px;
}
.ways ol {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  counter-reset: way;
}
.ways li {
  position: relative;
  padding-left: 40px;
  counter-increment: way;
  color: #33374d;
  font-size: 16px;
}
.ways li::before {
  content: counter(way);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 14px;
  font-weight: var(--weight-heading);
}

/* ---------- subscriptions ---------- */
.sub-row,
.upsell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 22px 24px;
}
.sub-info {
  flex: 1;
  min-width: 220px;
}
.sub-info p,
.upsell p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.upsell {
  margin-top: 14px;
  background: var(--violet-tint);
  box-shadow: none;
}
.upsell div {
  flex: 1;
  min-width: 220px;
}
.fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- settings ---------- */
.settings {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.setting {
  padding: 24px;
}
.setting > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 12px var(--gutter) 0;
    box-shadow: inset 0 -1px 0 var(--line);
  }
  /* the menu: a strip under the logo that scrolls sideways */
  .side-nav {
    order: 3;
    display: flex;
    flex: 1 0 100%;
    min-width: 0; /* a long menu scrolls inside the strip; it must not widen the page */
    gap: 4px;
    margin: 10px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side-nav a {
    flex: none;
    gap: 8px;
    padding: 9px 12px;
    font-size: 14.5px;
  }
  /* who is signed in: only the picture and the way out fit beside the logo */
  .side-user {
    display: flex;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 0;
    background: none;
  }
  .side-who {
    display: none;
  }
  .side-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .side-out {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13.5px;
  }
  /* the account panel has few pages: its menu is a bar of tabs at the bottom of the screen */
  .app-tabs .side-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 5;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 0 -1px 0 var(--line);
    overflow: visible;
  }
  .app-tabs .side-nav a {
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 6px 2px;
    border-radius: 10px;
    font-size: 11.5px;
  }
  .app-tabs .nav-long {
    display: none;
  }
  .app-tabs .nav-short {
    display: block;
  }
  .app-tabs .side {
    padding-bottom: 12px;
  }
  .app-tabs .main {
    padding-bottom: 110px;
  }
  .main {
    padding-top: 24px;
  }
  .connect {
    grid-template-columns: 1fr;
  }
  .connect-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
  .tiles li:last-child {
    grid-column: 1 / -1;
  }
  .owned {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .locked,
  .ways {
    grid-template-columns: 1fr;
  }
}

/* ---------- live data: empty states, the stream link, notes ---------- */
.app[hidden],
.empty[hidden],
.link-card[hidden],
.upsell[hidden],
#linkler[hidden] {
  display: none;
}
.empty,
.link-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 14px;
  padding: 24px;
}
.empty p,
.link-card > p {
  max-width: 62ch;
  color: var(--muted);
}
.link-row {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.link-row label {
  font-size: 15px;
  font-weight: 600;
}
.link-field {
  display: flex;
  gap: 10px;
}
.link-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font: 500 14px/1 var(--font-mono);
}
#linkler {
  width: 100%;
}
.owned-body .form-note {
  margin-top: 8px;
}
@media (max-width: 560px) {
  .link-field {
    flex-direction: column;
  }
}

/* ---------- e-mail confirmation ---------- */
/* stays at the top of the screen while the page scrolls, until the address is confirmed */
.verify-bar {
  position: sticky;
  top: 10px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 22px;
  padding: 12px 18px;
  box-shadow: 0 10px 24px rgba(24, 20, 70, 0.12);
  border-radius: var(--radius-s);
  background: var(--warn-tint);
  color: var(--warn-ink);
  font-size: 15px;
}
.verify-bar p {
  flex: 1 1 320px;
  max-width: 70ch;
}
.verify-bar[hidden],
.done-bar[hidden] {
  display: none;
}
.done-bar {
  margin-bottom: 22px;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  background: var(--ok-tint);
  color: var(--ok-deep);
  font-size: 15px;
  font-weight: 600;
}
.done-bar[data-kind='error'] {
  background: var(--warn-tint);
  color: var(--warn-ink);
}

/* ---------- inviting others ---------- */
.invite {
  padding: 24px 26px;
}
.invite p {
  margin: 8px 0 14px;
}
.invite .owned-actions {
  margin-top: 16px;
}
.invite-code {
  margin-top: 14px;
}
.invite-code code {
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--surface);
  font: 600 15px/1.4 var(--font-mono);
}
.tiles-invite {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.tiles-invite small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.tiles-invite li[hidden] {
  display: none;
}
#davet .table-wrap {
  margin-top: 14px;
}

/* ---------- page head: title, one line about the page, the page's main action ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.main .page-head h1 {
  margin-bottom: 4px;
}
.page-head p {
  color: var(--muted);
}

/* ---------- numbers with an icon and a line under them ---------- */
.tiles-stat li {
  position: relative;
}
.tiles-stat .ico {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted);
}
.tiles-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- getting ready for the first stream ---------- */
.todo {
  margin-bottom: 14px;
  padding: 20px 24px 8px;
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
.todo[hidden] {
  display: none;
}
.todo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 12px;
  cursor: pointer;
  list-style: none;
}
.todo-head::-webkit-details-marker {
  display: none;
}
.todo-title {
  display: grid;
  flex: 1 1 200px;
}
.todo-title b {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: var(--track-soft);
}
.todo-title small {
  color: var(--muted);
  font-size: 15px;
}
/* a small arrow in the corner that turns when the card is open */
.todo-head {
  position: relative;
  padding-right: 34px;
}
.todo-head::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}
.todo[open] .todo-head::after {
  top: 11px;
  transform: rotate(-135deg);
}
.todo:not([open]) .todo-head {
  padding-bottom: 12px;
}
.todo-bar {
  flex: 0 1 220px;
  margin-top: 0;
}
.todo ol {
  counter-reset: step;
}
.todo li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.todo li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 700;
}
.todo li[data-done]::before {
  content: '';
  background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c7a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.todo li p {
  display: grid;
  flex: 1;
  min-width: 0;
}
.todo li b {
  font-weight: 600;
}
.todo li span {
  color: var(--muted);
  font-size: 14px;
}
.todo li[data-done] b {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- side bar: group names and the upgrade card ---------- */
.side-group {
  margin: 14px 14px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.side-nav .side-group:first-child {
  margin-top: 0;
}
.side-promo {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-s);
  background: var(--violet-tint);
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
}
.side-promo[hidden] {
  display: none;
}
.side-promo b {
  font-size: 15px;
}
.side-promo span {
  color: var(--ink-soft);
}
.side-promo .side-promo-go {
  justify-self: start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: var(--paper);
  font-weight: 700;
}
.side-promo + .side-user {
  margin-top: 10px;
}
@media (max-width: 860px) {
  .side-group,
  .side-promo {
    display: none;
  }
  .todo-bar {
    flex-basis: 100%;
  }
  .tiles-stat {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .page-head .btn {
    width: 100%;
  }
  .todo {
    padding: 18px 16px 6px;
  }
}

/* ---------- the bar above the page: where you are, and the way to the shop ---------- */
.pane {
  min-width: 0;
}
.top-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: var(--paper);
  box-shadow: inset 0 -1px 0 var(--line);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
}
.crumb span::after {
  content: '/';
  margin-left: 10px;
  color: var(--line-strong);
}
.crumb b {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-site {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.top-site:hover {
  color: var(--ink);
}
.main {
  padding-top: 30px;
}
.main > section {
  scroll-margin-top: 84px;
}
/* room between the boxes of the first page */
.connect {
  margin-bottom: 14px;
}
.tiles-stat {
  margin-top: 0;
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  /* on a phone the side bar is already a bar at the top */
  .top-bar {
    display: none;
  }
  /* the tab bar lives inside the side bar: keep the whole of it above the page's own boxes */
  .app-tabs .side {
    position: relative;
    z-index: 6;
  }
}

/* ---------- moving between the pages of the panel ---------- */
/* The browser cross-fades from the old page to the new one; the menu is named, so it stays put
   and only the page beside it changes. Browsers without this simply load the page. */
@view-transition {
  navigation: auto;
}
.side {
  view-transition-name: side;
}
.top-bar {
  view-transition-name: top-bar;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 140ms;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
  }
}

/* ---------- the account menu in the top bar ---------- */
.top-buy {
  flex: none;
}
.profile {
  position: relative;
}
.profile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  list-style: none;
}
.profile summary::-webkit-details-marker {
  display: none;
}
.profile summary:hover,
.profile[open] summary {
  background: var(--surface);
}
.profile .side-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.profile-who {
  display: grid;
  max-width: 200px;
  line-height: 1.25;
}
.profile-who b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-who small {
  color: var(--muted);
  font-size: 12.5px;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 2px;
  min-width: 250px;
  padding: 8px;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line);
}
.profile-menu a,
.profile-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu a:hover,
.profile-menu button:hover {
  background: var(--surface);
}
.profile-menu button {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--no);
}
.profile-menu .ico {
  width: 18px;
  height: 18px;
}

/* ---------- "confirm your e-mail": a thin strip right under the top bar ---------- */
.verify-bar {
  position: sticky;
  top: 64px;
  z-index: 2;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  padding: 7px clamp(18px, 4vw, 48px);
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  font-size: 14px;
}
.verify-bar p {
  flex: 1 1 auto;
  max-width: none;
}
.verify-bar .btn {
  flex: none;
  min-height: 32px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* ---------- the TikTok box: it stands out until the username is there ---------- */
.connect h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.connect[data-empty] {
  background: var(--violet-tint);
  box-shadow: inset 0 0 0 2px var(--violet);
}
.connect[data-empty] .at-input {
  box-shadow: inset 0 0 0 2px var(--violet);
}

/* ---------- invoice and contact details ---------- */
.bill {
  max-width: 560px;
}
.setting .btn {
  justify-self: start;
  margin-top: 12px;
}

@media (max-width: 860px) {
  /* on a phone the top bar is only the account menu, placed in the row of the logo */
  .app {
    position: relative;
  }
  .top-bar {
    position: absolute;
    top: 10px;
    right: var(--gutter);
    z-index: 7;
    display: flex;
    min-height: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    view-transition-name: none;
  }
  .top-bar .crumb,
  .top-buy,
  .profile-who {
    display: none;
  }
  .profile summary {
    padding: 4px;
  }
  .verify-bar {
    top: 0;
    padding: 6px var(--gutter);
  }
  .verify-bar p span {
    display: none;
  }
}

/* ============ the customer panel, brighter (decision K62) ============ */
.app-tabs .pane {
  background:
    radial-gradient(60% 420px at 100% 0%, var(--hot-tint) 0%, transparent 70%),
    radial-gradient(50% 380px at 0% 0%, var(--violet-tint) 0%, transparent 70%);
}
.app-tabs .top-bar {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
}
/* the menu: the page you are on is a coloured pill */
.app-tabs .side-nav a[aria-current] {
  background: var(--grad-brand);
  color: var(--paper);
  box-shadow: var(--shadow-violet);
}
/* "Davet et" is where money is made: framed, with a badge */
.side-nav .nav-earn {
  background: var(--hot-tint);
  box-shadow: inset 0 0 0 1.5px var(--hot);
  color: var(--hot-deep);
}
.side-nav .nav-earn:hover {
  background: var(--hot-tint);
  color: var(--hot-deep);
}
.nav-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--hot);
  color: var(--paper);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.side-nav .nav-earn[aria-current] .nav-badge {
  background: var(--paper);
  color: var(--hot-deep);
}

/* the "Hesabım" menu in the top bar */
.profile summary {
  gap: 8px;
  padding: 8px 12px 8px 14px;
  font-size: 15px;
  font-weight: 700;
}
.profile summary .ico {
  width: 18px;
  height: 18px;
}
.profile-chev {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.profile[open] .profile-chev {
  transform: rotate(180deg);
}
.profile-menu {
  min-width: 210px;
}

/* ---------- the first page ---------- */
.hello {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: var(--grad-brand);
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}
/* two soft circles of light in the corner */
.hello::before,
.hello::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.hello::before {
  top: -90px;
  right: -60px;
  width: 280px;
  height: 280px;
}
.hello::after {
  right: 120px;
  bottom: -110px;
  width: 200px;
  height: 200px;
}
.hello > * {
  position: relative;
  z-index: 1;
}
.hello-hi {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
}
.main .hello h1 {
  margin: 14px 0 6px;
  max-width: 24ch;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: var(--track-display);
}
.hello-text {
  max-width: 44ch;
  font-size: 17px;
  opacity: 0.92;
}
.hello-go {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--violet-deep);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 18, 34, 0.18);
}
.hello-go:hover {
  transform: translateY(-1px);
}

/* three steps to the first stream */
.path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
  counter-reset: path;
}
.path li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-weight: 700;
  counter-increment: path;
}
.path li::before {
  content: counter(path);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--track);
  color: var(--ink-soft);
  font-size: 14px;
}
.path li[data-state='now'] {
  box-shadow: inset 0 0 0 2px var(--violet);
  color: var(--ink);
}
.path li[data-state='now']::before {
  background: var(--violet);
  color: var(--paper);
}
.path li[data-state='done'] {
  background: var(--ok-tint);
  box-shadow: none;
  color: var(--ok-deep);
}
.path li[data-state='done']::before {
  content: '';
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 17px no-repeat;
}

/* three doors to the rest of the panel */
.quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-card {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
}
.quick-card .ico {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  padding: 11px;
  border-radius: 14px;
  background: var(--paper);
}
.quick-card span {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.75;
}
.quick-card b {
  font-size: 30px;
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: var(--track-heading);
}
.quick-card small {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.8;
}
.quick-games {
  background: var(--violet-tint);
}
.quick-games .ico,
.quick-games b {
  color: var(--violet-deep);
}
.quick-time {
  background: var(--sky-tint);
}
.quick-time .ico,
.quick-time b {
  color: var(--sky);
}
.quick-invite {
  background: var(--hot-tint);
  box-shadow: inset 0 0 0 2px var(--hot);
}
.quick-invite .ico,
.quick-invite b {
  color: var(--hot-deep);
}

/* the numbers on the games page get coloured icon tiles too */
.tiles-stat .ico {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: var(--violet-tint);
  color: var(--violet-deep);
}
.tiles-stat li:nth-child(2) .ico {
  background: var(--sky-tint);
  color: var(--sky);
}
.tiles-stat li:nth-child(3) .ico {
  background: var(--hot-tint);
  color: var(--hot-deep);
}

@media (max-width: 860px) {
  .app-tabs .top-bar {
    background: none;
    backdrop-filter: none;
  }
  /* in the tab bar the badge is a dot on the icon */
  .app-tabs .side-nav .nav-earn {
    position: relative;
    background: none;
    box-shadow: none;
  }
  .app-tabs .nav-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 6px);
    width: 9px;
    height: 9px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .app-tabs .side-nav a[aria-current] {
    background: var(--violet-tint);
    color: var(--violet-deep);
    box-shadow: none;
  }
  .profile summary {
    padding: 7px 10px 7px 12px;
    background: var(--paper);
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .path {
    grid-template-columns: 1fr;
  }
  .quick {
    grid-template-columns: 1fr 1fr;
  }
  .quick-invite {
    grid-column: 1 / -1;
  }
  .hello {
    border-radius: 22px;
  }
}
.tiles-stat span {
  padding-right: 44px; /* room for the icon tile in the corner */
}
.profile-menu a[hidden] {
  display: none;
}

/* ---------- "I paid with another e-mail" ---------- */
.other-mail {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 22px 24px;
}
.other-mail p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.other-mail-row {
  display: grid;
  grid-template-columns: minmax(0, 420px) auto;
  gap: 10px;
  justify-content: start;
}
.form .other-mail-row .btn {
  margin: 0;
  min-height: 50px;
}
.other-mail .form-note:empty {
  display: none;
}
/* ---------- ideas and requests ---------- */
.idea {
  max-width: 620px;
}
@media (max-width: 560px) {
  .other-mail-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- a subscription row: its buttons ---------- */
.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sub-actions [hidden] {
  display: none;
}
.sub-info .form-note:empty {
  display: none;
}
