/*
 * PlatinumPoint — "Platinum Instrument" theme layer.
 * Design only: colors, materials, typography and light. No layout, sizing, DOM or UX changes.
 * Loaded after every other stylesheet. When an operator saves a custom accent color
 * (theme.js writes --accent-button on <html>), buttons keep that color instead of the metal.
 */
:root {
  --pp-ink: #0d1117;
  --pp-ink-2: #141a22;
  --pp-silver-hi: #f6f8fb;
  --pp-silver: #cfd6e0;
  --pp-silver-lo: #9aa5b4;
  --pp-ice: #8fb8ff;
  --pp-ice-glow: rgba(143, 184, 255, .35);
  --pp-hairline: rgba(207, 214, 224, .13);
  --pp-edge: rgba(226, 232, 240, .22);
  --pp-metal: linear-gradient(135deg, #f7f9fc 0%, #d3dae4 34%, #eef2f7 52%, #b4bdca 78%, #dfe4ec 100%);
  --pp-metal-text: linear-gradient(180deg, #ffffff 0%, #e3e8ef 46%, #a7b2c1 100%);
  --pp-accent-text: linear-gradient(180deg, #ffffff 0%, #d6e3f5 48%, #93acd0 100%);
  --pp-sheen: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, .7) 47%, transparent 58%);
  --pp-ease: cubic-bezier(.2, .7, .2, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(143, 184, 255, .3); color: #fff; }
:focus-visible { outline-color: var(--pp-ice) !important; }

/* Precision grid backdrop: a calm instrument-panel texture, behind all content. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(207, 214, 224, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 214, 224, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 130% 95% at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 130% 95% at 50% 0%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
}

/* ── Brushed-platinum primary actions ───────────────────────── */
:root:not([style*="--accent-button"]) .btn-primary,
:root:not([style*="--accent-button"]) #screen-seminar .participant-button-primary,
:root:not([style*="--accent-button"]) #screen-seminar .participant-skip,
.button-primary,
#setup-submit,
#operator-submit {
  background-color: #d9dfe8;
  background-image: var(--pp-sheen), var(--pp-metal);
  background-size: 280% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  color: #0d1117;
  border-color: rgba(255, 255, 255, .55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(13, 17, 23, .22),
    0 12px 30px -14px var(--pp-ice-glow),
    0 1px 2px rgba(0, 0, 0, .45);
  transition: background-position .9s var(--pp-ease), box-shadow .2s ease, transform .18s ease, filter .18s ease;
}
:root:not([style*="--accent-button"]) .btn-primary:hover:not(:disabled),
:root:not([style*="--accent-button"]) #screen-seminar .participant-button-primary:hover:not(:disabled),
.button-primary:hover:not(:disabled),
#setup-submit:hover:not(:disabled),
#operator-submit:hover:not(:disabled) {
  background-color: #e3e8ef;
  background-image: var(--pp-sheen), var(--pp-metal);
  background-position: -40% 0, 0 0;
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(13, 17, 23, .22),
    0 16px 36px -14px rgba(143, 184, 255, .55),
    0 1px 2px rgba(0, 0, 0, .45);
}

/* Secondary actions: machined graphite with a lit top edge. */
.btn-secondary,
.button-secondary,
#operator-reset-request {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
#operator-reset-request {
  background: #161b22;
  color: var(--pp-silver);
  box-shadow: inset 0 0 0 1px rgba(207, 214, 224, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
}
#operator-reset-request:hover:not(:disabled) {
  background: #1c232c;
  box-shadow: inset 0 0 0 1px rgba(207, 214, 224, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
  filter: none;
}

/* ── Surfaces: cards and panels read as machined metal plates ─ */
.card,
.auth-panel,
.panel,
.notice,
#day-wrap {
  border-top-color: var(--pp-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 24px 60px -34px rgba(0, 0, 0, .85);
}
.hero {
  background:
    radial-gradient(ellipse at 100% 70%, rgba(143, 184, 255, .10), transparent 62%),
    var(--card);
}

/* ── Platinum numerals: balances read like an engraved readout ─ */
.coin-value,
.balance-number {
  background-image: var(--pp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.balance-number span { -webkit-text-fill-color: var(--pp-silver-lo); }

/* Headline emphasis and wordmarks in polished platinum. */
.wordmark strong,
.header-title,
.app-title,
.brand > span,
#screen-seminar .participant-brand .header-title {
  background-image: var(--pp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-story h1 span {
  background-image: var(--pp-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand small,
.wordmark small,
#screen-seminar .participant-brand small { -webkit-text-fill-color: var(--pp-silver-lo); }

/* The signature "point": an ice-blue signal dot after the wordmark (out of flow). */
.wordmark strong,
.header-title { position: relative; }
.wordmark strong::after,
.header-title::after {
  content: '';
  position: absolute;
  top: .28em;
  right: -.5em;
  width: .26em;
  height: .26em;
  border-radius: 50%;
  background: var(--pp-ice);
  box-shadow: 0 0 .6em var(--pp-ice);
  -webkit-text-fill-color: initial;
}

/* Technical labels in a monospace instrument face. */
.story-kicker,
.eyebrow,
.wordmark small,
.brand small,
#screen-seminar .participant-eyebrow,
#screen-seminar .participant-brand small,
.story-step b,
.participant-page-footer,
.page-footer span {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans JP', monospace;
}
.story-kicker:before { background: linear-gradient(90deg, var(--pp-ice), transparent); }

/* Emblem imagery: calm, upright and softly lit (no playful tilt). */
.story-coin img {
  transform: none;
  box-shadow: 0 18px 60px -12px rgba(143, 184, 255, .28), 0 0 0 1px rgba(226, 232, 240, .14);
}
#screen-seminar .participant-coin-portrait,
.coin-portrait {
  box-shadow: 0 0 0 10px rgba(207, 214, 224, .035), 0 0 0 24px rgba(207, 214, 224, .015), 0 18px 50px -10px rgba(143, 184, 255, .25);
}
/* The sample hero image carries a fixed height attribute; keep the emblem perfectly round. */
.coin-portrait { height: auto; }
.header-coin,
.logo-img { box-shadow: 0 0 0 1px rgba(226, 232, 240, .18), 0 0 28px rgba(143, 184, 255, .22); }

/* ── Navigation and selection states: an ice-blue indicator ─── */
#screen-seminar .participant-nav-link[aria-current="page"],
.nav-link[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--pp-ice), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tab-btn.active,
.auth-tab.on,
.admin-tab[aria-selected="true"],
.filter-button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(207, 214, 224, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* Progress: a polished platinum bar with a faint signal glow. */
.progress-track span,
.participant-progress-fill {
  background-image: linear-gradient(90deg, var(--pp-silver-lo), var(--pp-silver-hi));
  box-shadow: 0 0 10px rgba(143, 184, 255, .35);
}
.status-dot { background: var(--pp-ice); box-shadow: 0 0 8px var(--pp-ice); }

/* Inputs: a precise ice-blue focus ring. */
input:focus,
textarea:focus,
select:focus,
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(143, 184, 255, .16);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .button-primary, #setup-submit, #operator-submit,
  #screen-seminar .participant-button-primary { transition: none !important; }
}
