@charset "UTF-8";

/* Portal interface overrides. Keep content and interaction in the existing DOM. */
:root {
  --bg: #101315;
  --panel: #191f1d;
  --ink: #f4f5f0;
  --muted: #bac3bf;
  --mint: #b7f674;
  --ui-border: #3d4943;
  --ui-radius: 12px;
  --ui-control-radius: 8px;
}

html { scroll-padding-top: 24px; }
body { line-height: 1.75; }
header, main, footer {
  width: 100%;
  max-width: 1200px;
  padding-inline: 32px;
}
main > *, .section-title > *, .hero-bottom > *,
.quick-actions > *, .shop-tools > *, .work-body { min-width: 0; }
h1, h2, h3, p, a, button, label, summary {
  overflow-wrap: anywhere;
  word-break: normal;
}
p { text-wrap: pretty; }
section:not(.hero) { padding-block: 44px; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: .13em; }
.section-title { gap: 16px; margin-bottom: 22px; }
.section-title h2, h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.45; }
.section-title p { font-size: 14px; }

/* Header and native details menu. Closed details must never expose its nav. */
header.site-header { min-height: 80px; gap: 20px; padding-block: 14px; }
.site-header .brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: .08em;
}
.brand span { font-size: 10px; letter-spacing: .15em; }
.site-header .primary-nav { gap: 20px; font-size: 14px; }
.site-header .primary-nav a { padding: 8px 2px; }
.more-menu summary {
  min-height: 44px;
  padding: 9px 14px;
  border-color: var(--ui-border);
  border-radius: var(--ui-control-radius);
  line-height: 1.5;
}
.more-menu:not([open]) nav { display: none; }
.more-menu[open] nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 260px;
  max-width: calc(100vw - 32px);
  max-height: 70svh;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  z-index: 20;
}
.more-menu nav a {
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  text-align: left;
  line-height: 1.6;
}

/* A short introduction followed immediately by the four entry points. */
.hero { padding: 40px 0 32px; }
.hero::before { background: none; }
.hero-signature {
  margin-top: 12px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.35;
}
.hero-signature span, .hero h1, .hero-bottom { animation: none; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.4;
  letter-spacing: .015em;
  margin: 14px 0 22px;
}
.hero-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-bottom p { flex: 1 1 320px; margin: 0; font-size: 15px; line-height: 1.8; }
.hero-bottom .primary, .hero-bottom .x-follow { flex: 0 1 auto; margin: 0; }
.hero-mark { top: 18px; right: 0; font-size: 94px; opacity: .32; }
.quick-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.quick-actions a {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px 10px;
  min-width: 0;
  min-height: 108px;
  padding: 18px;
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--panel);
  line-height: 1.6;
}
.quick-actions strong { font-size: 16px; line-height: 1.5; }
.quick-actions a > span:last-child { font-size: 13px; }
.quick-icon { font-size: 25px; }

/* Shared controls: readable labels and a minimum 44px hit area. */
.primary, .x-follow, .share-x, .support-button,
.quiz-next, .quiz-secondary, .quiz-link,
.shop-tools button, .shop-copy, .filters button, .word-suggestions button {
  min-height: 44px;
  border-radius: var(--ui-control-radius);
  font-size: 14px;
  line-height: 1.6;
}
.primary, .x-follow, .share-x, .quiz-next, .quiz-secondary, .quiz-link {
  padding: 11px 16px;
}
.primary { align-items: center; justify-content: space-between; gap: 16px; }
.x-follow, .share-x { gap: 12px; }
.quiz-secondary, .quiz-link, .shop-copy, .shop-tools button, .filters button {
  border-color: var(--ui-border);
}
.filters, .shop-filters { gap: 8px; }
.filters button, .shop-tools button, .shop-copy, .word-suggestions button {
  padding: 10px 14px;
}
.filters button.active, .filters button[aria-pressed="true"],
.shop-filters button[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: #17200e;
  font-weight: 700;
}
.shop-tools { gap: 12px; margin: 20px 0; }
.shop-tools label { min-width: 0; gap: 6px; }
.shop-tools input, .copy-fallback, #favorite-word {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border-color: #59695f;
  border-radius: var(--ui-control-radius);
  font-size: 16px;
  line-height: 1.6;
}
.shop-tools p, .shop-help, .disclosure, .quiz-privacy, .quiz-adult {
  font-size: 13px;
  line-height: 1.85;
}
#shop-reset { margin-left: auto; }

