/* Shared clubhouse presentation. Feature rules follow the responsive shell. */
:root { --bg-primary:#111913; --bg-secondary:#1d2821; --text-primary:#f3f0e5; --accent-primary:#c7f27b; --accent-hover:#dcffa5; --border-color:#354337; --font-main:'Nunito',sans-serif; }
* { margin:0; padding:0; box-sizing:border-box; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.twitch-embed-wrapper iframe { position:absolute; top:0; left:0; width:100%; height:100%; }
html { font-size: 18px; color-scheme: dark; scroll-padding-top: 24px; }
body { font-family: var(--font-main); background: #111913; color: var(--text-primary); min-height: 100vh; padding: 0 32px; isolation: isolate; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 85% 12%, #7ba84b13, transparent 55%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-primary); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 20px; background: var(--accent-primary); color: #111913; z-index: 2000; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }
#ambient-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-header, body > nav, main, footer { position: relative; z-index: 1; width: min(100%, 1200px); margin-inline: auto; }
.site-header { display: flex; align-items: center; gap: 32px; min-height: 114px; border-bottom: 1px solid var(--border-color); }
.brand { display: flex; gap: 12px; align-items: center; color: var(--text-primary); text-decoration: none; flex-shrink: 0; }
.brand > span { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 27px; font-weight: 900; letter-spacing: -1.4px; line-height: 1; }
.brand-number { color: var(--accent-primary); }
.brand small { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: #a5b19e; }
.character-avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid #9fbe7799; transform: rotate(-5deg); }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; color: #b5bfad; transition: color .15s; }
.social-links a:hover { color: #e0ffc2; }
#top-right-controls { display: flex; align-items: center; gap: 8px; }
.mute-control { width: 44px; height: 44px; border: 1px solid #354337; background: #1d2821; color: #c0cbb7; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.mute-control svg { width: 17px; height: 17px; }
.mute-control:hover { color: #e0ffc2; border-color: #93ad78; }
#auth-button { display: flex; justify-content: center; align-items: center; height: 44px; padding: 0 16px; border: 1px solid #4a5b40; border-radius: 7px; background: #263521; color: #e4f5d3; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
#auth-button:hover { background: #34482c; }
body > nav { overflow-x: auto; display: flex; gap: 5px; padding: 16px 0 24px; align-items: center; }
.tab { flex: 0 1 auto; cursor: pointer; padding: 10px 19px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: #aab6a3; font-size: 15px; font-weight: 800; transition: color .15s, background .15s; white-space: nowrap; min-height: 48px; }
.tab:hover { color: #f3f0e5; background: #223024; }
.tab.active { background: #c7f27b; color: #1c2a15; border-color: #c7f27b; }
main { outline: none; }
.section { display: none; position: relative; min-width: 0; border: 1px solid #354337; border-radius: 16px; padding: 36px; background: #18221bea; line-height: 1.65; }
.section.active { display: block; animation: fadeIn .2s ease-out; }
.section h2 { text-align: left; font-size: clamp(28px, 3vw, 40px); letter-spacing: -1.5px; line-height: 1.12; margin: 7px 0 24px; font-weight: 800; }
.section p { font-size: 18px; margin: 0 0 16px; line-height: 1.7; color: #bfc8b8; }
.eyebrow { display: block; font-size: 13px; line-height: 1.5; letter-spacing: 2px; font-weight: 800; color: #a4b591; }
#home { border: 0; padding: 0; background: transparent; }
.home-hero { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 32px; min-height: 470px; padding: 28px 0 44px; }
.hero-copy { padding: 0 0 10px 8px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; color: #c7f27b; }
.tiny-star { font-size: 20px; line-height: 1; }
.hero-copy h1 { font-size: clamp(44px, 5.3vw, 72px); line-height: 1.02; font-weight: 900; letter-spacing: -3.8px; margin: 24px 0; }
.hero-copy h1 em { font-family: Georgia, serif; font-weight: 400; color: #c7f27b; letter-spacing: -3.5px; }
.hero-copy > p { max-width: 440px; font-size: 17px; line-height: 1.85; color: #b5c0ad; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 27px; }
.primary-link, .quiet-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 15px; font-weight: 800; text-decoration: none; }
.primary-link { color: #172211; background: #c7f27b; padding: 14px 20px; border-radius: 7px; box-shadow: 0 3px 0 #7eaa48; transition: transform .15s; }
.primary-link:hover { transform: translateY(-2px); background: #d7ffa0; }
.quiet-link { color: #e1e7d9; gap: 12px; }
.quiet-link:hover { color: #c7f27b; }
.hero-footnote { margin-top: 30px; font-size: 13px; color: #8e9f83; display: flex; gap: 9px; align-items: center; }
.hero-footnote > span { color: #b6cd95; }
.hero-portrait { position:relative; isolation:isolate; min-width:0; width:100%; max-width:540px; box-sizing:border-box; justify-self:end; }
.home-camera-frame { position:relative; isolation:isolate; }
.home-camera-frame::before { content:''; position:absolute; z-index:-1; inset:18px -4px -7px 13px; border-radius:48% 48% 16px 16px; background:#b6cf8a; transform:rotate(3deg); }
.home-camera-scene { position:relative; aspect-ratio:9 / 10; overflow:hidden; border:1px solid #8ba661; border-radius:48% 48% 16px 16px; background:#172211; isolation:isolate; box-shadow:0 18px 50px #0004; }
.home-camera-scene img { display:block; width:100%; height:100%; object-fit:cover; transform-origin:center; }
.home-camera-topline { display:flex; justify-content:space-between; gap:8px; padding:0 7px 15px; color:#b8cb9f; font:800 10px/1.5 ui-monospace,monospace; letter-spacing:1.4px; }
.home-camera-topline > span:last-child { color:#9bb57b; }
.home-camera-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:40px; padding:20px 4px 0; }
.home-camera-footer > span { color:#e0e8d6; font:italic 15px/1.4 Georgia,serif; }
.home-camera-footer button { flex-shrink:0; display:grid; place-items:center; width:44px; height:44px; border:1px solid #62794d; border-radius:50%; background:#263820; color:#d4edb4; font:800 15px/1 ui-monospace,monospace; cursor:pointer; }
.home-camera-shots { display:flex; gap:4px; padding-top:8px; }
.home-camera-shots button { flex:1; min-width:0; min-height:44px; border:1px solid transparent; border-radius:5px; background:transparent; color:#abbf96; font:800 12px/1.4 Nunito,sans-serif; cursor:pointer; }
.home-camera-shots button[aria-pressed="true"] { color:#d2f6a5; border-color:#637c47; background:#304126; }
.home-camera-shots button:hover, .home-camera-footer button:hover { color:#f3ffe2; background:#3a512c; }
.home-camera-shots button:focus-visible, .home-camera-footer button:focus-visible { outline:2px solid #c7f27b; outline-offset:2px; }
.hero-portrait[data-motion="running"] .home-camera-scene img { will-change:transform; }
@media (prefers-reduced-motion:reduce) {
  .home-camera-shots, .home-camera-footer button { display:none; }
  .home-camera-footer { min-height:36px; }
}
.hangout-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0 18px; border-top: 1px solid #354337; }
#home .hangout-heading h2 { font-size: 28px; margin: 3px 0 0; letter-spacing: -1px; }
#header-stream-status { text-align: right; font-weight: 800; line-height: 1.4; }
#header-stream-status .status-label { display: block; font-size: 13px; letter-spacing: 1.5px; color: #98aa8b; }
#header-stream-status .status-countdown { font: 13px ui-monospace, monospace; color: #d3dfc6; }
#header-stream-status.live { background: #c7f27b; color: #192512; padding: 8px 14px; font-size: 14px; border-radius: 5px; }
#header-stream-status.live::before { content: '●'; margin-right: 8px; }
.twitch-embed-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; width: 100%; margin: 0 0 35px; border-radius: 12px; border: 1px solid #3d4c39; background: #0b110e; }
.explore-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 40px 0 17px; }
.explore-heading > span:last-child { font: italic 15px Georgia, serif; color: #9dac93; }
.home-explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-explore > a { display: flex; flex-direction: column; text-decoration: none; background: #1c271eeb; border: 1px solid #3b4a35; border-radius: 10px; padding: 24px; color: #e9ebde; transition: background .15s, transform .15s; }
.home-explore > a:hover { background: #273824; transform: translateY(-3px); border-color: #819661; }
.explore-number { color: #a4b68d; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; }
.home-explore strong { display: flex; justify-content: space-between; gap: 10px; font-size: 21px; letter-spacing: -.7px; line-height: 1.25; margin: 22px 0 9px; }
.home-explore strong > span { font-size: 19px; color: #a9ca83; }
#home .home-explore p { font-size: 15px; line-height: 1.65; color: #acb9a2; margin-bottom: 24px; }
.explore-bottom { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #c7f27b; margin-top: auto; padding-top: 15px; border-top: 1px solid #3d4c36; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; border-top: 1px solid #354337; margin-top: 46px; padding: 25px 0 32px; color: #94a189; font-size: 13px; }
footer p { margin: 0; }
footer a { color: #b6c3a9; text-decoration: none; }
footer a:hover { color: #e0ffc2; }
.footer-brand { color: #d7dfcb; font-weight: 800; }
.footer-brand > span { color: #c7f27b; margin: 0 10px; }
#bonk-character { position: fixed; bottom: 0; right: 0; width: clamp(90px, 9vw, 150px); height: auto; cursor: pointer; z-index: 4; transition: transform .15s; filter: drop-shadow(0 4px 10px #0004); }
#bonk-character:hover { transform: translateY(-5px); }
#bonk-character:active { transform: scale(.95); }
@media (min-width: 1800px) { .site-header, body > nav, main, footer { width: min(100%, 1400px); } .home-hero { min-height: 510px; } }
@media (max-width: 1100px) { .social-links { gap: 12px; } .site-header { gap: 16px; flex-wrap: wrap; padding-block: 20px; } .social-links { order: 3; width: 100%; margin-left: 0; } #top-right-controls { margin-left: auto; } .hero-copy h1 { letter-spacing: -2.5px; } }
@media (max-width: 800px) {
  body { padding: 0 20px; }
  .site-header { flex-wrap: wrap; min-height: 92px; gap: 12px; padding: 18px 0; }
  .social-links { order: 3; width: 100%; gap: 18px; margin-left: 0; }
  #top-right-controls { margin-left: auto; }
  body > nav { overflow-x: auto; padding: 14px 0 20px; scrollbar-width: thin; scrollbar-color: #566a46 transparent; }
  .tab { flex: 0 0 auto; padding: 10px 15px; font-size: 14px; }
  .home-hero { gap: 12px; min-height: 390px; padding-top: 15px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { gap: 16px; }
  .primary-link { gap: 15px; padding: 12px 15px; }
  .quiet-link { font-size: 14px; }
  .hero-footnote { font-size: 13px; }
  .home-explore { gap: 10px; }
  .home-explore > a { padding: 18px; }
  .home-explore strong { font-size: 18px; }
  .section { padding: 25px; }
}
@media (max-width: 580px) {
  body { padding: 0 16px; }
  .site-header { padding: 16px 0; gap: 16px 8px; }
  .character-avatar { width: 52px; height: 52px; border-radius: 12px; }
  .brand { gap: 12px; flex-basis: 100%; }
  .brand strong { font-size: 23px; }
  .brand small { font-size: 13px; letter-spacing: 1.5px; }
  #top-right-controls { gap: 10px; width: 100%; margin-left: 0; }
  #auth-container { margin-left: auto; }
  .mute-control { width: 44px; height: 44px; }
  .mute-control svg { width: 15px; height: 15px; }
  #auth-button { font-size: 13px; padding: 0 9px; height: 44px; }
  .social-links { justify-content: flex-start; gap: 4px 20px; }
  .social-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  body > nav { gap: 3px; padding: 12px 0 17px; }
  .tab { min-height: 48px; padding: 9px 12px; }
  .home-hero { display: flex; flex-direction: column; gap: 5px; padding: 12px 0 30px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-copy .eyebrow { font-size: 13px; letter-spacing: 1.6px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 61px); letter-spacing: -2.8px; margin: 18px 0; }
  .hero-copy h1 em { letter-spacing: -2.2px; }
  .hero-copy > p { font-size: 16px; max-width: 370px; }
  .hero-actions { margin-top: 22px; gap: 24px; }
  .hero-footnote { margin-top: 22px; }
  .hero-portrait { margin-top:22px; width:100%; box-sizing:border-box; }
  .home-camera-topline { font-size:9px; letter-spacing:1px; }
  .hangout-heading { padding-top: 22px; }
  #home .hangout-heading h2 { font-size: 25px; }
  .eyebrow { font-size: 13px; }
  .twitch-embed-wrapper { padding-bottom: 170%; border-radius: 9px; margin-bottom: 26px; }
  .explore-heading { margin-top: 30px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .explore-heading > span:last-child { font-size: 16px; }
  .home-explore { grid-template-columns: 1fr; gap: 12px; }
  .home-explore > a { padding: 22px; }
  .home-explore strong { margin-top: 15px; font-size: 23px; }
  #home .home-explore p { margin-bottom: 18px; }
  .section { padding: 22px 16px; border-radius: 12px; }
  .section h2 { font-size: 29px; letter-spacing: -1px; }
  .section-title-container { padding-right: 64px; }
  .info-button { padding: 8px 10px; font-size: 13px; }
  .command-category-header { padding: 16px 42px 16px 15px; font-size: 17px; }
  .command-category-content { padding-inline: 14px; }
  #commands td, #commands th { padding: 10px; min-width: 100px; }
  #food-controls input, #food-controls select, #search-input { font-size: 18px; }
  #global-stats-container { grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); }
  .global-stat-card { padding: 16px 8px; }
  .global-stat-card .label { font-size: 14px; }
  .global-stat-card .value { font-size: 26px; }
  #bonk-character { width: 68px; }
  footer { padding-bottom: 75px; margin-top: 32px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Feature pages share the clubhouse shell; each keeps its own useful structure. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
button { cursor:pointer; }
input, select { min-width:0; min-height:48px; border:1px solid #4b6046; border-radius:8px; padding:11px 14px; background:#111b14; color:var(--text-primary); }
input::placeholder { color:#9eaf96; opacity:1; }
button, a, input, select, summary { touch-action:manipulation; }
.outline-button { display:inline-flex; align-items:center; justify-content:center; gap:22px; min-height:46px; padding:10px 16px; border:1px solid #60734b; border-radius:7px; color:#d9ecc4; background:transparent; font-size:15px; font-weight:800; }
.outline-button:hover { background:#2b3b25; border-color:#c7f27b; }
.page-intro { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:center; gap:36px; padding:8px 0 34px; border-bottom:1px solid var(--border-color); margin-bottom:30px; }
.section .page-intro h2 { font-size:clamp(38px,4.2vw,58px); line-height:1.06; letter-spacing:-2px; margin:15px 0 22px; }
.page-intro h2 em { font-family:Georgia,serif; font-weight:400; color:var(--accent-primary); }
.section .page-intro p { max-width:540px; margin-bottom:24px; }
.results-note { font-size:14px!important; color:#aabd9b!important; margin:14px 0!important; }
.search-label { display:block; font-weight:800; font-size:15px; margin-bottom:8px; color:#dce6d0; }
.stream-schedule { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; margin-bottom:16px; background:#1b281e; border:1px solid #354337; border-radius:10px; }
.schedule-days { display:flex; gap:20px; }
.schedule-days > span { font-size:12px; letter-spacing:1px; color:#7f9077; text-align:center; font-weight:800; }
.schedule-days i { display:block; font-style:normal; line-height:1.2; font-size:15px; margin-top:4px; }
.schedule-days .is-stream-day { color:#d4f4ad; }
.schedule-hours { display:flex; flex-direction:column; text-align:right; font-size:14px; color:#a9b89e; }
.schedule-hours strong { font-size:15px; color:#e1ead7; }

/* Food: actual inventory art, readable effects, and composable filters. */
.menu-art { position:relative; min-height:300px; border:1px solid #526444; border-radius:50% 50% 16px 16px; background:radial-gradient(ellipse,#8eac4730,transparent 68%),#1d2c1e; overflow:hidden; }
.menu-art > img { position:absolute; object-fit:contain; filter:drop-shadow(0 12px 8px #0005); }
.menu-art > img:nth-of-type(1) { width:55%; height:65%; left:6%; top:20%; transform:rotate(-8deg); }
.menu-art > img:nth-of-type(2) { width:42%; height:52%; right:5%; top:7%; transform:rotate(9deg); }
.menu-art > img:nth-of-type(3) { width:47%; height:45%; right:3%; bottom:8%; transform:rotate(7deg); }
.menu-stamp { position:absolute; top:14px; left:50%; width:max-content; text-align:center; color:#cfddb9; font-size:11px; letter-spacing:2px; z-index:1; transform:translateX(-50%) rotate(-5deg); line-height:1.4; }
.menu-stamp strong { font:italic 22px Georgia,serif; letter-spacing:0; }
.menu-caption { position:absolute; bottom:13px; left:0; right:0; text-align:center; font:italic 14px Georgia,serif; color:#c0cda9; }
.feature-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--border-color); padding:0 0 24px; margin-bottom:28px; gap:16px; }
.feature-notes > span { display:flex; align-items:center; gap:12px; font-size:14px; color:#c5d2b7; }
.feature-notes strong { color:#86a56a; font:14px ui-monospace,monospace; }
.inline-help { max-width:640px; }
.inline-help > summary { list-style:none; width:fit-content; cursor:pointer; }
.inline-help > summary::-webkit-details-marker { display:none; }
.inline-help > summary::after { content:'+'; font-size:22px; font-weight:400; line-height:1; }
.inline-help[open] > summary::after { content:'−'; }
.inline-help > summary:focus-visible { outline:3px solid var(--accent-primary); outline-offset:4px; }
.page-intro:has(.inline-help[open]) { align-items:start; }
#gacha-info-panel, #leaderboard-info-panel { padding:20px; background:#101b15; border:1px solid #506243; border-radius:10px; margin-top:12px; }
.section .inline-help p { font-size:15px; margin:0 0 14px; }
.inline-help pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.inline-help > div > :last-child { margin-bottom:0; }
#gacha-info-panel h3, #leaderboard-info-panel h3 { color:var(--accent-primary); font-size:20px; margin:18px 0 10px; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; border-radius:8px; background:#0c150f; font-size:15px; }
#food-controls { display:flex; flex-wrap:wrap; align-items:end; gap:16px; padding:20px; border:1px solid #354938; border-radius:12px; background:#1d2b21; margin:0 0 10px; max-width:none; }
#food-controls > label, #food-sort-container, #food-ownership-filter-container { display:flex; flex-direction:column; align-items:stretch; gap:7px; font-size:13px; font-weight:800; color:#b6c7a7; flex:1 1 130px; }
#food-controls .food-search { flex:3 1 220px; }
#food-controls input, #food-controls select { width:100%; font-size:15px; }
.food-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.food-card { --food-color:#c7f27b; position:relative; display:flex; flex-direction:column; min-width:0; gap:16px; padding:18px; border:1px solid #3a4c3b; border-radius:16px; background:linear-gradient(150deg,#233326,#19271e); overflow:hidden; }
.food-card:hover { border-color:var(--food-color); transform:translateY(-2px); }
.food-card.rarity-6 { --food-color:#f4d372; }
.food-card.rarity-5 { --food-color:#d5acf7; }
.food-card.rarity-4 { --food-color:#97cafa; }
.food-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.food-art { position:relative; flex:none; height:174px; background:radial-gradient(ellipse at center,color-mix(in srgb,var(--food-color) 10%,transparent),transparent 68%); }
.food-art > img { position:absolute; left:4%; top:0; width:92%; height:100%; object-fit:contain; filter:drop-shadow(0 9px 6px #0004); }
.food-rarity { color:var(--food-color); font-size:12px; letter-spacing:2px; white-space:nowrap; }
.inventory-item-amount { position:absolute; top:197px; right:18px; z-index:2; padding:4px 10px; border:1px solid #92b362; border-radius:6px; background:#c7f27b; color:#172211; font-weight:900; font-size:13px; }
.food-card .card-header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; min-height:50px; }
.food-name { font-size:21px; line-height:1.2; text-wrap:balance; }
.food-id { flex-shrink:0; color:#95ab88; font:12px ui-monospace,monospace; }
.food-type { display:inline-flex; padding:3px 9px; border:1px solid #52634b; border-radius:20px; color:#c1d1b3; font-size:12px; font-weight:800; }
.food-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; color:#e2ebd5; }
.food-card .stat { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:10px 2px; border:1px solid #3c503b; border-radius:9px; background:#101d1559; }
.stat-main { display:inline-flex; align-items:center; gap:6px; font-size:21px; font-weight:900; line-height:1.2; }
.food-card .stat svg { width:15px; height:15px; fill:#a5c780; }
.stat-label { font-size:12px; color:#b4c6a5; }
.section .food-description { font-size:15px; color:#c5d2b9; margin:0; padding:12px 0 0; border-top:1px solid #3a4e38; line-height:1.6; }
.food-effect-label { display:block; margin-bottom:4px; color:var(--food-color); font-size:11px; font-weight:900; letter-spacing:1px; text-transform:uppercase; }
#food-profile-content:empty { display:none; }
#food-profile-content { margin-bottom:24px; }
.profile-section-title { font-size:24px; margin-bottom:14px; }
#collection-progress-container { padding:18px 22px; background:#142018; border:1px solid #3b503b; border-radius:10px; margin-bottom:22px; }
#collection-progress-label { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 18px; font-size:14px; margin-bottom:12px; color:#adbea1; }
#collection-progress-label > strong { font-size:23px; line-height:1.3; color:#e1efce; font-variant-numeric:tabular-nums; }
#collection-progress-label > strong > span { font-size:14px; font-weight:600; color:#c3d3b4; }
.progress-bar-track { height:7px; background:#31432d; border-radius:8px; overflow:hidden; }
.progress-bar-fill { height:100%; background:var(--accent-primary); }

/* Standings: a podium and a scan-friendly table, with scores from Firestore. */
.standings-emblem { width:210px; height:210px; object-fit:contain; justify-self:center; transform:rotate(8deg); filter:drop-shadow(0 15px 15px #0004); }
.standings-heading { display:flex; align-items:center; gap:14px; min-width:0; }
.standings-heading > img { width:58px; height:58px; object-fit:contain; flex-shrink:0; }
.leaderboard-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:end; margin:40px 0 36px; }
.podium-place { --metal:#bfd7d1; --edge:#667f77; position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; min-width:0; padding:32px 16px 47px; border:1px solid var(--edge); border-radius:110px 110px 14px 14px; text-align:center; background:radial-gradient(ellipse at 50% 15%,#b8d8c014,transparent 70%),#17251c; overflow:hidden; }
.podium-place::after { content:''; position:absolute; inset:8px; border:1px solid var(--edge); opacity:.23; border-radius:100px 100px 9px 9px; z-index:-1; pointer-events:none; }
.podium-1 { --metal:#f4dc99; --edge:#ac8b42; order:2; padding-top:46px; padding-bottom:61px; background:radial-gradient(ellipse at 50% 10%,#d9b94d28,transparent 75%),#202b1c; box-shadow:0 14px 40px #0003; }
.podium-2 { order:1; }
.podium-3 { --metal:#e0b28c; --edge:#966d50; order:3; }
.podium-position { position:absolute; top:28px; left:23px; color:var(--metal); font:italic 18px Georgia,serif; opacity:.65; }
.podium-art { position:relative; width:min(100%,230px); aspect-ratio:1.2; display:grid; place-items:center; margin-bottom:10px; }
.podium-art::before { content:''; position:absolute; inset:-5%; border-radius:50%; background:radial-gradient(ellipse,#d4bd591c,transparent 68%); z-index:-1; }
.podium-art img { width:100%; height:auto; filter:drop-shadow(0 10px 8px #0005); }
.podium-1 .podium-art { width:min(100%,258px); }
.podium-ribbon { color:var(--metal); font-size:10px; letter-spacing:1.8px; font-weight:900; border-block:1px solid var(--edge); padding:5px 12px; }
.podium-place h3 { width:100%; overflow-wrap:anywhere; font-size:23px; line-height:1.25; margin:17px 0 15px; }
.podium-place > strong { color:#f5f0de; font-size:32px; line-height:1.2; font-weight:900; font-variant-numeric:tabular-nums; }
.podium-place > small { font-size:13px; color:#a6b69d; margin-top:2px; }
.podium-step { position:absolute; bottom:2px; font:22px Georgia,serif; color:var(--metal); opacity:.45; letter-spacing:3px; }
#search-container { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:0 0 16px; }
#search-container h3 { font-size:26px; }
#search-container label { width:min(100%,380px); }
#search-input { width:100%; }
table { width:100%; border-collapse:collapse; }
th, td { padding:16px; text-align:left; border-bottom:1px solid #354738; }
th { font-size:12px; color:#9fb08f; letter-spacing:1.5px; text-transform:uppercase; background:#121d16; }
.standings-table { table-layout:fixed; }
.standings-table td { font-size:16px; }
.standings-table th:first-child { width:70px; }
.standings-table th:last-child { width:30%; }
.standings-table td:last-child, .standings-table th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.standings-table .name-cell { overflow-wrap:anywhere; font-weight:800; }
.standings-table .rank-cell { color:#a0b48f; font:15px ui-monospace,monospace; }
.standings-table .rank-1 { background:#d2ae4310; color:#e8d396; }
.standings-table .rank-2 { background:#d5dece07; }
.standings-table .rank-3 { background:#c78d5010; }
.standings-table tr:hover { background:#a8c5810e; }
#leaderboard-footer-message { color:#a9bc9a; font-size:14px; margin-top:18px; }
#user-stats-container { background:radial-gradient(ellipse at 50% 0,#a7cd4e13,transparent 70%),#20331f; padding:28px 24px; border:1px solid #728d51; border-radius:12px; margin-bottom:28px; text-align:center; }
#user-stats-container h3 { font-size:27px; margin:7px 0 23px; overflow-wrap:anywhere; line-height:1.4; }
#user-stats-container h3 small { display:block; font-size:15px; font-weight:600; color:#bfceb1; }
.stats-grid { display:flex; flex-wrap:wrap; gap:28px 60px; justify-content:center; }
.stat-item { display:flex; flex-direction:column; align-items:center; }
.stat-item .label { color:#becdb2; font-size:14px; }
.stat-item .value { font-size:32px; font-weight:800; color:#e2f2c8; }

/* Profile: a personal dashboard followed by the complete rank display. */
.rank-showcase { display:flex; align-items:center; justify-content:center; min-height:240px; }
.rank-showcase img { width:38%; height:auto; filter:drop-shadow(0 12px 8px #0005); }
.rank-showcase img:first-child { transform:rotate(-14deg) translateX(12px); width:31%; }
.rank-showcase img:nth-child(2) { z-index:1; transform:translateY(-17px); }
.rank-showcase img:last-child { transform:rotate(14deg) translateX(-12px); width:31%; }
.profile-login { display:flex; align-items:center; justify-content:space-between; gap:24px; background:#21351f; border:1px solid #587046; border-radius:12px; padding:24px; margin-bottom:30px; }
.profile-login h3 { font-size:24px; margin:0 0 6px; }
.profile-login p { margin:0; font-size:16px; }
.profile-login button { flex-shrink:0; border:0; }
#stats-layout-container { grid-template-columns:minmax(0,1fr) minmax(270px,.47fr); gap:24px; margin-bottom:36px; align-items:start; }
.stats-left-panel { background:#121e16; border:1px solid #3d523c; border-radius:12px; padding:22px; min-width:0; }
.stats-right-panel { min-width:0; position:sticky; top:24px; }
.stats-tabs { display:flex; padding:4px; border-radius:9px; background:#1e2c20; gap:4px; margin-bottom:24px; }
.stats-tab { flex:1; border:0; border-radius:6px; background:transparent; color:#b4c6a5; font-size:15px; font-weight:800; padding:10px; min-height:46px; }
.stats-tab.active { background:#c7f27b; color:#1a2714; }
.stats-content-panel { display:none; }
.stats-content-panel.active { display:block; }
.profile-tools { display:flex; align-items:start; gap:16px; justify-content:space-between; margin-bottom:22px; }
.profile-tools > div { min-width:0; }
#stats .profile-tools p { color:#b8c8ac; font-size:13px; line-height:1.6; margin:6px 0 0; }
.profile-tools button { flex-shrink:0; min-height:44px; font-size:14px; padding:9px 13px; }
.profile-tools button:disabled { opacity:.65; cursor:wait; }
.profile-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:20px 0; border-block:1px solid #42513a; gap:12px; margin-bottom:18px; }
.profile-summary > div { min-width:0; }
.profile-summary strong { display:block; color:#ddf2bb; font-size:clamp(21px,2.3vw,30px); font-weight:900; line-height:1.3; overflow-wrap:anywhere; }
.profile-summary span { color:#bdcbae; font-size:13px; }
#stats .profile-data-note { font-size:13px; line-height:1.6; color:#a9bba1; margin-bottom:20px; }
.profile-stat-group { margin-bottom:26px; }
.profile-stat-group header { display:flex; align-items:center; gap:12px; margin:24px 0 10px; }
.profile-stat-group h4 { color:#e7eddf; font-size:18px; line-height:1.3; }
#stats .profile-stat-group header p { color:#a7b69c; font-size:12px; line-height:1.5; margin:4px 0 0; }
.profile-group-number { display:grid; place-items:center; width:34px; height:38px; flex-shrink:0; color:#c8e995; border:1px solid #526b41; border-radius:15px 15px 5px 5px; font:italic 16px Georgia,serif; }
.profile-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px 18px; }
.profile-metrics > div { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid #314333; padding:12px 0; }
.profile-metrics dt { font-size:13px; color:#c0cdb8; line-height:1.5; }
.profile-metrics dd { color:#def0c6; font-size:17px; font-weight:800; font-variant-numeric:tabular-nums; flex-shrink:0; }
.bits-verification { display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; padding:14px 16px; margin-top:14px; border:1px solid #354a30; border-radius:10px; background:#18261a; }
.bits-refresh { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; min-height:44px; padding:8px 12px; border:1px solid #769850; border-radius:7px; background:#243821; color:#d8f7a6; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.bits-refresh > [aria-hidden] { font-size:20px; line-height:1; }
.bits-refresh:hover:not(:disabled) { background:#36522c; border-color:#b0df73; }
.bits-refresh:focus-visible { outline:3px solid #d8f7a6; outline-offset:3px; }
.bits-refresh:disabled { opacity:.65; cursor:default; }
.bits-status { flex:1 1 24ch; color:#acbea0; font-size:12px; line-height:1.6; }
.profile-record-dates { border-top:1px solid #3c5137; padding-top:18px; margin-top:24px; }
.profile-record-dates > div { margin-bottom:12px; }
.profile-record-dates dt { font-size:12px; color:#a4b59c; }
.profile-record-dates dd { font-size:14px; color:#d9e1ce; }
#stats .profile-placeholder { padding:32px 16px; font-size:15px; color:#b6c6a8; text-align:center; }
.profile-rank-placeholder { min-height:410px; display:flex; flex-direction:column; justify-content:center; border:1px solid #516b40; border-radius:12px; }
.profile-empty-crest { font-size:100px; color:#b5ca81; opacity:.6; }
.profile-follow-date { font-size:12px; color:#a6b79c; }
.xp-breakdown > div { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid #344a32; }
.xp-breakdown dt { font-size:13px; }
.xp-breakdown dt small { display:block; font-size:11px; color:#a2b495; }
.xp-breakdown dd { font-size:13px; font-weight:800; white-space:nowrap; }
.follow-age-card, .not-following-card { display:flex; flex-direction:column; align-items:center; gap:12px; padding:24px; border:1px solid #748e50; border-radius:12px; background:radial-gradient(ellipse at 50% 25%,#a0bd4a13,transparent 70%),#1b2a1d; text-align:center; }
.rank-header { display:flex; flex-direction:column-reverse; align-items:center; }
.rank-title { font-size:26px; font-weight:900; }
.rank-emblem { display:inline-block; position:relative; width:160px; height:160px; }
.rank-emblem > img { width:100%; height:100%; object-fit:contain; }
.rank-level { position:absolute; bottom:0; left:50%; transform:translateX(-50%); min-width:38px; padding:2px 10px; border:1px solid #bba365; background:#19271b; border-radius:5px; color:#eedb9d; font:700 16px Georgia,serif; }
.duration { font-size:30px; font-weight:900; color:#dbedc4; }
.since-date { color:#b2c3a2; font-size:14px; }
.next-rank-info { color:#b2c3a2; font-size:15px; }
.next-rank-info strong { color:#e6eddb; }
.rank-progress { width:100%; height:8px; accent-color:#c7f27b; border:0; border-radius:8px; overflow:hidden; }
.rank-progress::-webkit-progress-bar { background:#34472b; }
.rank-progress::-webkit-progress-value { background:#c7f27b; }
.xp-info-icon { order:1; width:100%; margin-top:10px; border-top:1px solid #405138; padding-top:10px; text-align:left; }
.xp-info-icon summary { font-size:14px; color:#b9cf9f; min-height:44px; padding:10px 0; cursor:pointer; }
.xp-tooltip-panel { font-size:12px; color:#c5d4b7; }
.xp-tooltip-panel h4 { margin:10px 0; font-size:17px; }
.calculation-total { display:flex; justify-content:space-between; margin-top:14px; padding-top:12px; border-top:1px solid #354738; font-size:15px; font-weight:800; }
.cta-text { font-size:23px; font-weight:800; }
.cta-link { background:#c7f27b; color:#172211; border-radius:6px; padding:10px 16px; text-decoration:none; font-weight:800; }
.rank-directory { border-top:1px solid #3e5038; padding-top:28px; margin-top:24px; }
.directory-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:10px; }
.directory-heading h3 { font-size:28px; letter-spacing:-.8px; margin:4px 0; }
.directory-heading > span { font-size:14px; color:#a2b492; }
.rank-directory > p { font-size:16px; max-width:720px; }
.rank-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; gap:14px; }
.rank-collectible { display:flex; position:relative; flex-direction:column; align-items:center; padding:20px 10px 15px; text-align:center; border:1px solid #394d37; border-radius:10px; background:radial-gradient(ellipse at 50% 35%,#90aa4810,transparent 80%),#152219; min-width:0; }
.rank-collectible.is-current { border-color:#b1d377; background-color:#273b22; }
.rank-number { position:absolute; left:10px; top:9px; color:#7f9871; font:11px ui-monospace,monospace; }
.rank-collectible .rank-emblem { width:min(100%,125px); height:auto; aspect-ratio:1; margin-bottom:10px; }
.rank-collectible h4 { font-size:15px; font-weight:900; line-height:1.3; margin-bottom:9px; }
.rank-collectible > span:not(.rank-emblem):not(.rank-number) { font-size:13px; color:#c6d7b5; }
.rank-collectible small { font-size:11px; color:#90a77d; margin-top:4px; }
.stats-group { padding-top:34px; margin-top:34px; border-top:1px solid #3e5038; }
.stats-group h3 { font-size:30px; margin:8px 0; }
.stats-group > p { font-size:16px; }
#global-stats-container { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.global-stat-card { position:relative; min-width:0; padding:25px 20px; border:1px solid #3e503b; border-radius:10px; background:#152219; text-align:left; cursor:pointer; }
.global-stat-card:hover { border-color:#8da66a; }
.global-stat-card .icon { position:absolute; top:20px; right:18px; color:#789c5d; }
.global-stat-card svg { width:23px; height:23px; fill:currentColor; }
.global-stat-card .value { display:block; font-size:36px; letter-spacing:-1px; font-weight:900; margin:22px 0 8px; color:#e5efd8; overflow-wrap:anywhere; }
.global-stat-card .label { display:block; font-size:13px; color:#a6bb94; text-transform:uppercase; letter-spacing:1px; }

/* Guide: useful starting points alongside searchable, accessible disclosures. */
.intro-art { justify-self:center; display:grid; place-content:center; border:1px solid #6d8952; border-radius:26px; width:175px; height:175px; background:#c4e89a; color:#23331b; font:italic 110px Georgia,serif; text-align:center; line-height:.85; transform:rotate(8deg); box-shadow:10px 10px 0 #344a2a; }
.intro-art > span { font:800 11px var(--font-main); margin-top:14px; letter-spacing:2px; }
.guide-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:30px; align-items:start; }
.guide-start { position:sticky; top:24px; border:1px solid #435a3e; border-radius:12px; padding:22px; background:#1e2f20; }
.guide-start h3 { font-size:25px; letter-spacing:-.7px; margin:8px 0 24px; line-height:1.2; }
.guide-start button { display:block; width:100%; text-align:left; background:transparent; border:0; border-top:1px solid #405639; padding:18px 0; color:#e3eed5; }
#commands .guide-start code { padding:0; background:transparent; font-size:15px; color:#d6eeae; }
.guide-start button > span { display:flex; justify-content:space-between; font-size:13px; color:#a6bc93; margin-top:8px; }
#commands .guide-start p { font-size:14px; color:#a4ba91; margin:18px 0 0; }
.guide-library { min-width:0; }
#command-search { width:100%; }
.command-category { margin-bottom:12px; border:1px solid #3f523d; border-radius:10px; background:#152219; overflow:hidden; }
.command-category-header { display:block; width:100%; position:relative; padding:19px 50px 19px 20px; border:0; background:#1e2e21; color:#e5eddc; text-align:left; font-size:17px; font-weight:800; }
.command-category-header::after { content:'+'; position:absolute; right:20px; top:50%; transform:translateY(-50%); font-size:24px; font-weight:400; color:#c7f27b; }
.command-category-header.active::after { content:'−'; }
.command-category-header:hover { background:#2b3e26; }
.command-category-content { padding:0 22px 22px; }
#commands h4 { margin:24px 0 12px; color:#e2eccf; font-size:20px; }
#commands ul { padding-left:20px; }
#commands li { margin-bottom:12px; color:#c0ceb4; font-size:16px; overflow-wrap:anywhere; }
#commands .command-category-content p { font-size:16px; }
#commands code { background:#293b27; padding:2px 5px; border-radius:4px; font-size:14px; color:#d9edbf; overflow-wrap:anywhere; }
#commands pre { border-left:2px solid #94b46c; margin:16px 0; }
#commands pre code { padding:0; background:transparent; }
#commands table { display:block; width:100%; max-width:100%; overflow-x:auto; font-size:14px; }
#commands td, #commands th { vertical-align:top; padding:14px 12px; min-width:90px; }

/* Support: clear destinations and room for a simple thank you. */
.support-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.support-card { display:flex; flex-direction:column; padding:26px; border:1px solid #4b6341; border-radius:12px; background:#1c2d1e; text-decoration:none; color:#ecf0e1; }
.support-card:hover { border-color:#b0cb81; background:#243923; }
.support-card .eyebrow { display:flex; justify-content:space-between; gap:10px; font-size:10px; }
.support-card h3 { font-size:28px; letter-spacing:-1px; margin:28px 0 12px; line-height:1.15; }
.section .support-card p { font-size:16px; color:#b9cbaa; }
.support-action { border-top:1px solid #43593b; padding-top:16px; margin-top:auto; color:#cee7aa; font-size:14px; font-weight:800; }
.support-foot { display:flex; justify-content:space-between; align-items:center; gap:36px; padding:28px 0 0; margin-top:30px; border-top:1px solid #405438; }
.support-foot > div { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.support-foot .eyebrow { width:100%; }
.support-foot strong { font:20px ui-monospace,monospace; }
.support-foot p { max-width:390px; font:italic 20px/1.5 Georgia,serif; color:#bbcba9; margin:0; }
#copy-binance-status { color:#c7f27b; font-size:13px; }
#auth-button.logged-in { gap:8px; }
#user-avatar { width:28px; height:28px; border-radius:50%; }

@media (max-width:1000px) {
  body > nav { flex-wrap:wrap; }
  .guide-layout { grid-template-columns:210px minmax(0,1fr); gap:20px; }
  .guide-start { padding:18px; }
  .rank-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .food-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .support-options { grid-template-columns:1fr; }
  .support-card { display:grid; grid-template-columns:1fr 1.2fr; gap:10px 26px; }
  .support-card h3 { grid-column:1; margin:5px 0; }
  .support-card p { grid-column:2; grid-row:1 / 3; margin:0; align-self:center; }
  .support-action { grid-column:1 / -1; margin-top:10px; }
}
@media (max-width:800px) {
  .page-intro { gap:20px; }
  .section .page-intro h2 { font-size:42px; }
  .menu-art { min-height:260px; }
  .menu-stamp { font-size:10px; }
  .menu-stamp strong { font-size:18px; }
  .feature-notes { gap:10px; }
  .feature-notes > span { align-items:start; gap:7px; font-size:12px; }
  .schedule-days { gap:12px; }
  #stats-layout-container { grid-template-columns:1fr; }
  .stats-right-panel { grid-row:1; position:static; }
  .guide-layout { grid-template-columns:1fr; }
  .guide-start { position:static; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 14px; }
  .guide-start > .eyebrow, .guide-start > h3, .guide-start > p { grid-column:1 / -1; }
  .guide-start h3 { margin-bottom:16px; }
  #commands .guide-start code { font-size:13px; }
  .guide-start button > span { font-size:12px; }
  .profile-login { flex-wrap:wrap; }
  .support-foot { align-items:start; gap:24px; }
}
@media (max-width:580px) {
  .page-intro { grid-template-columns:1fr; gap:12px; padding-bottom:24px; margin-bottom:24px; }
  .section .page-intro h2 { font-size:42px; letter-spacing:-1.8px; }
  .page-intro > div > p { font-size:17px; }
  .food-intro .menu-art { min-height:235px; width:100%; max-width:360px; justify-self:center; }
  .food-intro { gap:20px; }
  .feature-notes { grid-template-columns:1fr; gap:12px; }
  .feature-notes > span { font-size:14px; }
  .feature-notes strong { min-width:24px; }
  #food-controls { padding:15px; gap:12px; }
  #food-controls > label, #food-sort-container, #food-ownership-filter-container { flex:1 1 110px; }
  #food-controls .food-search { flex:1 1 100%; }
  .food-grid { grid-template-columns:1fr; gap:18px; }
  .food-art { height:200px; }
  .stream-schedule { flex-direction:column; align-items:stretch; padding:18px 14px; gap:16px; }
  .schedule-days { justify-content:space-between; gap:8px; }
  .schedule-hours { text-align:left; }
  .standings-intro, .commands-intro { position:relative; }
  .standings-emblem { position:absolute; right:0; top:0; width:70px; height:70px; opacity:.9; }
  .standings-intro .eyebrow { max-width:calc(100% - 75px); }
  .intro-art { position:absolute; right:4px; top:6px; width:52px; height:52px; border-radius:9px; font-size:36px; box-shadow:4px 4px 0 #344a2a; }
  .intro-art > span { display:none; }
  .commands-intro .eyebrow { padding-right:60px; }
  .leaderboard-podium { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:24px; }
  .podium-place { padding:22px 10px 40px; border-radius:65px 65px 12px 12px; }
  .podium-place::after { border-radius:60px 60px 7px 7px; }
  .podium-1 { grid-column:1 / -1; order:0; padding:28px 18px 42px; }
  .podium-art { width:136px; margin-bottom:6px; }
  .podium-1 .podium-art { width:190px; }
  .podium-position { top:24px; left:14px; font-size:14px; }
  .podium-place h3 { font-size:16px; margin:12px 0 10px; }
  .podium-1 h3 { font-size:24px; }
  .podium-place > strong { font-size:22px; }
  .podium-1 > strong { font-size:30px; }
  .podium-ribbon { font-size:8px; letter-spacing:.7px; padding:5px 3px; }
  .podium-place > small { font-size:12px; }
  #user-stats-container { padding:24px 14px; }
  .stats-grid { gap:18px 28px; }
  .stats-left-panel { padding:18px 14px; }
  .stats-right-panel { position:static; }
  .profile-tools { gap:10px; }
  .profile-summary { gap:8px; }
  .profile-summary span { font-size:12px; }
  .profile-metrics { grid-template-columns:1fr; }
  .profile-metrics dt { font-size:14px; }
  .profile-stat-group h4 { font-size:17px; }
  #search-container { flex-direction:column; align-items:stretch; gap:14px; }
  .standings-table th, .standings-table td { padding:13px 7px; font-size:13px; }
  .standings-table th { font-size:10px; letter-spacing:.5px; }
  .standings-table th:first-child { width:35px; }
  .standings-table th:last-child { width:34%; }
  .rank-showcase { min-height:170px; width:min(100%,330px); justify-self:center; }
  .profile-login { padding:20px; gap:18px; }
  .profile-login button { width:100%; }
  .directory-heading { align-items:start; flex-direction:column; gap:8px; }
  .directory-heading h3 { font-size:25px; }
  .rank-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .rank-collectible { padding:17px 8px 14px; }
  .rank-collectible h4 { font-size:14px; }
  #global-stats-container { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .global-stat-card { padding:18px 12px; }
  .global-stat-card .value { font-size:28px; }
  .global-stat-card .label { font-size:11px; }
  .guide-start { grid-template-columns:1fr; }
  .guide-start button { padding:14px 0; }
  #commands .guide-start code { font-size:15px; }
  .guide-start button > span { font-size:14px; }
  .command-category-header { padding-left:14px; font-size:16px; }
  .command-category-content { padding:0 16px 20px; }
  #commands li, #commands .command-category-content p { font-size:15px; }
  #commands code { font-size:13px; }
  .support-card { display:flex; padding:24px; gap:0; }
  .support-card h3 { margin:22px 0 12px; }
  .support-card p { margin-bottom:18px; align-self:start; }
  .support-action { margin-top:auto; }
  .support-foot { flex-direction:column; gap:26px; }
  .support-foot p { font-size:19px; }
}

#auth-status:not(:empty) { display: block; max-width: 32ch; color: var(--text-primary); font-size: .85rem; }

.viewer-activity { margin:0 0 32px; padding:24px; background:#f3f3db; border:1px solid #c6d0a7; border-radius:18px; color:#243c2a; }
.viewer-activity h4 { font-size:28px; margin:8px 0; letter-spacing:-.7px; }
.viewer-activity h5 { margin:0 0 12px; font-size:17px; }
.viewer-activity p { line-height:1.6; color:#4f6145; }
.viewer-activity .eyebrow { color:#526744; }
.viewer-activity header > p, #stats .viewer-activity .profile-data-note { color:#4f6145; font-size:14px; }
.activity-highlights { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:24px 0 12px; }
.activity-highlights div { display:flex; flex-direction:column-reverse; justify-content:flex-end; gap:4px; }
.activity-highlights dd { margin:0; font-size:32px; font-weight:900; line-height:1.15; }
.activity-highlights dt { font-size:13px; }
.activity-calendar-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:24px; }
.activity-calendar-heading h5 { margin:0; }
.activity-calendar-heading > span { display:flex; gap:4px; align-items:center; font-size:12px; }
.activity-calendar-heading i { width:10px; height:10px; border-radius:2px; }
.activity-calendar { display:grid; grid-auto-flow:column; grid-template-rows:repeat(7,1fr); gap:4px; margin:16px 0; }
.activity-day { display:block; aspect-ratio:1; border-radius:3px; min-width:0; max-height:27px; background:#e2e7cf; }
[data-level="0"] { background:#e2e7cf; }
[data-level="1"] { background:#bfd480; }
[data-level="2"] { background:#81a84d; }
[data-level="3"] { background:#375d38; }
.activity-day[data-level="unknown"] { background:transparent; border:1px dashed #a1ad90; }
.activity-pad { visibility:hidden; }
.activity-day-list { font-size:14px; margin-bottom:24px; }
.activity-day-list summary { cursor:pointer; min-height:44px; display:flex; align-items:center; text-decoration:underline; }
.activity-day-list dl { max-height:250px; overflow:auto; }
.activity-day-list dl > div { display:flex; justify-content:space-between; gap:12px; padding:5px; }
.activity-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-top:22px; border-top:1px solid #c6d0a7; }
.activity-months, .activity-emotes { list-style:none; padding:0; margin:12px 0; }
.activity-months li { display:grid; grid-template-columns:55px minmax(16px,1fr) auto; align-items:center; gap:10px; margin:12px 0; font-size:13px; }
.activity-bar { height:8px; background:#e2e7cf; border-radius:8px; overflow:hidden; }
.activity-bar i { display:block; height:100%; background:#375d38; border-radius:8px; }
.activity-emotes li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #d9dfc2; font-size:14px; }
.activity-emote-name { overflow-wrap:anywhere; font-weight:800; }
.activity-emotes strong { flex-shrink:0; }
.community-activity { margin:40px 0; padding:32px; border:1px solid #566945; background:#1e3326; color:#f3f3db; border-radius:20px; }
.community-activity h3 { font-size:30px; line-height:1.2; margin:10px 0 20px; }
.community-activity .eyebrow { color:#c6df83; }
#stats .community-activity .profile-data-note, .activity-coverage { color:#ced6be; line-height:1.6; font-size:14px; }
.community-rates { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:24px 0; }
.community-rates article { border:1px solid #566945; border-radius:14px; padding:24px; }
.community-rates strong { display:block; font-size:38px; color:#d5ec9a; margin:8px 0; line-height:1.2; }
.community-rates article > span { font-size:16px; font-weight:800; }
.community-rates p, .community-rates small { font-size:14px; line-height:1.5; }
@media (max-width:580px) {
  .viewer-activity { padding:18px 14px; }
  .activity-highlights { gap:8px; }
  .activity-highlights dd { font-size:26px; }
  .activity-highlights dt { font-size:12px; }
  .activity-detail-grid, .community-rates { grid-template-columns:1fr; }
  .activity-calendar { gap:3px; }
  .community-activity { padding:24px 18px; }
  .community-activity h3 { font-size:25px; }
}
