/* theredeemcodes.com — one stylesheet for the whole site.
   Palette: postal teal, ticket mustard, stamp red, ink, paper. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --teal: #0E4D53;
  --teal-hover: #0B3E43;
  --teal-soft: #E1ECEA;
  --mustard: #F2C744;
  --mustard-deep: #C99A1E;
  --mustard-soft: #FBF0C9;
  --red: #C8324A;
  --red-soft: #F8E3E6;
  --ink: #1A1F24;
  --muted: #56615C;
  --paper: #F4F6F1;
  --white: #FFFFFF;
  --line: #D5DBD3;
  --green: #2F7A4D;
  --green-soft: #E2F0E6;

  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Type scale (major third) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.5rem;
  --t-3xl: clamp(2.5rem, 5.5vw + 0.5rem, 4.25rem);

  --wrap: 72rem;
  --radius: 10px;
  --notch: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: var(--t-2xl); font-weight: 700; }
h2 { font-size: var(--t-xl); font-weight: 700; }
h3 { font-size: var(--t-lg); font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mustard-deep); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand b { color: var(--teal); font-weight: 700; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; }
.account { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); object-fit: cover; flex: none; }
.avatar-fallback { display: inline-grid; place-items: center; color: var(--teal); font-weight: 700; font-size: 0.875rem; }
.site-header .menu-btn { display: none; }
.nav a.btn, .nav a.btn:hover { color: var(--white); text-decoration: none; }
@media (max-width: 52rem) {
  .site-header .menu-btn { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.65rem 0; font-size: var(--t-md); }
  .site-header .wrap { position: relative; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: var(--t-sm); font-weight: 650; line-height: 1;
  padding: 0.8rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--teal); color: var(--white); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, transform 0.08s;
}
.btn:hover { background: var(--teal-hover); color: var(--white); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-lg { font-size: var(--t-md); padding: 1rem 1.5rem; }
.btn-ticket { background: var(--mustard); color: var(--ink); border-color: var(--ink); }
.btn-ticket:hover { background: #E9B92C; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--red); border-color: #E9B8C0; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 0.55rem 0.85rem; font-size: var(--t-xs); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }

label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: 0.35rem; }
.hint { font-size: var(--t-xs); color: var(--muted); margin-top: 0.35rem; font-weight: 400; }
input[type="text"], input[type="url"], input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; font-size: var(--t-md); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
textarea.codes { font-family: var(--mono); font-size: var(--t-sm); min-height: 12rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 600; font-size: var(--t-sm); margin-bottom: 0.5rem; padding: 0; }
.choice { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; margin-bottom: 0.5rem; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: 0.3rem; accent-color: var(--teal); }
.choice strong { display: block; font-size: var(--t-md); }
.choice span { font-size: var(--t-sm); color: var(--muted); }
.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; }
.check input { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; }

/* ---------- Notices ---------- */
.notice { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.25rem; font-size: var(--t-sm); }
.notice p:last-child { margin: 0; }
.notice.warn { border-color: var(--mustard-deep); background: var(--mustard-soft); }
.notice.error { border-color: var(--red); background: var(--red-soft); }
.notice.ok { border-color: var(--green); background: var(--green-soft); }

