@charset "UTF-8";
:root {
  --paper: #f5f2e9;
  --card: #fcfaf3;
  --ink: #303b2c;
  --muted: #69735e;
  --line: #d8ddcb;
  --green: #405534;
  --soft-green: #e5ebdb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Courier New', monospace;
  --tabs: calc(72px + env(safe-area-inset-bottom, 0px));
  --header: calc(64px + env(safe-area-inset-top, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 85px 0; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #bc944e; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: 38px; letter-spacing: -1.3px; line-height: 1.12; }
h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.5px; }
h3 { font-size: 21px; line-height: 1.2; }
.hidden, [hidden] { display: none !important; }
.quiet { color: var(--muted); font-size: 14px; }
.center { text-align: center; margin: 24px 0; }
.ui-icon { width: 24px; height: 24px; flex-shrink: 0; }
.oddling-mark { width: 28px; height: 28px; flex-shrink: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
.app-header { height: var(--header); position: fixed; inset: 0 0 auto; z-index: 15; padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 26px var(--serif); letter-spacing: -.8px; min-height: 44px; }
.brand span { margin-left: -8px; color: #a5ad85; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.account-link { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #ffffff45; border-radius: 50%; }
.playing .app-header { color: #fff9e9; }
.playing .account-link { background: #23302240; backdrop-filter: blur(8px); }
.browsing .app-header { background: #f5f2e9f5; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.browsing .account-link { background: var(--soft-green); border-color: var(--line); }
.tab-bar { position: fixed; inset: auto 0 0; height: var(--tabs); padding-bottom: env(safe-area-inset-bottom, 0px); display: flex; justify-content: center; z-index: 20; background: #f8f6edf5; backdrop-filter: blur(16px); border-top: 1px solid #cacfbdaa; }
.tab { flex: 1; max-width: 190px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: #727b64; font-size: 13px; font-weight: 500; position: relative; isolation: isolate; }
.tab .ui-icon { width: 24px; height: 24px; }
.tab.active { color: #344d29; font-weight: 650; }
.tab.active:before { content: ''; position: absolute; z-index: -1; width: 66px; height: 34px; top: 7px; background: #e1e8d5; border-radius: 20px; }
.app-main { padding: calc(var(--header) + 22px) 20px calc(var(--tabs) + 20px); max-width: 880px; margin: 0 auto; }
.app-footnote { color: var(--muted); font-size: 13px; text-align: center; margin: 30px 0 12px; }
.flash { border: 1px solid #b5c69f; background: #e8eedf; padding: 14px 16px; border-radius: 12px; color: #354b2a; font-size: 15px; margin-bottom: 16px; }
.flash.alert, .form-errors { background: #f4e7d4; border-color: #c8ad7e; color: #785426; }
.playing .flash-stack { position: absolute; top: calc(var(--header) + 8px); left: 16px; right: 16px; z-index: 10; max-width: 500px; margin: auto; pointer-events: none; }

/* The riverbank is the entire play surface, on a phone or a larger screen. */
.playing { height: 100dvh; overflow: hidden; background: #464c36; }
.game-main { position: fixed; inset: 0 0 var(--tabs); }
.riverbank-game { height: 100%; width: 100%; position: relative; isolation: isolate; color: #fff9e9; overflow: hidden; }
.river-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; z-index: -2; }
.riverbank-game:after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #172117b8 0%, #1d281944 22%, #2d302315 36%, #252c2080 72%, #1d291de8 100%); pointer-events: none; }
.bank-hud { position: absolute; top: calc(var(--header) + 12px); left: 12px; right: 12px; text-align: center; text-shadow: 0 2px 7px #1a261b; }
.bank-hud h1 { font: 500 13px var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.bank-stats { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 13px; margin-top: 6px; }
.bank-stats strong { font-weight: 700; }
.bank-stats a { display: flex; gap: 4px; align-items: center; min-height: 40px; }
.bank-stats > span + span:before { content: '·'; opacity: .7; margin-right: 12px; }
.bank-stats a:before { content: '·'; opacity: .7; margin-right: 7px; }
.reveal-zone { position: absolute; inset: calc(var(--header) + 81px) 20px 147px; max-width: 550px; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.reveal-art { width: 100%; height: clamp(130px, 24dvh, 270px); flex-shrink: 1; min-height: 80px; position: relative; display: flex; align-items: center; justify-content: center; }
.result-art { height: 100%; width: 100%; max-width: 300px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 15px 13px #20241870); }
.find-glow { position: absolute; inset: -30px -10px; background: radial-gradient(ellipse closest-side, #fff4ccaa, #e7daa15e 55%, transparent); opacity: 0; pointer-events: none; }
.has-find .find-glow { opacity: .8; }
.remarkable .find-glow { background: radial-gradient(ellipse closest-side, #f5e3b4df, #d8c69080 55%, transparent); opacity: 1; }
.reveal-copy { width: 100%; text-shadow: 0 2px 12px #142015, 0 1px 3px #142015; flex-shrink: 0; }
.reveal-heading { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; margin: 8px 0; }
.reveal-copy h2 { font-size: clamp(28px, 7vw, 38px); line-height: 1.08; color: #fff9e9; margin: 5px auto 9px; max-width: 500px; text-wrap: balance; }
.reveal-description { font: italic 17px/1.4 var(--serif); max-width: 330px; margin: 0 auto; text-wrap: pretty; }
.rarity { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .7px; text-transform: uppercase; color: #5e7050; }
.rarity:before { content: ''; display: inline-block; height: 5px; width: 5px; background: currentColor; border-radius: 50%; margin-right: 6px; vertical-align: 2px; }
.rarity-uncommon { color: #42684d; }
.rarity-rare { color: #3b6579; }
.rarity-epic { color: #89671d; }
.rarity-legendary { color: #955727; }
.rarity-mythic { color: #765095; }
.reveal-copy .rarity { color: #fff7dd; padding: 2px 10px; border: 1px solid #fbf2d253; border-radius: 20px; background: #303c2870; font-size: 12px; text-shadow: none; }
.reveal-copy .rarity-legendary, .reveal-copy .rarity-epic { color: #ffe0a3; border-color: #e4c28580; }
.reveal-copy .rarity-mythic { color: #eddaff; border-color: #d9b6f5; }
.reveal-provenance { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 16px; font-size: 13px; margin-top: 4px; text-shadow: 0 2px 6px #172415; flex-shrink: 0; }
.reveal-provenance a { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 4px; }
.reveal-provenance > span { color: #efeacf; }
.hunt-controls { position: absolute; bottom: 24px; left: 20px; right: 20px; max-width: 410px; margin: auto; text-align: center; }
.search-hint { font-size: 14px; line-height: 1.35; margin: 0 0 14px; min-height: 38px; display: flex; align-items: end; justify-content: center; color: #f1eedf; text-shadow: 0 2px 6px #192517; text-wrap: balance; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--green); background: var(--green); color: #fff9e9; border-radius: 12px; font-size: 16px; font-weight: 550; line-height: 1.4; transition: background .15s, transform .15s; }
.button:hover { background: #304429; }
.button:active { transform: translateY(1px); }
.button-outline { background: transparent; border-color: #aebd9b; color: var(--green); }
.button-outline:hover { background: var(--soft-green); }
.search-button { width: 100%; min-height: 60px; border-color: #c3cfa66b; border-radius: 18px; background: #dfe8c8; color: #253b23; box-shadow: 0 4px 0 #142818ab, 0 10px 25px #10191040; position: relative; overflow: hidden; font-size: 17px; }
.search-button:hover { background: #edf2dc; }
.search-button:disabled { color: #425238; background: #bbc8a4; }
.search-button [data-search-label] { flex: 1; }
.search-button:disabled:after { content: ''; position: absolute; bottom: 0; left: 0; height: 4px; background: #647d43; animation: search-progress 1s linear forwards; }
/* Overlay the art so a faded-out creature cannot push the indicator sideways. */
.mud-mark { position: absolute; inset: 0; margin: auto; width: 130px; height: 70px; color: #fff4cb; }
.mud-mark i { position: absolute; left: 15%; right: 15%; height: 24px; bottom: 0; border: 1px solid #fff4ca94; border-radius: 50%; transform: rotate(-8deg); }
.mud-mark i:nth-child(2) { left: 0; right: 0; bottom: -9px; opacity: .5; }
.mud-mark i:nth-child(3) { left: 30%; right: 30%; bottom: 8px; opacity: .65; }
.mud-mark .ui-icon { display: block; width: 42px; height: 42px; position: absolute; left: 0; right: 0; margin: 0 auto; top: -15px; filter: drop-shadow(0 2px 8px #30412d); transform-origin: center; }
.is-empty .mud-mark .ui-icon { width: 30px; height: 30px; opacity: .6; }
.is-searching .reveal-copy, .is-searching .reveal-provenance { opacity: 0; transition: opacity .15s; }
.is-searching .result-art, .is-searching .find-glow { opacity: 0; }
.is-searching .mud-mark { display: block !important; }
.is-searching .mud-mark .ui-icon { width: 42px; height: 42px; opacity: 1; animation: digging 1s ease-in-out infinite; }
.is-searching .mud-mark i { animation: ripple 1.3s ease-out infinite; }
.is-searching .mud-mark i:nth-child(2) { animation-delay: .3s; }
.revealed .result-art { animation: reveal .42s ease-out; }
.revealed .reveal-copy { animation: reveal .3s ease-out; }
/* A first collection find gets one short burst, cleared by the next search. */
.collection-celebration { display: none; position: absolute; left: 50%; top: 50%; height: calc(100% + 32px); aspect-ratio: 1; max-width: 100%; transform: translate(-50%, -50%); color: #ffe7a3; pointer-events: none; z-index: 2; }
.revealed.new-discovery .collection-celebration { display: block; animation: collection-burst 1.05s ease-out both; }
.collection-ring { position: absolute; inset: 9%; border: 2px solid #f7daa18c; border-radius: 47% 53% 49% 51%; animation: collection-ring 1s ease-out both; }
.collection-spark { position: absolute; width: 15px; height: 15px; transform: translate(-50%, -50%); }
.collection-spark .ui-icon { width: 100%; height: 100%; fill: #fff0b580; filter: drop-shadow(0 1px 3px #664e29); }
.collection-spark:nth-of-type(2) { left: 47%; top: 1%; }
.collection-spark:nth-of-type(3) { left: 83%; top: 15%; width: 10px; height: 10px; }
.collection-spark:nth-of-type(4) { left: 99%; top: 46%; }
.collection-spark:nth-of-type(5) { left: 86%; top: 79%; width: 9px; height: 9px; }
.collection-spark:nth-of-type(6) { left: 53%; top: 95%; }
.collection-spark:nth-of-type(7) { left: 16%; top: 82%; width: 10px; height: 10px; }
.collection-spark:nth-of-type(8) { left: 1%; top: 51%; }
.collection-spark:nth-of-type(9) { left: 16%; top: 17%; width: 11px; height: 11px; }
.revealed.new-discovery .result-art { animation: collection-pop .65s cubic-bezier(.2, .7, .25, 1) both; }
.new-discovery .find-glow { background: radial-gradient(ellipse closest-side, #ffe6a3da, #e9c46b60 55%, transparent); }
.new-discovery .reveal-heading { color: #ffe5a0; }
.game-noscript { position: absolute; bottom: 125px; left: 20px; right: 20px; text-align: center; background: #273822; padding: 12px; }
@keyframes search-progress { from { width: 0; } to { width: 100%; } }
@keyframes reveal { from { transform: translateY(16px) scale(.93); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes digging { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(9px) rotate(15deg); } }
@keyframes ripple { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
@keyframes collection-pop {
  0% { transform: translateY(12px) scale(.76); opacity: 0; }
  55% { transform: translateY(-3px) scale(1.07); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes collection-burst {
  0% { transform: translate(-50%, -50%) scale(.45) rotate(-8deg); opacity: 0; }
  20% { opacity: 1; }
  60% { opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.12) rotate(5deg); opacity: 0; }
}
@keyframes collection-ring {
  0% { transform: scale(.6); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* Collection screens use the same three-tab app shell. */
.page-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: 1px; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.lede { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.page-heading .button { min-height: 46px; font-size: 14px; }
.guest-note { display: flex; flex-direction: column; gap: 7px; background: #e8edde; color: #526746; padding: 16px; border: 1px solid #d0dcc0; border-radius: 14px; font-size: 14px; margin-bottom: 28px; }
.guest-note a { text-decoration: underline; text-underline-offset: 3px; display: flex; align-items: center; min-height: 32px; font-weight: 600; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { font-size: 24px; }
.hand-note { display: none; }
.specimen-art { width: 100%; height: 100%; object-fit: contain; }
.collection-total { display: block; font: 14px var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 7px; }
.filters { display: flex; background: #e3e9d8; border-radius: 13px; padding: 4px; width: 100%; }
.filters button { flex: 1; border: 0; background: transparent; color: #56684a; border-radius: 10px; min-height: 44px; font-size: 15px; }
.filters button.active { background: var(--card); box-shadow: 0 1px 4px #253c2115; font-weight: 650; }
.section-description { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 17px; text-align: center; }
.collection-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.collection-card-top span:last-child { font-size: 12px; text-transform: none; }
.collection-art { height: 150px; margin: 5px 0 10px; }
.collection-card h3 { margin-bottom: 10px; }
.collection-card.unfound { background: #edf0e580; border-style: dashed; }
.collection-card.unfound h3 { color: #7b866b; }
.silhouette { filter: brightness(0); opacity: .14; }
.filter-empty { padding: 30px 12px; text-align: center; color: var(--muted); }
.cabinet-note { font: italic 16px/1.6 var(--serif); color: var(--muted); margin: 26px 0; text-align: center; }
.text-link { font-size: 15px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.discovery-total { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: baseline; padding: 13px 16px; border: 1px solid var(--line); background: #e9edde; border-radius: 14px; width: 100%; }
.discovery-total strong { font: 27px var(--serif); }
.discovery-total > span { font-size: 14px; }
.discovery-total small { display: block; width: 100%; color: var(--muted); font-size: 13px; }
.feed-explainer { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.status-dot { width: 6px; height: 6px; background: #708850; display: inline-block; border-radius: 50%; margin-right: 5px; }
.discovery-feed { display: grid; gap: 12px; }
.discovery-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.feed-art { height: 116px; align-self: center; }
.feed-copy h2 { font-size: 24px; margin: 6px 0; }
.feed-copy p { font-size: 14px; color: var(--muted); }
.feed-copy a { overflow-wrap: anywhere; }
.feed-copy p a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.feed-copy time { font-size: 12px; color: var(--muted); display: block; margin-top: 8px; }
.feed-stamp { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; color: #667452; font-size: 12px; }
.feed-stamp small { font-size: 13px; }
.milestone-stamp { color: #89671d; font-size: 14px; font-weight: 650; }
.first-stamp { font-size: 12px; line-height: 1.4; }
.first-stamp br { display: none; }
.first-stamp br:after { content: ' '; }
.large-empty { padding: 30px 12px; text-align: center; }
.large-empty > .ui-icon { width: 40px; height: 40px; color: #81916b; }
.large-empty h2 { font-size: 30px; margin: 10px 0; }
.large-empty p { color: var(--muted); margin: 15px 0 24px; }
.breadcrumb { margin: -10px 0 16px; font-size: 15px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.specimen-detail { display: grid; gap: 28px; }
.detail-art { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; }
.detail-artwork { position: relative; width: 100%; display: grid; place-items: center; }
.detail-artwork > .specimen-art { height: 260px; position: relative; }
.specimen-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px; border: 1px dashed #d6dcc7; border-radius: 50%; }
.detail-art > .rarity { text-align: center; margin-top: auto; }
.detail-copy h1 { font-size: 38px; margin: 10px 0 20px; }
.specimen-description { font: italic 20px/1.5 var(--serif); color: #627151; }
.provenance { margin: 22px 0; }
.provenance > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 14px; }
.provenance dt { color: var(--muted); }
.provenance dd { margin: 0; text-align: right; }
.provenance dd a { text-decoration: underline; text-underline-offset: 3px; }
.provenance time { font-size: 13px; }
.record-id { font: 12px var(--mono); overflow-wrap: anywhere; }
.detail-copy .button { width: 100%; }
.detail-copy > .quiet { margin-top: 15px; }
.copies-section { margin-top: 32px; }
.copies-section .section-description { margin-top: 10px; }
.copy-row { display: flex; justify-content: space-between; align-items: center; min-height: 52px; gap: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.copy-row time { font-size: 13px; }
.account-layout { display: grid; gap: 25px; }
.account-intro h1 { font-size: 38px; }
.account-illustration { display: none; }
.form-panel { padding: 22px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; }
.form-panel h2 { font-size: 28px; margin-bottom: 12px; }
.form-help { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.form-panel form > label { display: block; font-size: 15px; margin: 17px 0 8px; }
.form-panel input:not([type=submit],[type=hidden],[type=checkbox]) { width: 100%; min-height: 50px; font-size: 16px; padding: 11px 12px; border: 1px solid #becbae; background: #f9f8f0; border-radius: 10px; color: var(--ink); }
.form-panel form > small { display: block; font-size: 13px; color: var(--muted); margin-top: 7px; }
.form-panel input[type=submit] { width: 100%; margin-top: 24px; }
.form-switch { margin: 24px 0; font-size: 15px; color: var(--muted); }
.form-switch a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.form-fine-print { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.form-errors { padding: 14px; border: 1px solid #c8ad7e; border-radius: 10px; font-size: 15px; margin: 16px 0; }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.sign-out { margin-top: 20px; }
.guest-login-note { background: #edeede; padding: 15px; margin-top: 20px; font-size: 14px; border-radius: 10px; }
.share-status { display: block; width: 100%; font-size: 14px; color: var(--green); overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .app-header { padding-left: 32px; padding-right: 32px; }
  .app-main { padding-left: 28px; padding-right: 28px; padding-top: calc(var(--header) + 30px); }
  .bank-hud { top: calc(var(--header) + 18px); }
  .bank-hud h1 { font-size: 14px; }
  .bank-stats { font-size: 15px; gap: 17px; }
  .reveal-zone { bottom: 165px; }
  .reveal-art { height: clamp(140px, 29dvh, 320px); }
  .result-art { max-width: 370px; }
  .reveal-copy h2 { font-size: 40px; }
  .reveal-description { max-width: 450px; font-size: 19px; }
  .reveal-provenance { font-size: 14px; }
  .hunt-controls { bottom: 30px; }
  .search-hint { font-size: 15px; }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .collection-art { height: 175px; }
  .filters { width: 285px; }
  .collection-total { display: inline; margin-left: 10px; }
  .page-heading { align-items: center; }
  .page-heading h1 { font-size: 44px; }
  .page-heading .discovery-total { width: auto; max-width: 250px; }
  .guest-note { flex-direction: row; align-items: center; justify-content: space-between; }
  .specimen-detail { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-artwork > .specimen-art { height: 300px; }
  .detail-copy h1 { font-size: 36px; }
  .provenance > div { flex-wrap: wrap; gap: 5px; }
  .account-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .account-illustration { display: flex; align-items: center; flex-direction: column; }
  .account-illustration img { max-height: 240px; object-fit: contain; margin-top: 35px; }
  .account-illustration .hand-note { display: block; font: italic 16px var(--serif); color: var(--muted); }
  .discovery-row { grid-template-columns: 125px 1fr; padding: 20px; }
  .feed-art { height: 125px; }
}
@media (max-width: 359px) {
  .app-header { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 24px; }
  .header-actions { gap: 10px; }
  .app-main { padding-left: 14px; padding-right: 14px; }
  .bank-stats { gap: 8px; font-size: 12px; }
  .bank-stats > span + span:before { margin-right: 8px; }
  .bank-stats a:before { margin-right: 3px; }
  .reveal-zone { left: 14px; right: 14px; }
  .reveal-copy h2 { font-size: 27px; }
  .reveal-description { font-size: 16px; }
  .reveal-provenance { gap: 4px 10px; font-size: 12px; }
  .collection-card { padding: 12px 9px; }
  .collection-art { height: 127px; }
  .collection-card-top span:last-child { font-size: 12px; }
  .discovery-row { grid-template-columns: 76px 1fr; gap: 10px; }
}
@media (max-height: 740px) {
  .bank-hud { top: calc(var(--header) + 2px); }
  .reveal-zone { top: calc(var(--header) + 65px); bottom: 130px; }
  .reveal-art { height: 19dvh; min-height: 65px; }
  .reveal-heading { margin: 4px 0; font-size: 11px; }
  .reveal-copy h2 { font-size: 29px; margin: 4px 0 6px; }
  .reveal-description { font-size: 16px; line-height: 1.3; }
  .hunt-controls { bottom: 18px; }
  .search-hint { font-size: 13px; min-height: 30px; margin-bottom: 10px; }
  .search-button { min-height: 54px; }
}
@media (max-height: 600px) and (orientation: portrait) {
  .reveal-zone { top: calc(var(--header) + 55px); bottom: 122px; }
  .reveal-art { height: 70px; min-height: 45px; }
  .reveal-heading { display: none; }
  .reveal-copy h2 { font-size: 25px; }
  .reveal-provenance { margin: 0; }
  .reveal-description { line-height: 1.2; font-size: 15px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .bank-hud { left: 24px; right: auto; top: var(--header); text-align: left; }
  .bank-stats { justify-content: start; }
  .reveal-zone { left: 45%; right: 25px; top: 55px; bottom: 12px; }
  .reveal-art { height: 95px; min-height: 30px; }
  .reveal-heading { display: none; }
  .reveal-copy h2 { font-size: 27px; }
  .reveal-description { font-size: 15px; }
  .reveal-provenance { font-size: 12px; gap: 6px; }
  .hunt-controls { left: 24px; right: 58%; bottom: 18px; }
  .search-button { padding: 10px 12px; gap: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
  .revealed.new-discovery .collection-celebration { display: none; }
}
