/* ==========================================================================
   Thyranya — site design layer
   --------------------------------------------------------------------------
   Sits on top of the Playhost theme (bootstrap + plugins + style + coloring +
   colors/scheme-thyranya). Load it LAST on every page, static and PHP-rendered
   alike, so both halves of the site share one identity.

   Rules of the house:
   - No @import of remote resources and no inline styles anywhere in markup:
     the account pages run  default-src 'self'; style-src 'self'  with no
     'unsafe-inline', so a style="" attribute is silently dropped.
   - Reuse theme classes where they already look right; add .thy-* only for
     things the theme has no equivalent for.
   ========================================================================== */

:root {
  --thy-gold: #c9a227;
  --thy-gold-lit: #e0b44f;
  --thy-gold-dim: rgba(201, 162, 39, .35);
  --thy-gold-faint: rgba(201, 162, 39, .12);
  --thy-ember: #b4552d;
  --thy-ink: #0d1014;
  --thy-slate: #171c23;
  --thy-slate-2: #1e242c;
  --thy-parchment: #e8dfc8;
  --thy-muted: #9aa4b0;
  --thy-online: #5ac47d;
  --thy-offline: #6b737d;
  --thy-radius: 12px;
  --thy-rule: 1px solid rgba(201, 162, 39, .28);
}

/* --------------------------------------------------------------------------
   1. Typography
   The stock theme jumps from a 3rem h1 straight to 1rem body with nothing in
   between. Cinzel carries the display voice; Manrope stays for reading.
   -------------------------------------------------------------------------- */

h1, h2, h3,
.thy-display {
  font-family: "Cinzel", "Oxanium", Georgia, serif;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.8rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.9rem); line-height: 1.2; }
h4 { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }

.dark-scheme h1,
.dark-scheme h2,
.dark-scheme h3 { color: #fff; }

/* Gold-leaf heading, for the one heading that leads a page. */
.thy-gilded {
  background: linear-gradient(180deg, #fff 0%, var(--thy-gold-lit) 62%, var(--thy-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* The theme's eyebrow. Made to read as an inscription rather than a label. */
.subtitle {
  font-family: "Cinzel", "Oxanium", Georgia, serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--thy-gold-lit);
}

.thy-lead {
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
  line-height: 1.7;
  color: var(--thy-parchment);
  max-width: 62ch;
}

.thy-lead-center { margin-left: auto; margin-right: auto; text-align: center; }

.thy-muted { color: var(--thy-muted); }
.thy-gold-text { color: var(--thy-gold-lit); }

/* A short gold rule used to close a section heading. */
.thy-rule-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 320px;
  color: var(--thy-gold);
}
.thy-rule-ornament::before,
.thy-rule-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--thy-gold-dim));
}
.thy-rule-ornament::after { background: linear-gradient(270deg, transparent, var(--thy-gold-dim)); }

/* --------------------------------------------------------------------------
   2. Panels
   The workhorse surface: account cards, community tables, form wrappers.
   -------------------------------------------------------------------------- */

.thy-panel {
  position: relative;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201, 162, 39, .07), transparent 60%),
    var(--thy-slate);
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  padding: 28px;
}