.toast-zone { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 50; display: grid; gap: 0.5rem; width: min(30rem, calc(100% - 2rem)); }
.toast { background: var(--ink); color: var(--white); padding: 0.85rem 1.1rem; border-radius: 10px; font-size: var(--t-sm); box-shadow: 0 8px 24px rgba(26, 31, 36, 0.25); }
.toast.error { background: var(--red); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--t-xs); font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); white-space: nowrap; }
.chip.mustard { background: var(--mustard-soft); color: #7A5A00; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.grey { background: #E7EAE5; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: var(--t-3xl); letter-spacing: -0.03em; line-height: 1.02; max-width: 12ch; }
.hero .lede { font-size: var(--t-lg); color: var(--muted); max-width: 34ch; line-height: 1.45; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; font-size: var(--t-sm); color: var(--muted); }
.hero-stats strong { display: block; font-size: var(--t-xl); color: var(--ink); line-height: 1.1; }
@media (max-width: 52rem) {
  .hero { padding: 2rem 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- The ticket (signature element) ---------- */
.ticket {
  --stub: 9.5rem;
  position: relative; display: grid; grid-template-columns: 1fr var(--stub);
  background: var(--mustard); color: var(--ink); border-radius: var(--radius);
  filter: drop-shadow(0 1px 0 var(--mustard-deep)) drop-shadow(0 14px 28px rgba(14, 77, 83, 0.18));
  /* Notches top and bottom where the perforation runs */
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: 1.4rem 1.5rem; min-width: 0; }
.ticket-stub {
  padding: 1.4rem 1.1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background-image: linear-gradient(var(--ink) 50%, transparent 50%);
  background-size: 2px 10px; background-repeat: repeat-y; background-position: left top;
}
.ticket-hero { transform: rotate(-3deg); max-width: 30rem; margin-left: auto; }
a.ticket, a.ticket:hover { color: var(--ink); text-decoration: none; }
a.ticket:hover .t-name { text-decoration: underline; }
.ticket-hero .t-code { white-space: nowrap; font-size: clamp(0.95rem, 3.6vw, 1.35rem); }
@media (max-width: 52rem) { .ticket-hero { margin: 0 auto; transform: rotate(-2deg); } }
.ticket-hero .ticket-main { padding: 1.75rem; }
.ticket .t-app { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 1rem; }
.ticket .t-app img, .ticket .t-app .icon-ph { width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); flex: none; object-fit: cover; }
.ticket .t-name { font-weight: 700; font-size: var(--t-lg); line-height: 1.15; }
.ticket .t-dev { font-size: var(--t-sm); opacity: 0.8; }
.ticket .t-code { font-family: var(--mono); font-size: 1.35rem; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.6); border-radius: 6px; padding: 0.55rem 0.75rem; display: inline-block; word-break: break-all; }
.ticket .t-big { font-size: var(--t-2xl); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ticket .t-label { font-size: var(--t-xs); font-weight: 600; margin-top: 0.3rem; }
@media (max-width: 30rem) { .ticket { --stub: 6.5rem; } .ticket .t-big { font-size: var(--t-xl); } }

/* ---------- Giveaway list (ticket strips) ---------- */
.list-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin: 1rem 0 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter { font: inherit; font-size: var(--t-sm); font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sort select { width: auto; padding: 0.45rem 0.6rem; font-size: var(--t-sm); }
.strips { display: grid; gap: 0.85rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.strip {
  --stub: 8.5rem;
  position: relative; display: grid; grid-template-columns: 1fr var(--stub); background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  -webkit-mask: radial-gradient(circle 9px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at calc(100% - var(--stub)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at calc(100% - var(--stub)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.strip:hover { color: var(--ink); text-decoration: none; border-color: var(--teal); }
.strip:hover .s-title { text-decoration: underline; }
.strip .s-main { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; min-width: 0; }
.strip .s-main img, .strip .icon-ph { width: 60px; height: 60px; border-radius: 14px; flex: none; object-fit: cover; background: var(--teal-soft); }
.strip .s-text { min-width: 0; }
.strip .s-title { font-weight: 700; font-size: var(--t-md); line-height: 1.25; }
.strip .s-sub { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .s-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.strip .s-stub { background: var(--mustard); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.75rem;
  background-image: linear-gradient(var(--ink) 50%, transparent 50%); background-size: 2px 8px; background-repeat: repeat-y; background-color: var(--mustard); }
.strip .s-stub.done { background-color: #E7EAE5; }
.strip .s-count { font-weight: 700; font-size: var(--t-xl); line-height: 1; }
.strip .s-of { font-size: var(--t-xs); font-weight: 600; margin-top: 0.25rem; }
@media (max-width: 34rem) { .strip { --stub: 6rem; } .strip .s-main img, .strip .icon-ph { width: 48px; height: 48px; border-radius: 12px; } }

.empty { padding: 2.5rem 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.band { background: var(--teal); color: #E8F1EF; }
.band h2, .band h3 { color: var(--white); }
.band a { color: var(--mustard); }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--mustard); color: var(--ink); font-weight: 700; margin-bottom: 0.75rem; }
.steps h3 { font-size: var(--t-md); margin-bottom: 0.3rem; }
.steps p { font-size: var(--t-sm); margin: 0; opacity: 0.9; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Giveaway page ---------- */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start; }
@media (max-width: 56rem) { .g-layout { grid-template-columns: 1fr; } }
.g-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.g-head img, .g-head .icon-ph { width: 88px; height: 88px; border-radius: 20px; flex: none; object-fit: cover; background: var(--teal-soft); }
.g-head h1 { font-size: var(--t-2xl); margin: 0 0 0.25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.5rem 0; font-size: var(--t-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.details { white-space: pre-line; max-width: 65ch; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h2 { font-size: var(--t-lg); }
.panel + .panel { margin-top: 1rem; }
.sticky { position: sticky; top: 5.5rem; }
.meter { height: 8px; background: #E7EAE5; border-radius: 999px; overflow: hidden; margin: 0.6rem 0 0.4rem; }
.meter span { display: block; height: 100%; background: var(--teal); border-radius: inherit; }

/* Reveal: the stub tears off and shows the code */
.reveal { margin-top: 1rem; }
.reveal .ticket { --stub: 0px; grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
.reveal .ticket-main { padding: 1.25rem; }
.tear { animation: tear 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: 0 0; }
@keyframes tear { 0% { transform: translateY(-10px) rotate(-4deg); opacity: 0; } 60% { transform: translateY(2px) rotate(0.6deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tear { animation: none; } * { scroll-behavior: auto !important; } }
.code-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.redeem-steps { font-size: var(--t-sm); margin: 0.75rem 0 0; padding-left: 1.2rem; }
.redeem-steps li { margin-bottom: 0.25rem; }

/* ---------- Dashboard ---------- */
.page-head { padding: 2.25rem 0 1rem; }
.page-head p { color: var(--muted); max-width: 60ch; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; font-size: var(--t-sm); padding: 0.75rem 1rem; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--mustard-deep); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 600; color: var(--muted); background: #FAFBF8; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .who { display: flex; gap: 0.6rem; align-items: center; }
td .who .avatar { width: 28px; height: 28px; }
.app-rows { display: grid; gap: 0.75rem; }
.app-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.app-row img, .app-row .icon-ph { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--teal-soft); }
.app-row .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 40rem) { .app-row { grid-template-columns: 48px 1fr; } .app-row .actions { grid-column: 1 / -1; justify-content: flex-start; } }
.verify-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.token { font-family: var(--mono); font-size: 1.05rem; background: var(--mustard-soft); border: 1.5px dashed var(--mustard-deep); padding: 0.45rem 0.7rem; border-radius: 6px; display: inline-block; user-select: all; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 44rem) { .methods { grid-template-columns: 1fr; } }
.method { border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; }
.method h4 { margin: 0 0 0.4rem; font-size: var(--t-md); }
.method ol { padding-left: 1.2rem; font-size: var(--t-sm); margin: 0 0 1rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0.5rem 0 1.5rem; }
.stat strong { display: block; font-size: var(--t-xl); line-height: 1.1; }
.stat span { font-size: var(--t-xs); color: var(--muted); }
.bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.spacer { flex: 1; }
details.more { margin-top: 1rem; }
details.more.section-tight { padding: 0.5rem 0; margin-top: 1.5rem; }
details.more summary { cursor: pointer; font-weight: 600; font-size: var(--t-sm); }

/* ---------- Prose pages ---------- */
.prose { padding: 2.5rem 0 4rem; }
.prose h1 { font-size: var(--t-2xl); }
.prose h2 { font-size: var(--t-lg); margin-top: 2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--muted); font-size: var(--t-sm); }
.faq dt { font-weight: 650; margin-top: 1.5rem; }
.faq dd { margin: 0.35rem 0 0; color: #2F3833; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: var(--t-sm); color: var(--muted); margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer .legal { margin-left: auto; }

.loading { color: var(--muted); padding: 2rem 0; }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; vertical-align: -0.15em; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal .t-code { display: block; margin-bottom: 0.85rem; font-size: 1.25rem; }
.my-list { display: grid; gap: 1rem; }
.my-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; }
.my-item .s-main { display: flex; gap: 0.9rem; align-items: center; min-width: 0; }
.my-item img, .my-item .icon-ph { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex: none; background: var(--teal-soft); }
.my-item .reveal { margin: 0; }
@media (max-width: 44rem) { .my-item { grid-template-columns: 1fr; } }
.ticket-hero .t-code { max-width: 100%; overflow: hidden; }
@media (max-width: 30rem) { .ticket-hero .t-code { letter-spacing: 0.04em; } .ticket-hero .ticket-main { padding: 1.25rem; } }
.after-list { margin-top: 2.5rem; }
