:root{
  --bg:#050507;
  --panel:#09090c;
  --fg:#f3efe7;
  --muted:#9b9690;
  --dim:#625f5b;
  --gold:#ddb34c;
  --line:rgba(255,255,255,.10);
  --line-soft:rgba(255,255,255,.055);
  --display-title-size:clamp(38px,5.3vw,66px);
  --surface-bg:
    radial-gradient(circle at 20% 18%,rgba(221,179,76,.028),transparent 24%),
    radial-gradient(circle at 82% 82%,rgba(221,179,76,.018),transparent 30%),
    linear-gradient(180deg,#09090c 0%,#060609 54%,#050507 100%);
  --surface-tech: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22420%22%20height%3D%22316%22%20viewBox%3D%220%200%20420%20316%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23ddb34c%22%20stroke-opacity%3D%22.15%22%20stroke-width%3D%221.35%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M0%2080H84V126H154V94H226V144H312V112H420%22%2F%3E%3Cpath%20d%3D%22M18%20246H96V212H168V250H244V224H330V264H420%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23ddb34c%22%20fill-opacity%3D%22.24%22%3E%3Crect%20x%3D%2254%22%20y%3D%2246%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22362%22%20y%3D%2252%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22348%22%20y%3D%22268%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2266%22%20y%3D%22260%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22208%22%20y%3D%2238%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%22208%22%20y%3D%22274%22%20width%3D%224%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;
  background:
    radial-gradient(circle at 50% -10%,rgba(221,179,76,.09),transparent 31%),
    linear-gradient(180deg,#050507 0%,#060609 55%,#050507 100%);
  color:var(--fg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x:hidden;
}
a{color:inherit}
button{font:inherit}
canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  opacity:.24;
}
.noise{
  position:fixed;
  inset:0;
  z-index:20;
  pointer-events:none;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.topbar{
  position:fixed;
  inset:0 0 auto;
  height:68px;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  border-bottom:1px solid var(--line-soft);
  background:rgba(5,5,7,.72);
  backdrop-filter:blur(18px);
}
.brand{
  text-decoration:none;
  font-size:12px;
  font-weight:850;
  letter-spacing:.30em;
}
.topbar-actions{display:flex;align-items:center;gap:10px}
.language-switch{
  display:flex;
  gap:2px;
  padding:2px;
  border:1px solid var(--line);
  border-radius:999px;
}
.language-switch button{
  border:0;
  background:transparent;
  color:#706c67;
  padding:6px 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
  cursor:pointer;
}
.language-switch button.active{background:rgba(221,179,76,.14);color:#d8c58f}
.repo-link{
  position:relative;
  z-index:82;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid rgba(221,179,76,.58);
  border-radius:999px;
  padding:8px 13px;
  text-decoration:none;
  color:#f0c85e;
  background:linear-gradient(180deg,rgba(221,179,76,.11),rgba(221,179,76,.045));
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  box-shadow:
    0 0 0 1px rgba(221,179,76,.05),
    0 5px 18px rgba(0,0,0,.24),
    0 0 20px rgba(221,179,76,.07);
  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}
.repo-link:hover,
.repo-link:focus-visible{
  border-color:rgba(221,179,76,.9);
  color:#ffe08a;
  background:linear-gradient(180deg,rgba(221,179,76,.18),rgba(221,179,76,.07));
  box-shadow:
    0 0 0 1px rgba(221,179,76,.08),
    0 7px 22px rgba(0,0,0,.28),
    0 0 26px rgba(221,179,76,.14);
  transform:translateY(-1px);
  outline:none;
}
.repo-link-wrap{
  position:relative;
}
.repo-link-wrap::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:6px;
  pointer-events:auto;
  z-index:79;
}
.promptforge-info{
  position:absolute;
  top:calc(100% + 2px);
  right:0;
  width:min(460px,calc(100vw - 32px));
  padding:22px;
  border:1px solid rgba(221,179,76,.28);
  border-radius:13px;
  background:rgba(8,8,10,.96);
  box-shadow:0 18px 44px rgba(0,0,0,.36),0 0 28px rgba(221,179,76,.05);
  backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px) scale(.98);
  transform-origin:top right;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  pointer-events:none;
  z-index:80;
}
.repo-link-wrap:hover .promptforge-info,
.repo-link-wrap:focus-within .promptforge-info{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.promptforge-info::before{
  content:"";
  position:absolute;
  top:-6px;
  right:20px;
  width:11px;
  height:11px;
  border-left:1px solid rgba(221,179,76,.28);
  border-top:1px solid rgba(221,179,76,.28);
  background:rgba(8,8,10,.96);
  transform:rotate(45deg);
}
.promptforge-info-title{
  color:#e8bd57;
  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;
}
.promptforge-info p{
  margin:13px 0 0;
  color:#a7a098;
  font-size:13px;
  line-height:1.7;
}
.promptforge-info strong{
  color:#d8c58f;
  font-weight:800;
}
.promptforge-info-url{
  margin-top:15px;
  color:#777069;
  font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  overflow-wrap:anywhere;
}
.promptforge-info-actions{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:12px;
}
.promptforge-info-actions a,
.promptforge-info-actions button{
  border:1px solid rgba(221,179,76,.30);
  border-radius:999px;
  min-height:36px;
  padding:0 13px;
  background:rgba(255,255,255,.018);
  color:#c1b8ad;
  text-decoration:none;
  cursor:pointer;
  font-size:10px;
  font-weight:850;
  letter-spacing:.11em;
  white-space:nowrap;
}
.promptforge-info-actions a:hover,
.promptforge-info-actions a:focus-visible,
.promptforge-info-actions button:hover,
.promptforge-info-actions button:focus-visible{
  border-color:rgba(221,179,76,.46);
  color:var(--gold);
  outline:none;
}
.promptforge-info-actions button{
  color:#e8c86b;
}
.promptforge-info-actions button[data-copy-promptforge]{
  border-color:rgba(221,179,76,.58);
  background:rgba(221,179,76,.065);
}
.promptforge-info-actions button[data-copy-ai-context]{
  color:#ffe08a;
  border-color:rgba(221,179,76,.72);
  background:linear-gradient(180deg,rgba(221,179,76,.13),rgba(221,179,76,.05));
  box-shadow:0 0 18px rgba(221,179,76,.06);
}
.promptforge-info-actions button.is-copying{
  background:rgba(221,179,76,.12);
  border-color:rgba(221,179,76,.76);
}
@media(max-width:850px){
  .promptforge-info{
    right:-8px;
  }
}

main{position:relative;z-index:2}
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:72vh;
  display:grid;
  place-items:center;
  padding:130px 24px 86px;
  text-align:center;
}
.hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  width:min(720px,76vw);
  aspect-ratio:1;
  left:50%;
  top:54%;
  transform:translate(-50%,-50%);
  background:url("/assets/logo-transparente.png") center/contain no-repeat;
  opacity:.07;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(
      circle 210px at var(--hero-mx,50%) var(--hero-my,50%),
      rgba(255,225,140,.14) 0%,
      rgba(221,179,76,.075) 24%,
      rgba(221,179,76,.032) 48%,
      transparent 76%
    ),
    radial-gradient(
      circle 460px at var(--hero-mx,50%) var(--hero-my,50%),
      rgba(221,179,76,.028) 0%,
      transparent 72%
    );
  opacity:var(--hero-torch,0);
  transition:opacity .18s ease;
}
.hero-logo-light{
  position:absolute;
  z-index:0;
  pointer-events:none;
  width:min(720px,76vw);
  aspect-ratio:1;
  left:50%;
  top:54%;
  transform:translate(-50%,-50%);
  background:url("/assets/logo-transparente.png") center/contain no-repeat;
  filter:brightness(1.45) saturate(1.08) contrast(1.06);
  opacity:var(--hero-logo-light,0);
  -webkit-mask-image:radial-gradient(
    circle 185px at var(--hero-mx,50%) var(--hero-my,50%),
    #000 0%,
    #000 28%,
    rgba(0,0,0,.72) 45%,
    rgba(0,0,0,.24) 62%,
    transparent 82%
  );
  mask-image:radial-gradient(
    circle 185px at var(--hero-mx,50%) var(--hero-my,50%),
    #000 0%,
    #000 28%,
    rgba(0,0,0,.72) 45%,
    rgba(0,0,0,.24) 62%,
    transparent 82%
  );
}
.hero-inner{
  position:relative;
  z-index:1;
}
.hero-inner,
.prompt-inner,
.machine-inner{
  width:min(980px,100%);
  margin:0 auto;
}
.eyebrow{
  color:var(--gold);
  font-size:9px;
  font-weight:850;
  letter-spacing:.30em;
  text-transform:uppercase;
}
.hero h1{
  max-width:840px;
  margin:20px auto 0;
  font-size:clamp(46px,6.4vw,88px);
  line-height:.94;
  letter-spacing:-.065em;
  text-wrap:balance;
}
.hero-copy{
  max-width:610px;
  margin:24px auto 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
.hero-cue{
  justify-content:center;
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:42px;
  color:#64605b;
  font-size:9px;
  letter-spacing:.22em;
}
.hero-cue span:first-child{
  width:54px;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--gold));
}
.hero-cue span:last-child{
  width:54px;
  height:1px;
  background:linear-gradient(90deg,var(--gold),transparent);
}
.library{
  width:min(980px,calc(100% - 40px));
  margin:0 auto;
}
.prompt{
  position:relative;
  padding:86px 0 92px;
  border-top:1px solid var(--line-soft);
  overflow:hidden;
  scroll-margin-top:82px;
  isolation:isolate;
  background:var(--surface-bg);
}