/* Cards use one spacing and border system; badges remain ordinary content. */
.shops { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shop {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px 10px;
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--ui-border);
  border-top: 3px solid var(--accent, var(--mint));
  border-radius: var(--ui-radius);
  background: var(--panel);
  transition: none;
}
.shop[href]:hover { transform: none; background: #202923; }
.shop-number { width: 100%; margin: 0 0 4px; font-size: 11px; line-height: 1.5; }
.shop .link-name { flex: 1 1 55%; font-size: 21px; line-height: 1.5; }
.shop .link-state { margin-left: auto; font-size: 13px; }
.shop p { width: 100%; margin: 2px 0 0; font-size: 14px; line-height: 1.8; }
.badge, .age-badge { flex: 0 0 auto; border-radius: 4px; font-size: 12px; }
.shop-copy { margin-top: 8px; font-size: 13px; }
.works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work {
  min-width: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--panel);
}
.work-body { padding: 22px; }
.work h3 { margin: 10px 0; font-size: 20px; line-height: 1.6; }
.work p { font-size: 14px; line-height: 1.85; }
.work-link { min-height: 48px; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-color: var(--ui-border); }
.work-link .link-name { font-size: 15px; }
.empty { padding: 32px 24px; border-color: #53624c; border-radius: var(--ui-radius); }
.empty h3 { font-size: 21px; }
.empty p { max-width: 66ch; margin-inline: auto; font-size: 14px; }
.empty .primary { display: inline-flex; width: auto; max-width: 100%; margin-top: 20px; }
.adult-notice { padding: 16px 18px; margin-bottom: 20px; border-radius: var(--ui-radius); }
.adult-notice strong { font-size: 15px; }
.adult-notice p { font-size: 14px; }
.quiz-panel { border-color: var(--ui-border); border-radius: var(--ui-radius); }
.support { gap: 28px; }
.support h2 { font-size: clamp(28px, 3.5vw, 38px); }
.support-button { padding: 22px; gap: 8px 12px; border-radius: var(--ui-radius); }
.support-button .link-name { font-size: 22px; line-height: 1.5; }
.support-button small { font-size: 14px; }
.about { max-width: 760px; }
.about p, .contact p, .support p { font-size: 15px; }
.contact .primary { width: auto; margin: 0; }

/* FAQ summaries retain the native disclosure and keyboard behavior. */
.portal-faq details {
  margin: 10px 0;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--panel);
}
.portal-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
  list-style: none;
  border-radius: var(--ui-radius);
}
.portal-faq summary::-webkit-details-marker { display: none; }
.portal-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--mint); font-size: 20px; }
.portal-faq details[open] > summary::after { content: "−"; }
.portal-faq details p { margin: 0; padding: 0 18px 18px; font-size: 14px; line-height: 1.9; }
.site-notice p { max-width: 90ch; font-size: 13px; }
footer { gap: 16px 24px; min-height: 100px; padding-block: 24px; }
footer a, footer > a:last-child, footer p { font-size: 13px; }
.mobile-dock { display: none; }

