/* Deep Cut 0.27 — a game journal, a personal shelf, a place to meet.
   Display type belongs to navigation and headings; book type to personal notes.
   Existing illustration, curtain and share-card assets remain the identity. */
:root {
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --display: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  --bg: #241c16;
  --panel: #2d231c;
  --panel2: #382b21;
  --cream: #f3e7d3;
  --muted: #c2ae96;
  --amber: #eda255;
  --line: #65503b;
  --archive-border: #b1926c40;
}
body { font-family: var(--sans); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font-family: var(--sans); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
h2 em, h3 em { font-style: normal; }
.micro { font: 600 11px/1.5 var(--sans); letter-spacing: .08em; }
.cinematic-environment { background: var(--bg); }
.appbar { height: 80px; gap: 48px; background: #241c16fa; border-bottom: 1px solid var(--archive-border); }
.brand img { width: 150px; }
.appnav { gap: 30px; }
.navbtn { font-size: 14px; font-weight: 600; }
.header-search { min-height: 40px; border-color: var(--archive-border); background: transparent; font-size: 13px; border-radius: 3px; }
.user-token { width: 40px; height: 40px; font: 600 12px var(--sans); background: transparent; border-color: var(--line); }
.screen { max-width: 1280px; padding-top: 40px; padding-bottom: 64px; }
#homeScreen { max-width: none; }
.screen-title { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.12; }
.ticket-btn, .say-btn, .discord-btn { border-radius: 3px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.ticket-btn.primary { background: var(--amber); border-color: var(--amber); color: #271a0d; }
.ticket-btn.primary:hover:not(:disabled) { background: #f4b56f; border-color: #f4b56f; }
.ticket-btn:focus-visible, .navbtn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* The shop window: one message, one invitation, an actual collection. */
.landing.hero { min-height: 590px; grid-template-columns: 1fr 1.05fr; gap: 54px; padding: 62px max(40px, calc((100vw - 1280px)/2)); background: linear-gradient(90deg,#241c16fa 0%,#241c16e8 35%,#241c1640 70%),linear-gradient(0deg,#241c16 0%,#241c1600 32%),url('environment/archive-shop.webp') center 56%/cover; }
.hero-copy { max-width: 555px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 11px; color: #d5c0a4; }
.hero-kicker:before { content: ''; width: 28px; height: 2px; background: var(--amber); flex-shrink: 0; }
.hero h1 { margin: 0 0 26px; max-width: 10ch; font: 700 clamp(44px,4.6vw,66px)/1.02 var(--display); letter-spacing: -.055em; color: var(--cream); text-wrap: balance; }
.hero-copy .lead { max-width: 39ch; font-size: 17px; line-height: 1.7; margin-bottom: 30px; color: #d7c5ae; }
.hero .cta-row { gap: 20px; align-items: center; }
.hero #howBtn { background: transparent; border-color: transparent; border-bottom-color: #a28b6d; border-radius: 0; padding: 8px 0; min-height: 36px; }
.hero .entry-note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.hero-world { padding: 30px 0 0; }
.hero-card-meta { border-top: 1px solid #37281e30; padding: 12px 10px; }
.hero-card-meta strong { font: 600 13px/1.4 var(--sans); }
.hero-example { margin-top: 30px; letter-spacing: .025em; text-transform: none; font-size: 11px; }
.home-guide { max-width: 1280px; width: calc(100% - 80px); margin: 0 auto; padding: 32px 0 42px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; border-top: 1px solid var(--archive-border); }
.home-guide article { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; align-content: start; }
.home-guide article > span { color: var(--amber); font: 12px/1.8 var(--mono); }
.home-guide h2 { margin: 0 0 7px; font: 600 15px/1.5 var(--sans); letter-spacing: 0; }
.home-guide p { grid-column: 2; margin: 0; max-width: 32ch; font-size: 13px; line-height: 1.65; color: var(--muted); }
#homeScreen:has(.landing.is-hidden) .home-guide { display: none; }

/* Archive: headings printed on the page, covers displayed on the shelf. */
.catalog-head, .panel-paper-head, .matches-layout > .panel > .panel-paper-head, .note-card > .panel-paper-head, .note-preview > .panel-paper-head { background: transparent; color: var(--cream); border-radius: 0; padding: 0 0 26px; border-bottom: 1px solid var(--archive-border); }
.catalog-head h2, .panel-paper-head h2 { color: var(--cream); font: 700 clamp(30px,3vw,40px)/1.15 var(--display); letter-spacing: -.035em; margin: 0 0 10px; }
.catalog-head p, .panel-paper-head p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.catalog-head .micro, .panel-paper-head .micro { color: var(--amber); margin-bottom: 12px; }
.panel-paper-head .stamp, .reveal-top .stamp, .shelf-kicker, .shelf-panel:after { display: none; }
.flow-steps { padding-bottom: 12px; margin-bottom: 24px; gap: 30px; }
.flow-steps li { font: 12px/1.5 var(--sans); color: var(--muted); }
.flow-steps b { border-color: var(--line); color: var(--muted); border-radius: 3px; }
.catalog-head { margin-bottom: 18px; padding-bottom: 18px; }
.catalog-search { min-height: 52px; border-radius: 3px; background: #1f1813; border-color: #8c7051; }
.catalog-filter-tabs { padding: 6px 0 12px; gap: 2px; }
.chip, .filter-btn { border-radius: 3px; font-size: 13px; }
.chip.active, .filter-btn.active { background: #e7b27618; color: #f2cc9a; border-color: #9d7448; }
.archive-actions { gap: 16px; align-items: center; }
.archive-actions .ticket-btn { background: transparent; border: 0; padding: 6px 0; min-height: 36px; color: var(--amber); font-size: 13px; }
.archive-actions > span { display: none; }
.catalog-assist { padding: 12px 0; }
.catalog-assist strong { font-size: 14px; }
.catalog-assist span { font-size: 13px; max-width: 62ch; }
.catalog-livebar { margin: 6px 0; color: var(--muted); }
.catalog-livebar.is-live { display: none; }
.discovery-heading { align-items: center; margin-bottom: 0; padding: 0; }
.discovery-heading .micro { display: none; }
.discovery-heading h3 { font: 600 16px/1.4 var(--sans); letter-spacing: 0; margin: 0; }
.catalog-results-bar { border: 0; border-bottom: 1px solid var(--archive-border); padding: 8px 0 12px; margin-bottom: 16px; }
.catalog-sort label { font-size: 12px; }.catalog-sort select { background: transparent; border-color: var(--archive-border); font-size: 12px; border-radius: 3px; }
.game-grid { gap: 28px 18px; }
.game-grid > .sleeve:not(.skeleton-card) { border: 1px solid #a181594d; border-radius: 2px; box-shadow: none; }
.game-grid > .sleeve > .sleeve-cover { padding: 10px; background: #1e1712; }
.game-grid > .sleeve > .sleeve-body { padding: 15px 14px 12px; background: #ebd9b9; }
.game-grid .sleeve-body > strong { font: 600 15px/1.45 var(--sans); letter-spacing: -.015em; min-height: 2.9em; }
.game-grid .sleeve-body > small { font: 12px/1.5 var(--sans); }
.game-grid .rarity { font: 12px/1.5 var(--sans); }
.game-tags span { font-size: 10px; border-radius: 2px; }
.shelf-panel { background: #30251c; background-image: none; border: 1px solid #a1815966; border-top: 3px solid var(--amber); border-radius: 2px; box-shadow: none; padding: 24px; top: 104px; }
.shelf-head h3 { font: 700 23px/1.2 var(--display); }.shelf-count { font: 12px var(--mono); }
.shelf-empty { background: transparent; border: 1px dashed #a1815955; border-radius: 2px; }
.shelf-item { background: #241c16; border-color: var(--archive-border); box-shadow: none; border-radius: 2px; }
.shelf-help { font-size: 13px; }

/* Connections: a directory beside a conversation, not another card grid. */
.matches-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
.matches-layout > .panel, .matches-layout > .panel:first-child { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.matches-layout > .note-preview { border-left: 1px solid var(--archive-border); padding-left: 32px; }
.match-filters { padding: 18px 0; }
.match-row { padding: 24px 12px; border-bottom: 1px solid var(--archive-border); }
.match-person strong { font-family: var(--sans); font-size: 16px; }
.score { font-family: var(--sans); font-size: 24px; letter-spacing: -.035em; }
.match-insight-head { border-color: var(--archive-border); }.match-insight-head em { font-size: 13px; }
.notes-screen { max-width: 1020px; }.note-card { background: transparent; border: 0; border-radius: 0; }
.note-status-strip { padding: 16px 0; font: 11px var(--sans); letter-spacing: .04em; }
.note-context { border: 1px solid var(--archive-border); border-radius: 2px; overflow: hidden; }
.context-shelf { background: #2c221a; padding: 24px; }
.note-exchange { background: #271e17; }
.composer textarea { background: #211912; border-color: #8c7051; border-radius: 3px; font-size: 16px; }
.bubble { border-radius: 3px; font: 17px/1.65 var(--serif); }
.reveal-discord { background: transparent; padding: 24px 0; border-top: 0; }
.archive-empty { background: transparent; border: 0; box-shadow: none; min-height: 380px; }
.archive-empty h2, .archive-empty > strong { font: 700 28px/1.2 var(--display); letter-spacing: -.03em; }
.archive-empty > p { font-size: 15px; }

/* Rarity and invitation keep the physical objects, lose the slogans. */
.reveal-board { padding: 0; background: transparent; border: 0; box-shadow: none; }
.reveal-top { padding-bottom: 28px; }.reveal-top p { color: var(--muted); font-size: 15px; }
.reveal-card { border-radius: 2px; box-shadow: 0 6px 14px #100a0620; }
.reveal-card h3 { font: 600 19px/1.35 var(--sans); letter-spacing: -.015em; }
.reveal-card .big-rarity { font-family: var(--sans); }
.reveal-line { font: 14px/1.5 var(--sans); color: var(--muted); }
.archive-identity { background: transparent; border-radius: 0; padding: 20px 0; border-left: 0; border-right: 0; }
.invite-hero, .invite-hero:has(.invite-empty:not([hidden])) { padding: 40px 0; background: transparent; border: 0; border-bottom: 1px solid var(--archive-border); border-radius: 0; gap: 64px; }
.invite-ribbon { display: none; }.invite-copy { padding: 0; }.invite-copy > .micro { display: block; }
.invite-copy h2 { font: 700 clamp(30px,3.3vw,44px)/1.12 var(--display); letter-spacing: -.04em; }
.invite-copy h2 em { font-size: .72em; margin-top: 14px; color: var(--amber); font-weight: 500; }
.invite-copy > p { font-size: 15px; line-height: 1.7; color: var(--muted); }
.invite-art { max-width: 330px; justify-self: center; }.invite-game { transform: rotate(1.5deg); }
.invite-linkbox input { background: #211912; border-color: #8c7051; }
.share-grid { gap: 48px; margin-top: 36px; }
.share-panel { padding: 0; background: transparent; border: 0; border-radius: 0; }
.share-panel h3 { font: 700 22px/1.3 var(--display); padding-bottom: 18px; }
.liner-label { font-size: 14px; }.liner-input { background: #211912; border-radius: 3px; }

/* A returning shelf lives in the same illustrated shop as the entrance. */
.home-dashboard { padding-top: 28px; }
.dashboard-shell { gap: 28px; grid-template-columns: minmax(0,1fr) 330px; }
.dashboard-hero { position: relative; min-height: 300px; margin-bottom: 28px; padding: 38px 40px; border: 1px solid #94704a; border-radius: 2px; background: linear-gradient(90deg,#201710f5 0%,#201710db 34%,#20171035 64%,#20171008),url('environment/archive-shop.webp') center 48%/cover; box-shadow: 0 12px 30px #100b0740; }
.dashboard-hero .micro { color: #efb771; }
.dashboard-hero h2 { max-width: 15ch; font: 700 clamp(34px,3.6vw,50px)/1.12 var(--serif); letter-spacing: -.025em; margin: 14px 0; }
.dashboard-hero h2 em { font-style: italic; }
.dashboard-hero p { max-width: 38ch; font-size: 15px; color: #ead6b9; }
.dashboard-hero .archive-sync { max-width: 430px; margin-top: 22px; }
.dashboard-scribble { display: none; }
.activity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0 0 28px; }
.activity-card, .activity-card:nth-child(even) { background: #30231a; border: 1px solid #816244; border-top: 3px solid #be8850; border-radius: 2px; padding: 20px; display: grid; grid-template-columns: 26px minmax(0,1fr); column-gap: 12px; align-content: start; }
.activity-card > img { width: 22px; height: 22px; margin: 3px 0 0; }
.activity-card > strong { font: 600 24px/1.2 var(--serif); letter-spacing: -.02em; min-height: 0; padding: 0; margin: 0 0 10px; }
.activity-card > span { grid-column: 2; font-size: 13px; min-height: 40px; }
.activity-card button { grid-column: 2; justify-self: start; width: auto; border: 0; border-bottom: 1px solid #a77745; border-radius: 0; background: transparent; color: #f0b877; padding: 6px 0; margin-top: 10px; min-height: 40px; font-size: 13px; }
.dashboard-panel { background: #2d2118; border: 1px solid #816244; border-radius: 2px; padding: 20px; margin-bottom: 24px; }
.dashboard-panel-head { background: #e5d1ad; border-bottom: 2px solid #ae8654; color: #38271a; padding: 12px 16px; margin: -20px -20px 18px; }
.dashboard-panel-head h3 { font: 700 23px/1.3 var(--serif); letter-spacing: -.02em; }
.dashboard-panel-head button { color: #644424; }
.dashboard-side { border: 0; padding: 0; display: block; }
.dashboard-shelf { margin-top: 8px; }
.dashboard-shelf-label { font-size: 11px; }
.dashboard-shelf-actions { gap: 8px; }
.dashboard-shelf-actions .ticket-btn { padding: 10px; }
.activity-entry { border-color: var(--archive-border); }
@media(max-width:760px) {
 .dashboard-hero { min-height: 280px; padding: 28px; background-position: 62% center; }
 .dashboard-shell { grid-template-columns: 1fr; }
}
@media(max-width:680px) {
 .home-dashboard .dashboard-hero { padding: 26px 22px; min-height: 320px; background-image: linear-gradient(90deg,#201710ed,#201710a8 55%,#20171030),url('environment/archive-shop.webp'); }
 .home-dashboard .dashboard-hero h2 { font-size: 36px; }
 .home-dashboard .dashboard-hero p { max-width: 27ch; }
 .home-dashboard .activity-card, .home-dashboard .activity-card:nth-child(even) { display: block; padding: 16px; }
 .home-dashboard .activity-card > strong { min-height: 54px; font-size: 23px; }
 .home-dashboard .activity-card > span { min-height: 60px; }
 .home-dashboard .dashboard-panel { padding: 18px; }
 .home-dashboard .dashboard-panel-head { margin: -18px -18px 18px; padding: 12px 14px; }
}
.how-card h2, .safety-card h2, .safety-card h3, .bside-card h2, .detail-copy h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
.how-card h2 { font-size: 32px; }.how-card h2 span { color: var(--ink)!important; }
.how-step b { font-family: var(--sans); }.how-number { font: 13px var(--mono); }
.safety-card, .how-card, .bside-card { border-radius: 3px; }
.data-attribution { max-width: 1280px; border-top: 1px solid var(--archive-border); font: 11px/1.65 var(--sans); letter-spacing: 0; text-transform: none; padding: 26px 0; gap: 10px 24px; }
.policy-links button { font-size: 12px; }

@media(min-width:1000px) { .pick-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 40px; } }
@media(max-width:1000px) {
 .appbar { gap: 26px; }.appnav { gap: 20px; }
 .landing.hero { gap: 30px; padding: 48px 32px; min-height: 560px; }
 .hero h1 { font-size: 52px; }.hero-copy .lead { font-size: 16px; }
 .home-guide { width: calc(100% - 64px); gap: 20px; }
 .matches-layout { gap: 26px; }.matches-layout > .note-preview { padding-left: 20px; }
 .dashboard-shell { grid-template-columns: minmax(0,1fr) 270px; gap: 26px; }
 .share-grid { gap: 28px; }
}
@media(max-width:760px) {
 .invite-hero, .invite-hero:has(.invite-empty:not([hidden])) { grid-template-columns: 1fr; gap: 24px; padding: 12px 0 32px; }
 .invite-copy h2 { font-size: 34px; }.share-grid { grid-template-columns: 1fr; gap: 36px; }
 .matches-layout { grid-template-columns: 1fr; }.matches-layout > .note-preview { border-left: 0; padding-left: 0; }
 .dashboard-shell { grid-template-columns: 1fr; }.dashboard-side { padding-left: 0; border-left: 0; }
}
@media(max-width:680px) {
 .appbar { height: 66px; padding: 0 20px; }.brand img { width: 130px; }.user-token { width: 36px; height: 36px; }
 .screen { width: calc(100% - 40px); padding-top: 26px; padding-bottom: 40px; }
 .landing.hero { display: flex; padding: 34px 24px 24px; gap: 28px; min-height: 0; background: linear-gradient(180deg,#241c16ee,#241c1699 58%,#241c16),url('environment/archive-shop.webp') 65% center/cover; }
 .hero h1 { font-size: clamp(39px,10.5vw,54px); max-width: 11ch; margin-bottom: 22px; }.hero-kicker { font-size: 10px; margin-bottom: 22px; }
 .hero-copy .lead { font-size: 15px; margin-bottom: 24px; }.hero .cta-row { gap: 18px; }
 .hero-world { padding: 12px 0 0; }.hero-example { margin-top: 20px; font-size: 10px; }
 .home-guide { width: calc(100% - 48px); grid-template-columns: 1fr; gap: 22px; padding: 26px 0; }
 .home-guide article { grid-template-columns: 24px 1fr; }.home-guide p { max-width: none; }
 .catalog-head, .panel-paper-head, .matches-layout > .panel > .panel-paper-head, .note-card > .panel-paper-head { padding: 0 0 22px; }
 .catalog-head h2, .panel-paper-head h2 { font-size: 30px; }.catalog-head .micro { font-size: 10px; }
 .flow-steps { gap: 12px; margin-bottom: 24px; }.flow-steps li { font-size: 10px; }
 .catalog-sort select { font-size: 16px; }.catalog-sort label { font-size: 12px; }
 .game-grid { gap: 22px 12px; }.game-grid > .sleeve > .sleeve-cover { padding: 6px; }.game-grid > .sleeve > .sleeve-body { padding: 12px 10px; }
 .game-grid .sleeve-body > strong { font-size: 14px; }.game-grid .rarity { font-size: 11px; }
 .shelf-panel { top: auto; left: 12px; right: 12px; padding: 12px 14px; background: #30251cfa; border-radius: 3px 3px 0 0; box-shadow: 0 -6px 20px #0003; }
 .shelf-head h3 { font-size: 19px; }.shelf-panel .ticket-btn { min-height: 44px; }
 .note-context { grid-template-columns: 1fr; }.context-shelf { padding: 18px; border-right: 0; border-bottom: 1px solid var(--archive-border); }
 .context-games { display: flex; gap: 16px; }.context-game { flex: 1; min-width: 0; }.context-game .mini-cover { height: 92px; }
 .note-status-strip { font-size: 10px; }.composer-row { flex-wrap: wrap; }.composer-row .ticket-btn { margin-left: auto; }
 .reveal-board { padding: 0; }.reveal-card h3 { font-size: 17px; }.reveal-grid { gap: 14px; }
 .home-dashboard { width: calc(100% - 40px); padding: 28px 0; }.dashboard-hero h2 { font-size: 34px; }
 .activity-card { padding: 20px 14px 20px 0; }.activity-card:nth-child(even) { padding-left: 14px; }.activity-card > strong { font-size: 22px; }
 .activity-card > img { display: none; }.activity-card > strong { padding-right: 0; }
 .share-panel { padding: 0; }.archive-empty { padding: 24px 12px; }.archive-empty h2 { font-size: 26px; }
 .data-attribution { width: calc(100% - 40px); padding: 24px 0; }.mobile-nav { background: #241c16; }.mobile-nav button.active { color: var(--amber); }
}
@media(prefers-reduced-motion:no-preference) {
 .game-grid > .sleeve { transition: border-color .16s ease, transform .16s ease; }
 .game-grid > .sleeve:hover { transform: translateY(-2px); }
}
@media(hover:none) { .game-grid > .sleeve:hover { transform: none; } }

/* The logo itself is the loading bar; verification dialogs stay above it. */
.home-loading { --load-progress: 0%; position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; background: #241c16; opacity: 1; transition: opacity .48s ease; }
.home-loading[hidden] { display: none; }
.home-loading.is-leaving { opacity: 0; pointer-events: none; }
.loading-logo { position: relative; width: min(400px,76vw); }
.loading-logo img { display: block; width: 100%; height: auto; }
.loading-logo-base { opacity: .14; filter: grayscale(1); }
.loading-logo .loading-logo-fill { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--load-progress)) 0 0); transition: clip-path .5s cubic-bezier(.22,.68,.25,1); }
.home-loading p { margin: 0; color: #c2ae96; font: 12px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
body[data-home-loading="true"] { overflow: hidden; }
body[data-home-loading="true"] #homeScreen > .landing,
body[data-home-loading="true"] #homeScreen > .home-guide,
body[data-home-loading="true"] #homeScreen > .home-dashboard { visibility: hidden; }
@media(prefers-reduced-motion:reduce) { .home-loading,.loading-logo .loading-logo-fill { transition: none; } }

/* The same logo reveal connects every page; no curtain panels. */
.page-transition { pointer-events: none; }
.page-transition.is-running { animation: page-logo-fade .72s linear both; }
.page-transition.is-running .loading-logo-fill { transition: none; animation: page-logo-fill .42s cubic-bezier(.22,.68,.25,1) both; }
@keyframes page-logo-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes page-logo-fade { 0%,58% { opacity: 1; } 100% { opacity: 0; } }
@media(prefers-reduced-motion:reduce) { .page-transition { display: none!important; } }