.thy-panel + .thy-panel { margin-top: 24px; }
.thy-panel-flush { padding: 0; overflow: hidden; }
.thy-panel-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Corner marks. Drawn with borders so there is no image to load. */
.thy-panel-ornate::before,
.thy-panel-ornate::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--thy-gold);
  border-style: solid;
  opacity: .65;
  pointer-events: none;
}
.thy-panel-ornate::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.thy-panel-ornate::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.thy-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: var(--thy-rule);
}
.thy-panel-head h2,
.thy-panel-head h3 { margin: 0; }
.thy-panel-head i { color: var(--thy-gold); font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   3. Buttons
   .btn-main is the theme's; it requires an inner <span>. Extend, don't replace.
   -------------------------------------------------------------------------- */

.btn-main { font-family: "Cinzel", "Oxanium", Georgia, serif; letter-spacing: .06em; }

/* A slow sheen across the primary call to action. */
@media (prefers-reduced-motion: no-preference) {
  .thy-cta { position: relative; overflow: hidden; }
  .thy-cta::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    animation: thy-sheen 5.5s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes thy-sheen {
    0%, 62% { left: -60%; }
    100% { left: 130%; }
  }
}

.thy-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.thy-btn-row form { margin: 0; }

/* The theme only paints .btn-line on anchors, so a <button> variant comes out
   solid gold and competes with the primary action. Make the outline explicit. */
button.btn-main.btn-line,
a.btn-main.btn-line {
  background: transparent !important;
  border: 1px solid var(--thy-gold-dim);
  color: var(--thy-gold-lit) !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
button.btn-main.btn-line:hover,
a.btn-main.btn-line:hover {
  background: var(--thy-gold-faint) !important;
  border-color: var(--thy-gold);
  color: #fff !important;
}
button.btn-main.btn-line span,
a.btn-main.btn-line span { color: inherit; }
.btn-fullwidth { width: 100%; display: block; text-align: center; }

/* A quiet link that still reads as an action. */
.thy-link {
  color: var(--thy-gold-lit);
  text-decoration: none;
  border-bottom: 1px solid var(--thy-gold-dim);
  transition: color .2s ease, border-color .2s ease;
}
.thy-link:hover { color: #fff; border-color: var(--thy-gold); }

/* --------------------------------------------------------------------------
   4. Forms
   Web.php::input()/form() emit .field-set > label + .form-control inside
   .form-border, so this styles every form on every account page at once.
   -------------------------------------------------------------------------- */

.form-border .field-set { margin-bottom: 18px; }

.form-border label {
  display: block;
  margin-bottom: 8px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
  font-weight: 600;
}

.dark-scheme .form-control,
.thy-panel .form-control {
  background: rgba(8, 11, 15, .72);
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 8px;
  color: #fff;
  padding: 13px 15px;
  font-family: var(--body-font);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.dark-scheme .form-control::placeholder { color: #6d7783; }
.dark-scheme .form-control:hover { border-color: rgba(201, 162, 39, .4); }
.dark-scheme .form-control:focus {
  outline: none;
  background: rgba(8, 11, 15, .92);
  border-color: var(--thy-gold);
  box-shadow: 0 0 0 3px var(--thy-gold-faint);
}

.thy-field-hint {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--thy-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

textarea.form-control { min-height: 96px; overflow-wrap: anywhere; }

/* Keyboard focus must stay obvious everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--thy-gold-lit);
  outline-offset: 3px;
}

/* The theme's "Or sign in with" divider. */
.title-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--thy-muted);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.title-line::before,
.title-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 39, .25);
}

/* --------------------------------------------------------------------------
   5. Notices
   -------------------------------------------------------------------------- */

.thy-notice,
.thy-error {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: .95rem;
  line-height: 1.55;
}
.thy-notice { background: rgba(90, 196, 125, .1); border: 1px solid rgba(90, 196, 125, .42); color: #cdeed9; }
.thy-error { background: rgba(180, 85, 45, .12); border: 1px solid rgba(180, 85, 45, .5); color: #f3cdbc; }
.thy-notice i { color: var(--thy-online); }
.thy-error i { color: var(--thy-ember); }
.thy-notice i, .thy-error i { margin-top: .2rem; }

/* --------------------------------------------------------------------------
   6. Badges and stat tiles
   -------------------------------------------------------------------------- */

.thy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--thy-gold-dim);
  background: var(--thy-gold-faint);
  color: var(--thy-gold-lit);
  white-space: nowrap;
}
.thy-badge-good { border-color: rgba(90, 196, 125, .45); background: rgba(90, 196, 125, .12); color: #8fdca8; }
.thy-badge-warn { border-color: rgba(180, 85, 45, .5); background: rgba(180, 85, 45, .12); color: #e09a7a; }
.thy-badge-mute { border-color: rgba(154, 164, 176, .35); background: rgba(154, 164, 176, .1); color: var(--thy-muted); }

/* Explicit breakpoints rather than auto-fit: auto-fit sizes against the
   container, and on a phone that container is easy to make fractionally too
   wide, which silently produces a second column that runs off the screen. */
.thy-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .thy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .thy-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.thy-stat {
  position: relative;
  padding: 20px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: linear-gradient(180deg, rgba(201, 162, 39, .07), transparent 70%), var(--thy-slate-2);
  text-align: center;
}
.thy-stat i { color: var(--thy-gold); font-size: 1.3rem; }
.thy-stat-value {
  display: block;
  margin: 10px 0 4px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.thy-stat-label {
  display: block;
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--thy-muted);
}

/* --------------------------------------------------------------------------
   7. Donation tiers
   Built on the theme's .de_pricing-table.type-2 so the grid/ribbon behaviour
   the template already ships keeps working.
   -------------------------------------------------------------------------- */

.thy-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px 26px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(201, 162, 39, .12), transparent 58%),
    var(--thy-slate);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.thy-tier:hover {
  transform: translateY(-6px);
  border-color: var(--thy-gold);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .95), 0 0 0 1px var(--thy-gold-faint);
}

.thy-tier-featured { border-color: var(--thy-gold); }
.thy-tier-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--thy-gold-lit), var(--thy-gold));
  color: #161009;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.thy-tier-crest {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--thy-gold-dim);
  background: var(--thy-gold-faint);
  color: var(--thy-gold-lit);
  font-size: 1.5rem;
}