.prompt:last-child{border-bottom:1px solid var(--line-soft)}
.prompt::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.72;
  background-image:var(--surface-tech);
  background-position:center;
  background-size:640px 640px;
  background-repeat:repeat;
}.prompt::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.92;
  background:
    radial-gradient(circle at var(--mx,76%) var(--my,28%),rgba(221,179,76,var(--halo-alpha,0)),transparent 23%),
    linear-gradient(90deg,transparent 0%,rgba(221,179,76,.018) 50%,transparent 100%);
}.prompt-inner{position:relative;z-index:2}
.prompt-index{
  position:absolute;
  right:0;
  top:42px;
  color:rgba(255,255,255,.025);
  font-size:clamp(90px,13vw,170px);
  line-height:1;
  font-weight:850;
  letter-spacing:-.08em;
  user-select:none;
}
.prompt-category{
  color:var(--gold);
  text-align:center;
  font-size:9px;
  font-weight:850;
  letter-spacing:.28em;
}
.prompt-title{
  max-width:760px;
  margin:17px auto 22px;
  font-size:var(--display-title-size);
  line-height:.98;
  letter-spacing:-.055em;
  text-wrap:balance;
  text-align:center;
}
.block-label{
  margin-bottom:8px;
  color:#6a655f;
  font-size:8px;
  font-weight:850;
  letter-spacing:.20em;
  text-transform:uppercase;
  text-align:center;
}
.prompt-box{
  width:min(820px,100%);
  padding:20px 21px;
  border:1px solid var(--line);
  border-left:2px solid var(--gold);
  border-radius:0 12px 12px 0;
  background:linear-gradient(90deg,rgba(221,179,76,.055),rgba(255,255,255,.012));
  color:#d8d2c8;
  font:13px/1.78 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  white-space:pre-wrap;
  margin-left:auto;
  margin-right:auto;
}
.prompt-actions{
  width:min(820px,100%);
  margin:25px auto 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}
.prompt-actions .expand{
  margin-top:0;
}
.prompt-actions .copy{
  width:auto;
  min-width:116px;
  min-height:42px;
}
.expand{
  border:1px solid var(--line);
  background:rgba(255,255,255,.018);
  border-radius:999px;
  color:#d8d2c8;
  padding:9px 12px 9px 14px;
  cursor:pointer;
  display:flex;
  width:max-content;
  align-items:center;
  gap:10px;
  font-size:9px;
  font-weight:850;
  letter-spacing:.16em;
}
.expand:hover{border-color:rgba(221,179,76,.45)}
.expand-icon{
  width:23px;
  height:23px;
  border:1px solid rgba(221,179,76,.55);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:11px;
}
.extended{
  width:min(820px,100%);
  margin-left:auto;
  margin-right:auto;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .65s cubic-bezier(.2,.75,.2,1),opacity .3s ease,margin-top .3s ease;
}
.prompt.open .extended{
  max-height:2400px;
  opacity:1;
  margin-top:32px;
}
.extended-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.extended-main{min-width:0}
.extended-footer{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}
.extended-box{
  padding:21px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:#dcd6cc;
  font:12.5px/1.82 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  white-space:pre-wrap;
}
.side{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  min-width:0;
}
.side-box{
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:11px;
  background:rgba(255,255,255,.015);
}
.side-label{
  color:#6b665f;
  font-size:8px;
  font-weight:850;
  letter-spacing:.18em;
}
.side-copy{
  margin-top:7px;
  color:#9a948c;
  font-size:11px;
  line-height:1.55;
}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.tag{
  padding:5px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#938d85;
  font-size:8px;
}
.extended-actions{
  min-width:0;
  min-height:104px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
}