@media (max-width: 900px) {
  header, main, footer { padding-inline: 24px; }
  .site-header .primary-nav { gap: 16px; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions a { min-height: 96px; }
  .shops, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { gap: 12px; }
  .contact .primary { width: auto; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 16px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  header, main, footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  header.site-header {
    min-height: 68px;
    gap: 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }
  .site-header .brand { min-height: 44px; font-size: 20px; }
  .site-header .primary-nav { display: none; }
  .more-menu summary { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 22px 0 24px; }
  .hero-signature { margin-top: 8px; font-size: 26px; }
  .hero h1 { font-size: clamp(27px, 7.7vw, 38px); line-height: 1.4; margin: 10px 0 14px; }
  .hero-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .hero-bottom p { grid-column: 1 / -1; font-size: 14px; line-height: 1.8; }
  .hero-bottom .primary, .hero-bottom .x-follow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 10px 12px;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
  }
  .hero-bottom .primary > span, .hero-bottom .x-follow > span { flex: 0 0 auto; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .quick-actions a {
    grid-template-columns: 22px minmax(0, 1fr);
    align-content: start;
    gap: 5px 7px;
    min-height: 96px;
    padding: 12px;
  }
  .quick-actions .quick-icon { grid-row: 1; font-size: 22px; line-height: 1.5; }
  .quick-actions strong { align-self: center; font-size: 15px; line-height: 1.5; }
  .quick-actions a > span:last-child { grid-column: 1 / -1; font-size: 12px; line-height: 1.7; }
  section:not(.hero) { padding-block: 32px; }
  .section-title { gap: 10px; margin-bottom: 18px; }
  .section-title h2, h2 { font-size: 25px; }
  .section-title p { font-size: 14px; }
  .shops, .works { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop, .shop-entry .shop { min-height: 144px; padding: 18px; }
  .shop .link-name { font-size: 21px; }
  .shop .link-state { margin-left: auto; }
  .shop-tools { gap: 12px; margin: 18px 0; }
  .shop-tools label { flex-basis: 100%; }
  .shop-filters { display: flex; width: 100%; }
  .shop-filters button { flex: 1 1 130px; padding: 10px 12px; font-size: 13px; }
  #shop-reset { margin-left: 0; }
  .filters { gap: 8px; }
  .filters button { flex: 1 1 auto; padding: 10px 12px; font-size: 13px; }
  .work-body { padding: 18px; }
  .work h3 { font-size: 20px; }
  .work p, .empty p { font-size: 14px; }
  .empty { padding: 28px 18px; }
  .adult-notice { padding: 14px 16px; }
  .adult-notice p { font-size: 13px; }
  .quiz-panel { padding: 20px 16px; }
  .quiz-actions { gap: 10px; flex-wrap: wrap; }
  .quiz-actions > button { min-width: 0; }
  .support { gap: 20px; }
  .support-button { min-width: 0; padding: 20px; }
  .contact .primary { width: 100%; }
  .portal-faq summary { padding: 14px 16px; font-size: 14px; }
  .portal-faq details p { padding: 0 16px 16px; font-size: 14px; }
  footer { gap: 10px; padding-top: 24px; padding-bottom: 24px; }
  footer .brand { min-height: 44px; }
  footer a, footer > a:last-child, footer p { font-size: 13px; }

  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-color: var(--ui-border);
    background: #151d1a;
  }
  .mobile-dock a {
    min-width: 0;
    min-height: 52px;
    padding: 5px 2px;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: var(--ui-control-radius);
    font-size: 11px;
    line-height: 1.4;
    color: var(--muted);
  }
  .mobile-dock a > span { font-size: 20px; line-height: 1.1; }
  .mobile-dock a[aria-current]:not([aria-current="false"]) {
    border-color: #b7f67455;
    background: #b7f67418;
    color: var(--mint);
    font-weight: 700;
  }
  .mobile-dock a[aria-current="false"] { background: transparent; color: var(--muted); }
  .mobile-dock a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 359px) {
  .site-header .brand { font-size: 19px; }
  .hero h1 { font-size: 27px; }
  .quick-actions strong { font-size: 14px; }
}

:is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .quick-actions a:hover, .shop-copy:hover,
  .shop-tools button:not([aria-pressed="true"]):hover,
  .filters button:not([aria-pressed="true"]):hover {
    border-color: var(--mint);
    background: #243023;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Hidden result panels and controls always stay hidden until their JS reveals them. */
[hidden] { display: none !important; }

/* Search the existing catalog without leaving the page. */
.work-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end;margin:0 0 22px;padding:20px;background:var(--panel);border:1px solid var(--ui-border);border-radius:12px}
.work-tools label{display:grid;gap:6px;min-width:0;font-size:14px;font-weight:700}.work-tools input,.work-tools select{width:100%;min-width:0;min-height:48px;border:1px solid #59695f;border-radius:8px;padding:10px 12px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px}.work-tools option{background:var(--bg);color:var(--ink)}.work-tools button{min-height:48px;font-size:14px}.work-tools p{grid-column:1/-1;margin:0;color:var(--muted);font-size:14px}.empty button{margin:20px 0 10px}.empty .primary{width:fit-content;max-width:100%;margin:12px auto 0}.more-menu nav a{flex-shrink:0}
@media(max-width:800px){.work-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.work-tools label:first-child{grid-column:1/-1}.work-tools button{grid-column:1/-1}}
@media(max-width:480px){.work-tools{padding:16px;gap:12px}.work-tools label{font-size:14px}.work-tools select{padding-inline:8px}}