.thy-tier h3 { text-align: center; margin: 0 0 4px; }

.thy-tier-price {
  text-align: center;
  margin: 12px 0 6px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--thy-gold-lit);
  line-height: 1;
}
.thy-tier-price small {
  display: block;
  margin-top: 8px;
  font-family: var(--body-font);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--thy-muted);
}

.thy-tier-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  flex: 1;
  border-top: var(--thy-rule);
  padding-top: 20px;
}
.thy-tier-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--thy-parchment);
  font-size: .94rem;
  line-height: 1.5;
}
.thy-tier-list li i { color: var(--thy-gold); margin-top: .22rem; flex: none; }
.thy-tier-list li strong { color: #fff; }

/* --------------------------------------------------------------------------
   8. Payment method chooser (step two of the donation flow)
   -------------------------------------------------------------------------- */

.thy-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.thy-method { display: flex; margin: 0; }
.thy-method button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 132px;
  padding: 22px 16px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate-2);
  color: #fff;
  font-family: "Cinzel", Georgia, serif;
  font-size: .95rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.thy-method button i { font-size: 1.7rem; color: var(--thy-gold); transition: transform .22s ease; }
.thy-method button:hover {
  transform: translateY(-4px);
  border-color: var(--thy-gold);
  background: #222a33;
}
.thy-method button:hover i { transform: scale(1.12); }

.thy-order-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate-2);
  margin-bottom: 26px;
}
.thy-order-summary .thy-order-total {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.7rem;
  color: var(--thy-gold-lit);
  line-height: 1;
}

/* Payment status timeline on support-payment. */
.thy-timeline {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 24px 0;
  list-style: none;
  padding: 0;
}
.thy-timeline li {
  flex: 1;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--thy-offline);
  position: relative;
  padding-top: 30px;
}
.thy-timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: var(--thy-ink);
}
.thy-timeline li::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 11px);
  right: calc(-50% + 11px);
  height: 2px;
  background: currentColor;
  opacity: .45;
}
.thy-timeline li:last-child::after { display: none; }
.thy-timeline li.is-done { color: var(--thy-gold); }
.thy-timeline li.is-current { color: var(--thy-gold-lit); font-weight: 700; }
.thy-timeline li.is-current::before { background: var(--thy-gold-lit); }
.thy-timeline li.is-failed { color: var(--thy-ember); }

/* Pix panel — carried over from the retired account.css. */
.pix-qr {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   9. Character cards
   -------------------------------------------------------------------------- */

.thy-chars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) { .thy-chars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .thy-chars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .thy-chars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.thy-char {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate-2);
  overflow: hidden;
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
}
.thy-char:hover {
  transform: translateY(-5px);
  border-color: var(--thy-gold);
  box-shadow: 0 16px 38px -20px rgba(0, 0, 0, .95);
}

/* The vocation art is a 1:1 render with a transparent background, so it is
   contained over the card's own glow rather than cropped to fill. */
.thy-char-portrait {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(75% 65% at 50% 38%, rgba(201, 162, 39, .16), transparent 70%), #141a21;
}
.thy-char-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .5s ease;
}
.thy-char:hover .thy-char-portrait img { transform: scale(1.05); }
.thy-char-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(0deg, var(--thy-slate-2) 4%, transparent 100%);
}

.thy-char-level {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 8px;
  text-align: center;
  background: rgba(13, 16, 20, .88);
  border: 1px solid var(--thy-gold-dim);
  color: var(--thy-gold-lit);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
}
.thy-char-level small {
  display: block;
  font-family: var(--body-font);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--thy-muted);
}

