@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* Dedicated compositions for the account, client and community pages. */
.ts-portal {
  --portal-gold: #d9bb7c;
  --portal-ivory: #f4ebd6;
  --portal-muted: #b5ad9c;
  --portal-border: rgba(215, 183, 114, .25);
  box-sizing: border-box;
}
.ts-portal *, .ts-portal *::before, .ts-portal *::after { box-sizing: border-box; }
.ts-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ts-portal-kicker, .ts-card-kicker, .ts-board-heading, .ts-download-label, .ts-story-caption {
  color: var(--portal-gold); font-family: 'Rajdhani', Arial, sans-serif;
  font-size: .69rem; font-weight: 700; letter-spacing: .24em; line-height: 1.45; text-transform: uppercase;
}
.ts-portal-kicker { display: flex; align-items: center; gap: .7rem; }
.ts-portal-kicker > span { width: 2.3rem; height: 1px; background: var(--portal-gold); box-shadow: 0 0 12px rgba(235, 192, 101, .8); }
.ts-card-kicker { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.1rem; }
.ts-card-kicker span { font-size: .65rem; }

/* Two-column, art-led account portal. Existing form elements stay untouched. */
main.ts-auth {
  width: min(100%, 1370px); max-width: 1370px; min-height: min(800px, calc(100vh - 80px));
  margin: 0 auto; padding: clamp(1rem, 4vw, 3rem); display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr); align-items: stretch;
  gap: clamp(1rem, 2vw, 1.8rem); position: relative; z-index: 2;
}
.ts-auth-story {
  min-height: 620px; position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; border: 1px solid rgba(223, 189, 124, .26);
  background: #171719; box-shadow: 0 28px 80px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.025);
}
.ts-auth-art { position: absolute; inset: 0; z-index: -2; background-image:
  linear-gradient(180deg, rgba(9,10,12,.09) 6%, rgba(9,10,12,.08) 34%, rgba(9,10,12,.94) 100%),
  linear-gradient(90deg, rgba(11,10,10,.15), transparent 50%, rgba(11,10,10,.24)),
  var(--ts1-reborn-art, url('images/background1.jpg'));
  background-size: cover; background-position: 65% center; }
