/* =========================================================================
 * paidrush — the PaidRush look: pine green, gold, chunky outlined panels.
 * =========================================================================
 *
 * The tokens come first; the template's class hooks (forms, tables, cards,
 * the control panel) read them. Everything PaidRush adds — header, hero,
 * offerwall panels, loader, brand kit — follows after the template's rules.
 *
 * Rules that keep the CSP happy: fonts and images are this site's own files,
 * no @import from other origins, no inline styles anywhere.
 * ========================================================================= */

@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  /* Brand */
  --gold: #FFC62E;
  --gold-light: #FFE27A;
  --gold-deep: #F0A000;
  --green: #3BE65C;
  --ink: #0B3A2A;                    /* text on gold */
  --edge: #041E14;                   /* outlines and the solid drop under panels */
  --band: #12402D;
  --header: #071A12;
  --well: #0A1F16;

  --color-primary: var(--gold);      /* buttons, links, focus */
  --color-primary-hover: var(--gold-light);
  --color-primary-text: var(--ink);

  /* Surfaces & text */
  --color-bg: #0B2118;
  --color-surface: #143A2A;
  --color-surface-alt: #0F2D20;
  --color-text: #FFFFFF;
  --color-muted: #BFE3CC;
  --color-border: #24553F;

  /* Status */
  --color-success: #7CF29A;  --color-success-bg: #0F3D25;
  --color-info: #A9D8FF;     --color-info-bg: #12324A;
  --color-warning: #FFD98A;  --color-warning-bg: #40330E;
  --color-danger: #FFB0A8;   --color-danger-bg: #4A1C18;

  /* Shape & type */
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Arial Black", system-ui, sans-serif;
  --font-sans: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-size: 16px;
  --radius: 16px;
  --radius-small: 12px;
  --shadow: 0 4px 0 var(--edge);
  --space: 1rem;
  --width-page: 1240px;
  --width-auth: 440px;
  --width-sidebar: 256px;
  color-scheme: dark;
}

/* -- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.55;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 calc(var(--space) * .5); }
p { margin: 0 0 var(--space); }
code, pre, .secret { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--color-surface-alt); padding: .1em .35em; border-radius: var(--radius-small); }
hr { border: 0; border-top: 1px solid var(--color-border); }

/* -- Shell --------------------------------------------------------------- */

.layout { min-height: 100vh; display: flex; flex-direction: column; }
.layout__main { width: 100%; max-width: var(--width-page); margin: 0 auto; padding: calc(var(--space) * 2) var(--space); flex: 1; }
.layout__main--centered { display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; }

.layout__body { display: flex; flex: 1; width: 100%; max-width: calc(var(--width-page) + var(--width-sidebar)); margin: 0 auto; }
.layout__body > .layout__main { min-width: 0; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.layout--app .nav, .layout--app .site-footer__text { max-width: calc(var(--width-page) + var(--width-sidebar)); }
.site-footer { border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: .875rem; }
.site-footer__text { max-width: var(--width-page); margin: 0 auto; padding: var(--space); }

/* -- Navigation ---------------------------------------------------------- */

.nav { max-width: var(--width-page); margin: 0 auto; padding: .75rem var(--space); display: flex; align-items: center; gap: var(--space); flex-wrap: wrap; }
.nav__brand { font-weight: 700; color: var(--color-text); margin-right: auto; }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.nav__link { display: inline-block; padding: .4rem .7rem; border-radius: var(--radius-small); color: var(--color-muted); font: inherit; }
.nav__link:hover { background: var(--color-surface-alt); color: var(--color-text); text-decoration: none; }
.nav__link--button { background: none; border: 0; cursor: pointer; }
.nav__form { margin: 0; }

.sidebar { width: var(--width-sidebar); flex: none; padding: calc(var(--space) * 2) 0 var(--space) var(--space); }
.sidebar__title { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); padding: 0 .75rem .5rem; }
.sidebar__list { list-style: none; margin: 0; padding: 0; position: sticky; top: var(--space); }
.sidebar__link { display: block; padding: .45rem .75rem; border-radius: var(--radius-small); color: var(--color-text); }
.sidebar__link:hover { background: var(--color-surface-alt); text-decoration: none; }
.sidebar__link--active { background: var(--color-surface); color: var(--color-primary); font-weight: 600; box-shadow: var(--shadow); }

/* -- Page ---------------------------------------------------------------- */

.page__header { margin-bottom: calc(var(--space) * 1.5); }
.page__title { font-size: 1.75rem; }
.page__lead { color: var(--color-muted); font-size: 1.05rem; }
.page--home .page__title { font-size: 2.25rem; }

.section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: calc(var(--space) * 1.25);
  margin-bottom: var(--space);
}
.section__title { font-size: 1.1rem; }
h3.section__title { font-size: 1rem; margin-top: var(--space); }
.section__text { color: var(--color-muted); }
/* Inside the sign-in card, sections are plain dividers and buttons fill the width. */
.card--auth .section { background: none; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; padding: var(--space) 0 0; margin: var(--space) 0 0; }
.card--auth .btn:not(.btn--link) { width: 100%; }
.card--auth .form { margin-bottom: 0; }