.thy-char-body { position: relative; z-index: 2; padding: 4px 18px 18px; margin-top: -32px; }
.thy-char-body h4 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.thy-char-vocation {
  display: block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
  margin-bottom: 12px;
}
.thy-char-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  color: var(--thy-muted);
}
.thy-char-meta span { display: flex; align-items: center; gap: 8px; }
.thy-char-meta i { color: var(--thy-gold); width: 14px; text-align: center; flex: none; }

.thy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--thy-offline);
  flex: none;
}
.thy-dot-online { background: var(--thy-online); box-shadow: 0 0 0 3px rgba(90, 196, 125, .2); }
@media (prefers-reduced-motion: no-preference) {
  .thy-dot-online { animation: thy-pulse 2.4s ease-in-out infinite; }
  @keyframes thy-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(90, 196, 125, .22); }
    50% { box-shadow: 0 0 0 6px rgba(90, 196, 125, 0); }
  }
}

/* Anything shown from sample data must never be mistaken for real records. */
.thy-preview-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 16px;
  margin-bottom: 20px;
  border: 1px dashed rgba(201, 162, 39, .5);
  border-radius: 10px;
  background: var(--thy-gold-faint);
  color: var(--thy-gold-lit);
  font-size: .88rem;
  line-height: 1.55;
}
.thy-preview-note i { margin-top: .18rem; }
.thy-char-sample .thy-char-portrait { filter: saturate(.72); }

/* --------------------------------------------------------------------------
   10. Empty states
   -------------------------------------------------------------------------- */

.thy-empty {
  text-align: center;
  padding: 44px 26px;
  border: 1px dashed rgba(201, 162, 39, .32);
  border-radius: var(--thy-radius);
  background: rgba(23, 28, 35, .6);
}
.thy-empty i { font-size: 2.4rem; color: var(--thy-gold); opacity: .8; }
.thy-empty h4 { margin: 16px 0 8px; }
.thy-empty p { color: var(--thy-muted); max-width: 46ch; margin: 0 auto 20px; }

/* --------------------------------------------------------------------------
   11. Tables (community pages, contribution history)
   -------------------------------------------------------------------------- */

/* The scroller must be allowed to shrink. A grid or flex item defaults to
   min-width:auto, so without this the 540px table below widens its column and
   pushes the whole page sideways on a phone. */
.thy-table-wrap { overflow-x: auto; border-radius: var(--thy-radius); max-width: 100%; min-width: 0; }

.thy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.thy-table th {
  padding: 13px 16px;
  text-align: left;
  font-family: "Cinzel", Georgia, serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
  background: rgba(201, 162, 39, .08);
  border-bottom: 1px solid var(--thy-gold-dim);
  white-space: nowrap;
}
.thy-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--thy-parchment);
  font-size: .93rem;
}
.thy-table tbody tr { transition: background .18s ease; }
.thy-table tbody tr:hover { background: rgba(201, 162, 39, .06); }
.thy-table tbody tr:last-child td { border-bottom: 0; }
.thy-table .thy-rank {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  color: var(--thy-gold-lit);
  width: 64px;
}
.thy-table .thy-rank-1 { color: #ffd76a; }
.thy-table .thy-rank-2 { color: #d8dde3; }
.thy-table .thy-rank-3 { color: #d09a62; }

/* --------------------------------------------------------------------------
   12. Feature / vocation grids (marketing pages)
   -------------------------------------------------------------------------- */

/* Six feature cards read best as 3x2; auto-fit alone leaves two orphans on a
   wide screen. */
.thy-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
@media (min-width: 1100px) {
  .thy-features { grid-template-columns: repeat(3, 1fr); }
}

.thy-feature {
  padding: 28px 24px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate);
  transition: transform .26s ease, border-color .26s ease;
}
.thy-feature:hover { transform: translateY(-5px); border-color: var(--thy-gold); }
.thy-feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--thy-gold-faint);
  border: 1px solid var(--thy-gold-dim);
  color: var(--thy-gold-lit);
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.thy-feature h4 { margin: 0 0 10px; }
.thy-feature p { color: var(--thy-muted); margin: 0; line-height: 1.65; font-size: .95rem; }

/* Eight vocations: 4x2 on desktop, 2 across on phones. */
.thy-vocations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 700px) { .thy-vocations { grid-template-columns: repeat(4, 1fr); } }

