@font-face {
  font-family: Rubik;
  src: url('/fonts/rubik-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f6f6;
  --white: #fff;
  --ink: #242b2c;
  --muted: #616465;
  --line: #dedfdd;
  --orange: #f15f2c;
  --rust: #a33710;
  --apricot: #ffe9de;
  --radius: 18px;
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.55; }
#shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.7vw, 4.25rem); }
h2 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
h3 { font-size: 1.18rem; }
button, textarea, input { font: inherit; }
a { color: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .53; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid #813718; outline-offset: 3px;
}
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.symbols { display: none; }
.skip-link { position: absolute; top: -4rem; left: 1rem; padding: .5rem 1rem; border-radius: 6px; background: white; z-index: 5; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(1240px, calc(100% - clamp(32px, 8vw, 112px))); margin: 0 auto; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 78px; display: flex; align-items: center; gap: clamp(20px, 4.5vw, 68px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.main-nav { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: stretch; align-self: stretch; }
.main-nav a { display: inline-flex; position: relative; align-items: center; color: var(--muted); font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after { content: ''; position: absolute; bottom: 0; height: 3px; width: 100%; background: var(--orange); border-radius: 3px 3px 0 0; }
#account { margin-left: auto; }
.main { padding: clamp(20px, 3vw, 42px) 0 clamp(48px, 6vw, 88px); }
.button, .text-button, .out-link, .social, .tier-link, .icon-button, .code-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
}
.button, .icon-button { min-height: 44px; padding: .64rem 1.14rem; border: 1px solid transparent; border-radius: 9px; background: white; color: var(--ink); line-height: 1.35; }
.button .icon, .out-link .icon, .social .icon, .tier-link .icon { width: 1.08rem; height: 1.08rem; }
.button-primary { color: #211e1c; background: var(--orange); }
.button-primary:hover { background: #ff784b; }
.button-outline, .account, .icon-button { border-color: #cfcecb; background: #fff; }
.button-outline:hover, .account:hover, .icon-button:hover { background: #f4f2f0; border-color: #aaa9a6; }
.account { min-height: 40px; font-size: .9rem; padding: .5rem .85rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero {
  display: grid; grid-template-columns: 1.08fr 1fr; overflow: hidden;
  border-radius: 22px; background: #fff; border: 1px solid var(--line);
}
.hero-content { align-self: center; padding: clamp(24px, 3.75vw, 58px); }
.hero-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: .28rem .68rem; border-radius: 40px; background: #f5f2ef; color: #514d49; font-size: .84rem; line-height: 1.5; }
.status-pill .icon { width: 15px; height: 15px; color: var(--rust); }
.hero h1 { margin: .9rem 0; font-size: clamp(2.65rem, 5.8vw, 5.15rem); line-height: 1.04; }
.hero h1 em { color: var(--rust); font-style: normal; }
.hero-content > p { max-width: 39ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-content .actions { margin-top: 1.45rem; }
.hero-art { isolation: isolate; overflow: hidden; position: relative; display: grid; place-items: center; min-height: 300px;
  background: radial-gradient(ellipse at 75% 18%, #ffd7ba, transparent 42%), linear-gradient(145deg, #ffa877 0%, #ef7845 61%, #e45b31 100%); }
.hero-art::before { content: ''; position: absolute; width: 107%; aspect-ratio: 1; border: 1px solid #c55a3066; border-radius: 50%;
  box-shadow: 0 0 0 26px #e1774829, 0 0 0 27px #c55a305c, 0 0 0 54px #ed855126, 0 0 0 55px #c55a3052; }
.hero-art::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(#914018 1px, transparent 1px); background-size: 7px 7px; mask-image: linear-gradient(120deg, transparent, black); }
.hero-art img { display: block; width: 94%; height: 90%; position: absolute; object-fit: contain; transform: rotate(-4deg); filter: drop-shadow(6px 14px 12px #672a1736); }
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.card, .tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: clamp(22px, 2.5vw, 35px); min-width: 0; }
.section-title { display: flex; align-items: flex-start; gap: .65rem; }
.section-title > .icon { color: var(--rust); margin-top: .3rem; }
.section-title h2 { font-size: 1.45rem; line-height: 1.35; }
.heading-date { white-space: normal; }
.card > p, .muted { color: var(--muted); margin: .85rem 0 0; }
.steps { padding: 0 0 0 1.45rem; margin-top: .95rem; }
.steps li { margin: .45rem 0; padding-left: .22rem; }
.steps li::marker { color: var(--rust); }
.steps a { color: var(--rust); text-underline-offset: 3px; }
code, .code-chip { font-family: ui-monospace, monospace; }
.code-chip { border: 1px solid #ebccbc; padding: 1px 6px; border-radius: 5px; color: #843412; background: #fff4ec; white-space: nowrap; }
.code-chip .icon { width: 13px; height: 13px; }
.card .in-joke { display: flex; align-items: center; gap: 7px; font-size: .87rem; color: #67625f; border-top: 1px solid #e7e5e2; padding-top: .75rem; margin-top: .9rem; }
.in-joke .icon { width: 15px; height: 15px; }
.metrics { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 1.25rem; }
.metric { display: flex; gap: .54rem; align-items: center; min-width: 88px; }
.metric > .icon { color: var(--rust); }
.metric dt { color: var(--muted); line-height: 1.3; font-size: .86rem; }
.metric dd { font-size: 1.55rem; line-height: 1.3; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin-top: 1rem; }
.tags li { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; border-radius: 7px; padding: .28rem .55rem; border: 1px solid var(--line); background: #faf9f8; overflow-wrap: anywhere; }
.tags .icon { width: 15px; height: 15px; }
.tags small { padding-left: .4rem; color: var(--muted); font-size: .8rem; }
.subscriptions { margin-top: clamp(34px,4vw,56px); }
.section-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.2rem; }
.section-lead p { margin-top: .38rem; color: var(--muted); }
.out-link, .tier-link { color: var(--rust); text-underline-offset: 3px; }
.out-link:hover, .tier-link:hover, .social:hover { text-decoration: underline; }
.out-link { flex: none; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.tier { overflow: hidden; display: flex; flex-direction: column; }
.tier-image { width: 100%; aspect-ratio: 2.35; background-size: cover; background-position: center; }
.tier-1 { background-image: url('/tier-limited.webp'); background-position: center 43%; }
.tier-2 { background-image: url('/tier-support.webp'); }
.tier-3 { background-image: url('/tier-chat.webp'); background-position: center 42%; }
.tier-body { flex: 1; display: flex; align-items: flex-start; flex-direction: column; padding: 1.35rem; }
.tier-price { margin: .5rem 0; font-size: 1.48rem; line-height: 1.2; }
.tier-price small { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.tier-desc { margin-bottom: 1rem; color: var(--muted); font-size: .96rem; }
.tier-link { margin-top: auto; min-height: 40px; }
.footer { background: var(--ink); color: #fbf9f7; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2.1rem 0; }
.author { display: flex; align-items: center; gap: 14px; }
.author img { border-radius: 14px; border: 1px solid #5c5d5b; width: 60px; height: 60px; }
.author h2 { font-size: 1.28rem; }
.author p { color: #cdcac7; font-size: .95rem; }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.social { min-height: 40px; font-size: .94rem; }
.social .icon { color: #ffc7a6; }
.page-heading { margin: .4rem 0 1.6rem; }
.page-heading p { color: var(--muted); margin-top: .55rem; }
.empty, #round-form { max-width: 780px; }
.empty p { margin-bottom: 1rem; }
.prize-list, .history-list { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.prize-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: .85rem 0; border-top: 1px solid var(--line); }
.prize-list li p { font-size: .92rem; color: var(--muted); margin-top: .25rem; }
.archive { margin-top: 18px; }
.history-list + .button, .card .actions { margin-top: 1.2rem; }
.round-row { border-top: 1px solid var(--line); }
.round-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding: .85rem .3rem; border: 0; color: var(--ink); background: white; text-align: left; }
.round-toggle:hover { background: #faf8f6; }
.round-toggle strong, .round-toggle small { display: block; }
.round-toggle strong, strong, b { font-weight: 500; }
.round-toggle small, .history-count { color: var(--muted); font-size: .88rem; }
.round-toggle[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.round-detail { margin: 0 0 1rem; padding: .9rem; border-radius: 8px; background: #faf8f6; }
.history-period { color: var(--muted); font-size: .9rem; margin: 0 0 .7rem; }
.round-detail .tags { margin-top: .5rem; }
.chat-line { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: var(--muted); margin-bottom: 1rem; font-size: .95rem; }
#round-form { margin-top: 1.2rem; }
#round-form label { display: block; }
#round-form p, .field-help { color: var(--muted); font-size: .93rem; }
#round-form textarea { display: block; width: 100%; margin: .7rem 0 .3rem; border: 1px solid #c9c5c1; border-radius: 8px; background: #fff; padding: .75rem; resize: vertical; min-height: 130px; font: .94rem/1.5 ui-monospace, monospace; }
.field-help { margin-bottom: 1rem; }
.notice { display: flex; align-items: flex-start; gap: .55rem; padding: .78rem 1rem; margin: 0 0 1rem; border-radius: 9px; background: #fff1e9; border: 1px solid #eccab8; color: #763413; }
.notice > .icon { margin-top: 3px; width: 17px; height: 17px; }
.notice.danger { background: #fff0ed; color: #7e2e23; }
.text-button { border: 0; padding: 0 .25rem; color: inherit; text-decoration: underline; background: none; }
#toast { position: fixed; z-index: 4; bottom: 20px; left: 50%; transform: translate(-50%,12px); background: var(--ink); color: #fff; border-radius: 9px; padding: .7rem 1.1rem; max-width: 90vw; opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
dialog { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: #19191980; }
#dialog-inner { padding: 1.5rem; }
#dialog-inner header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
#dialog-inner h2 { font-size: 1.35rem; overflow-wrap: anywhere; }
#dialog-inner p { color: var(--muted); margin: .85rem 0 1.15rem; }
.icon-button { width: 34px; min-height: 34px; font-size: 0; gap: 0; padding: 6px; flex: none; }
.icon-button .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .mast-inner { gap: clamp(18px,3vw,26px); }
  .main-nav { gap: 20px; }
  .overview { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .tiers { gap: 12px; }
  .tier-body { padding: 1.05rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .mast-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 11px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; margin-top: 7px; }
  .main-nav a { padding: 9px 0 11px; font-size: .88rem; }
  .brand { font-size: 1.13rem; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .account { min-height: 34px; font-size: .83rem; }
  .hero { grid-template-columns: 1fr; border-radius: 16px; }
  .hero-content { padding: 24px; }
  .hero h1 { margin: .7rem 0; font-size: clamp(2.45rem, 10vw, 3.5rem); }
  .hero h1 br { display: none; }
  .hero h1 em::before { content: ' '; }
  .hero-content > p { max-width: none; }
  .hero-content .actions { margin-top: 1rem; }
  .hero-art { min-height: 170px; height: clamp(155px, 44vw, 230px); }
  .hero-art img { width: 84%; height: 100%; }
  .overview { margin-top: 14px; gap: 14px; }
  .button { font-size: .92rem; }
  .section-lead { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .tiers { grid-template-columns: 1fr; gap: 14px; }
  .tier-body { padding: 1rem 1.25rem; }
  .tier-image { aspect-ratio: 2.8; }
  .round-toggle { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
  .round-toggle > .icon { grid-column: 2; grid-row: 1 / 3; }
  .round-toggle .history-count { grid-column: 1; grid-row: 2; }
  .footer-inner { padding: 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