/* -- Cards & stats ------------------------------------------------------- */

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--space) * 1.5); }
.card--auth { width: 100%; max-width: var(--width-auth); }
.card__brand { display: block; font-weight: 700; font-size: 1.1rem; color: var(--color-text); margin-bottom: var(--space); }
.card__title { font-size: 1.05rem; margin-bottom: .25rem; }
.card__text { color: var(--color-muted); margin: 0; font-size: .925rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space); margin-bottom: calc(var(--space) * 1.5); }
.card--link { color: inherit; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--color-primary); text-decoration: none; transform: translateY(-1px); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space); margin-bottom: calc(var(--space) * 1.5); }
.stat { display: flex; flex-direction: column; gap: .2rem; padding: var(--space); border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-left-width: 4px; }
.stat:hover { text-decoration: none; }
.stat__label { font-size: .8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat__value { font-weight: 600; }
.stat--ok { border-left-color: var(--color-success); }
.stat--warn { border-left-color: var(--color-warning); }
.stat--fail { border-left-color: var(--color-danger); }

/* -- Forms --------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: var(--space); margin-bottom: var(--space); }
.form:last-child { margin-bottom: 0; }
.form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.form--inline .field { flex: 1 1 200px; }

.field { display: flex; flex-direction: column; gap: .3rem; }
.field__label { font-weight: 600; font-size: .9rem; }
.field__input {
  width: 100%;
  padding: .55rem .7rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
}
.field__input:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; border-color: transparent; }
.field__hint { color: var(--color-muted); font-size: .85rem; margin: 0; }
.field__error { color: var(--color-danger); font-size: .85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1rem;
  font: inherit; font-weight: 600; font-size: .925rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--color-surface-alt); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--link { background: none; border-color: transparent; color: var(--color-primary); padding-left: .25rem; padding-right: .25rem; }
.btn--link:hover { background: none; text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: var(--space) 0; }
.actions__form { margin: 0; display: inline; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: var(--space); font-size: .925rem; }
.captcha { min-height: 65px; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: .75rem; }

/* -- Feedback ------------------------------------------------------------ */

.alerts { display: flex; flex-direction: column; gap: .5rem; margin-bottom: var(--space); }
.alert { padding: .7rem 1rem; border-radius: var(--radius-small); border: 1px solid transparent; margin: 0 0 var(--space); }
.alerts .alert { margin: 0; }
.alert--success { background: var(--color-success-bg); color: var(--color-success); }
.alert--info { background: var(--color-info-bg); color: var(--color-info); }
.alert--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.alert--danger { background: var(--color-danger-bg); color: var(--color-danger); }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--color-surface-alt); color: var(--color-muted); }
.badge--on { background: var(--color-success-bg); color: var(--color-success); }
.badge--off, .badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--fail { background: var(--color-danger-bg); color: var(--color-danger); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 var(--space); padding: 0; }
.tag { font-family: var(--font-mono); font-size: .8rem; padding: .15rem .5rem; border-radius: var(--radius-small); background: var(--color-surface-alt); }
.tag--grant { color: var(--color-success); }
.tag--deny { color: var(--color-danger); }

/* -- Data ---------------------------------------------------------------- */

.datalist { margin: 0 0 var(--space); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.datalist__row { display: grid; grid-template-columns: 180px 1fr; gap: var(--space); padding: .7rem var(--space); border-bottom: 1px solid var(--color-border); }
.datalist__row:last-child { border-bottom: 0; }
.datalist__key { color: var(--color-muted); }
.datalist__value { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-small); margin-bottom: var(--space); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--color-surface); }
.table th, .table td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.table thead th { background: var(--color-surface-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-surface-alt); }
.table--checks th[scope=row] { width: 220px; font-weight: 600; }
.table code { white-space: nowrap; }
.table--checks td:nth-child(2) { width: 1%; }
.table__pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .8rem; }

.log { margin: 0 0 var(--space); padding: var(--space); background: var(--color-surface-alt); border-radius: var(--radius-small); overflow-x: auto; font-size: .8rem; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }

.secret { display: inline-block; padding: .3rem .6rem; background: var(--color-surface-alt); border-radius: var(--radius-small); letter-spacing: .05em; user-select: all; }
.code-list { columns: 2; padding-left: 1.5rem; margin: 0 0 var(--space); }
.code-list__item { margin-bottom: .4rem; }
.qr-code { margin: 0 0 var(--space); }
.qr { display: block; width: 220px; height: auto; max-width: 100%; border-radius: var(--radius-small); } /* keep it black on white */

.pagination { display: flex; align-items: center; gap: var(--space); margin: var(--space) 0; }
.pagination__current { color: var(--color-muted); font-size: .9rem; }

/* -- Small screens ------------------------------------------------------- */

@media (max-width: 760px) {
  .layout__body { flex-direction: column; }
  .sidebar { width: auto; padding: var(--space) var(--space) 0; }
  .sidebar__list { display: flex; flex-wrap: wrap; gap: .25rem; position: static; }
  .datalist__row { grid-template-columns: 1fr; gap: .2rem; }
  .code-list { columns: 1; }
  .page__title { font-size: 1.5rem; }
}


/* =========================================================================
 * PaidRush
 * ========================================================================= */

h1, h2, h3, .page__title, .section__title, .card__title { font-family: var(--font-display); font-weight: 400; }
.page__title { font-size: 2rem; text-shadow: 0 3px 0 var(--edge); }
img { max-width: 100%; height: auto; }