.thy-vocation {
  position: relative;
  display: block;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  overflow: hidden;
  background: radial-gradient(72% 62% at 50% 40%, rgba(201, 162, 39, .17), transparent 72%), var(--thy-slate-2);
  text-decoration: none;
  aspect-ratio: 1;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.thy-vocation:hover {
  transform: translateY(-6px);
  border-color: var(--thy-gold);
  box-shadow: 0 20px 44px -24px #000;
}
.thy-vocation img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .55s ease, filter .35s ease;
  filter: saturate(.9);
}
.thy-vocation:hover img { transform: scale(1.07); filter: saturate(1.05); }
.thy-vocation-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 16px;
  background: linear-gradient(0deg, rgba(8, 10, 13, .95) 12%, transparent 100%);
}
.thy-vocation-caption h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: .04em;
}
.thy-vocation-caption span {
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
}

/* Numbered "how to start playing" steps on the download page. */
.thy-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: thy-step;
}
.thy-step {
  position: relative;
  padding: 28px 22px 22px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate);
}
.thy-step::before {
  counter-increment: thy-step;
  content: counter(thy-step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--thy-gold-lit), var(--thy-gold));
  color: #161009;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
}
.thy-step h4 { margin: 8px 0 8px; }
.thy-step p { color: var(--thy-muted); font-size: .93rem; margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------------------
   13. Account dashboard shell
   -------------------------------------------------------------------------- */

.thy-account-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
/* Grid and flex children default to min-width:auto, which lets wide content
   (tables, long unbroken strings) stretch the track instead of scrolling. */
.thy-account-grid > *,
.thy-panel > *,
.thy-stat,
.thy-tier { min-width: 0; }

.thy-account-nav {
  position: sticky;
  top: 100px;
  list-style: none;
  margin: 0;
  padding: 10px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate);
}
.thy-account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--thy-parchment);
  text-decoration: none;
  font-size: .93rem;
  transition: background .18s ease, color .18s ease;
}
.thy-account-nav a i { color: var(--thy-gold); width: 18px; text-align: center; }
.thy-account-nav a:hover { background: var(--thy-gold-faint); color: #fff; }
.thy-account-nav a.is-active { background: var(--thy-gold-faint); color: #fff; font-weight: 600; }

.thy-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.thy-identity-crest {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--thy-gold-dim);
  background: var(--thy-gold-faint);
  color: var(--thy-gold-lit);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  flex: none;
}
.thy-identity h1 { margin: 0; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem); }
.thy-identity-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* An email address is one long unbreakable token; let the badge wrap it rather
   than push the panel wider than the screen. */
.thy-identity-meta .thy-badge { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.thy-identity { min-width: 0; }
.thy-identity > div { min-width: 0; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.thy-footer {
  padding: 62px 0 0;
  border-top: 1px solid rgba(201, 162, 39, .22);
  background: linear-gradient(180deg, rgba(201, 162, 39, .05), transparent 30%), var(--thy-ink);
}
/* An auto-repeat track cannot be combined with a sized track in the same
   template — the whole declaration is dropped and the footer collapses to one
   column. Explicit breakpoints instead. */
.thy-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
@media (min-width: 700px) { .thy-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .thy-footer-grid { grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); } }
.thy-footer h5 {
  font-family: "Cinzel", Georgia, serif;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
  margin-bottom: 16px;
}
.thy-footer ul { list-style: none; margin: 0; padding: 0; }
.thy-footer li { margin-bottom: 10px; }
.thy-footer a { color: var(--thy-muted); text-decoration: none; font-size: .92rem; transition: color .18s ease; }
.thy-footer a:hover { color: var(--thy-gold-lit); }
.thy-footer-brand img { width: 46px; height: auto; margin-bottom: 14px; }
.thy-footer-brand p { color: var(--thy-muted); font-size: .92rem; line-height: 1.7; max-width: 34ch; }

.thy-social { display: flex; gap: 10px; margin-top: 18px; }
.thy-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: var(--thy-rule);
  color: var(--thy-gold-lit);
  font-size: 1.05rem;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.thy-social a:hover { background: var(--thy-gold-faint); border-color: var(--thy-gold); transform: translateY(-3px); }

.thy-subfooter {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--thy-offline);
}
.thy-subfooter a { color: var(--thy-offline); }
.thy-subfooter a:hover { color: var(--thy-gold-lit); }

/* --------------------------------------------------------------------------
   15. Header additions
   -------------------------------------------------------------------------- */

/* Replaces inline style="display:none" in header.html, which the account-page
   CSP would otherwise drop. account-nav.js toggles this class. */
