:root {
  color-scheme: light;
  --paper: #f4ecdf; --sheet: #fff8ec; --ink: #251b18; --sub: #62544d;
  --line: #d8c9b9; --accent: #9f3627; --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, textarea:focus-visible, summary:focus-visible, .upload:focus-within {
  outline: 2px solid #166957; outline-offset: 3px;
}
.top { margin: auto; max-width: 760px; padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font: 700 24px/1 var(--serif); letter-spacing: -.07em; white-space: nowrap; }
.brand span { display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink);
  border-radius: 50%; color: var(--paper); font: 700 17px/1 var(--serif); letter-spacing: 0; }
#badge { font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--line);
  background: var(--sheet); border-radius: 50px; padding: 6px 9px; white-space: nowrap; }
#screen { max-width: 760px; margin: auto; padding: 0 16px calc(112px + env(safe-area-inset-bottom)); outline: none; }
.intro { padding: 27px 0 22px; }
.intro.compact { padding-top: 6px; }
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .15em; font-weight: 800; color: var(--accent); }
h1 { font: 700 clamp(37px, 11vw, 70px)/.98 var(--serif); margin: 10px 0 14px; letter-spacing: -.063em; overflow-wrap: anywhere; }
h1 em { color: var(--accent); font-weight: 400; }
.trends-intro { padding: 16px 0 14px; }
.trends-intro .eyebrow { margin: 0 0 6px; font-size: 10px; }
.trends-intro h1 { font-size: clamp(25px, 7vw, 36px); line-height: 1.05; margin: 0 0 8px; }
.trends-intro > p:last-child { font-size: 13px; }
.intro p:last-child, .hint { color: var(--sub); line-height: 1.45; margin: 0; }
.hint { font-size: 13px; }
h2 { margin: 23px 0 8px; font: 700 25px/1.1 var(--serif); }
.posters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.poster { min-height: 176px; display: grid; grid-template-rows: auto 1fr auto auto; text-align: left;
  padding: 13px; position: relative; overflow: hidden; border: 0; isolation: isolate; border-radius: 16px;
  color: #fff4df; background: #3b312b; }
.poster.rust { background: radial-gradient(circle at 82% 38%,#bc6544,#762d24 64%,#4d241d); }
.poster.slate { background: radial-gradient(circle at 75% 22%,#5f7780,#26383f 67%); }
.poster.plum { background: radial-gradient(circle at 77% 22%,#8a5b70,#4b2c43 64%); }
.poster.gold { background: radial-gradient(circle at 80% 25%,#a17b37,#604020 66%); }
.poster.forest { background: radial-gradient(circle at 75% 19%,#658271,#2c453c 65%); }
.poster::before { content: ""; position: absolute; z-index: -1; inset: 7px; border: 1px solid #fff2dc44; border-radius: 11px; }
.poster-art { align-self: center; justify-self: center; font: 400 67px/.95 var(--serif); color: #ffdfb7; opacity: .9; }
.poster-number { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.poster-title { font: 700 19px/1.05 var(--serif); padding-bottom: 7px; overflow-wrap: anywhere; }
.poster-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; }
.poster-meta b { border: 1px solid #fff2dc65; border-radius: 30px; padding: 3px 7px; white-space: nowrap; }
.panel { background: var(--sheet); padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.hint + .panel { margin-top: 10px; }
.panel .hint { margin-block: 5px; }
.back { background: transparent; border: 0; padding: 14px 0; color: var(--accent); font-weight: 700; }
.upload, .choice, .balance, .work { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.choice { width: 100%; text-align: left; background: transparent; border: 0; padding: 13px 3px; }
.choice + .choice, .work + .work { border-top: 1px solid var(--line); }
.choice > span:last-child { white-space: nowrap; }
small, .file-name { display: block; color: var(--sub); margin-top: 5px; line-height: 1.25; }
.credit-total { display: block; font: 700 30px var(--serif); color: var(--accent); margin-top: 5px; }
.credit-positive { color: #286345; }
#wallet-dialog { width: min(calc(100% - 24px), 420px); max-height: 85dvh; overflow: auto;
  border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: var(--ink); background: var(--sheet); }
#wallet-dialog::backdrop { background: #251b1880; }
.wallet-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wallet-heading h2 { margin: 0; }
.wallet-current { font-size: 14px; }
.package { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; padding: 14px; }
.package:hover { background: var(--paper); }
#pending-topups .panel { margin-top: 10px; }
.upload { position: relative; padding: 12px; border-radius: 10px; border: 1px dashed #a78b7b; margin: 0 0 10px; cursor: pointer; }
.upload small { margin: 0 0 4px; }
.file-name { font-size: 12px; overflow-wrap: anywhere; }
.upload-mark { font-size: 25px; color: var(--accent); }
.photo-preview { width: 58px; height: 68px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.photo-preview[hidden] { display: none; }
.upload > span:first-of-type { flex: 1; min-width: 0; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.field { display: block; font-weight: 700; }
textarea { display: block; margin: 7px 0 12px; width: 100%; min-height: 110px; resize: vertical; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; }
.primary { width: 100%; margin-top: 12px; padding: 13px 12px; border: 0; border-radius: 11px;
  color: #fff8ec; background: var(--accent); font-weight: 750; }
.consent { display: flex; align-items: start; gap: 7px; margin-top: 10px; color: var(--sub); font-size: 13px; }
.consent input { accent-color: var(--accent); }
.error { color: #982b1d; font-size: 13px; }
.error:empty { display: none; }
.work { padding: 10px 0; flex-wrap: wrap; }
.work-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.mini { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 12px; }
.tabs { position: fixed; z-index: 2; bottom: max(9px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3,1fr); width: min(calc(100% - 28px), 410px);
  gap: 4px; background: #2b201d; border: 1px solid #594842; border-radius: 24px; padding: 5px;
  box-shadow: 0 7px 25px #27191434; }
.tabs button { background: transparent; color: #fff0dc; border: 0; border-radius: 19px;
  font-size: 11px; font-weight: 700; padding: 5px; min-height: 49px; }
.tabs button span { display: block; font-size: 19px; line-height: 1.1; }
.tabs button[aria-current] { color: var(--ink); background: #f4d3aa; }