/* Panels and controls get the outlined, solid-drop look. */
.section, .card, .datalist, .table-wrap, .stat { border: 2px solid var(--edge); box-shadow: var(--shadow); }
.table-wrap { border-radius: var(--radius-small); }
.field__input { min-height: 48px; border: 2px solid var(--edge); background: #FFFFFF; color: var(--ink); border-radius: var(--radius-small); }
.field__input::placeholder { color: #5E7A6C; }
select.field__input { appearance: auto; }
textarea.field__input { min-height: 96px; padding-top: .6rem; }
.btn { min-height: 46px; padding: 0 1.1rem; border: 2px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow); background: var(--color-surface); color: var(--color-text); font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.btn:hover { background: #1B4A36; }
.btn--primary { background: linear-gradient(var(--gold-light), #FFC21A 48%, var(--gold-deep)); border-color: var(--edge); color: var(--ink); box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .55); }
.btn--primary:hover { background: linear-gradient(#FFEFA8, #FFD04A 48%, #F5AC10); border-color: var(--edge); }
.btn--green { background: linear-gradient(#8DF79B, #2ED35C 48%, #12A046); color: #04140D; box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn--green:hover { background: linear-gradient(#A6FAB1, #48DD70 48%, #18AE50); }
.btn--link { min-height: 0; border: 0; box-shadow: none; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; }
.btn--small { min-height: 38px; padding: 0 .8rem; font-size: .95rem; }
.btn:active:not(.btn--link) { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
a { color: var(--gold); }
.table thead th { background: var(--well); }
.alert { border: 2px solid var(--edge); border-radius: var(--radius-small); font-weight: 600; }

/* -- Header -------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 30; background: var(--header); border-bottom: 2px solid var(--edge); }
.nav { position: relative; flex-wrap: nowrap; min-height: 64px; padding: .4rem var(--space); gap: .6rem; }
.nav__brand { display: flex; flex: none; margin-right: auto; }
.nav__brand img { height: 46px; width: auto; margin-left: -8px; }
.nav__tag { margin-right: auto; padding: .1rem .7rem; border: 2px solid var(--edge); border-radius: 999px; background: var(--gold); box-shadow: 0 2px 0 var(--edge); font-family: var(--font-display); font-size: .95rem; color: var(--ink); white-space: nowrap; }
.site-header--panel .nav__brand { margin-right: 0; }
.nav__tabs { display: none; list-style: none; gap: 4px; margin: 0 auto 0 .75rem; padding: 4px; border: 2px solid var(--edge); border-radius: 999px; background: var(--well); }
.nav__tab { display: block; padding: .35rem 1.1rem; border-radius: 999px; font-family: var(--font-display); font-size: 1.1rem; color: #FFFFFF; }
.nav__tab:hover { background: var(--color-surface); color: var(--gold); text-decoration: none; }
.nav__side { display: flex; align-items: center; gap: .5rem; }
.nav .btn { min-height: 44px; }
.nav__login[aria-current="page"] { color: var(--gold); }
.nav__form { margin: 0; }
.icon { flex: none; width: 22px; height: 22px; }

.nav__balance { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem 0 .5rem; border: 2px solid var(--edge); border-radius: 999px; background: var(--color-surface); box-shadow: 0 3px 0 var(--edge); font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); white-space: nowrap; }
.nav__balance:hover { text-decoration: none; background: #1B4A36; }
.nav__balance img { width: 28px; height: 28px; }
.nav__cash { display: none; margin: 0 -.5rem 0 .3rem; padding: .28rem .8rem; border-radius: 999px; background: linear-gradient(var(--gold-light), #FFC21A 48%, var(--gold-deep)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55); font-size: 1rem; color: var(--ink); }

.nav__me { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .7rem; border: 2px solid var(--edge); border-radius: 14px; background: var(--color-surface); box-shadow: 0 3px 0 var(--edge); font-family: var(--font-display); font-size: 1.05rem; color: #FFFFFF; cursor: pointer; list-style: none; user-select: none; }
.nav__me::-webkit-details-marker { display: none; }
.nav__me:hover, .nav__menu[open] .nav__me { background: #1B4A36; color: var(--gold); }
.nav__menu[open] .nav__me { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.nav__me .icon--caret { display: none; }
.nav__name { display: none; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__sheet { position: absolute; z-index: 40; top: calc(100% + 8px); left: var(--space); right: var(--space); display: grid; gap: 2px; padding: .5rem; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--color-surface); box-shadow: 0 6px 0 var(--edge); }
.nav__go { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 46px; padding: 0 .8rem; border: 0; border-radius: 10px; background: none; font-family: var(--font-display); font-size: 1.1rem; color: #FFFFFF; text-align: left; cursor: pointer; }
.nav__go:hover { background: var(--well); color: var(--gold); text-decoration: none; }
.nav__go[aria-current="page"] { background: var(--gold); color: var(--ink); }
.nav__rule { height: 2px; margin: .35rem .3rem; border: 0; background: var(--edge); }

@media (min-width: 480px) { .nav__cash { display: inline-block; } }
@media (min-width: 900px) {
  .nav__brand { margin-right: 0; }
  .nav__brand img { height: 52px; }
  .nav__tabs { display: flex; }
  .nav__menu { position: relative; }
  .nav__me .icon--menu { display: none; }
  .nav__me .icon--caret, .nav__name { display: block; }
  .nav__sheet { left: auto; right: 0; min-width: 240px; }
  .nav__go--earn, .nav__rule--earn { display: none; }
}

/* -- Control panel navigation -------------------------------------------- */

.sidebar { width: var(--width-sidebar); padding: calc(var(--space) * 2) 0 var(--space) var(--space); }
.sidebar__bar { display: none; }
.sidebar__panel { position: sticky; top: 84px; padding: .55rem; border: 2px solid var(--edge); border-radius: var(--radius); background: var(--color-surface); box-shadow: 0 5px 0 var(--edge); }
.sidebar__group { margin: .9rem .8rem .25rem; font-family: var(--font-display); font-size: .95rem; color: var(--color-muted); }
.sidebar__list { position: static; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sidebar__link { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .8rem; border-radius: 10px; font-family: var(--font-display); font-size: 1.05rem; color: #FFFFFF; }
.sidebar__link:hover { background: var(--well); color: var(--gold); text-decoration: none; }
.sidebar__link--active, .sidebar__link--active:hover { background: linear-gradient(var(--gold-light), #FFC21A 48%, var(--gold-deep)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 3px 0 var(--edge); color: var(--ink); font-weight: 400; }
.sidebar__badge { margin-left: auto; min-width: 1.7rem; padding: 0 .4rem; border: 2px solid var(--edge); border-radius: 999px; background: #E5484D; font-size: .9rem; line-height: 1.5; color: #FFFFFF; text-align: center; }
.sidebar__back { margin-top: .6rem; padding-top: .1rem; border-top: 2px solid var(--edge); border-radius: 0 0 10px 10px; color: var(--color-muted); }

@media (max-width: 899px) {
  .layout__body { flex-direction: column; }
  .sidebar { width: auto; padding: var(--space) var(--space) 0; }
  .sidebar__bar { display: flex; align-items: center; gap: .65rem; min-height: 50px; padding: 0 .9rem; border: 2px solid var(--edge); border-radius: 14px; background: var(--color-surface); box-shadow: var(--shadow); font-family: var(--font-display); font-size: 1.15rem; color: #FFFFFF; cursor: pointer; }
  .sidebar__bar .icon--caret { margin-left: auto; }
  .sidebar__panel { display: none; position: static; margin-top: .65rem; }
  .sidebar__toggle:checked ~ .sidebar__panel { display: block; }
  .sidebar__toggle:checked ~ .sidebar__bar .icon--caret { transform: rotate(180deg); }
  .sidebar__toggle:focus-visible ~ .sidebar__bar { outline: 3px solid var(--gold); outline-offset: 2px; }
}

/* -- Footer -------------------------------------------------------------- */

.site-footer { background: var(--header); border-top: 2px solid var(--edge); color: var(--color-muted); font-size: .95rem; }
.site-footer__inner { max-width: var(--width-page); margin: 0 auto; padding: 1.25rem var(--space); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.75rem; }
.site-footer__logo img { height: 46px; width: auto; margin-left: -8px; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; }
.site-footer__text { margin: 0; padding: 0; max-width: none; }
.site-footer__links--ways { flex-basis: 100%; padding-top: .5rem; border-top: 2px solid var(--edge); font-size: .9rem; }
.site-footer__links--ways a { color: var(--color-muted); }
.site-footer__links--ways a:hover { color: #FFFFFF; }

/* -- Home: hero ---------------------------------------------------------- */

.layout--home .layout__main, .layout--wide .layout__main { max-width: none; padding: 0; }
.wrap { width: 100%; max-width: var(--width-page); margin: 0 auto; padding-left: clamp(14px, 3vw, 32px); padding-right: clamp(14px, 3vw, 32px); }
.hero { background: linear-gradient(var(--band), var(--color-bg)); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 2.5rem; padding-top: clamp(26px, 4.5vw, 52px); padding-bottom: 18px; }
.hero__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.hero__title { margin: 0; font-size: clamp(2.35rem, 5.6vw, 4.1rem); line-height: 1.02; text-shadow: 0 3px 0 var(--edge); text-wrap: balance; }
.hero__lead { margin: 0; max-width: 44ch; font-size: 1.125rem; color: var(--color-muted); }
.hero__form { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 520px; margin: 0; }
.hero__form .field__input { flex: 1 1 220px; min-width: 0; min-height: 50px; box-shadow: var(--shadow); border-radius: 14px; padding: 0 1rem; }
.hero__form .btn { flex: 1 1 150px; min-height: 50px; font-size: 1.2rem; }
.hero__art { flex: 1 1 280px; min-width: 0; max-width: 500px; width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* -- Home: categories and offerwalls ------------------------------------- */

.home { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 1.4rem; padding-bottom: 2.75rem; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.cat { display: flex; align-items: center; gap: 1rem; min-height: 104px; padding: .6rem 1.1rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); color: #FFFFFF; }
.cat:hover { text-decoration: none; background: #1B4A36; }
.cat__art { display: flex; align-items: center; justify-content: center; width: 96px; flex: none; }
.cat__art--games img { width: 92px; } .cat__art--apps img { width: 58px; } .cat__art--surveys img { width: 62px; } .cat__art--ads img { width: 88px; }
.cat__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cat__name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; text-shadow: 0 3px 0 var(--edge); }
.cat__note { color: var(--color-muted); font-size: .95rem; }

.walls { display: flex; flex-direction: column; gap: 1.6rem; }
.walls__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.05; text-shadow: 0 3px 0 var(--edge); }
.wallgroup { display: flex; flex-direction: column; gap: .9rem; scroll-margin-top: 84px; }
.wallgroup__title { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: 1.6rem; line-height: 1; text-shadow: 0 3px 0 var(--edge); }
.wallgroup__title::before { content: ""; flex: none; height: 36px; background: center / contain no-repeat; }
.wallgroup__title--games::before { aspect-ratio: 300 / 196; background-image: url(img/cat-games.webp); }
.wallgroup__title--apps::before { aspect-ratio: 200 / 333; background-image: url(img/cat-apps.webp); }
.wallgroup__title--surveys::before { aspect-ratio: 220 / 324; background-image: url(img/cat-surveys.webp); }
.wallgroup__title--ads::before { aspect-ratio: 300 / 247; background-image: url(img/cat-ads.webp); }
.homecopy { display: flex; flex-direction: column; gap: 1rem; }
.homecopy .landing__heading { font-size: 1.3rem; }
.homecopy .landing__part a { font-weight: 600; }
.wallgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, 15%), 1fr)); gap: .75rem .6rem; }
.wall { display: flex; flex-direction: column; gap: .5rem; padding: .5rem .5rem .6rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); color: #FFFFFF; }
.wall:hover { text-decoration: none; background: #1B4A36; }
.wall__logo { display: flex; align-items: center; justify-content: center; height: 68px; padding: 0 .5rem; border-radius: 10px; background: var(--well); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.05; text-align: center; overflow: hidden; }
.wall__logo img { max-height: 46px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.wall__logo--light { background: #fff; }
.wall__open { display: flex; align-items: center; justify-content: space-between; padding: 0 .4rem; font-family: var(--font-display); font-size: 1rem; color: var(--gold); }
.wall__open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* -- Control panel: figures, tabs, flags, charts ---------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); color: #fff; }
a.kpi:hover { text-decoration: none; background: #1B4A36; }
.kpi__label { font-size: .82rem; color: var(--color-muted); }
.kpi__value { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--gold); }
.kpi__note { font-size: .8rem; color: var(--color-muted); }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; overflow-x: auto; padding-bottom: .3rem; }
.tabs__tab { flex: none; padding: .5rem .9rem; border-radius: 999px; background: var(--well); border: 2px solid var(--edge); color: #fff; font-weight: 600; font-size: .92rem; }
.tabs__tab:hover { text-decoration: none; background: var(--color-surface); }
.tabs__tab.is-active { background: var(--gold); color: var(--ink); }
.tabs__count { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--edge); color: #fff; font-size: .75rem; text-align: center; }
.flags { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.flag { padding: .55rem .8rem; border-radius: var(--radius-small); border-left: 5px solid var(--color-muted); background: var(--well); }
.flag--warn { border-left-color: var(--color-warning); }
.note { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: var(--radius-small); background: var(--well); overflow-wrap: anywhere; }
.note__meta { display: block; margin-bottom: .25rem; font-size: .8rem; color: var(--color-muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.chartbox { margin: 0; }
.chart { display: block; width: 100%; height: 120px; margin-top: .6rem; }
.chart__bar { fill: var(--gold); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: .9rem; }
.field--wide { flex: 1 1 320px; }
.table small { color: var(--color-muted); }

/* -- Other ways to sign in ---------------------------------------------------- */
.btn--wide { width: 100%; justify-content: center; text-align: center; }
.altsignin .field__hint { margin: .5rem 0 0; text-align: center; }

/* -- Earnings line under the header ----------------------------------------- */
.ticker { overflow: hidden; background: var(--well); border-bottom: 2px solid var(--edge); font-size: .88rem; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 2.2rem; margin: 0; padding: .45rem 0 .45rem 2.2rem; list-style: none; animation: ticker-run 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { flex: none; color: var(--color-muted); }
.ticker__wall { color: #fff; font-weight: 700; }
.ticker__user { color: #fff; }
.ticker__coins { color: var(--gold); }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker__track { animation: none; } .ticker__item[aria-hidden] { display: none; } }

/* -- Help centre and tickets ------------------------------------------------ */
.helpsearch { display: flex; gap: .5rem; margin-bottom: 1.4rem; }
.helpsearch .field__input { flex: 1; min-width: 0; }
.helptopics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.helptopic { margin: 0; scroll-margin-top: 84px; }
.helptopic__title { display: flex; align-items: center; gap: .55rem; }
.helptopic__title .icon { color: var(--gold); }
.helplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.helplist__link, .msg__article { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border-radius: var(--radius-small); background: var(--well); border: 2px solid var(--edge); color: #fff; }
.helplist__link:hover, .msg__article:hover { text-decoration: none; background: #1B4A36; }
.helplist__title { font-weight: 700; color: var(--gold); }
.helplist__sum { font-size: .88rem; color: var(--color-muted); }
.helplist--plain { gap: .4rem; }
.helplist--suggest { margin: .4rem 0 .8rem; }
.helpask--before { margin-bottom: 1.2rem; padding-bottom: .4rem; border-bottom: 2px dashed var(--edge); }
.helparticle { margin-bottom: 1.4rem; }
.helparticle code { padding: .1rem .35rem; border-radius: 5px; background: var(--well); }
.crumbs { margin-bottom: .9rem; font-size: .9rem; color: var(--color-muted); }
.ticketlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ticketrow { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); color: #fff; }
.ticketrow:hover { text-decoration: none; background: #1B4A36; }
.ticketrow__main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ticketrow__subject { font-weight: 700; overflow-wrap: anywhere; }
.ticketrow__meta { font-size: .82rem; color: var(--color-muted); }
.thread { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.msg { max-width: 46rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--color-surface); border: 2px solid var(--edge); overflow-wrap: anywhere; }
.msg--staff { align-self: flex-end; background: #1B4A36; border-color: var(--gold); }
.msg--note { align-self: flex-end; background: var(--well); border-style: dashed; }
.msg__meta { margin: 0 0 .35rem; font-size: .8rem; color: var(--color-muted); }
.msg__article { margin-top: .6rem; }
.deskgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1100px) { .deskgrid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.minilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; }
.minilist li { display: flex; justify-content: space-between; gap: .6rem; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }

/* -- Ads ----------------------------------------------------------------- */
.adslot { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 1.4rem 0; }
.adslot[hidden] { display: none; }
.adslot__label { font-size: .7rem; color: var(--color-muted); opacity: .7; }
.adslot iframe, .adslot img { display: block; border: 0; max-width: 100%; border-radius: 6px; background: var(--well); }
.page--wall .adslot { margin: 0 0 1rem; }
.adunit { position: relative; width: 100%; margin: 1.4rem auto; }
.adunit iframe { display: block; margin: auto; border: 0; padding: 0; overflow: hidden; width: 70%; height: auto; }
@media (max-width: 640px) { .adunit iframe { width: 100%; } }

/* -- Loader -------------------------------------------------------------- */

.loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.5rem; background: var(--color-bg); animation: loader-out .35s ease 3s forwards; }
.loader--done { animation: loader-out .3s ease forwards; }
.loader__stage { perspective: 700px; }
.loader__coin { display: block; width: 140px; height: 140px; background: url(img/coin.webp) center / contain no-repeat; animation: loader-flip 1.3s linear infinite; }
.loader__logo { width: 260px; max-width: 80%; }
.loader__bar { width: 230px; max-width: 70%; height: 18px; border: 2px solid var(--edge); border-radius: 999px; background: var(--well); box-shadow: 0 3px 0 var(--edge); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(var(--gold-light), #FFC21A 48%, var(--gold-deep)); animation: loader-fill 1.6s ease-out; }
.loader__text { margin: 0; font-family: var(--font-display); font-size: 1.125rem; color: var(--color-muted); }
@keyframes loader-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes loader-fill { from { width: 6%; } to { width: 100%; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader__coin, .loader__bar span { animation: none; } }

/* -- Error pages: the coin stands in for every 0 and can be flipped ------- */

.oops { max-width: 640px; margin: clamp(.5rem, 5vw, 3rem) auto; padding: clamp(1.5rem, 6vw, 3rem) clamp(1rem, 5vw, 2.5rem); text-align: center; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: 0 6px 0 var(--edge); }
.oops--bare { max-width: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.oops__code { display: flex; justify-content: center; align-items: center; gap: .03em; margin: 0 0 .1em; font-family: var(--font-display); font-size: clamp(5.5rem, 31vw, 11rem); line-height: 1; color: #FFFFFF; -webkit-text-stroke: .08em var(--edge); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--edge); perspective: 700px; }
.oops__coin { flex: none; width: .84em; height: .84em; padding: 0; border: 0; border-radius: 50%; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: oops-drop .65s cubic-bezier(.3, 1.5, .5, 1) both; }
.oops__coin + .oops__coin { animation-delay: .12s; }
.oops__coin img { display: block; width: 100%; height: 100%; }
.oops__coin--above { display: block; width: 7.5rem; height: 7.5rem; margin: 0 auto .5rem; perspective: 700px; }
.oops__coin:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.oops__coin:active img { transform: translateY(3px); }
.oops__coin.is-flipping img { animation: oops-flip .7s ease-out; }
.oops__title { margin: .35em 0 .4em; font-size: clamp(1.6rem, 6.4vw, 2.4rem); line-height: 1.12; text-shadow: 0 3px 0 var(--edge); }
.oops__line { max-width: 30em; margin: 0 auto; color: var(--color-muted); font-size: 1.08rem; }
.oops__detail { margin: 1rem 0 0; padding: .75rem 1rem; overflow-x: auto; text-align: left; white-space: pre-wrap; word-break: break-word; font-size: .85rem; background: var(--well); border: 2px solid var(--edge); border-radius: var(--radius-small); }
.oops__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.oops__toss { min-height: 1.6em; margin: 1.25rem 0 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
@keyframes oops-drop { from { transform: translateY(-140%) rotate(-40deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes oops-flip { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-38%) rotateY(900deg); } 100% { transform: translateY(0) rotateY(1800deg); } }
@media (prefers-reduced-motion: reduce) { .oops__coin, .oops__coin.is-flipping img { animation: none; } }

/* -- Offerwall page, cashout, account ------------------------------------ */

.pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.pagehead .page__title { margin: 0; }
.wallframe { display: block; width: 100%; height: min(82vh, 900px); min-height: 520px; border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); background: #FFFFFF; }
.notice { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.balance { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.balance__coins { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1; color: var(--gold); text-shadow: 0 3px 0 var(--edge); }
.balance__coins img { width: 52px; height: 52px; }
.balance__usd { color: var(--color-muted); font-size: 1.1rem; font-weight: 600; }
.amount--plus { color: var(--color-success); font-weight: 700; white-space: nowrap; }
.amount--minus { color: var(--color-danger); font-weight: 700; white-space: nowrap; }
.empty { color: var(--color-muted); margin: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose li { margin-bottom: .35rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space); }
.field--amount { max-width: 22rem; }
.payopts { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.payopts > legend { padding: 0; margin-bottom: .1rem; }
.payopt { border: 2px solid var(--edge); border-radius: var(--radius-small); background: var(--well); box-shadow: 0 3px 0 var(--edge); }
.payopt__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem 1rem; min-height: 54px; padding: .5rem .9rem .5rem 2.9rem; position: relative; cursor: pointer; }
.payopt__head::before { content: ""; position: absolute; left: .9rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -.625rem; border: 2px solid var(--edge); border-radius: 50%; background: #FFFFFF; box-sizing: border-box; }
.payopt__radio:checked + .payopt__head::before { border: .38rem solid var(--gold); background: var(--ink); outline: 2px solid var(--edge); }
.payopt__radio:focus-visible + .payopt__head { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-small); }
.payopt__radio:checked + .payopt__head { background: var(--color-surface); border-radius: var(--radius-small) var(--radius-small) 0 0; }
.payopt__name { font-family: var(--font-display); font-size: 1.15rem; color: #FFFFFF; }
.payopt__note { color: var(--color-muted); font-weight: 600; }
.payopt__radio:checked + .payopt__head .payopt__get { color: var(--gold); }
.payopt__fields { display: none; padding: .25rem .9rem 1rem; background: var(--color-surface); border-radius: 0 0 var(--radius-small) var(--radius-small); }
.payopt__radio:checked ~ .payopt__fields { display: grid; gap: .8rem; }
.payopt__blurb { margin: 0; color: var(--color-muted); }
.payopt--short { box-shadow: none; }
.payopt--short .payopt__head { cursor: default; }
.payopt--short .payopt__head::before { background: var(--color-surface); }
.payopt--short .payopt__name { color: var(--color-muted); }
.cpxwall { padding: clamp(.6rem, 2.5vw, 1.25rem); border: 2px solid var(--edge); border-radius: var(--radius); background: #FFFFFF; box-shadow: var(--shadow); color: var(--ink); min-height: 320px; }
.cpxwall__empty { margin: 2rem 0; text-align: center; font-weight: 600; }
.break { word-break: break-all; }

/* -- Brand kit ----------------------------------------------------------- */

.kit { display: flex; flex-direction: column; gap: 2.75rem; }
.kit__section { display: flex; flex-direction: column; gap: 1.1rem; scroll-margin-top: 84px; }
.kit__section > h2 { margin: 0; font-size: 1.9rem; text-shadow: 0 3px 0 var(--edge); }
.kit__lead { margin: 0; max-width: 65ch; color: var(--color-muted); }
.kit__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; font-family: var(--font-display); font-size: 1.1rem; }
.kit__nav a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space); }
.asset { display: flex; flex-direction: column; overflow: hidden; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0; }
.asset__stage { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 1.1rem; background: var(--well); }
.asset__stage--light { background: #FFFFFF; }
.asset__stage--plain { padding: 0; min-height: 0; }
.asset__stage img { max-height: 160px; width: auto; }
.asset__stage--plain img { max-height: none; width: 100%; }
.asset__body { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem 1rem; border-top: 2px solid var(--edge); font-size: .95rem; }
.asset__note { color: var(--color-muted); }
.asset__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.asset__links a, .chiplink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border: 2px solid var(--edge); border-radius: 999px; background: var(--well); color: #FFFFFF; font-weight: 600; font-size: .9rem; }
.asset__links a:hover, .chiplink:hover { background: var(--gold); color: var(--ink); text-decoration: none; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space); }
.rules > div { background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.rules ul { margin: .4rem 0 0; padding-left: 1.25rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; gap: .1rem; min-height: 150px; padding: 1rem; text-align: left; border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); font: inherit; font-size: .875rem; cursor: pointer; }
.swatch strong { font-size: 1.1rem; }
.swatch--rush-gold { background: #FFC62E; color: #0B3A2A; } .swatch--deep-gold { background: #E07E00; color: #04140D; }
.swatch--shine { background: #FFF6B0; color: #0B3A2A; } .swatch--trail-green { background: #3BE65C; color: #04140D; }
.swatch--emerald { background: #07853C; color: #FFFFFF; } .swatch--pine { background: #0B3A2A; color: #FFFFFF; }
.swatch--night-pine { background: #0A2A1E; color: #FFFFFF; } .swatch--outline { background: #041E14; color: #FFFFFF; }
.swatch--mint { background: #B9F5CF; color: #0B3A2A; } .swatch--white { background: #FFFFFF; color: #0B3A2A; }
.typeset { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space); }
.typeset > div { display: flex; flex-direction: column; gap: .6rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem; }
.typeset__display { font-family: var(--font-display); font-size: clamp(1.75rem, 6vw, 2.6rem); line-height: 1.1; }
.typeset__body { font-size: 1.15rem; }
.banners { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space); }
.banner { max-width: 100%; }
.banner .asset__stage { padding: .9rem; min-height: 0; background: repeating-conic-gradient(#12352A 0% 25%, #0D2A20 0% 50%) 50% / 20px 20px; }
.banner .asset__stage img { max-height: 620px; }
.iconrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.4rem; padding: 1.35rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }
.iconrow figure { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; font-size: .875rem; color: var(--color-muted); }
.iconrow__touch { border-radius: 13px; }
.copied { min-height: 1.5em; margin: 0; color: var(--color-muted); }

/* -- Sign-in card -------------------------------------------------------- */

.card--auth { padding: 1.5rem; }
.card__brand { display: flex; justify-content: center; margin-bottom: .75rem; }
.card__brand img { height: 64px; width: auto; }
.card--auth .page__title { font-size: 1.6rem; }

@media (max-width: 760px) {
  .wallframe { height: 78vh; min-height: 460px; }
}

/* -- Search landing pages (pages/landing) --------------------------------- */

.hero__title--landing { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.06; }
.hero__art--badge { flex: 0 1 230px; max-width: 230px; }
.landing { display: flex; flex-direction: column; gap: 2.25rem; padding-top: 1.75rem; padding-bottom: 2.75rem; }
.landing__copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.landing__part { margin: 0; padding: 1.15rem 1.25rem 1.2rem; background: var(--color-surface); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }
.landing__part p { margin: 0 0 .7rem; color: #E4F4EA; line-height: 1.65; }
.landing__part p:last-child { margin-bottom: 0; }
.landing__heading { margin: 0 0 .65rem; font-size: 1.45rem; line-height: 1.2; }
.landing__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.landing__list li { position: relative; padding-left: 1.6rem; color: #E4F4EA; line-height: 1.55; }
.landing__list li::before { content: ""; position: absolute; left: 0; top: .42em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); border: 2px solid var(--edge); }
.landing__walls .wallgrid { margin-top: .2rem; }
.landing__questions { display: flex; flex-direction: column; gap: .55rem; max-width: 860px; }
.ask { background: var(--well); border: 2px solid var(--edge); border-radius: var(--radius-small); }
.ask__question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .6rem 1rem; font-weight: 700; color: #FFFFFF; }
.ask__question::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--gold); }
.ask[open] > .ask__question { margin-bottom: 0; }
.ask[open] > .ask__question::after { content: "\2212"; }
.ask__answer { margin: 0; padding: 0 1rem 1rem; color: var(--color-muted); line-height: 1.6; }
.landing__join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem 1.4rem; background: var(--band); border: 2px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }
.landing__join-text { flex: 1 1 280px; min-width: 0; }
.landing__join .landing__heading { margin-bottom: .2rem; }
.landing__join p { margin: 0; color: var(--color-muted); }
.landing__join .btn { flex: 0 1 auto; min-height: 50px; font-size: 1.15rem; }
.landing__links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.landing__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; background: var(--well); border: 2px solid var(--edge); border-radius: 999px; color: #FFFFFF; font-weight: 600; }
.landing__links a:hover { background: #1B4A36; text-decoration: none; }
@media (max-width: 560px) {
  .hero--landing .hero__art { display: none; }
  .landing__join .btn { flex: 1 1 100%; justify-content: center; }
}

/* -- Affiliate page (members/affiliate) ----------------------------------- */

.code { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; }
.code__text { flex: 1 1 240px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; }
textarea.code__text { resize: vertical; min-height: 4.6rem; word-break: break-all; }
.code .btn { flex: 0 0 auto; align-self: flex-start; min-width: 92px; justify-content: center; }
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 1.1rem 0 0; }
.tally__item { margin: 0; padding: .75rem .9rem; background: var(--well); border: 2px solid var(--edge); border-radius: var(--radius-small); }
.tally__item dt { font-size: .85rem; color: var(--color-muted); }
.tally__item dd { margin: .1rem 0 0; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--gold); }
.codes__kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; border: 0; }
.codes__pick { position: absolute; opacity: 0; pointer-events: none; }
.codes__kind { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; background: var(--well); border: 2px solid var(--edge); border-radius: 999px; font-weight: 600; color: #FFFFFF; cursor: pointer; }
.codes__pick:checked + .codes__kind { background: var(--gold); color: #04140D; }
.codes__pick:focus-visible + .codes__kind { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.codes:has(#kind-html:checked) [data-code]:not([data-code="html"]),
.codes:has(#kind-bbcode:checked) [data-code]:not([data-code="bbcode"]),
.codes:has(#kind-link:checked) [data-code]:not([data-code="link"]) { display: none; }
.banner { padding: 1rem 0 1.1rem; border-top: 2px dashed var(--edge); }
.banner__name { margin: 0 0 .6rem; font-size: 1.15rem; }
.banner__name span { font-family: var(--font-sans); font-size: .85rem; font-weight: 400; color: var(--color-muted); }
.banner__view { margin: 0 0 .7rem; overflow-x: auto; }
.banner__view img { display: block; max-width: 100%; width: auto; height: auto; max-height: 260px; border-radius: 6px; }
.plainlist { margin: 0 0 .8rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }

