@font-face {
  font-family: PauWordmark;
  src: url('/assets/wordmark.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: PauDisplay;
  src: url('/assets/display.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas:#fff5ee;
  --surface:#fff;
  --soft:#faeee5;
  --soft-accent:#ffe8d9;
  --text:#2b1b16;
  --muted:#654d45;
  --line:#eedbcc;
  --accent:#b23616;
  --accent-hover:#8e2510;
  --on-accent:#fff;
  --focus:#bd3c16;
  --glass:#fff9f4ed;
  --shadow:0 12px 32px #4a1f100d;
  --shadow-pop:0 18px 38px #571c1022;
  --display:PauDisplay,system-ui,sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  scroll-padding:110px;
}
:root[data-theme=dark] {
  color-scheme:dark;
  --canvas:#141110;
  --surface:#211916;
  --soft:#2e211d;
  --soft-accent:#3d271e;
  --text:#fff4eb;
  --muted:#d2b9ad;
  --line:#4b352d;
  --accent:#ffab76;
  --accent-hover:#ffc79b;
  --on-accent:#30150c;
  --focus:#ffc08e;
  --glass:#201613e8;
  --shadow:0 12px 32px #10070542;
  --shadow-pop:0 18px 44px #05040970;
}
* { box-sizing:border-box }
body { margin:0; color:var(--text); background:var(--canvas); line-height:1.55 }
img { max-width:100%; vertical-align:middle }
a { color:inherit; text-underline-offset:.2em }
[hidden] { display:none!important }
:focus-visible { outline:3px solid var(--focus); outline-offset:3px }
.wrap { width:min(1280px,calc(100% - 72px)); margin-inline:auto }
.skip { position:fixed; top:-100px; left:12px; z-index:20; padding:10px; background:var(--surface) }
.skip:focus { top:10px }
h1,h2,h3,p { margin-top:0 }
h1,h2,h3 { font-family:var(--display); font-weight:800; letter-spacing:-.045em; line-height:1.1; text-wrap:balance; overflow-wrap:break-word }
h1 { margin-bottom:16px; font-size:clamp(2.6rem,6vw,5.25rem) }
h2 { margin-bottom:20px; font-size:clamp(1.85rem,4vw,3.2rem) }
h3 { margin-bottom:9px; font-size:clamp(1.2rem,2.4vw,1.65rem) }
.lede { max-width:60ch; color:var(--muted); font-size:clamp(1rem,1.8vw,1.15rem); margin-bottom:22px }
.eyebrow,.tag,.card-open { color:var(--accent); font-weight:750; font-size:.875rem }
.eyebrow { margin-bottom:8px }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 15px; border:1px solid transparent; border-radius:11px; font:inherit; font-weight:730; line-height:1.22; text-decoration:none; cursor:pointer }
.button:disabled { opacity:.64; cursor:progress }
.primary { background:var(--accent); color:var(--on-accent) }
.primary:hover { background:var(--accent-hover) }
.subtle { background:var(--surface); border-color:var(--line); color:var(--text) }
.subtle:hover { border-color:var(--accent) }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px }
.ui-icon { width:20px; height:20px; flex:none }
[data-theme=dark] .ui-icon { filter:invert(1) }
.site-header { position:sticky; top:0; z-index:10; background:var(--glass); border-bottom:1px solid var(--line); backdrop-filter:blur(16px) }
.top { min-height:75px; display:flex; justify-content:space-between; align-items:center; gap:22px }
.brand { display:inline-flex; align-items:baseline; flex:none; white-space:nowrap; text-decoration:none; font:800 clamp(1.55rem,2.3vw,2rem)/1 PauWordmark,system-ui,sans-serif; letter-spacing:-.062em }
.brand-name { color:#2b1b16 }
.brand-extension { color:#b23616; --brand-fire:linear-gradient(110deg,#a53612,#bd2d18) }
.brand-separator { position:relative; width:.18em; margin-inline:.04em .07em; color:transparent }
.brand-separator::after { content:""; position:absolute; width:.16em; height:.16em; inset:auto 0 .11em; border-radius:36%; transform:rotate(38deg); background:linear-gradient(145deg,#ffaf62,#b92a13) }
[data-theme=dark] .brand-name { color:#fff }
[data-theme=dark] .brand-extension { color:#ffab76; --brand-fire:linear-gradient(110deg,#ffc27d,#ff7957) }
@supports (background-clip:text) {
  .brand-extension { background:var(--brand-fire); background-clip:text; color:transparent }
}
[data-theme=dark] .brand-separator::after { background:linear-gradient(145deg,#fff0c1,#ff633c) }
.navlinks { display:flex; gap:6px; align-items:center }
.navlinks a,.mobile-menu-links a { min-height:44px; display:flex; align-items:center; border-radius:9px; padding:7px 10px; color:var(--muted); font-size:.94rem; font-weight:690; text-decoration:none }
.navlinks a:hover,.navlinks a[aria-current],.mobile-menu-links a:hover,.mobile-menu-links a[aria-current] { color:var(--accent); background:var(--soft-accent) }
.header-actions { display:flex; align-items:center; gap:8px }
.header-search { display:flex; align-items:center; gap:7px; padding:8px 11px; min-height:44px; border:1px solid var(--line); border-radius:10px; color:var(--muted); font-weight:650; text-decoration:none }
.header-search:hover { color:var(--accent); border-color:var(--accent) }
.theme-button { white-space:nowrap; font-size:.9rem; min-height:44px }
.mobile-menu { display:none; position:relative }
.mobile-menu summary { list-style:none; display:grid; place-items:center; cursor:pointer; width:44px; height:44px; border:1px solid var(--line); border-radius:10px; background:var(--surface) }
.mobile-menu summary::-webkit-details-marker { display:none }
.mobile-menu-links { position:absolute; inset:calc(100% + 10px) 0 auto auto; width:min(255px,calc(100vw - 32px)); padding:8px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow-pop) }
.portal-section { margin:26px 0 46px }
.section-head,.portal-heading,.studio-heading { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:18px }
.section-head h2,.portal-heading h1 { margin:0 }
.section-head .eyebrow { margin-bottom:6px }
.portal-heading { padding-top:18px }
.portal-heading h1 { font-size:clamp(2.35rem,5.2vw,4.7rem) }
.portal-heading .lede { margin:10px 0 0 }
.social-mark { display:grid; place-items:center; width:43px; height:43px; border-radius:12px; background:var(--soft-accent); grid-row:1/3 }
.slide,.detail,.guide-page { padding:clamp(20px,4vw,50px); border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow) }
.slide { margin:30px 0 }
.quiet-slide,.shorts-slide,.social-panel { background:linear-gradient(135deg,var(--surface),var(--soft)) }
.feature { overflow:hidden; display:grid; grid-template-columns:1.16fr 1fr; align-items:center; margin-bottom:15px; border:1px solid var(--line); border-radius:16px; background:var(--surface) }
.feature-cover { align-self:stretch; display:block; min-width:0 }
.feature-cover .art { min-height:245px; height:100%; aspect-ratio:auto }
.feature-copy { padding:clamp(18px,4vw,44px) }
.feature-copy h3 { font-size:clamp(1.65rem,3.6vw,3.1rem); margin:0 0 11px }
.feature-copy p:not(.eyebrow) { color:var(--muted) }
.grid,.guide-grid,.social-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px }
.video-grid,.guide-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
.card,.guide,.social-card { border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden }
.card>a { display:flex; flex-direction:column; height:100%; text-decoration:none }
.card-body { display:flex; flex:1; flex-direction:column; align-items:start; gap:7px; padding:15px }
.card-body h3,.card-body h2 { margin:0; font-size:1.26rem }
.card-body p { margin:0 0 4px; color:var(--muted); font-size:.92rem }
.card-body .tag { display:inline-flex; align-self:flex-start; padding:2px 7px; border-radius:6px; background:var(--soft-accent); font-size:.82rem }
.card-open { margin-top:auto; padding-top:8px }
.art { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:16/10; display:grid; place-items:center; background:var(--soft); border-bottom:1px solid var(--line) }
.art img { z-index:1; position:relative; width:100%; height:100%; object-fit:cover }
.project-icon { background:radial-gradient(ellipse at 55% 40%,var(--surface),var(--soft)) }
.project-art.project-icon img { width:35%; max-width:120px; height:auto; aspect-ratio:1; object-fit:contain; filter:drop-shadow(0 6px 12px #6a280f25) }
.art-fallback { position:absolute; inset:0; display:grid; place-items:center }
.art-fallback::after { content:""; width:38px; height:38px; background:var(--muted); mask:url('/assets/image-off.svg') center/contain no-repeat }
.project-art:has(img:not([hidden])) .art-fallback { visibility:hidden }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.resource-tags { display:flex; flex-wrap:wrap; gap:5px; padding-top:3px }
.resource-tags span { display:inline-flex; padding:2px 6px; border-radius:5px; background:var(--soft); color:var(--muted); font-size:.8rem; font-weight:650 }
.guide { padding:16px; text-decoration:none; font-weight:720 }
#guias .guide { display:grid; align-content:start; gap:6px }
#guias .guide small { color:var(--muted); font-weight:400; line-height:1.45 }
.collection-card { padding:0 }
.collection-copy { padding:16px }
.collection-copy p { margin:0; color:var(--muted); font-size:.94rem; font-weight:400 }
.category-lead { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:clamp(15px,4vw,48px); margin-bottom:25px }
.category-lead h1,.video-intro h1,.guide-page h1,.post-page h1 { font-size:clamp(2.2rem,5vw,4.7rem) }
.category-lead .art { border:1px solid var(--line); border-radius:14px }
.pick-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none }
.pick-list li { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface) }
.pick-list a { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin-bottom:5px }
.pick-list a span { color:var(--accent); font-size:.875rem; font-weight:750 }
.pick-list p { color:var(--muted); margin:0 }
.social-card { display:flex; align-items:center; gap:10px; padding:13px; text-decoration:none; --social-color:#49342b }
.social-card.social-youtube { --social-color:#a01651 }
.social-card.social-instagram { --social-color:#98236b }
.social-card.social-discord { --social-color:#4b4bb1 }
.social-mark { flex:0 0 43px; background:var(--social-color) }
.social-svg { width:21px; height:21px; filter:invert(1) }
.social-name { display:grid; min-width:0; overflow-wrap:anywhere; line-height:1.25 }
.social-name small { color:var(--muted); font-size:.875rem; margin-top:4px }
.library-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 12px }
.library-tabs a { display:inline-flex; align-items:center; min-height:40px; padding:6px 12px; white-space:nowrap; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface); text-decoration:none; font-weight:720 }
.library-tabs a:hover,.library-tabs a[aria-current] { color:var(--accent); border-color:var(--accent); background:var(--soft-accent) }
.filters { margin:0 0 8px }
.portal-filters { display:grid; grid-template-columns:minmax(200px,1.5fr) repeat(4,minmax(106px,1fr)); gap:10px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); box-shadow:var(--shadow) }
.filters label,.studio-layout label,.compat-check label { display:grid; gap:5px; min-width:0; color:var(--muted); font-size:.91rem; font-weight:650 }
input,select,textarea { color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:9px 10px; min-width:0; font:inherit }
input[type=search],input[type=url],input:not([type]),select { width:100%; min-height:44px }
.search-input { position:relative; display:block }
.search-input .ui-icon { position:absolute; inset:50% auto auto 10px; translate:0 -50%; opacity:.72; pointer-events:none }
.search-input input { padding-left:37px }
.results-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:45px }
.results-bar p { margin:0; color:var(--muted); font-size:.9rem }
.results-bar .button { min-height:36px; font-size:.875rem }
#more { margin-top:17px }
.back { margin:22px 0 10px; color:var(--muted) }
.detail { padding:0; display:grid; grid-template-columns:.94fr 1.06fr; align-items:stretch; overflow:hidden }
.detail>.art { height:100%; min-height:320px; aspect-ratio:auto; border:0; border-right:1px solid var(--line) }
.detail .project-cover img { object-fit:contain }
.detail-body { padding:clamp(23px,5vw,55px) }
.detail-body h1 { font-size:clamp(2rem,5vw,4.5rem); margin:8px 0 14px }
.detail-body .note { margin:10px 0 }
.detail + section,.ad + section { margin:32px 0 }
.note { color:var(--muted); font-size:.9rem }
#copy-status:empty { display:none }
.compatibility { margin-bottom:14px }
.compatibility p { margin:0 0 6px }
.compatibility summary { cursor:pointer; font-weight:700 }
.compat-check { display:flex; align-items:end; flex-wrap:wrap; gap:9px; padding:14px; margin:11px 0; background:var(--soft); border:1px solid var(--line); border-radius:12px }
.compat-results { flex-basis:100%; overflow-wrap:anywhere }
.compat-results:empty { display:none }
.compat-results ul { margin:0; padding-left:1.2rem }
.compat-results li + li { margin-top:8px }
.guide-page h2,.post-page h2,.collaboration-page h2 { font-size:clamp(1.5rem,3vw,2.4rem); margin:24px 0 12px }
.guide-checks { max-width:68ch; margin-bottom:24px; padding-left:1.3rem }
.guide-checks li + li { margin-top:8px }
.collaboration-contact { margin-top:18px }
.collaboration-contact p { color:var(--muted); margin:7px 0 0 }
.ad { min-height:110px; background:var(--surface); border:1px solid var(--line); color:var(--muted); border-radius:14px; text-align:center; padding:12px; margin:18px 0 24px; font-size:.85rem }
footer { margin-top:45px; background:var(--surface); border-top:1px solid var(--line) }
.foot { padding:29px 0 18px; display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:20px }
.footer-brand p,.footer-note { margin:8px 0 0; color:var(--muted); font-size:.9rem }
.footer-social,.foot-nav { display:flex; gap:8px; flex-wrap:wrap; align-items:center }
.footer-social { margin-top:13px }
.footer-social a { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:10px; background:var(--soft) }
.footer-icon { width:17px; height:17px }
[data-theme=dark] .footer-icon { filter:invert(1) }
.foot-nav { justify-content:flex-end; gap:9px 15px; padding-top:6px }
.foot-nav a { color:var(--muted); text-decoration:none; font-weight:650 }
.foot-nav a:hover,.footer-social a:hover { color:var(--accent); border-color:var(--accent) }
.footer-note { grid-column:1/-1; border-top:1px solid var(--line); padding-top:12px }
.studio h1 { margin-bottom:12px; font-size:clamp(2.05rem,4.7vw,3.8rem) }
.studio-layout { display:grid; grid-template-columns:2fr 1fr; gap:21px }
.studio-form { display:grid; gap:12px }
.studio-layout aside,.studio-notice { background:var(--soft); border:1px solid var(--line); border-radius:13px; padding:15px; align-self:start }
.studio-aside-heading h2,.published-list h2 { margin:0 0 8px; font-size:1.52rem }
.studio-form textarea { resize:vertical }
.studio-picker { border:1px solid var(--line); border-radius:12px; margin:4px 0; min-width:0; padding:13px }
.studio-picker legend { padding:0 6px; font-weight:750 }
.studio-picker-tools { display:flex; flex-wrap:wrap; align-items:end; gap:8px; margin-bottom:10px }
.studio-picker-tools label { flex:1 1 190px }
.studio-options,.studio-posts { max-height:285px; overflow:auto }
.studio-options { border:1px solid var(--line); border-radius:8px }
.studio-picker .studio-choice { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; padding:8px 9px; cursor:pointer }
.studio-choice + .studio-choice,.studio-posts li,.studio-actions { border-top:1px solid var(--line) }
.studio-choice:has(input:checked) { background:var(--soft-accent) }
.studio-choice input { accent-color:var(--accent); margin:0 }
.studio-choice small,.studio-status { color:var(--muted); font-size:.875rem }
.studio-picker .note { margin:9px 0 0 }
.studio-status { border:1px solid var(--line); border-radius:20px; padding:4px 8px; white-space:nowrap; background:var(--surface) }
.studio-status.live { color:var(--accent); border-color:currentColor }
.studio-posts { padding:0; margin:12px 0; list-style:none }
.studio-posts li { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:8px 0 }
.studio-posts a[aria-current] { color:var(--accent); font-weight:750 }
.studio-actions { padding-top:8px }
.post-description { white-space:pre-wrap }
.published-list { margin:22px 0 }
@media(max-width:1100px){
  .wrap { width:calc(100% - 44px) }
  .top { gap:10px }
  .navlinks { gap:1px }
  .navlinks a { padding-inline:6px }
  .portal-filters { grid-template-columns:repeat(4,minmax(0,1fr)) }
  .portal-search { grid-column:1/-1 }
}
@media(max-width:900px){
  .site-header .navlinks { display:none }
  .mobile-menu { display:block }
  .top { min-height:65px }
  .grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .social-links { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:700px){
  :root { scroll-padding:79px }
  .wrap { width:calc(100% - 28px) }
  .header-search span { display:none }
  .header-search { justify-content:center; width:44px; padding:8px }
  .grid,.video-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px }
  .section-head,.portal-heading,.studio-heading { align-items:start; flex-direction:column; gap:10px }
  .slide { margin:20px 0 }
  .feature,.detail,.category-lead,.studio-layout { grid-template-columns:1fr }
  .feature-cover .art,.detail>.art { min-height:0; aspect-ratio:16/9; border-right:0; border-bottom:1px solid var(--line) }
  .portal-filters { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .guide-grid,.foot { grid-template-columns:1fr }
  .foot-nav { justify-content:flex-start }
}
@media(max-width:440px){
  .wrap { width:calc(100% - 22px) }
  .top { gap:6px }
  .header-actions { gap:4px }
  .theme-button { padding-inline:7px; font-size:.8rem }
  .header-search,.mobile-menu summary { width:38px }
  .brand { font-size:1.47rem }
  .slide { padding:16px }
  .card-body { padding:10px; gap:6px }
  .card-body h2,.card-body h3 { font-size:1.1rem }
  .card-body p { font-size:.87rem }
  .social-links,.pick-list { grid-template-columns:1fr }
}
@media(max-width:340px){.header-search{display:none}.grid{grid-template-columns:1fr}}
@view-transition { navigation:auto }
@media(prefers-reduced-motion:no-preference) {
  html { scroll-behavior:smooth }
  .button,.card,.guide,.social-card,.footer-social a { transition:translate .24s var(--ease),box-shadow .24s ease,border-color .24s ease,background-color .24s ease }
  .project-cover img,.social-mark { transition:scale .45s var(--ease) }
  .mobile-menu[open] .mobile-menu-links { animation:menu-enter .2s var(--ease) both }
  .button:active,.social-card:active { translate:0 2px }
  ::view-transition-old(root) { animation:site-out .18s ease both }
  ::view-transition-new(root) { animation:site-in .32s var(--ease) both }
  @keyframes menu-enter { from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0} }
  @keyframes site-out { to{opacity:0;translate:0 -3px} }
  @keyframes site-in { from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0} }
  @keyframes load-ring { to{transform:rotate(360deg)} }
  .compat-check[aria-busy=true] .compat-results::before { animation:load-ring .7s linear infinite }
  @media(hover:hover) {
    .card:hover,.guide:hover,.social-card:hover { translate:0 -4px; border-color:var(--accent); box-shadow:var(--shadow-pop) }
    .card:hover .project-cover img,.social-card:hover .social-mark { scale:1.055 }
    .primary:hover { translate:0 -1px }
  }

}
.compat-check[aria-busy=true] .compat-results::before { content:""; display:inline-block; width:14px; height:14px; margin-right:8px; border:2px solid var(--line); border-top-color:var(--accent); border-radius:50%; vertical-align:-1px }
@media(prefers-reduced-motion:reduce) {
  @view-transition { navigation:none }
  ::view-transition-group(root),::view-transition-old(root),::view-transition-new(root) { animation:none }
}


/* Categorías y proyectos en la misma superficie de exploración. */
.explorer {
  --scene-accent:#ffad71;
  display:grid; grid-template-columns:minmax(255px,.86fr) minmax(0,2fr);
  margin:26px 0 0; min-height:495px; overflow:hidden; isolation:isolate;
  border:1px solid #503126; border-radius:14px; background:#1b1210;
  color:#fff6ed; box-shadow:0 24px 62px #3b160d3b;
}
.explorer-rail {
  display:flex; flex-direction:column; gap:0; justify-content:center; container-type:inline-size; min-width:0;
  padding:clamp(23px,3.8vw,52px); border-right:1px solid #58372a;
  background:radial-gradient(ellipse at 2% 2%,#9f371947,transparent 58%),linear-gradient(165deg,#38231a,#201411 72%);
}
.explorer-rail h1 { font-size:2rem; font-size:clamp(1.55rem,13.4cqi,3.1rem); letter-spacing:-.05em; margin:0 0 12px; line-height:1.1; overflow-wrap:normal }
.explorer-rail h1 span { display:inline-block; white-space:nowrap; word-break:normal }
.explorer-rail>p { color:#eed4c3; margin:0 0 24px; font-size:.96rem }
.explorer-tabs { display:grid; gap:4px; padding:0; margin:0 0 17px }
.explorer-tab {
  position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center;
  gap:10px; min-height:51px; padding:7px 10px 7px 13px; border:1px solid transparent;
  border-radius:6px; color:#f3ddcf; text-decoration:none; font-weight:750;
}
.explorer-tab:hover,.explorer-tab.is-active { color:#fff; background:#482b20; border-color:#79503e }
.explorer-tab.is-active::before { content:""; position:absolute; inset:10px auto 10px 0; width:3px; border-radius:3px; background:#ff8d51 }
.explorer-icon,.shortcut-icon { width:20px; height:20px; opacity:.9 }
.explorer-icon { filter:invert(1) }
.explorer-tab small { font-size:.86rem; font-variant-numeric:tabular-nums; color:#e2bfa9; letter-spacing:.04em }
.explorer-tab.is-active small,.explorer-all { color:#ffc08e }
.explorer-all { align-self:start; font-weight:740; text-underline-offset:.25em }
.explorer-stage { position:relative; min-width:0; background:#231510 }
.explorer-scene { position:relative; display:flex; min-height:495px; height:100%; align-items:flex-end; isolation:isolate; overflow:hidden }
.scene-mod { --scene-accent:#ffad71 }
.scene-shader { --scene-accent:#f9cca3 }
.scene-texture { --scene-accent:#ffc18f }
.scene-pack { --scene-accent:#c9ebda }
.explorer-visual,.explorer-visual .art { position:absolute; z-index:-1; inset:0; width:100%; height:100%; aspect-ratio:auto; border:0 }
.explorer-visual { z-index:-2; background:#362016 }
.explorer-visual .art { z-index:auto; background:#362016 }
.explorer-visual .art img { object-position:center 45% }
.explorer-scene::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(0deg,#211410 2%,#211410f2 17%,#32170f80 50%,transparent 86%),
    linear-gradient(90deg,#28130d8a,transparent 58%);
}
.scene-copy { padding:clamp(24px,4.8vw,63px); width:100%; min-width:0 }
.scene-type { color:var(--scene-accent); font-weight:760; font-size:.875rem; margin-bottom:9px }
.scene-copy h2 { font-size:clamp(2.4rem,5.6vw,5.6rem); line-height:1.04; letter-spacing:-.055em; margin:0 0 11px }
.scene-copy p:not(.scene-type) { color:#f7e3d6; max-width:42ch; margin:0 0 16px }
.scene-primary { color:#2e160c; background:var(--scene-accent); border-color:var(--scene-accent) }
.scene-primary:hover { background:#fff0dd }
.scene-secondary { color:#fff3e8; border-color:#cda994; background:#281a14db; backdrop-filter:blur(8px) }
.scene-secondary:hover { background:#492c20 }
.home-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:12px 0 35px; border-block:1px solid var(--line) }
.shortcut { display:flex; min-width:0; align-items:center; gap:10px; padding:15px 13px; text-decoration:none }
.shortcut + .shortcut { border-left:1px solid var(--line) }
.shortcut strong,.shortcut small { display:block }
.shortcut strong { font-family:var(--display); font-size:1.13rem; line-height:1.14 }
.shortcut small { color:var(--muted); font-size:.84rem; margin-top:3px }
.shortcut:hover,.shortcut:focus-visible { background:var(--soft-accent); color:var(--accent) }
[data-theme=dark] .shortcut-icon { filter:invert(1) }
.shorts-slide { padding-inline:0; border-inline:0; border-radius:0; background:none; box-shadow:none }
.video-shelf { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:start; gap:13px }
.video-shelf .feature { margin:0; grid-template-columns:1fr; border-radius:12px }
.video-shelf .feature-cover .art { min-height:0; aspect-ratio:16/8 }
.video-shelf .feature-copy { padding:19px }
.video-shelf .feature-copy h3 { font-size:clamp(1.7rem,3vw,2.7rem) }
.video-shelf .shorts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px }
.video-shelf .shorts .card-body { padding:11px }
.video-shelf .shorts .card-body h3 { font-size:1.12rem }
.video-shelf .shorts .art { aspect-ratio:16/8 }
.portal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 13px }
.portal-grid .resource-card { border-radius:9px; box-shadow:none }
.portal-grid .resource-card>a { display:grid; grid-template-columns:minmax(110px,32%) 1fr; align-items:stretch }
.portal-grid .art { aspect-ratio:auto; height:100%; min-height:121px; border-bottom:0; border-right:1px solid var(--line) }
.portal-grid .card-body { padding:10px 12px }
.portal-grid .card-body h3 { font-size:1.22rem }
.portal-grid .project-icon img { width:53%; max-width:82px }
.portal-grid .card-body .tag { padding:1px 5px }
.portal-grid .card-open { padding-top:2px }
.portal-filters { border-radius:9px; box-shadow:none }
@media(max-width:980px){
  .explorer { grid-template-columns:minmax(225px,.92fr) minmax(0,1.65fr); min-height:440px }
  .explorer-scene { min-height:440px }
  .explorer-rail { padding:22px }
}
@media(max-width:760px){
  .explorer { grid-template-columns:1fr; min-height:0; margin-top:14px }
  .explorer-rail { padding:17px 15px 13px; border-right:0; border-bottom:1px solid #58372a }
  .explorer-rail h1 { font-size:clamp(1.6rem,6vw,2.7rem); margin-bottom:5px }
  .explorer-rail>p { margin-bottom:11px }
  .explorer-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin-bottom:9px }
  .explorer-tab { display:flex; gap:6px; min-height:43px; padding:5px 7px; justify-content:center; font-size:.86rem }
  .explorer-tab small { display:none }
  .explorer-tab.is-active::before { inset:auto 8px 0; width:auto; height:2px }
  .explorer-icon { width:16px; height:16px }
  .explorer-all { font-size:.89rem }
  .explorer-scene { min-height:310px }
  .scene-copy { padding:20px 16px }
  .scene-copy h2 { font-size:clamp(2.15rem,8vw,3.6rem) }
  .shortcut { padding:11px 8px; align-items:start }
  .shortcut-icon { width:17px; height:17px }
  .shortcut small { display:none }
  .shortcut strong { font-size:.95rem; line-height:1.3 }
  .home-shortcuts { margin-bottom:24px }
  .video-shelf,.portal-grid { grid-template-columns:1fr }
  .portal-grid .resource-card>a { grid-template-columns:112px 1fr }
}
@media(max-width:400px){
  .explorer-tab { font-size:.79rem; padding-inline:4px }
  .explorer-icon { display:none }
  .explorer-scene { min-height:275px }
  .scene-copy .button { padding-inline:10px; min-height:42px; font-size:.9rem }
  .portal-grid .resource-card>a { grid-template-columns:92px 1fr }
}
@media(prefers-reduced-motion:no-preference) {
  .explorer-rail { animation:explorer-in .38s var(--ease) both }
  .explorer-scene:not([hidden]) .explorer-visual { animation:scene-in .45s var(--ease) both }
  .explorer-scene:not([hidden]) .scene-copy { animation:explorer-in .38s var(--ease) both }
  .explorer-tab,.shortcut { transition:background-color .2s ease,border-color .2s ease,color .2s ease }
  @keyframes explorer-in { from{opacity:.55;translate:0 7px}to{opacity:1;translate:0 0} }
  @keyframes scene-in { from{opacity:.45;scale:1.025}to{opacity:1;scale:1} }
}

@media(max-width:440px){
  .home-shortcuts .shortcut{flex-direction:column;align-items:center;text-align:center;gap:4px;padding-inline:3px}
  .home-shortcuts .shortcut strong{font-size:.83rem;overflow-wrap:anywhere}
  .explorer-rail h1{max-width:100%}
}
@media(max-width:360px){
  .site-header .brand{font-size:1.28rem}
  .site-header .theme-button{padding-inline:6px}
  .video-shelf .shorts{grid-template-columns:1fr}
  .explorer-tab{padding-inline:2px;min-width:0}
}

.settings-toggle { min-width:44px; padding:8px; border-color:var(--line) }
.settings-toggle .ui-icon { width:20px; height:20px; transition:transform .22s var(--ease) }
.settings-toggle[aria-expanded=true] { border-color:var(--accent); background:var(--soft-accent) }
.settings-toggle[aria-expanded=true] .ui-icon { transform:rotate(32deg) }
.settings-anchor { position:relative }
.settings-panel {
  position:absolute; z-index:12; inset-block-start:calc(100% + 9px); inset-inline-end:0;
  width:min(350px,calc(100vw - 28px)); max-height:calc(100dvh - 82px);
  overflow:auto; overscroll-behavior:contain; transform-origin:top right;
  border:1px solid var(--line); border-radius:13px;
  background:var(--surface); color:var(--text); box-shadow:0 12px 32px #180e0b42;
}
[data-theme=dark] .settings-panel { color-scheme:dark; box-shadow:0 12px 34px #0f0908b3 }
.settings-head { display:flex; align-items:center; justify-content:space-between; padding:9px 10px 8px 14px; border-bottom:1px solid var(--line) }
.settings-head h2 { font-size:1.04rem; letter-spacing:-.02em; line-height:1.25; margin:0 }
.settings-close { display:grid; place-items:center; width:34px; height:34px; padding:0; border:0; border-radius:7px; color:var(--muted); background:transparent; cursor:pointer }
.settings-close:hover { background:var(--soft); color:var(--text) }
.settings-grid { display:grid; gap:4px; padding:7px 12px }
.settings-grid label { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,47%); align-items:center; gap:8px; font-size:.84rem; font-weight:650 }
.settings-grid select,.settings-grid input { width:100%; min-width:0; min-height:36px; padding:5px 7px; border:1px solid var(--line); border-radius:7px; background:var(--canvas); color:var(--text); font:inherit; font-weight:500 }
.settings-grid select:hover,.settings-grid input:hover { border-color:var(--accent) }
.settings-panel legend { padding:0 7px 0 0; color:var(--accent); font-size:.78rem; font-weight:750 }
.settings-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:9px 12px; border-top:1px solid var(--line); background:var(--soft) }
.settings-footer .button { min-height:36px; padding:5px 11px; font-size:.84rem }
.settings-profile-link { color:var(--accent); font-size:.82rem; font-weight:650; text-underline-offset:3px }
@media (max-width:900px) {
  .header-actions { position:relative }
  .settings-anchor { position:static }
  .settings-panel { max-height:calc(100dvh - 72px) }
}
@media (prefers-reduced-motion:no-preference) {
  .settings-panel:not([hidden]) { animation:settings-drop .18s cubic-bezier(.2,.8,.2,1) both }
  @keyframes settings-drop { from { opacity:0; transform:translateY(-5px) } to { opacity:1; transform:translateY(0) } }
}
.profile-option { display:flex; gap:6px; flex-wrap:wrap; align-items:center; font-weight:650 }
.profile-option small { color:var(--muted) }
.translation-control { margin:0 8px 10px 0 }
:root[data-motion=reduce] { scroll-behavior:auto !important }
:root[data-motion=reduce] *, :root[data-motion=reduce] *::before, :root[data-motion=reduce] *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important }


/* Site-wide layout */
:root {
  --canvas:#faf8f6; --surface:#fff; --soft:#f4efeb; --line:#e7ddd6;
  --text:#241b18; --muted:#67564e; --glass:#fffdf9eb;
}
:root[data-theme=dark] {
  --canvas:#121110; --surface:#1b1817; --soft:#24201e; --line:#3b322d;
  --text:#fff4ec; --muted:#c9b9ae; --glass:#1c1816e8;
}
body { background:var(--canvas) }
.site-header { top:8px; background:none; border:0; backdrop-filter:none; padding-top:8px }
.site-header .top { min-height:64px; padding:6px clamp(8px,2vw,20px); border:1px solid var(--line); border-radius:17px; background:var(--glass); backdrop-filter:blur(16px); box-shadow:var(--shadow) }
.navlinks { background:var(--soft); border-radius:11px; padding:3px; gap:2px }
.navlinks a { min-height:36px; border-radius:8px; padding-inline:10px; white-space:nowrap; font-size:.87rem }
.header-search,.mobile-menu summary,.settings-toggle { border-radius:10px; border-color:transparent; background:var(--soft) }
.header-actions { gap:5px }
.mobile-menu-links { border-radius:15px; padding:6px }
.mobile-menu-links a { min-height:44px; margin:2px; padding-inline:12px }
.button { border-radius:9px }
.settings-panel { width:min(340px,calc(100vw - 52px)); border-radius:17px; padding:12px; box-shadow:var(--shadow-pop); background:var(--surface) }
.settings-head { border:0; padding:0 0 7px 3px }
.settings-head h2 { font-size:1.15rem }
.settings-panel .settings-grid { padding:9px 0 4px; gap:6px }
.settings-panel .settings-grid label { padding:0 3px; font-size:.87rem }
.settings-footer { justify-content:flex-end; background:none; padding:9px 0 0; border:0 }
.settings-profile-link { margin-inline-end:auto }
.explorer {
  display:grid; grid-template-columns:minmax(0,1fr); min-height:0; margin-top:clamp(22px,4vw,48px);
  overflow:visible; border:0; border-radius:0; box-shadow:none; isolation:auto; background:none; color:var(--text);
}
.explorer-rail {
  display:flex; flex-direction:row; align-items:end; justify-content:space-between; gap:10px 24px;
  min-width:0; padding:0 0 16px; border:0; background:none; container-type:normal; animation:none;
}
.explorer-rail h1 { font-size:clamp(1.95rem,5vw,4.75rem); line-height:1.08; letter-spacing:-.055em; margin:0 }
.explorer-rail>p { font-size:.93rem; color:var(--muted); margin:0 0 3px }
.explorer-stage { overflow:hidden; border-radius:20px; box-shadow:var(--shadow); color:#fff6ed; background:#1b1411 }
.explorer-scene { min-height:clamp(360px,39vw,540px) }
.explorer-scene::before {
  background:linear-gradient(90deg,#1a100ef2 1%,#1a100ea8 39%,transparent 80%),linear-gradient(0deg,#1a100ec9,transparent 58%);
}
.scene-copy { padding:clamp(20px,5vw,60px) }
.scene-copy h2 { font-size:clamp(2rem,6.1vw,5.25rem); max-width:13ch; line-height:1 }
.scene-type { display:inline-flex; padding:4px 8px; border:1px solid #ffc39072; border-radius:7px; color:#ffd0aa; background:#24150dc9 }
.explorer-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:0 0 10px }
.explorer-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 }
.explorer-tab { min-width:0; min-height:44px; display:flex; justify-content:start; align-items:center; gap:8px; background:var(--surface); color:var(--text); border-color:var(--line); padding:6px 9px }
.explorer-tab:hover,.explorer-tab.is-active { color:var(--accent); background:var(--soft-accent); border-color:var(--line) }
.explorer-tab .explorer-icon { filter:none }
[data-theme=dark] .explorer-tab .explorer-icon { filter:invert(1) }
.explorer-tab.is-active::before { display:none }
.explorer-tab small,.explorer-tab.is-active small { color:var(--muted); margin-inline-start:auto }
.explorer-all { margin:0; color:var(--accent); font-size:.9rem; text-decoration:none }
.explorer-all:hover { text-decoration:underline }
.explorer-arrow::after { content:"↗"; margin-inline-start:5px }
.home-shortcuts { gap:8px; border:0; margin:24px 0 48px }
.shortcut,.shortcut + .shortcut { border:1px solid var(--line); border-radius:11px; background:var(--surface) }
.shortcut:hover,.shortcut:focus-visible { background:var(--soft-accent) }
.quiet-slide,.shorts-slide,.social-panel { padding:0; border:0; border-radius:0; background:none; box-shadow:none }
.slide { margin-block:clamp(34px,6vw,72px) }
.section-head h2,.portal-heading h1 { letter-spacing:-.042em }
.card,.guide,.social-card,.video-shelf .feature { border-radius:13px; box-shadow:none }
.card:hover,.guide:hover,.social-card:hover { border-color:var(--accent) }
.card-body .tag { border-radius:5px; font-size:.75rem }
.card-open { font-size:.8rem }
.portal-heading { padding-top:clamp(12px,4vw,36px) }
.library-tabs { border-bottom:1px solid var(--line); padding-bottom:10px }
.portal-filters { border:0; border-radius:13px; padding:clamp(9px,2vw,17px); background:var(--soft) }
.portal-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px }
.portal-grid .resource-card { border-radius:12px }
.portal-grid .resource-card>a { display:flex }
.portal-grid .art { aspect-ratio:16/8; height:auto; min-height:0; border:0; border-bottom:1px solid var(--line) }
.portal-grid .card-body { padding:13px }
.portal-grid .card-body p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden }
.portal-grid .project-icon img { width:27%; max-width:72px }
.detail,.guide-page { border-radius:17px; box-shadow:none }
.detail .detail-body,.studio-form { min-width:0 }
.studio-form { padding:clamp(12px,3vw,24px); background:var(--surface); border:1px solid var(--line); border-radius:14px }
footer { background:var(--soft) }
@media(max-width:1060px) { .navlinks a { padding-inline:6px } }
@media(max-width:900px) { .portal-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:760px) {
  .site-header { top:4px; padding-top:4px }
  .site-header .top { min-height:55px; border-radius:13px }
  .header-search,.settings-toggle,.mobile-menu summary { width:38px; min-width:38px; min-height:38px; height:38px }
  .explorer-rail { flex-wrap:wrap; gap:5px; padding-bottom:12px }
  .explorer-rail>p { width:100%; margin:0 }
  .explorer-stage { border-radius:15px }
  .explorer-scene { min-height:325px }
  .explorer-controls { grid-template-columns:minmax(0,1fr); gap:8px }
  .explorer-all { justify-self:start }
  .explorer-tab { justify-content:center; padding-inline:3px }
  .explorer-tab small { display:none }
}
@media(max-width:550px) {
  .explorer-stage { grid-row:3 }
  .explorer-controls { grid-row:2; padding:0 0 10px }
  .explorer-tabs { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .explorer-tab { justify-content:start; padding-inline:9px }
  .explorer-tab .explorer-icon { display:block }
  .explorer-all { display:none }
  .explorer-scene { min-height:285px }
  .explorer-scene::before { background:linear-gradient(0deg,#1a100efa 2%,#1a100ebd 42%,#1a100e12 85%) }
}
@media(max-width:440px) {
  .portal-grid { grid-template-columns:1fr }
  .portal-grid .resource-card>a { display:grid; grid-template-columns:100px minmax(0,1fr) }
  .portal-grid .art { height:100%; aspect-ratio:auto; border:0; border-right:1px solid var(--line) }
  .portal-grid .project-icon img { width:54% }
}


.settings-panel { width:min(310px,calc(100vw - 52px)); padding:8px; border-radius:12px }
.settings-panel:popover-open {
  position:fixed; inset:auto; margin:0; top:var(--menu-top); right:var(--menu-right);
  width:var(--menu-width); max-height:calc(100dvh - var(--menu-top) - 12px);
}
.settings-head { padding:0 0 2px 6px }
.settings-head h2 { font-size:1rem }
.settings-panel .settings-grid { padding:4px 3px; gap:4px }
.settings-panel .settings-grid label { grid-template-columns:minmax(0,1fr) minmax(0,49%); font-size:.84rem }
.settings-panel .settings-grid select,.settings-panel .settings-grid input { min-height:33px }
.settings-profile { margin:5px 0 0; border-top:1px solid var(--line) }
.settings-profile summary { display:flex; align-items:center; justify-content:space-between; min-height:38px; padding:4px 7px; cursor:pointer; font-size:.84rem; font-weight:690; list-style:none; border-radius:7px }
.settings-profile summary::-webkit-details-marker { display:none }
.settings-profile summary:hover { background:var(--soft) }
.settings-profile summary::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:0 2px 3px 6px }
.settings-profile[open] summary::after { transform:rotate(225deg); margin-bottom:0 }
.settings-profile-link { display:inline-block; padding:4px 7px }
.settings-footer { border-top:1px solid var(--line); margin-top:3px; padding:6px 0 0 }
.settings-footer .button { min-height:33px }

/* Shared UI primitives */
:root {
  --ui-control-radius:8px;
  --ui-card-radius:14px;
  --ui-hover:color-mix(in srgb,var(--accent) 8%,var(--surface));
  --ui-outline:color-mix(in srgb,var(--accent) 48%,var(--line));
  --ui-elevation:0 12px 30px #33170d22,0 1px 3px #33170d12;
}
:root[data-theme=dark] { --ui-elevation:0 12px 32px #080504b5,0 1px 3px #08050475 }
.button,.header-search,.mobile-menu summary { border-radius:var(--ui-control-radius) }
.site-header .navlinks { background:var(--soft); border-radius:var(--ui-control-radius) }
.navlinks a { border-radius:6px; font-size:.875rem; font-weight:650 }
.header-search,.settings-toggle,.mobile-menu summary { background:transparent; border-color:var(--line) }
.header-search:hover,.settings-toggle:hover,.mobile-menu summary:hover { background:var(--soft); border-color:var(--ui-outline) }
.mobile-menu-links,.settings-panel { border-radius:12px; box-shadow:var(--ui-elevation) }
.mobile-menu-links a { border-radius:var(--ui-control-radius) }
.settings-panel { padding:9px; }
.settings-head { border-bottom:1px solid var(--line); padding-bottom:4px; margin-bottom:5px }
.settings-panel .settings-grid label { padding:2px 3px }
.settings-panel .settings-grid select,.settings-panel .settings-grid input { border-radius:6px }
.settings-panel .settings-grid select:hover,.settings-panel .settings-grid input:hover { background:var(--ui-hover); border-color:var(--ui-outline) }
.settings-profile summary:hover { background:var(--ui-hover) }
.settings-footer .button { min-height:36px }
.explorer-tab,.explorer-stage,.shortcut,.shortcut + .shortcut { border-radius:var(--ui-card-radius) }
.explorer-tab { border-radius:var(--ui-control-radius) }
.explorer-tab:hover,.explorer-tab.is-active { border-color:var(--ui-outline) }
.explorer-tab:focus-visible { outline-offset:1px }
.explorer-tab small { font-variant-numeric:tabular-nums }
.portal-filters { border:1px solid var(--line); border-radius:var(--ui-card-radius); background:var(--surface) }
.portal-filters :is(input,select) { border-radius:var(--ui-control-radius) }
.library-tabs a { border-radius:var(--ui-control-radius) }
.card,.guide,.social-card,.portal-grid .resource-card { border-radius:var(--ui-card-radius) }
.card:hover,.guide:hover,.social-card:hover { border-color:var(--ui-outline) }
.card-body h3,.card-body h2 { overflow-wrap:anywhere }
.card-author { color:var(--muted); font-size:.77rem; line-height:1.2; overflow-wrap:anywhere }
.card-body .tag,.resource-tags span { border-radius:6px }
.resource-tags span { border:1px solid var(--line); font-size:.71rem }
.portal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.portal-grid .resource-card>a { display:grid; grid-template-columns:clamp(90px,10vw,145px) minmax(0,1fr) }
.portal-grid .art { height:100%; min-height:110px; aspect-ratio:auto; border:0; border-right:1px solid var(--line) }
.portal-grid .project-icon img { width:46%; max-width:76px }
.portal-grid .card-body { gap:5px; padding:12px }
.portal-grid .card-body h3 { font-size:1.18rem }
.portal-grid .card-body .tag { font-size:.7rem }
@media(max-width:650px) {
  .portal-grid { grid-template-columns:minmax(0,1fr) }
  .portal-grid .resource-card>a { grid-template-columns:clamp(76px,24vw,110px) minmax(0,1fr) }
}
@media(prefers-reduced-motion:no-preference) {
 .button,.header-search,.settings-toggle,.card,.guide { transition:background-color .17s ease,border-color .17s ease }
}


/* Section indexes and global footer */
body { min-height:100vh; display:flex; flex-direction:column }
body>main { flex:1 0 auto }
.page-index .portal-heading { margin-top:clamp(14px,4vw,36px) }
.page-index+.slide { margin-top:22px }
.home-shortcuts { grid-template-columns:repeat(5,minmax(0,1fr)) }
.home-shortcuts .shortcut>span { min-width:0 }
.footer-legal { display:flex; flex-wrap:wrap; grid-column:1/-1; gap:9px 18px; border-top:1px solid var(--line); padding-block-start:13px }
.footer-legal a { color:var(--text); font-size:.88rem; font-weight:650 }
.footer-legal a:hover { color:var(--accent) }
.footer-note { border:0; margin:0; padding:0; font-size:.83rem }
.footer-networks { grid-column:1/-1; border-top:1px solid var(--line); padding-top:14px }
.footer-networks h2 { font-size:1.04rem; letter-spacing:-.02em; margin:0 }
.footer-networks .footer-social { margin-top:8px }
.footer-networks .footer-social a { display:inline-flex; gap:7px; height:auto; min-height:38px; width:auto; padding:5px 10px; text-decoration:none; font-size:.83rem; font-weight:650 }
.legal-page { margin-block:clamp(24px,4vw,44px); max-width:860px; overflow-wrap:break-word }
.legal-page h2 { font-size:clamp(1.25rem,3vw,1.8rem); margin:24px 0 7px }
.legal-page p { max-width:70ch }
.legal-page a { color:var(--accent) }
@media(max-width:900px){.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:440px){.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Search panel */
.search-hint { display:inline-block; padding:2px 5px; border:1px solid var(--line); border-radius:5px; color:var(--muted); background:var(--soft); font:600 .68rem system-ui; white-space:nowrap }
.quick-search {
  position:fixed; inset:clamp(16px,13vh,130px) auto auto 50%; transform:translateX(-50%);
  margin:0; padding:0; width:min(580px,calc(100vw - 24px)); max-height:calc(100dvh - clamp(16px,13vh,130px) - 16px);
  border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--text); box-shadow:0 24px 70px #1007037a; overflow:auto;
}
.quick-search::backdrop { background:#170d0bb5; backdrop-filter:blur(4px) }
.quick-search-form { margin:0 }
.quick-search-input { display:flex; align-items:center; gap:9px; padding:12px; border-bottom:1px solid var(--line) }
.quick-search-input input { min-width:0; width:100%; min-height:38px; border:0; outline:0; border-radius:7px; color:var(--text); background:var(--surface); font:inherit }
.quick-search-input:focus-within { border-bottom-color:var(--accent) }
.quick-search-close { display:grid; place-items:center; flex:0 0 34px; min-height:34px; border:0; border-radius:7px; background:var(--soft); color:var(--text); cursor:pointer }
.quick-search-status { margin:0; padding:9px 13px 2px; color:var(--muted); font-size:.8rem }
.quick-search-results { margin:0; padding:3px 7px 8px; list-style:none }
.quick-search-results a { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:42px; padding:6px; border:1px solid transparent; border-radius:8px; text-decoration:none }
.quick-search-results a:hover,.quick-search-results a[aria-selected=true] { border-color:var(--ui-outline); background:var(--soft-accent) }
.quick-search-result-title { min-width:0; overflow-wrap:anywhere; color:var(--text); font-weight:710; font-size:.92rem }
.quick-search-result-title small { display:block; font-size:.72rem; color:var(--muted); font-weight:500 }
.quick-search-result-type { flex:none; border:1px solid var(--line); border-radius:6px; padding:1px 5px; color:var(--muted); background:var(--surface); font-size:.72rem }
.quick-search-footer { display:flex; justify-content:space-between; align-items:center; gap:7px; padding:9px 12px; border-top:1px solid var(--line); font-size:.81rem; color:var(--accent) }
.quick-search-footer kbd { display:inline-flex; min-width:19px; justify-content:center; padding:1px 3px; border:1px solid var(--line); border-radius:4px; background:var(--soft); color:var(--muted) }
@media(prefers-reduced-motion:no-preference) {
 .quick-search[open] { animation:quick-open .2s var(--ease) both }
 @keyframes quick-open { from { opacity:0; transform:translate(-50%,-8px) scale(.985) } to { opacity:1; transform:translate(-50%,0) scale(1) } }
}
/* Home feature and catalog accents */
.explorer-rail h1 { font-size:clamp(2rem,5.1vw,4.7rem); letter-spacing:-.05em }
.explorer-rail h1 span+span { color:var(--accent) }
.explorer-rail>p { padding:5px 9px; border:1px solid var(--line); border-radius:7px; background:var(--surface); line-height:1.35 }
.explorer-stage { border:1px solid #aa6e514f; border-radius:18px; box-shadow:0 15px 40px #3a170d3e }
.explorer-scene::before { background:linear-gradient(90deg,#1f100de8 0,#1f100d8c 34%,transparent 77%),linear-gradient(0deg,#1a0d0bf0 0,transparent 58%) }
.explorer-scene::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 86% 100%,#cf4d2223,transparent 52%) }
.scene-copy h2 { font-size:clamp(2.1rem,6.1vw,5.3rem); max-width:18ch; text-wrap:pretty; text-shadow:0 3px 28px #1f0f09b3 }
.scene-type { background:#28150ff2; border-color:#ffb67f9c; padding:4px 8px; border-radius:5px }
.scene-primary { box-shadow:0 5px 20px #f8864d34 }
.explorer-tab.is-active { box-shadow:inset 0 -2px var(--accent) }
.explorer-tab .explorer-icon { opacity:.9 }
.home-shortcuts .shortcut { min-height:74px }
.home-shortcuts .shortcut-icon { flex:none; box-sizing:content-box; padding:6px; border-radius:8px; background:var(--soft-accent) }
[data-theme=dark] .home-shortcuts .shortcut-icon { filter:none; background:#ffbe8e }
.home-shortcuts .shortcut:hover .shortcut-icon { background:#ffb480 }
.portal-grid .resource-card:focus-within { border-color:var(--accent) }
.footer-networks .footer-social a:hover { background:var(--soft-accent) }
@media(max-width:1060px) { .header-search .search-hint { display:none } }
@media(max-width:760px) {
 .explorer-rail>p { width:auto }
 .explorer-stage { border-radius:14px }
 .scene-copy h2 { font-size:clamp(1.95rem,7.7vw,3.8rem) }
 .explorer-scene::before { background:linear-gradient(0deg,#1a0d0bf2 3%,#1a0d0baf 43%,transparent 85%) }
}
@media(max-width:340px) {
 .site-header .header-search { display:flex }
 .site-header .brand { font-size:1.08rem }
 .site-header .top { gap:3px; padding-inline:5px }
 .site-header .header-actions { gap:3px }
 .header-search,.settings-toggle,.mobile-menu summary { width:32px; min-width:32px }
}


.header-favorites { position:relative; flex:none; display:grid; place-items:center; width:42px; min-height:42px; border:1px solid var(--line); border-radius:var(--ui-control-radius); color:var(--text); text-decoration:none }
.header-favorites:hover { background:var(--soft-accent); border-color:var(--ui-outline) }
.favorites-count { position:absolute; inset:-5px -5px auto auto; min-width:17px; padding:0 3px; border-radius:8px; background:var(--accent); color:var(--on-accent); text-align:center; font-size:.62rem; font-weight:750; line-height:17px; pointer-events:none }
.resource-card,.saved-card { position:relative }
.save-resource { position:absolute; z-index:2; inset:7px 7px auto auto; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); cursor:pointer }
.portal-grid .save-resource { inset-inline:7px auto }
.favorite-icon { width:17px; height:17px }
[data-theme=dark] .favorite-icon { filter:invert(1) }
.save-resource:hover,.save-detail:hover { background:var(--soft-accent); border-color:var(--accent) }
.save-resource[aria-pressed=true],.save-detail[aria-pressed=true] { border-color:var(--accent); background:var(--accent); color:var(--on-accent) }
.save-resource[aria-pressed=true] .favorite-icon,.save-detail[aria-pressed=true] .favorite-icon { filter:invert(1) }
[data-theme=dark] .save-resource[aria-pressed=true] .favorite-icon,[data-theme=dark] .save-detail[aria-pressed=true] .favorite-icon { filter:none }
.catalog-preview { position:relative; display:grid; overflow:hidden; place-items:center; background:var(--soft); border-radius:6px; flex:none }
.catalog-preview::before { content:""; position:absolute; width:16px; height:16px; background:var(--muted); mask:url('/assets/blocks.svg') center/contain no-repeat }
.catalog-preview img { position:relative; display:block; width:100%; height:100%; object-fit:cover }
.quick-search-results a { display:grid; grid-template-columns:37px minmax(0,1fr) auto }
.quick-search-results .catalog-preview { width:37px; height:37px }
.quick-search-results a:hover .catalog-preview,.quick-search-results a[aria-selected=true] .catalog-preview { background:var(--surface) }
.saved-status { color:var(--muted) }
.saved-grid .catalog-preview { border-radius:0; width:100%; aspect-ratio:16/9; border-bottom:1px solid var(--line) }
.saved-grid .card-body h2 { font-size:clamp(1.05rem,2vw,1.35rem) }
@media(max-width:760px){.header-favorites { width:38px; min-height:38px }}
@media(max-width:410px){.site-header .header-favorites { display:none }}

@media(min-width:1180px){.home-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1179px){.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}

.explorer-intro-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:0 0 3px }
.explorer-intro-actions p { margin:0; color:var(--muted); font-size:.88rem }
.explorer-intro-actions .button { min-height:38px; padding:6px 9px; font-size:.85rem }
.explorer-intro-actions .ui-icon { width:16px; height:16px }
.discovery .portal-heading { padding-top:clamp(23px,6vw,65px) }
.discovery-choices { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:20px 0 12px }
.discovery-choice { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:7px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--text); text-decoration:none; font-size:.91rem; font-weight:690 }
.discovery-choice:hover,.discovery-choice[aria-current] { border-color:var(--accent); background:var(--soft-accent); color:var(--accent) }
.discovery-icon { width:18px; height:18px; flex:none }
[data-theme=dark] .discovery-icon { filter:invert(1) }
.discovery-tools { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-bottom:13px }
.discovery-tools .actions { margin-inline-start:auto }
.discovery-tools .button { min-height:38px; padding:6px 9px; font-size:.84rem }
.discovery-profile { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-height:38px; padding:5px 8px; border:1px solid var(--line); border-radius:8px; background:var(--soft); font-size:.86rem }
.discovery-profile small { color:var(--muted) }
.discovery-help { margin:0; flex:1 1 190px }
.discovery-plan { --plan-tone:#662b19; margin-bottom:40px }
.discovery-plan[data-discovery-plan=construir] { --plan-tone:#694323 }
.discovery-plan[data-discovery-plan=aventura] { --plan-tone:#2b4932 }
.discovery-plan[data-discovery-plan=rendimiento] { --plan-tone:#304557 }
.discovery-plan[data-discovery-plan=capturas] { --plan-tone:#5c355c }
.discovery-lead { display:grid; position:relative; isolation:isolate; overflow:hidden; min-height:220px; align-items:end; margin-bottom:12px; border:1px solid #98695166; border-radius:16px; color:#fff6ee; background:var(--plan-tone) }
.discovery-lead-visual { position:absolute; inset:0; z-index:-2 }
.discovery-lead-visual .art { width:100%; height:100%; aspect-ratio:auto; border:0; background:transparent }
.discovery-lead-visual .project-icon img { margin-inline-start:45%; width:18%; opacity:.8 }
.discovery-lead::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#1c110fef 0,#1c110fa6 45%,transparent 100%),linear-gradient(0deg,#1c110f8a,transparent 65%) }
.discovery-lead-copy { padding:clamp(16px,4vw,36px) }
.discovery-lead-copy h2 { margin:0 0 7px; font-size:clamp(2rem,4vw,3.8rem) }
.discovery-lead-copy p { margin:0 0 10px; max-width:52ch }
.discovery-lead-copy .button { min-height:38px; padding:6px 9px }
.discovery-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
.discovery-grid .art { aspect-ratio:16/8 }
.discovery-empty { border:1px dashed var(--line); padding:12px; border-radius:10px }
@media(max-width:980px) {
 .site-header .navlinks { display:none }
 .site-header .mobile-menu { display:block }
}
@media(max-width:630px) {
 .discovery-choices { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:12px; gap:5px }
 .discovery-choice { justify-content:start; min-height:40px; font-size:.82rem }
 .discovery-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
 .discovery-tools .actions { margin-inline-start:0 }
 .discovery-lead { min-height:190px }
}
@media(max-width:390px) { .discovery-grid { grid-template-columns:1fr } }


/* Image-led category and discovery controls */
.explorer-controls { align-items:end }
.explorer-tabs { gap:8px }
.explorer-tab {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:5px;
  min-height:86px; padding:9px; overflow:hidden; border:1px solid #624735; border-radius:11px;
  background:#251812; color:#fff5ee;
}
.explorer-tab:hover,.explorer-tab.is-active { color:#fff5ee; border-color:#ffae7a; background:#251812 }
.explorer-tab.is-active { box-shadow:inset 0 -3px #ffae7a,0 6px 21px #8c431b3b }
.explorer-tab-visual,.discovery-choice-image { position:absolute; inset:0; z-index:-2; overflow:hidden }
.explorer-tab-visual .art,.discovery-choice-image .art { width:100%; height:100%; aspect-ratio:auto; border:0; background:#38271e }
.explorer-tab-visual .project-icon img,.discovery-choice-image .project-icon img { width:auto; height:66%; margin-inline-start:45%; filter:none }
.explorer-tab::after,.discovery-choice::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(0deg,#1c110ff7 0%,#1c110f75 70%,#1c110f20) }
.explorer-tab-copy { display:flex; align-items:center; gap:6px; min-width:0; font-size:.94rem; font-weight:740 }
.explorer-tab .explorer-icon,[data-theme=dark] .explorer-tab .explorer-icon { display:block; width:17px; height:17px; filter:invert(1); flex:none }
.explorer-tab small,.explorer-tab.is-active small { color:#ffe4d2; font-size:.7rem; font-weight:700; padding:2px 5px; border:1px solid #e6b49b55; border-radius:5px; background:#271612a8 }
.explorer-all { margin-bottom:7px; align-self:end }
.explorer-stage { border-color:#b5745370; border-radius:17px; box-shadow:0 12px 35px #49241650 }
.explorer-scene::before {
  background:linear-gradient(85deg,#180e0cf2 0,#180e0ca8 33%,#180e0c1a 71%,transparent),linear-gradient(0deg,#130b09d9 0,transparent 58%);
}
.explorer-scene::after {
  inset:1px; border:1px solid #ffe6d519; border-radius:15px;
  background:radial-gradient(ellipse at 86% 100%,#e743151e,transparent 45%);
}
.scene-copy { position:relative; padding:clamp(16px,5vw,63px) }
.scene-caption { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:11px }
.scene-caption .scene-type { margin:0 }
.scene-credit { color:#ffdfcd; font-size:.78rem; font-weight:590; text-shadow:0 2px 8px #1a0d0b }
.scene-copy h2 { letter-spacing:-.045em }
.discovery-choices { gap:8px }
.discovery-choice {
  position:relative; isolation:isolate; display:flex; justify-content:start; align-items:end; overflow:hidden;
  min-height:108px; padding:9px; border:1px solid #624735; border-radius:11px; background:#35211a; color:#fff5ee;
}
.discovery-choice:hover,.discovery-choice[aria-current] { color:#fff5ee; border-color:#ffae7a; background:#35211a }
.discovery-choice[aria-current] { box-shadow:inset 0 -3px #ffae7a,0 6px 21px #8c431b3b }
.discovery-choice-label { display:flex; align-items:center; gap:7px; line-height:1.2; text-wrap:balance }
.discovery-choice .discovery-icon { filter:invert(1); width:17px; height:17px }
.discovery-lead { min-height:clamp(215px,24vw,310px); box-shadow:var(--shadow); border-color:#b5745370 }
.discovery-lead::after { background:linear-gradient(90deg,#1a100df0,#1a100d96 45%,transparent),linear-gradient(0deg,#1a100d9c,transparent 59%) }
.discovery-grid .resource-card .art { aspect-ratio:16/8.5 }
.footer-networks .footer-social a { border-radius:8px }
@media(prefers-reduced-motion:no-preference) {
 .explorer-tab-visual img,.discovery-choice-image img,.discovery-grid .art img { transition:transform .35s var(--ease),filter .24s ease }
 .explorer-tab:hover .explorer-tab-visual img,.discovery-choice:hover .discovery-choice-image img,.discovery-grid .resource-card:hover .art img { transform:scale(1.055) }
 .discovery-plan:not([hidden]) .discovery-lead-copy { animation:editorial-reveal .29s var(--ease) both }
 @keyframes editorial-reveal { from { opacity:.75; translate:0 8px } to { opacity:1; translate:0 0 } }
}
@media(max-width:850px) {
 .explorer-tab { min-height:72px }
 .explorer-tab-copy,.discovery-choice-label { font-size:.82rem }
 .explorer-tab small,.explorer-tab.is-active small { display:none }
}
@media(max-width:760px) {
 .explorer-controls { gap:6px }
 .explorer-stage { border-radius:13px }
 .explorer-scene::before { background:linear-gradient(0deg,#180e0cfa 0,#180e0cb0 40%,#180e0c18 83%) }
 .scene-copy { padding:17px 14px }
 .scene-caption { margin-bottom:8px }
}
@media(max-width:550px) {
 .explorer-tab { min-height:62px }
 .discovery-choice { min-height:76px }
 .discovery-lead { min-height:200px }
}


.home-catalog-description { margin:13px 0 0; color:var(--muted); font-size:.91rem }
.home-catalog-description a,.breadcrumbs a { text-underline-offset:.2em }
.home-catalog-description a:hover,.breadcrumbs a:hover { color:var(--accent) }
.breadcrumbs { margin:18px 0 10px; font-size:.82rem; color:var(--muted) }
.breadcrumbs ol { display:flex; flex-wrap:wrap; column-gap:8px; row-gap:4px; padding:0; margin:0; list-style:none }
.breadcrumbs li { max-width:100%; overflow-wrap:break-word }
.breadcrumbs li+li::before { content:"›"; margin-inline-end:8px; color:var(--accent) }
.breadcrumbs li[aria-current] { color:var(--text); font-weight:650 }



/* Shared visual direction */
.front-feature {
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  margin:clamp(20px,4vw,48px) 0 clamp(28px,5vw,64px);
  border:1px solid var(--line); border-radius:26px; overflow:hidden; background:var(--surface);
  box-shadow:var(--shadow); min-width:0;
}
.front-copy {
  align-self:stretch; display:flex; flex-direction:column; justify-content:center;
  padding:clamp(24px,4.5vw,68px);
  background:radial-gradient(ellipse at 5% 0%,var(--soft-accent),transparent 75%);
}
.front-copy h1 { font-size:clamp(2.45rem,6.1vw,6.1rem); line-height:.97; letter-spacing:-.06em; margin:0 0 .23em; overflow-wrap:normal; text-wrap:balance }
.front-copy p:not(.front-kicker) { color:var(--muted); font-size:clamp(1rem,1.6vw,1.19rem); max-width:32ch; margin-block:0 1.15rem }
.front-kicker { color:var(--accent); margin:0 0 1rem; font-size:.78rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase }
.front-copy .actions { margin:0 }
.front-image { display:grid; align-items:end; position:relative; isolation:isolate; min-width:0; min-height:240px; color:#fff6ee; text-decoration:none; overflow:hidden; background:#321c17 }
.front-image .art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; border:0; border-radius:0 }
.front-image .art img { width:100%; height:100%; object-fit:cover }
.front-image::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#1d100ded,transparent 58%) }
.front-image>span { display:grid; grid-template-columns:1fr auto; align-items:end; gap:0 .75rem; padding:clamp(14px,3vw,30px); font-weight:760; line-height:1.2; text-wrap:balance }
.front-image small { grid-column:1/-1; margin-bottom:.3rem; color:#ffd2af }
.front-image:focus-visible { outline-offset:-6px }
.explorer-rail>h2 { font-size:clamp(1.7rem,3.8vw,3rem); margin:0; letter-spacing:-.045em; overflow-wrap:normal; text-wrap:balance }
.library-view>.portal-heading { padding:clamp(18px,4vw,45px); background:linear-gradient(132deg,var(--soft-accent),var(--surface) 66%); border:1px solid var(--line); border-radius:22px; margin-block-end:14px }
.library-view .library-tabs { padding:.35rem; background:var(--surface); border:1px solid var(--line); border-radius:13px }
.resource-card,.guide-page,.saved-card { border-radius:16px }
.site-footer { background:linear-gradient(145deg,var(--surface),var(--soft)); border-top:1px solid var(--line) }
@media (prefers-reduced-motion:no-preference) {
 .front-image img { transition:transform .45s var(--ease) }
 .front-image:hover img { transform:scale(1.045) }
 .resource-card { transition:border-color .2s ease, box-shadow .22s ease }
 .resource-card:hover { border-color:var(--accent); box-shadow:var(--shadow) }
}
@media (max-width:730px) {
 .front-feature { grid-template-columns:1fr; border-radius:19px; margin-top:17px }
 .front-copy h1 { font-size:clamp(2.4rem,8vw,4rem); text-wrap:pretty }
 .front-image { min-height:clamp(158px,45vw,275px) }
}

.discovery-draw { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); margin:28px 0 15px; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:radial-gradient(ellipse at 0% 0%,var(--soft-accent),transparent 82%),var(--surface); }
.draw-copy { padding:clamp(17px,4vw,36px); align-self:center; }
.draw-copy h2 { font-size:clamp(1.7rem,4vw,3rem); margin:0 0 .45rem; line-height:1.04; letter-spacing:-.04em; }
.draw-copy p { color:var(--muted); margin:0 0 1rem; }
.draw-controls { display:flex; flex-wrap:wrap; gap:.65rem; align-items:flex-end; }
.draw-controls label { display:grid; gap:.25rem; font-size:.8rem; font-weight:700; }
.draw-controls select { min-height:44px; padding:0 .6rem; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; }
.draw-controls .button { min-height:44px; }
.draw-stage:empty { display:none; }
.draw-result { display:grid; align-items:end; position:relative; isolation:isolate; min-height:225px; height:100%; overflow:hidden; background:#332015; color:#fff6ee; text-decoration:none; }
.draw-result .art { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:0; z-index:-2; }
.draw-result img { width:100%; height:100%; object-fit:cover; }
.draw-result::after { position:absolute; inset:0; content:""; z-index:-1; background:linear-gradient(0deg,#21110df5,transparent 95%); }
.draw-result>span { display:grid; gap:4px; padding:clamp(14px,3vw,25px); }
.draw-result strong { font:750 clamp(1.35rem,3vw,2.1rem)/1.12 var(--display); overflow-wrap:break-word; }
.draw-result small,.draw-result>span>span { color:#ffd2af; font-weight:700; }
.draw-result:focus-visible { outline-offset:-5px; }
@media(prefers-reduced-motion:no-preference) {
 .draw-reveal>span { animation:draw-reveal .28s var(--ease) both; }
 @keyframes draw-reveal { from { opacity:.45; transform:translateY(8px) } to { opacity:1; transform:none } }
}
@media(max-width:650px) {
 .discovery-draw { grid-template-columns:1fr; }
 .draw-result { min-height:175px; }
}

.front-feature,.discovery-draw { position:relative; isolation:isolate; }
.front-feature::after,.discovery-draw::after {
 content:""; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0;
 background:radial-gradient(300px circle at var(--beam-x,50%) var(--beam-y,50%),#ffaf7240,transparent 85%);
 transition:opacity .28s var(--ease);
}
.front-feature.beam-active::after,.discovery-draw.beam-active::after { opacity:1; }
@media(prefers-reduced-motion:no-preference) {
 .front-copy>* { animation:front-enter .42s var(--ease) both; }
 .front-copy>h1 { animation-delay:65ms; }
 .front-copy>p:not(.front-kicker) { animation-delay:105ms; }
 .front-copy>.actions { animation-delay:150ms; }
 @keyframes front-enter { from { opacity:.5; translate:0 10px } to { opacity:1; translate:0 0 } }
}
@media(prefers-reduced-motion:reduce) { .beam-active::after { opacity:0!important; } }
[data-motion=reduce] .beam-active::after { opacity:0!important; }

/* Illustrated routes and a framed landing feature */
.front-feature { border-radius:30px; border-color:color-mix(in srgb,var(--accent) 35%,var(--line)); padding:clamp(5px,1vw,12px); gap:8px; }
.front-copy {
 position:relative; isolation:isolate; border-radius:20px;
 background:radial-gradient(ellipse at 9% 0%,var(--soft-accent),transparent 80%),var(--surface);
}
.front-copy::after {
 content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none; opacity:.5;
 background:radial-gradient(circle at center,var(--line) 1px,transparent 1.5px) 0 0/19px 19px;
 mask-image:radial-gradient(ellipse at 0% 3%,#000,transparent 65%);
}
.front-copy .button.primary,.draw-controls .button.primary { box-shadow:0 3px 0 color-mix(in srgb,var(--accent) 65%,var(--surface)); }
.front-copy .button.primary:active,.draw-controls .button.primary:active { translate:0 2px; box-shadow:none; }
.front-image { border-radius:20px; }
.front-image>span { background:linear-gradient(0deg,#21130fe6,#21130f00); }
.home-routes { margin-block:clamp(28px,5vw,62px); }
.home-routes .section-head { align-items:baseline; gap:8px 18px; margin-bottom:13px; }
.home-routes h2 { font-size:clamp(1.65rem,4vw,3rem); margin:0; letter-spacing:-.045em; }
.home-routes .section-head>a { color:var(--accent); font-size:.9rem; }
.route-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:10px; }
.route-tile {
 grid-column:span 4; display:grid; align-items:end; position:relative; isolation:isolate; overflow:hidden;
 min-height:clamp(145px,19vw,252px); color:#fff9f3; background:#39271d; text-decoration:none;
 border-radius:18px; border:1px solid #a6745b;
}
.route-tile:first-child,.route-tile:last-child { grid-column:span 8; }
.route-tile .art { position:absolute; inset:0; z-index:-3; width:100%; height:100%; border:0; border-radius:0; }
.route-tile .art img { width:100%; height:100%; object-fit:cover; }
.route-tile::after {
 content:""; position:absolute; inset:0; z-index:-2; pointer-events:none;
 background:linear-gradient(0deg,#1b110ff5,#21161355 57%,transparent 86%);
}
.route-tile::before {
 content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:0;
 background:radial-gradient(230px circle at var(--beam-x,50%) var(--beam-y,50%),#ffc38959,transparent 84%);
}
.route-tile.beam-active::before { opacity:1; }
.route-tile-copy { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:clamp(11px,2.4vw,23px); }
.route-tile-copy strong { font-family:var(--display); font-size:clamp(1rem,2.75vw,2.15rem); line-height:1.04; text-wrap:balance; }
.route-icon { width:19px; height:19px; filter:invert(1); }
.route-tile-copy>span { font-size:1.25rem; padding:.2em .45em; background:#21130ca8; border:1px solid #fbd4b36b; border-radius:7px; }
.route-tile:focus-visible { outline-offset:-4px; }
@media(prefers-reduced-motion:no-preference) {
 .route-tile img,.route-tile-copy>span { transition:transform .35s var(--ease); }
 .route-tile::before { transition:opacity .22s ease; }
 .route-tile:hover img { transform:scale(1.045); }
 .route-tile:hover .route-tile-copy>span { transform:translate(2px,-2px); }
}
@media(prefers-reduced-motion:reduce) { .route-tile.beam-active::before { opacity:0; } }
[data-motion=reduce] .route-tile.beam-active::before { opacity:0; }
@media(max-width:730px) {
 .front-feature { padding:5px; border-radius:21px; gap:5px; }
 .front-copy,.front-image { border-radius:15px; }
 .route-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
 .route-tile,.route-tile:first-child,.route-tile:last-child { grid-column:span 1; min-height:clamp(129px,27vw,178px); border-radius:13px; }
 .route-tile-copy { grid-template-columns:minmax(0,1fr) auto; gap:5px; }
 .route-icon { display:none; }
}