.is-hidden { display: none !important; }

/* Bootstrap does not reset [hidden], and several components here set
   display:flex, which would otherwise win. payments.js relies on this to keep
   the retry warning and instructions hidden until they apply. */
[hidden] { display: none !important; }

#mainmenu a.menu-item { font-family: "Cinzel", "Oxanium", Georgia, serif; letter-spacing: .04em; }

/* Playhost numbers its top-level menu items. That is a tech-product tic; it
   reads wrong on a fantasy MMORPG, so the counter is hidden. */
#mainmenu > li::before { content: none !important; }

/* Stock theme bug: the mobile menu is positioned with width:100% AND left:20px,
   so it sits 20px past the right edge of every phone. designesia.js also sets
   the width inline, so this has to be !important to win. */
@media only screen and (max-width: 992px) {
  .header-col-mid #mainmenu { width: calc(100% - 40px) !important; }
}

.thy-lang { display: flex; gap: 6px; align-items: center; }
.thy-lang a {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--thy-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.thy-lang a:hover { color: var(--thy-gold-lit); border-color: var(--thy-gold-dim); }
.thy-lang a.is-active { color: var(--thy-gold-lit); border-color: var(--thy-gold-dim); background: var(--thy-gold-faint); }

/* --------------------------------------------------------------------------
   16. Page furniture
   -------------------------------------------------------------------------- */

/* Inner-page hero. Mirrors the theme's #subheader but owns its own spacing so
   pages stop needing inline margin hacks. */
.thy-subheader-inner { padding: 120px 0 70px; text-align: center; }
.thy-subheader-inner .thy-lead { margin-left: auto; margin-right: auto; }

/* The theme only fades the top and bottom edges of a subheader, which leaves
   the title fighting whatever the key art is doing in the middle. */
#subheader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(56% 58% at 50% 48%, rgba(13, 16, 20, .76), transparent 78%),
    linear-gradient(180deg, rgba(13, 16, 20, .72) 0%, rgba(13, 16, 20, .42) 45%, rgba(13, 16, 20, .88) 100%);
}

.thy-section { padding: 78px 0; }
.thy-section-tight { padding: 48px 0; }
.thy-section-head { text-align: center; margin-bottom: 46px; }
.thy-section-head h2 { margin: 10px 0 16px; }

.thy-divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .3), transparent); }

/* Live server status pill used in the home hero. */
.thy-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: var(--thy-rule);
  background: rgba(13, 16, 20, .72);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--thy-parchment);
}
.thy-status strong { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   17. Auth cards
   -------------------------------------------------------------------------- */

/* Full-bleed art hero for the auth pages.
   The theme has no CSS for .jarallax-img at all — #subheader only works because
   it sets position/overflow and jarallax.js does the rest. This class owns its
   own layering so the art can never paint over the form, with or without JS. */
.thy-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Capped so the hero does not stretch on very tall viewports. */
  min-height: min(100vh, 900px);
  padding: 140px 0 90px;
}
.thy-hero > .jarallax-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Busy key art needs a scrim or form labels become unreadable over it. */
.thy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(13, 16, 20, .55), transparent 75%),
    linear-gradient(180deg, rgba(13, 16, 20, .92) 0%, rgba(13, 16, 20, .74) 45%, rgba(13, 16, 20, .95) 100%);
  pointer-events: none;
}
.thy-hero > .container { position: relative; z-index: 2; }
.thy-hero .thy-panel { background: rgba(20, 25, 32, .96); backdrop-filter: blur(6px); }

.thy-auth-mark { display: block; margin: 0 auto 14px; }
.thy-auth-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin: 0 0 8px; }
.thy-auth-lead { font-size: .95rem; line-height: 1.6; margin: 0 auto 26px; max-width: 40ch; }

.thy-auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .9rem;
  color: var(--thy-muted);
  text-align: center;
}

/* Device code on the in-game sign-in page. */
.thy-code {
  display: block;
  margin: 18px 0 24px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 2.1rem;
  letter-spacing: .22em;
  color: var(--thy-gold-lit);
}

/* --------------------------------------------------------------------------
   18. Utilities and small compositions
   -------------------------------------------------------------------------- */

/* Home hero.
   The theme's .full-height is a bare 100vh, which on a very tall window turns
   the video background into the whole page. Cap it the same way .thy-hero is. */
.full-height { min-height: min(100vh, 940px) !important; }