.ts-auth-story::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(237,207,151,.16); pointer-events: none; }
.ts-auth-story::before { content: ''; position: absolute; width: 35%; height: 1px; top: 12px; left: 32.5%; background: linear-gradient(90deg, transparent, #e7c98f, transparent); box-shadow: 0 0 15px rgba(226,188,112,.65); }
.ts-auth-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(235,200,137,.22); top: 22%; left: 48%; width: min(46vw, 440px); aspect-ratio: 1; transform: translateX(-50%) rotateX(66deg) rotateZ(-28deg); }
.ts-orbit-two { top: 24%; width: min(41vw, 390px); border-style: dashed; opacity: .65; transform: translateX(-50%) rotateX(66deg) rotateZ(19deg); }
.ts-art-mark { position: absolute; right: 2.3rem; top: 1.5rem; color: rgba(255,236,200,.35); font-family: Georgia,serif; font-size: 3.4rem; line-height: 1; }
.ts-auth-copy { position: relative; z-index: 1; width: 100%; padding: clamp(2rem, 5vw, 4.5rem); }
.ts-auth-display { margin: 1.2rem 0; max-width: 8.5ch; color: var(--portal-ivory); font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(3.8rem, 6.3vw, 6.8rem); font-weight: 600; line-height: .84; letter-spacing: -.035em; text-shadow: 0 5px 28px rgba(0,0,0,.6); }
.ts-auth-display em { display: block; color: #e3c689; font-weight: 500; }
.ts-auth-description { max-width: 28rem; color: #d3caba; font-family: 'Rajdhani',Arial,sans-serif; font-size: 1.1rem; line-height: 1.55; }
.ts-story-caption { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; opacity: .75; font-size: .62rem; }
.ts-auth-panel, .ts-register-panel { min-width: 0; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.ts-auth-panel > .glass, .ts-register-panel > .glass-box {
  width: 100%; max-width: none; padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1.4rem, 4vw, 4rem);
  background: linear-gradient(145deg, rgba(31,29,28,.94), rgba(12,15,17,.96));
  border: 1px solid var(--portal-border); border-radius: 2px;
  box-shadow: 0 28px 80px rgba(0,0,0,.4), inset 0 1px rgba(255,241,210,.055), inset 0 0 50px rgba(220,166,83,.025);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.ts-auth-panel h2, .ts-register-panel h1 {
  margin: 0 0 2rem; color: var(--portal-ivory) !important; font-family: 'Cormorant Garamond',Georgia,serif !important;
  font-size: clamp(2.4rem, 3.2vw, 3.4rem) !important; font-weight: 600; line-height: 1; letter-spacing: -.02em;
  text-shadow: 0 0 30px rgba(239,203,138,.12) !important;
}
.ts-auth form { display: flex; flex-direction: column; gap: .9rem; text-align: left; }
.ts-auth form > input:not([type=hidden]) {
  display: block; width: 100%; min-width: 0; min-height: 54px; margin: 0;
  padding: .9rem 1rem; border: 1px solid rgba(215,183,114,.25); border-radius: 2px;
  color: #f6eddd; background: rgba(4,6,8,.62); font: 600 1rem/1.4 'Rajdhani',Arial,sans-serif;
  box-shadow: inset 0 1px 10px rgba(0,0,0,.18); transition: border-color .2s, box-shadow .2s;
}
.ts-auth form > input::placeholder { color: #a7a197; opacity: 1; }
.ts-auth form > input:focus-visible { outline: 2px solid #e7c98f; outline-offset: 2px; border-color: #e7c98f; }
.ts-auth form > button[type=submit], .ts-register-panel > .download-btn {
  min-height: 56px; margin-top: .7rem; padding: .9rem 1.4rem; border: 1px solid #d8bb81; border-radius: 0;
  color: #18130d; background: linear-gradient(110deg, #a88552, #f0d6a1 50%, #b28e54);
  font-family: 'Rajdhani',Arial,sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  text-shadow: none; box-shadow: 0 10px 25px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.32);
  transition: filter .2s ease, box-shadow .2s ease;
}
.ts-auth form > button[type=submit]:hover, .ts-register-panel > .download-btn:hover { filter: brightness(1.12); box-shadow: 0 0 30px rgba(222,183,107,.23); }
.ts-register-panel > .download-btn { display: flex; align-items: center; justify-content: center; gap: .8rem; min-height: 52px; color: #ebd3a2; background: rgba(8,11,14,.87); }
.ts-register-panel > .download-btn .floating-arrow { position: static; color: #e7c98f; }

/* Client page: art-directed launch card paired with the unchanged requirements. */
main.ts-download {
  width: min(100%, 1440px); max-width: 1440px; padding: clamp(1.2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: stretch;
}
.ts-download-intro {
  grid-column: 1 / -1; min-height: 330px; margin: 0; padding: clamp(2rem,5vw,4.5rem);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  position: relative; overflow: hidden; border: 1px solid var(--portal-border); text-align: left;
  background-image: linear-gradient(90deg, rgba(7,9,11,.96), rgba(7,9,11,.68) 47%, rgba(7,9,11,.16)),
    linear-gradient(0deg, rgba(7,9,11,.8), transparent 65%), var(--ts1-reborn-art, url('images/background1.jpg'));
  background-size: cover; background-position: center, center, 65% 38%; box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.ts-download-intro::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(227,200,147,.13); pointer-events: none; }
.ts-download-intro h1 {
  max-width: 14ch; margin: 1.1rem 0 .7rem; color: var(--portal-ivory); font-family: 'Cormorant Garamond',Georgia,serif;
  font-size: clamp(3.4rem, 6vw, 6rem); font-weight: 600; line-height: .92; letter-spacing: -.03em;
  text-shadow: 0 3px 22px rgba(0,0,0,.7) !important; text-transform: none;
}
.ts-download-intro p { margin: .4rem 0 0; color: #d5c9b5; font-family: 'Rajdhani',Arial,sans-serif; font-size: .85rem; opacity: 1; letter-spacing: .2em; }
.ts-download-launch, .ts-download-specs { margin: 0; border: 1px solid var(--portal-border); border-radius: 2px; }
.ts-download-launch {
  padding: clamp(2rem, 4vw, 4rem) !important; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: radial-gradient(circle at 50% 36%, rgba(168,123,62,.18), transparent 43%), linear-gradient(150deg,rgba(27,25,22,.96),rgba(8,11,13,.97));
}
.ts-download-label { margin-bottom: 2rem; }
.ts-download-launch .floating-arrow { color: #e7c98f; margin-bottom: .4rem; filter: drop-shadow(0 0 18px rgba(225,185,105,.48)); }
.ts-download-launch .play-button-premium {
  width: min(100%, 430px); padding: 1.25rem 1.5rem; color: #18130d; border-color: #e1c68e;
  background: linear-gradient(110deg, #a88552, #efd5a1 50%, #b18b53); box-shadow: 0 14px 38px rgba(0,0,0,.38), 0 0 25px rgba(224,184,105,.16);
  font-family: 'Rajdhani',Arial,sans-serif; font-size: 1.1rem; letter-spacing: .16em; text-shadow: none;
}
.ts-download-launch .play-button-premium:hover { color: #17120b; filter: brightness(1.13); }
.ts-download-launch > div:last-child { color: #c2ad89; }
.ts-download-specs { padding: clamp(1.5rem, 3vw, 3rem) !important; background: rgba(14,16,17,.92); }
.ts-download-specs > h2 { margin-bottom: 2rem; color: var(--portal-ivory); font-family: 'Cormorant Garamond',Georgia,serif; font-size: 2.5rem; letter-spacing: 0; text-transform: none; }
.ts-download-specs > .grid { gap: 2rem; }
.ts-download-specs h4 { color: #d6b77c; border-color: rgba(215,183,114,.22); font-family: 'Rajdhani',Arial,sans-serif; font-size: .85rem; }
.ts-download-specs li { color: #c9c0ae; }

/* Ranking and forum: editorial headers above the original interactive data. */
main.ts-ranking, main.ts-forum { width: min(100%, 1320px); max-width: 1320px; margin: 0 auto; padding: clamp(1rem,4vw,3.5rem); }
.ts-ranking-intro, .ts-forum-intro {
  min-height: 260px; padding: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.25rem;
  position: relative; overflow: hidden; border: 1px solid var(--portal-border); text-align: left;
  background-image: linear-gradient(90deg, rgba(7,9,11,.97), rgba(7,9,11,.78) 53%, rgba(7,9,11,.28)),
    linear-gradient(0deg,rgba(7,9,11,.65),transparent), var(--ts1-reborn-art, url('images/background1.jpg'));
  background-size: cover; background-position: center, center, 65% 42%;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.ts-ranking-intro::after, .ts-forum-intro::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(230,199,136,.12); pointer-events: none; }
.ts-ranking-intro h2, .ts-forum-intro h1 {
  margin: 1rem 0 .5rem; max-width: 21ch; text-align: left; color: var(--portal-ivory);
  font-family: 'Cormorant Garamond',Georgia,serif; font-size: clamp(2.8rem,5vw,5rem); font-weight: 600;
  line-height: .95; letter-spacing: -.025em; text-shadow: 0 4px 24px #000;
}
.ts-ranking-intro > .flex { justify-content: flex-start; margin: 1.3rem 0 0; }
.ts-ranking-intro select { min-height: 44px; border-color: rgba(215,183,114,.55); color: #f1dfbb; background-color: rgba(6,8,10,.9); }
.ts-ranking-board, .ts-forum-board { border: 1px solid var(--portal-border); border-radius: 2px; background: rgba(11,14,16,.93); box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.ts-ranking-board { padding: clamp(1rem,3vw,2rem); }
.ts-forum-board { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: clamp(1rem,3vw,2rem); }
.ts-board-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: .7rem; border-bottom: 1px solid rgba(215,183,114,.2); }
.ts-board-heading span:last-child { color: #958a79; text-align: right; }
.ts-ranking-board .tribe-row { background-color: rgba(37,34,28,.36); }
.ts-ranking-board .tribe-row:hover, .ts-forum-board tr:hover { background-color: rgba(169,133,77,.16); }
.ts-ranking-board .tribe-row td { border-radius: 0; }
.ts-forum-description { margin: .8rem 0 0; max-width: 32rem; color: #d3caba; font: 1.1rem/1.5 'Rajdhani',Arial,sans-serif; }
.ts-forum-board table { min-width: 590px; border-collapse: collapse; }
.ts-forum-board th { color: #c7ad7c; font: 700 .7rem/1.4 'Rajdhani',Arial,sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.ts-forum-board td { border-bottom: 1px solid rgba(219,195,153,.08); }
.ts-forum-board .thread-title-container { min-width: 0; }
.ts-forum-board .thread-title-container > span:last-child { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  main.ts-auth { grid-template-columns: minmax(0,1fr); max-width: 680px; min-height: 0; }
  .ts-auth-story { min-height: 380px; }
  .ts-auth-copy { padding: 2.5rem; }
  .ts-auth-display { font-size: clamp(3.6rem, 11vw, 5.2rem); }
  .ts-auth-panel > .glass, .ts-register-panel > .glass-box { padding: 2.5rem; }
  .ts-auth-orbit { width: min(55vw, 330px); }
  .ts-orbit-two { width: min(49vw, 300px); }
  main.ts-download { grid-template-columns: minmax(0,1fr); }
  .ts-download-intro { grid-column: auto; min-height: 300px; }
}
@media (max-width: 520px) {
  main.ts-auth, main.ts-download, main.ts-ranking, main.ts-forum { padding: .8rem; }
  .ts-auth-story { min-height: 315px; }
  .ts-auth-copy { padding: 1.7rem; }
  .ts-auth-display { margin: 1rem 0; font-size: clamp(3.2rem, 14vw, 4.5rem); }
  .ts-auth-description { font-size: 1rem; }
  .ts-story-caption { flex-wrap: wrap; margin-top: 1.3rem; gap: .6rem; letter-spacing: .14em; }
  .ts-auth-panel > .glass, .ts-register-panel > .glass-box { padding: 2rem 1.25rem; }
  .ts-download-intro, .ts-ranking-intro, .ts-forum-intro { padding: 2rem 1.35rem; min-height: 240px; }
  .ts-download-intro h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .ts-download-specs > h2 { font-size: 2.1rem; }
  .ts-ranking-intro h2, .ts-forum-intro h1 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .ts-board-heading { flex-wrap: wrap; font-size: .62rem; letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-portal *, .ts-portal *::before, .ts-portal *::after { scroll-behavior: auto; }
  .ts-auth form > button[type=submit], .ts-register-panel > .download-btn { transition: none; }
}
/* Compact portal navigation: only the non-interactive centre ornament is hidden. */
@media (max-width: 850px) {
  body > header {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    min-height: 62px; padding: .55rem clamp(.75rem, 3vw, 1.3rem); gap: .45rem .8rem; text-align: left;
  }
  body > header > div:first-child {
    display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: flex-start;
    flex-wrap: wrap; gap: .45rem .85rem;
  }
  body > header > div.absolute { display: none; }
  body > header > div:last-child {
    display: flex; flex: 0 1 auto; min-width: 0; margin-left: auto; align-items: center;
    justify-content: flex-end; flex-wrap: wrap; gap: .45rem .75rem;
  }
  body > header > div:first-child > img { display: block; width: auto; max-width: 78px; height: 32px; object-fit: contain; }
  body > header nav { margin: 0; min-width: 0; align-items: center; justify-content: flex-start; gap: .45rem .8rem; }
  body > header nav a, body > header .glow-text { font-size: .72rem; line-height: 1.35; letter-spacing: .12em; }
  body > header .neon-button { padding: .45rem .7rem; font-size: .7rem; line-height: 1.2; }
}