.copy{
  width:100%;
  min-height:42px;
  padding:0 14px;
  border:1px solid rgba(221,179,76,.48);
  border-radius:999px;
  background:rgba(221,179,76,.07);
  color:#e8c86b;
  cursor:pointer;
  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
  box-shadow:0 5px 18px rgba(0,0,0,.12);
}
.copy:hover{
  border-color:rgba(221,179,76,.72);
  background:rgba(221,179,76,.12);
}
.copy.primary{background:var(--gold);border-color:var(--gold);color:#111}
.permalink{
  margin-top:10px;
  color:#64605b;
  font:8px/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  overflow-wrap:anywhere;
}
.machine{
  min-height:55vh;
  display:grid;
  place-items:center;
  padding:92px 24px;
  border-top:1px solid var(--line-soft);
  text-align:center;
}
.machine h2{
  margin:18px auto;
  max-width:720px;
  font-size:clamp(34px,5.1vw,62px);
  line-height:1;
  letter-spacing:-.055em;
  text-wrap:balance;
}
.machine p{
  max-width:590px;
  margin:0 auto;
  color:#8f8981;
  line-height:1.7;
  font-size:14px;
}
.machine code{
  display:inline-flex;
  margin-top:22px;
  padding:10px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#070709;
  color:#bdb6ac;
  font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
.aevumard-kicker{ text-transform:none; }
.footer-brand{ text-transform:none; }
footer{
  position:relative;
  z-index:2;
  width:min(980px,calc(100% - 40px));
  margin:0 auto;
  padding:42px 0 58px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#504c47;
  font-size:8px;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.error{
  min-height:60vh;
  display:grid;
  place-items:center;
  padding:100px 20px;
  text-align:center;
  color:#8e8982;
}
@media(max-width:850px){
  :root{--display-title-size:clamp(34px,9vw,52px)}
  .topbar{padding:0 16px}
  .repo-link{display:none}
  .library{width:min(100% - 28px,680px)}
  .prompt{padding:66px 0 72px}
  .prompt-index{right:-2px;top:30px}
  .prompt-title{max-width:100%;font-size:clamp(34px,9vw,52px)}
  .extended-grid{grid-template-columns:1fr}
  .extended-footer{grid-template-columns:repeat(2,minmax(0,1fr))}
  footer{width:calc(100% - 28px);flex-direction:column}
}
@media(max-width:560px){
  .extended-footer{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .extended{transition:none}
}


.entry-choice{width:min(820px,100%);margin:46px auto 0}
.choice-label{margin-bottom:12px;color:#716b63;font-size:8px;font-weight:850;letter-spacing:.22em;text-align:center}
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode-option{min-height:118px;padding:22px;border:1px solid rgba(221,179,76,.28);border-radius:14px;background:rgba(221,179,76,.018);color:var(--fg);text-align:left;cursor:pointer;transition:.2s}
.mode-option:hover,.mode-option:focus-visible{transform:translateY(-2px);border-color:rgba(221,179,76,.68);background:rgba(221,179,76,.05);outline:none}
.mode-name{display:block;color:#e7bc56;font-size:13px;font-weight:900;letter-spacing:.18em}
.mode-description{display:block;margin-top:10px;max-width:360px;color:#827b72;font-size:11px;line-height:1.55}
.categories-panel[hidden],.library[hidden]{display:none!important}
.categories-panel{width:min(980px,calc(100% - 40px));margin:0 auto;padding:78px 0 70px;scroll-margin-top:82px;text-align:center}
.categories-inner h2{margin:14px auto 12px;max-width:700px;font-size:var(--display-title-size);line-height:.98;letter-spacing:-.055em}
.categories-inner p{max-width:590px;margin:0 auto 30px;color:#8e8880;font-size:14px;line-height:1.7}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;text-align:left}
.category-card{
  display:grid;
  grid-template-columns:48px 1fr auto;
  grid-template-rows:auto auto;
  column-gap:13px;
  align-items:center;
  min-height:104px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-bg);
  color:var(--fg);
  cursor:pointer;
  transition:.2s;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.category-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.72;
  background-image:var(--surface-tech);
  background-position:center;
  background-size:640px 640px;
  background-repeat:repeat;
}
.category-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.92;
  background:
    radial-gradient(circle at var(--mx,76%) var(--my,28%),rgba(221,179,76,var(--halo-alpha,0)),transparent 23%);
}
.category-card:hover,.category-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(221,179,76,.58);
  background:
    radial-gradient(circle at 20% 28%,rgba(221,179,76,.055),transparent 30%),
    linear-gradient(180deg,rgba(10,9,10,.98),rgba(6,6,8,.99));
  outline:none
}
.category-number{display:none}
.category-name{grid-column:2;grid-row:1;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:24px;font-weight:400;letter-spacing:0;line-height:1.08;color:#eadfcf}
.category-description{grid-column:2;grid-row:2;margin-top:8px;color:#817a72;font-size:12px;line-height:1.5}
.category-arrow{
  grid-column:3;
  grid-row:1;
  align-self:start;
  justify-self:end;
  margin-top:-6px;
  color:var(--gold);
  font-size:18px;
}
.library-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:38px 0 8px}
.library-toolbar h2{margin:8px 0 0;font-size:var(--display-title-size);line-height:.98;letter-spacing:-.055em}
.library-back{border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:transparent;color:#aaa199;cursor:pointer;font-size:8px;font-weight:850;letter-spacing:.16em}
.library-back:hover,.library-back:focus-visible{border-color:rgba(221,179,76,.52);color:#e8ddcc;outline:none}
body[data-mode="discover"] .library{width:min(1040px,calc(100% - 32px))}
body[data-mode="discover"] .prompt{min-height:calc(100vh - 68px);display:flex;align-items:center;scroll-snap-align:start}
body[data-mode="discover"] .library-toolbar{display:none}
body[data-mode="discover"] .prompt-index{top:50%;transform:translateY(-50%);color:rgba(221,179,76,.055)}
body[data-mode="discover"] .prompt-box{border-color:rgba(221,179,76,.28);background:linear-gradient(90deg,rgba(221,179,76,.065),rgba(255,255,255,.012))}
body[data-mode="discover"] .prompt-category{color:#e8bd57}
body[data-mode="discover"] .expand{border-color:rgba(221,179,76,.32)}
html{scroll-snap-type:y proximity}
.eyebrow{color:#e8bd57}
.brand{color:#e8bd57;text-shadow:0 0 24px rgba(221,179,76,.12)}
@media(max-width:850px){
  .mode-switch{grid-template-columns:1fr}
  .entry-choice{margin-top:34px}
  .categories-panel{width:min(100% - 28px,680px);padding:58px 0}
  .category-grid{grid-template-columns:1fr}
  .library{width:min(100% - 28px,680px)}
  .library-toolbar{align-items:center}
  body[data-mode="discover"] .prompt{min-height:calc(100vh - 68px);padding:66px 0 72px}
}
@media(prefers-reduced-motion:reduce){html{scroll-snap-type:none}}


/* Discover: same typography, different flow */
html{scroll-snap-type:none}
body[data-mode="discover"] .library{
  width:min(980px,calc(100% - 40px));
}
body[data-mode="discover"] .prompt{
  min-height:0;
  padding:68px 0 74px;
  display:block;
  scroll-snap-align:none;
}
body[data-mode="discover"] .prompt-inner{
  width:min(980px,100%);
}
body[data-mode="discover"] .prompt-index{
  top:28px;
  right:0;
  transform:none;
  font-size:clamp(72px,9vw,118px);
  color:rgba(221,179,76,.035);
}
@media(max-width:850px){
  html{scroll-snap-type:none}
  body[data-mode="discover"] .library{
    width:min(100% - 28px,680px);
  }
  body[data-mode="discover"] .prompt{
    min-height:0;
    padding:52px 0 58px;
  }
  body[data-mode="discover"] .prompt-index{
    top:18px;
    font-size:72px;
  }
}
@media(prefers-reduced-motion:reduce){
  html{scroll-snap-type:none}
}


/* Footer: quiet legal / machine note */
footer{
  align-items:flex-end;
  flex-wrap:wrap;
}
.footer-legal{
  width:100%;
  margin-top:10px;
  color:#3f3c38;
  font-size:7px;
  line-height:1.7;
  letter-spacing:.10em;
  text-align:center;
}
@media(max-width:850px){
  .footer-legal{
    text-align:left;
  }
}


/* Persistent mode switch after entering the library */
.mode-dock{
  position:fixed;
  top:78px;
  left:50%;
  transform:translateX(-50%);
  z-index:45;
  width:min(820px,calc(100% - 32px));
}
.mode-dock[hidden]{display:none!important}
.mode-dock .entry-choice{
  width:100%;
  margin:0;
  padding:7px;
  border:1px solid rgba(221,179,76,.18);
  border-radius:14px;
  background:rgba(8,8,10,.78);
  box-shadow:0 14px 34px rgba(0,0,0,.22);
  backdrop-filter:blur(16px);
}
.mode-dock .choice-label{display:none}
.mode-dock .mode-switch{gap:6px}
.mode-dock .mode-option{
  min-height:58px;
  padding:10px 14px;
  border-radius:10px;
}
.mode-dock .mode-name{
  font-size:10px;
  letter-spacing:.15em;
}
.mode-dock .mode-description{
  margin-top:5px;
  font-size:9px;
  line-height:1.4;
}
body[data-mode="discover"] .library,
body[data-mode="categories"] .library,
body[data-mode="categories"] .categories-panel{
  scroll-margin-top:220px;
}
body[data-mode="discover"] .prompt{
  scroll-margin-top:220px;
}
@media(max-width:850px){
  .mode-dock{
    top:74px;
    width:calc(100% - 20px);
  }
  .mode-dock .entry-choice{
    padding:6px;
  }
  .mode-dock .mode-switch{
    grid-template-columns:1fr 1fr;
  }
  .mode-dock .mode-option{
    min-height:54px;
    padding:9px 10px;
  }
  .mode-dock .mode-description{
    font-size:8px;
  }
}

/* Category figure system — Lucide icons from the approved preview template */
.category-card-art,
.prompt-category-art{
  position:absolute;
  display:block;
  pointer-events:none;
  color:rgba(221,179,76,.23);
  background:currentColor;
  -webkit-mask-image:var(--icon-url);
  mask-image:var(--icon-url);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
  filter:drop-shadow(0 0 18px rgba(221,179,76,.06));
}
.category-card-art{
  right:16px;
  bottom:12px;
  width:74px;
  height:74px;
  z-index:1;
}
.prompt-category-art{
  right:5%;
  bottom:10px;
  width:150px;
  height:150px;
  z-index:1;
}
.category-card > :not(.category-card-art){
  position:relative;
  z-index:2;
}
.prompt-inner{
  position:relative;
  z-index:2;
}
.category-card{
  text-align:left;
  min-height:148px;
}
@media(max-width:850px){
  .category-card{
    min-height:132px;
  }
  .category-card-art{
    right:12px;
    bottom:10px;
    width:62px;
    height:62px;
  }
  .prompt-category-art{
    right:2%;
    bottom:8px;
    width:118px;
    height:118px;
  }
}



/* Prompt action button: full yellow state while open */
.prompt.open .expand{
  background:var(--gold);
  border-color:var(--gold);
  color:#111;
  box-shadow:0 8px 24px rgba(221,179,76,.22);
}
.prompt.open .expand:hover,
.prompt.open .expand:focus-visible{
  background:#efc45b;
  border-color:#efc45b;
  color:#111;
}
.prompt.open .expand-icon{
  border-color:rgba(17,17,17,.28);
  background:rgba(17,17,17,.08);
  color:#111;
}

/* Category cards: make the entire label hierarchy glow on hover/focus */
.category-card:hover .category-number,
.category-card:focus-visible .category-number,
.category-card:hover .category-name,
.category-card:focus-visible .category-name,
.category-card:hover .category-description,
.category-card:focus-visible .category-description,
.category-card:hover .category-arrow,
.category-card:focus-visible .category-arrow{
  color:var(--gold);
}
.category-card:hover .category-name,
.category-card:focus-visible .category-name{
  text-shadow:0 0 18px rgba(221,179,76,.18);
}
.category-card:hover .category-description,
.category-card:focus-visible .category-description{
  color:#d9b85e;
}
.category-card:hover .category-number,
.category-card:focus-visible .category-number{
  color:#b88f35;
}

/* Prompt action button: match category hover treatment */
.prompt .expand{
  background:rgba(255,255,255,.018);
  border-color:var(--line);
  color:#d8d2c8;
  box-shadow:none;
}
.prompt .expand:hover,
.prompt .expand:focus-visible,
.prompt.open .expand,
.prompt.open .expand:hover,
.prompt.open .expand:focus-visible{
  background:rgba(221,179,76,.045);
  border-color:rgba(221,179,76,.45);
  color:var(--gold);
  box-shadow:none;
}
.prompt .expand:hover .expand-label,
.prompt .expand:focus-visible .expand-label,
.prompt.open .expand .expand-label,
.prompt.open .expand:hover .expand-label,
.prompt.open .expand:focus-visible .expand-label,
.prompt .expand:hover .expand-icon,
.prompt .expand:focus-visible .expand-icon,
.prompt.open .expand .expand-icon,
.prompt.open .expand:hover .expand-icon,
.prompt.open .expand:focus-visible .expand-icon{
  color:var(--gold);
}
.prompt .expand-icon,
.prompt.open .expand-icon{
  border-color:rgba(221,179,76,.55);
  background:transparent;
  color:var(--gold);
}


/* Prompt open/close interaction */
.prompt .expand{
  animation:promptAction .28s cubic-bezier(.2,.75,.2,1);
}
.prompt.open .expand{
  animation:promptAction .32s cubic-bezier(.2,.75,.2,1);
}
.prompt .expand-icon{
  transition:transform .28s cubic-bezier(.2,.75,.2,1),color .22s ease,border-color .22s ease;
}
.prompt.open .expand-icon{
  transform:rotate(180deg);
}
@keyframes promptAction{
  from{opacity:.45;transform:translateY(5px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* COPY PROMPT interaction */
.copy.is-copying{
  animation:copyPromptPulse .48s cubic-bezier(.2,.75,.2,1);
  border-color:var(--gold);
  color:var(--gold);
}
@keyframes copyPromptPulse{
  0%{transform:scale(1)}
  35%{transform:scale(1.06);box-shadow:0 0 0 5px rgba(221,179,76,.10)}
  70%{transform:scale(.98)}
  100%{transform:scale(1)}
}



/* Category mode starts directly on the category grid. */
.categories-panel{
  padding-top:22px;
}
.categories-panel{
  position:relative;
}

.categories-easter-egg{
  position:absolute;
  left:50%;
  bottom:18px;
  width:min(90%,620px);
  transform:translateX(-50%);
  pointer-events:none;
  z-index:4;
  opacity:0;
  visibility:hidden;
  text-align:center;
}
.categories-easter-egg.is-active{
  opacity:1;
  visibility:visible;
}
.categories-easter-egg-core{
  display:inline-block;
  color:rgba(221,179,76,.52);
  font-family:"Courier New","Lucida Console","DejaVu Sans Mono",monospace;
  font-size:clamp(11px,1.15vw,14px);
  font-weight:700;
  letter-spacing:.18em;
  line-height:1.5;
  white-space:normal;
  opacity:0;
  filter:blur(18px);
  transform:translateY(8px) scale(.96);
  text-shadow:
    0 0 28px rgba(221,179,76,.18),
    0 0 60px rgba(221,179,76,.06);
  transition:
    opacity 2000ms ease,
    filter 2000ms ease,
    transform 2000ms cubic-bezier(.16,.84,.25,1),
    letter-spacing 2000ms cubic-bezier(.16,.84,.25,1),
    text-shadow 2000ms ease;
}
.categories-easter-egg.is-active .categories-easter-egg-core.is-revealing{
  opacity:1;
  filter:blur(0);
  transform:translateY(0) scale(1);
  letter-spacing:.05em;
  text-shadow:0 0 16px rgba(221,179,76,.08);
}
.categories-easter-egg.is-active .categories-easter-egg-core.is-fading{
  opacity:0;
  filter:blur(18px);
  transform:translateY(-8px) scale(1.04);
  letter-spacing:.20em;
  text-shadow:
    0 0 34px rgba(221,179,76,.20),
    0 0 90px rgba(221,179,76,.04);
}
@media(max-width:850px){
  .categories-easter-egg{
    bottom:14px;
    width:92%;
  }
  .categories-easter-egg-core{
    font-size:11px;
    letter-spacing:.035em;
  }
}
.category-grid{
  scroll-margin-top:220px;
}
@media(max-width:850px){
  .extended-footer{
    grid-template-columns:1fr;
  }
  .extended-actions{
    min-width:0;
  }
  .side{
    grid-template-columns:1fr;
  }
}
@media(max-width:850px){
  .categories-panel{
    padding-top:16px;
  }
}


/* Hero text field — local light with dark energy edge */
.hero-light-text{
  position:relative;
  isolation:isolate;
  --light-x:50%;
  --light-y:50%;
  --light-opacity:0;
  text-shadow:none;
}

.hero-light-text::after{
  content:attr(data-light-text);
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  white-space:inherit;
  font:inherit;
  line-height:inherit;
  letter-spacing:inherit;
  text-align:inherit;
  color:#ffe3a0;
  opacity:var(--light-opacity);
  transition:opacity .12s ease;
  -webkit-mask-image:radial-gradient(
    circle 290px at var(--light-x) var(--light-y),
    #000 0%,
    #000 24%,
    rgba(0,0,0,.82) 39%,
    rgba(0,0,0,.42) 57%,
    rgba(0,0,0,.12) 72%,
    transparent 88%
  );
  mask-image:radial-gradient(
    circle 290px at var(--light-x) var(--light-y),
    #000 0%,
    #000 24%,
    rgba(0,0,0,.82) 39%,
    rgba(0,0,0,.42) 57%,
    rgba(0,0,0,.12) 72%,
    transparent 88%
  );
  text-shadow:
    0 0 1px rgba(0,0,0,.98),
    0 0 4px rgba(0,0,0,.94),
    0 0 8px rgba(0,0,0,.78),
    0 0 10px rgba(255,225,140,.27),
    0 0 23px rgba(221,179,76,.10);
  filter:brightness(1.07);
}

.mode-option{
  position:relative;
  isolation:isolate;
}

.mode-option:hover,
.mode-option:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(221,179,76,.68);
  outline:none;
}

.mode-option::before{
  content:"";
  position:absolute;
  inset:-18px;
  z-index:-1;
  pointer-events:none;
  border-radius:24px;
  background:radial-gradient(
    ellipse at center,
    rgba(221,179,76,.16) 0%,
    rgba(221,179,76,.065) 34%,
    transparent 70%
  );
  opacity:0;
  transform:scale(.86);
  filter:blur(13px);
  transition:opacity .28s ease,transform .28s ease;
}

.mode-option:hover::before,
.mode-option:focus-visible::before{
  opacity:1;
  transform:scale(1);
}

.mode-option:hover{
  box-shadow:
    0 0 0 1px rgba(221,179,76,.08),
    0 8px 28px rgba(0,0,0,.25),
    0 0 30px rgba(221,179,76,.10),
    inset 0 0 20px rgba(221,179,76,.03);
}