/* jarallax injects an absolutely-positioned container for the parallax image or
   video. The theme only gives #subheader the position/overflow that keeps it
   clipped, so any other .jarallax section leaks its background over the page. */
.jarallax { position: relative; overflow: hidden; }
.jarallax > .jarallax-container { z-index: 0; }

.thy-hero-title { margin: 22px 0 18px; }
.thy-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.thy-players-link { display: inline-block; margin-top: 14px; text-decoration: none; }
.thy-status .thy-dot { background: var(--thy-offline); }
.thy-status.is-online .thy-dot,
#server-status.is-online { color: var(--thy-online); }

/* Alternating section ground, so long pages have rhythm. */
.thy-section-alt { background: linear-gradient(180deg, rgba(201, 162, 39, .04), transparent 40%), #12171d; }

/* Split call-to-action panel with artwork alongside. */
.thy-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 44px;
}
.thy-cta-panel h2 { margin: 10px 0 16px; }
.thy-cta-panel-art { display: flex; justify-content: center; }
.thy-cta-panel-art img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--thy-radius);
}
@media (max-width: 860px) {
  .thy-cta-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .thy-cta-panel-art { display: none; }
}

/* Capture mode.
   Only ever enabled by the local preview router (?shot=1), which puts .thy-shot
   on <html>. Full-page screenshots need a very tall window, and a tall window
   makes every 100vh block as tall as the whole page. Pinning those to a normal
   viewport height is what makes a full-page capture look like the real site.
   Nothing in production sets this class. */
.thy-shot .v-center,
.thy-shot .full-height,
.thy-shot .thy-hero { min-height: 820px !important; height: auto !important; }
.thy-shot #de-loader { display: none !important; }

/* --- Marketing page components ------------------------------------------- */

.thy-center-row { justify-content: center; }

/* Long-form copy: measure capped so lines stay readable. */
.thy-prose { max-width: 74ch; margin-inline: auto; }
.thy-prose p { color: var(--thy-parchment); line-height: 1.8; margin-bottom: 20px; }
.thy-prose h3 { margin: 34px 0 12px; font-size: 1.3rem; }
.thy-prose h3:first-child { margin-top: 0; }
.thy-prose-center { text-align: center; }
.thy-prose-center .thy-lead { margin-inline: auto; }

/* Download page hero panel */
.thy-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 44px;
}
.thy-download-panel h2 { margin: 10px 0 16px; }
.thy-download-art { display: flex; justify-content: center; }
.thy-download-art img { width: 100%; max-width: 320px; height: auto; }
.thy-meta-list { list-style: none; margin: 26px 0 0; padding: 0; }
.thy-meta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: var(--thy-muted);
  font-size: .93rem;
}
.thy-meta-list i { color: var(--thy-gold); width: 18px; text-align: center; }
@media (max-width: 860px) {
  .thy-download-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .thy-download-art { display: none; }
}

/* Vocation detail cards */
.thy-voc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
@media (min-width: 1100px) { .thy-voc-grid { grid-template-columns: repeat(2, 1fr); } }
.thy-voc-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate);
  transition: transform .26s ease, border-color .26s ease;
}
.thy-voc-card:hover { transform: translateY(-4px); border-color: var(--thy-gold); }
.thy-voc-card-art {
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(72% 62% at 50% 42%, rgba(201, 162, 39, .16), transparent 72%), #141a21;
  aspect-ratio: 1;
}
.thy-voc-card-art img { width: 100%; height: 100%; object-fit: contain; }
.thy-voc-card-body h3 { margin: 0 0 2px; font-size: 1.35rem; }
.thy-voc-card-body p { margin: 12px 0 0; color: var(--thy-muted); line-height: 1.65; font-size: .93rem; }
@media (max-width: 520px) {
  .thy-voc-card { grid-template-columns: 1fr; text-align: center; }
  .thy-voc-card-art { max-width: 190px; margin-inline: auto; }
}

/* The nine realms */
.thy-realms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
@media (min-width: 1100px) { .thy-realms { grid-template-columns: repeat(3, 1fr); } }
.thy-realm {
  padding: 24px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate);
  transition: transform .25s ease, border-color .25s ease;
}
.thy-realm:hover { transform: translateY(-4px); border-color: var(--thy-gold); }
.thy-realm i { color: var(--thy-gold); font-size: 1.4rem; }
.thy-realm h4 { margin: 14px 0 4px; font-size: 1.12rem; }
.thy-realm span {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--thy-gold-lit);
  margin-bottom: 10px;
}
.thy-realm p { margin: 0; color: var(--thy-muted); font-size: .9rem; line-height: 1.6; }

