/* Palette and fonts matched to store.eaglelegend.com (Fourthwall theme values, 25 Oct 2026):
   background #000000, text #FFFFFF, primary #ff5500, product tiles #6e6e6e, Open Sans, square buttons/images.
   On-orange text is black (6.6:1) rather than the store's white (3.2:1) to keep WCAG AA. */
@font-face{font-family:"Open Sans";font-weight:400;font-style:normal;font-display:swap;src:url(/assets/fonts/open_sans_n4.woff2) format("woff2")}
@font-face{font-family:"Open Sans";font-weight:600;font-style:normal;font-display:swap;src:url(/assets/fonts/open_sans_n6.woff2) format("woff2")}
@font-face{font-family:"Open Sans";font-weight:700 800;font-style:normal;font-display:swap;src:url(/assets/fonts/open_sans_n7.woff2) format("woff2")}
:root{--bg:#000000;--ink:#000000;--card:#111111;--card2:#1a1a1a;--line:#2a2a2a;--white:#ffffff;--muted:#b3b3b3;--orange:#ff5500;--orange-l:#ff7733;--on-orange:#000000;--tile:#6e6e6e;--green:#4FA62C;--font:"Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--white);font:400 16px/1.5 var(--font);padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
h1,h2,h3{font-weight:400}
a{color:var(--orange)}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
img{max-width:100%;height:auto}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:#fff;color:#000;padding:8px;z-index:9}
.top{position:sticky;top:0;z-index:5;background:rgba(0,0,0,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}
.top .wrap{display:flex;align-items:center;gap:10px;min-height:56px}
.brand{display:flex;white-space:nowrap;flex:none;align-items:center;gap:8px;color:var(--white);text-decoration:none;font-weight:700;font-size:1.15rem;letter-spacing:.01em}
.brand img{width:34px;height:34px}
.nav{margin-left:auto;display:flex;gap:2px;flex-wrap:nowrap}
.nav a{color:var(--white);text-decoration:none;padding:10px 9px;white-space:nowrap;border-radius:0;font-weight:400;font-size:.95rem}
.nav a:hover,.nav a:focus-visible{color:rgba(255,255,255,.8);background:var(--card2);outline:none}
.nav a[aria-current]{color:var(--orange);box-shadow:inset 0 -2px 0 var(--orange)}
.hero{padding:22px 0 6px}
.hero h1{font-size:clamp(1.5rem,5.5vw,2.3rem);line-height:1.12;margin:0 0 6px}
.hero p{margin:0;color:var(--muted)}
h2.sec{font-size:1.15rem;margin:26px 0 12px;color:var(--white)}
.filters{display:flex;gap:8px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.filters::-webkit-scrollbar{display:none}
.chip{flex:none;border:1px solid var(--line);background:var(--card2);color:var(--white);border-radius:999px;padding:9px 14px;font:600 .9rem var(--font);min-height:40px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.chip:hover{border-color:var(--white)}
.chip[aria-pressed=true],.chip.on{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.frow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.frow label{color:var(--muted);font-size:.9rem}
select{background:var(--card2);color:var(--white);border:1px solid var(--line);border-radius:0;padding:9px 10px;font:inherit;min-height:40px}
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:560px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:860px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.grid a{display:block;background:var(--card);border:1px solid var(--line);border-radius:0;overflow:hidden;color:inherit;text-decoration:none;height:100%}
.grid a:hover,.grid a:focus-visible{border-color:var(--orange);outline:none}
.grid a:focus-visible{box-shadow:0 0 0 3px var(--orange)}
.grid img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--tile)}
.grid .t{display:block;padding:8px 10px 2px;font-weight:600;font-size:.95rem;line-height:1.25}
.grid .g{display:block;padding:0 10px 10px;color:var(--muted);font-size:.8rem}
.empty{color:var(--muted)}
.news{list-style:none;margin:0;padding:0;display:grid;gap:10px}
@media (min-width:720px){.news{grid-template-columns:repeat(2,1fr)}}
.news a{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:0;padding:10px;color:inherit;text-decoration:none}
.news a:hover,.news a:focus-visible{border-color:var(--orange);outline:none}
.news img{width:112px;flex:none;aspect-ratio:1200/630;object-fit:cover;border-radius:0;background:var(--tile)}
.news time{display:block;color:var(--muted);font-size:.8rem}
.news b{display:block;line-height:1.25;font-weight:600}
.news span{display:block;color:var(--muted);font-size:.88rem}
.more{display:inline-block;margin-top:12px;font-weight:600}
.crumb{font-size:.88rem;color:var(--muted);margin:14px 0 6px}
.crumb a{color:var(--muted)}
.gh h1{font-size:clamp(1.5rem,6vw,2.2rem);margin:0 0 4px;line-height:1.15}
.gh .sub{color:var(--muted);margin:0 0 10px;font-size:.92rem}
.labels{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.labels a{font-size:.8rem;padding:5px 10px;min-height:0}
.post .el-cover{margin:0 0 14px}
.post .el-cover img{border-radius:0;display:block}
.post .gp{display:grid;gap:16px}
@media (min-width:900px){.post .gp{grid-template-columns:minmax(320px,440px) 1fr;align-items:start}.post .stage{position:sticky!important;top:72px}}
.post .stage{background:#000;border:1px solid var(--line);border-radius:0;overflow:hidden}
.post .paper{background:var(--card);color:var(--white);border:1px solid var(--line);border-radius:0}
.post .paper a{color:var(--orange)}
.post .paper .h{color:var(--white);margin:18px 0 6px}
.post .paper h2.h{margin-top:12px;font-size:1.3rem}
.post .paper h3.h{font-size:1.05rem;font-weight:600}
.post .meta{display:flex;gap:6px;flex-wrap:wrap}
.post .tag{background:var(--line);color:var(--white);font-size:.75rem;font-weight:600;padding:4px 9px;border-radius:999px}
.post .tag.gold{background:var(--orange);color:var(--on-orange)}
.post .actions{margin-top:16px}
.post .btn{display:inline-block;background:var(--orange);color:var(--on-orange)!important;text-decoration:none;font-weight:600;padding:11px 16px;border-radius:0}
.post .btn:hover,.post .btn:focus-visible{background:var(--orange-l)}
.post .paper .sub{color:var(--muted);font-size:.9rem}
.playfull{display:inline-block;margin:10px 0 0;font-weight:600}
.doc{background:var(--card);color:var(--white);border:1px solid var(--line);border-radius:0;padding:20px 20px 28px;margin:16px 0}
.doc a{color:var(--orange)}
.doc h1{margin-top:0;font-size:1.7rem}
.doc h2{font-size:1.15rem;margin-top:24px;font-weight:600}
.doc table{border-collapse:collapse;width:100%;font-size:.9rem}
.doc td,.doc th{border:1px solid #3a3a3a;padding:6px;text-align:left}
.draft-note{background:#1f1a00;border:1px solid #e6c65c;border-radius:0;padding:10px 12px;font-size:.92rem;color:var(--white)}
.foot{margin-top:36px;border-top:1px solid var(--line);padding:18px 0 28px;color:var(--muted);font-size:.88rem}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 16px;margin-bottom:10px}
.foot nav a{color:var(--white);text-decoration:none;font-weight:600;padding:4px 0}
.foot nav a:hover,.foot nav a:focus-visible{color:var(--orange)}
.foot p{margin:4px 0}
.todo{background:#ffd166;color:#000;padding:0 4px;border-radius:0}
.nf{text-align:center;padding:40px 0}
.notice{background:var(--card2);border:1px solid var(--orange);border-radius:0;padding:12px 14px;margin:14px 0 0;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}
.notice p{margin:0;flex:1 1 240px;font-size:.95rem}
.notice a{color:var(--orange)}
.notice button{flex:none;background:var(--orange);color:var(--on-orange);border:0;border-radius:0;padding:10px 16px;font:600 .95rem var(--font);min-height:44px;cursor:pointer}
.notice button:hover,.notice button:focus-visible{background:var(--orange-l)}
.doc .changed{background:var(--card2);border:1px solid var(--orange);border-radius:0;padding:4px 16px 8px;margin:12px 0}
.doc .changed h2{margin-top:12px}
.doc code{background:#262626;padding:1px 4px;border-radius:0;font-size:.88em}
.doc hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.doc table{min-width:560px}
.stats-switch{background:var(--card2);border:2px solid var(--orange);border-radius:0;padding:12px 14px;margin:12px 0}
.toggle{background:var(--orange);color:var(--on-orange);border:0;border-radius:0;padding:12px 20px;font:600 1rem var(--font);min-height:48px;cursor:pointer}
.toggle[aria-pressed=false]{background:#595959;color:#fff}
.toggle:disabled{opacity:.7;cursor:not-allowed}
.stats-switch p{margin:6px 0}
.swipebtn{display:inline-flex;align-items:center;gap:8px;margin-top:14px;background:var(--orange);color:var(--on-orange);text-decoration:none;font-weight:700;font-size:1.15rem;padding:14px 24px;border-radius:0;min-height:52px}
.swipebtn:hover,.swipebtn:focus-visible{background:var(--orange-l);outline:none}
.grid .best{display:block;margin:0 10px 10px;font-size:.75rem;font-weight:700;color:var(--on-orange);background:var(--orange);border-radius:999px;padding:2px 8px;width:max-content}
.toggle.danger{background:#b42318;color:#fff}
.confirm{background:#2a0b08;border:2px solid #e5484d;border-radius:0;padding:10px 14px;margin:8px 0}
.confirm .toggle{margin:4px 6px 4px 0}
.consent-note{background:#1f1a00;border:1px solid #e0c35c;border-radius:0;padding:8px 12px;margin:8px 0;color:#fff3c4}
.consent-note a{color:inherit;text-decoration:underline}
span.consent-note{display:block}
span.consent-note[hidden]{display:none}