/* Roadmap */
.thy-roadmap { list-style: none; margin: 46px auto 0; padding: 0 0 0 38px; max-width: 760px; position: relative; }
.thy-roadmap::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--thy-gold-dim), rgba(201, 162, 39, .06));
}
.thy-roadmap-item { position: relative; padding: 0 0 34px; }
.thy-roadmap-item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--thy-offline);
  background: var(--thy-ink);
}
.thy-roadmap-item.is-done::before { border-color: var(--thy-gold); background: var(--thy-gold); }
.thy-roadmap-item.is-current::before {
  border-color: var(--thy-gold-lit);
  box-shadow: 0 0 0 5px var(--thy-gold-faint);
}
.thy-roadmap-item h4 { margin: 0 0 8px; }
.thy-roadmap-item.is-current h4 { color: var(--thy-gold-lit); }
.thy-roadmap-item p { margin: 0; color: var(--thy-muted); line-height: 1.7; }

/* About hub cards */
.thy-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
@media (min-width: 1100px) { .thy-hub { grid-template-columns: repeat(3, 1fr); } }
.thy-hub-card {
  display: block;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  overflow: hidden;
  background: var(--thy-slate);
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.thy-hub-card:hover {
  transform: translateY(-6px);
  border-color: var(--thy-gold);
  box-shadow: 0 18px 40px -22px #000;
}
.thy-hub-art { aspect-ratio: 16 / 9; overflow: hidden; background: #141a21; }
.thy-hub-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thy-hub-card:hover .thy-hub-art img { transform: scale(1.06); }
.thy-hub-body { padding: 22px; }
.thy-hub-body h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.thy-hub-body p { margin: 0; color: var(--thy-muted); font-size: .93rem; line-height: 1.65; }

.thy-stack { margin-top: 28px; }
.thy-stack-top { margin-top: 20px; }
.thy-stack-lg { margin-top: 46px; }

.thy-form-grid { max-width: 620px; }

.thy-reward {
  padding: 20px 22px;
  border: var(--thy-rule);
  border-radius: var(--thy-radius);
  background: var(--thy-slate-2);
  margin-top: 16px;
}
.thy-reward-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.thy-reward-head strong { font-family: "Cinzel", Georgia, serif; font-size: 1.15rem; color: #fff; }
.thy-reward .thy-tier-list { margin-bottom: 0; }

.thy-order-ref code {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(8, 11, 15, .8);
  border: 1px solid rgba(201, 162, 39, .2);
  color: var(--thy-gold-lit);
  font-size: .85em;
  overflow-wrap: anywhere;
}

.thy-checkout { max-width: 720px; margin-left: auto; margin-right: auto; }
.thy-search { margin-bottom: 30px; }

/* Language switcher at the foot of PHP-rendered pages. */
.thy-lang-page { justify-content: center; padding-bottom: 40px; }

/* Vocation filter chips on the highscores page. */
.thy-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.thy-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: var(--thy-rule);
  color: var(--thy-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.thy-chip:hover { color: #fff; border-color: var(--thy-gold); }
.thy-chip.is-active { background: var(--thy-gold-faint); border-color: var(--thy-gold); color: var(--thy-gold-lit); font-weight: 600; }

/* The status pill doubles as a payment-status line, so keep it readable when
   payments.js swaps its text. */
#payment-status { justify-content: center; }
#payment-status.thy-badge { display: flex; padding: 12px 16px; border-radius: 10px; white-space: normal; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  .thy-account-grid { grid-template-columns: 1fr; }
  .thy-account-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .thy-account-nav li { flex: 1 1 auto; }
  .thy-account-nav a { justify-content: center; }
}

@media (max-width: 576px) {
  .thy-panel { padding: 22px 18px; }
  .thy-tier { padding: 26px 20px 22px; }
  .thy-section { padding: 54px 0; }
  .thy-subheader-inner { padding: 100px 0 54px; }
  .thy-order-summary { flex-direction: column; align-items: flex-start; }
  .thy-timeline li { font-size: .66rem; letter-spacing: .04em; }
  .thy-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Honour the OS setting. The theme's WOW.js reveals are additive, so leaving
   elements visible is the correct fallback. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .wow { visibility: visible !important; }
}
