:root {
  color-scheme: dark;
  --times: #ff5233; --plus: #1b46f5; --knot: #ffd60a; --ink: #11122b; --paper: #fffaf0;
  --night: #0d0f26; --panel: #181b3a; --line: #3a3e6b; --soft: #c6cae8;
  --display: 'Arial Black', 'Segoe UI Black', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--knot); }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--knot); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(44rem, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--knot); color: var(--ink); }
.skip:focus { left: 8px; }

.site-header { background: var(--ink); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 64px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font: 900 1.1rem/1 var(--display); text-decoration: none; }
.brand-mark { position: relative; width: 30px; height: 6px; border-radius: 3px; background: var(--paper); }
.brand-mark::after { content: ''; position: absolute; left: 9px; top: -6px; width: 12px; height: 18px; border-radius: 5px; background: var(--knot); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--paper); font-weight: 700; text-decoration: none; }
.nav a:hover { background: var(--panel); }
.search { margin-left: auto; }
.search input { width: 170px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--paper); font: inherit; }
.search input::placeholder { color: var(--soft); opacity: 1; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 14px 0 0; list-style: none; font-size: .95rem; color: var(--soft); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }

.field { position: relative; isolation: isolate; overflow: hidden; background: var(--times); color: var(--ink); padding-block: clamp(24px, 5vw, 56px) clamp(26px, 4vw, 44px); }
.seam { position: absolute; z-index: -1; top: -10%; bottom: -10%; left: 50%; width: 170%; background: var(--plus); transform: skewX(-7deg); transform-origin: 0 50%; }
.seam::before { content: ''; position: absolute; inset: 0 auto 0 -7px; width: 14px; background: var(--knot); }
.title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(26px, 5vw, 70px); margin: 0; font-size: clamp(2.1rem, 8.4vw, 7rem); font-weight: 900; line-height: .92; letter-spacing: -.04em; text-transform: uppercase; }
.title span:first-child { text-align: right; }
.title span:last-child { color: #fff; }
.tag { margin: 14px 0 0; text-align: center; color: #fff; font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.scene { display: block; width: 100%; height: auto; max-height: 300px; margin-top: 8px; overflow: visible; }
.turf { fill: #1f9d55; } .line { fill: #fff; } .rope { fill: #e0b36d; }
.flag, .knot { fill: var(--knot); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.limb, .torso, .arm { fill: none; stroke-linecap: round; }
.limb { stroke-width: 18; } .torso { stroke-width: 44; } .arm { stroke-width: 13; }
.j-l { stroke: var(--ink); } .j-r { stroke: var(--paper); }
.op { font: 900 34px var(--display); } .op-l { fill: var(--knot); } .op-r { fill: var(--plus); }
.eye { fill: var(--ink); }
.s1 { fill: #f4c7a1; } .s2 { fill: #a9744a; }
.s1-s { stroke: #f4c7a1; } .s2-s { stroke: #a9744a; }
.puller { transform-box: view-box; transform-origin: 20px 204px; animation: heave .6s ease-in-out infinite alternate; }
@keyframes heave { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 18px auto 0; }
.btn { display: grid; place-items: center; min-height: 68px; padding: 8px; border: 3px solid var(--ink); border-radius: 22px; color: var(--ink); font: 900 clamp(1.05rem, 2.6vw, 1.4rem)/1.1 var(--display); text-align: center; text-decoration: none; box-shadow: 0 6px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-y { background: var(--knot); } .btn-p { background: var(--paper); }

.band { padding-block: clamp(36px, 6vw, 72px) 0; }
.h1, .h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 22px; }
.rules b { display: block; font: 900 clamp(2.6rem, 5vw, 3.8rem)/1 var(--display); color: var(--knot); }
.rules p { margin: 4px 0 0; color: var(--soft); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 130px; padding: 16px; border-radius: 22px; text-decoration: none; transition: transform .16s; }
.tile:hover { transform: translateY(-3px); }
.tile strong { font: 900 clamp(1.25rem, 2.6vw, 1.9rem)/1.05 var(--display); }
.tile span { font-weight: 500; }
.tile-a { grid-column: 1 / -1; background: var(--times); color: var(--ink); } .tile-a:hover { color: var(--ink); }
.tile-b { background: var(--plus); color: #fff; } .tile-b:hover { color: #fff; }
.tile-c { background: var(--knot); color: var(--ink); } .tile-c:hover { color: var(--ink); }
.tile-d { grid-column: 1 / -1; background: var(--panel); color: var(--paper); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile-a { grid-column: span 2; } .tile-d { grid-column: auto; } }

.listing { padding-block: 28px 0; }
.lede { max-width: 60ch; color: var(--soft); font-size: 1.15rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-top: 22px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: var(--panel); color: var(--paper); text-decoration: none; transition: transform .16s; }
.card:hover { color: var(--paper); transform: translateY(-3px); }
.card img { border-radius: 14px; }
.card h2 { margin: 0; font-size: 1.35rem; }
.card p { margin: 0; color: var(--soft); }
.topic { align-self: flex-start; padding: 2px 10px; border-radius: 9px; background: var(--knot); color: var(--ink); font-size: .85rem; font-weight: 700; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.entry { padding-block: 30px 0; }
.entry h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.6rem); }
.meta { margin: 10px 0 0; color: var(--soft); }
.hero-img { display: block; margin-top: 20px; border-radius: 22px; }
.prose { margin-top: 22px; }
.prose h2 { margin: 2em 0 .4em; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.prose h3 { margin: 1.6em 0 .3em; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose img { border-radius: 16px; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1.4em 0; padding-left: 16px; border-left: 4px solid var(--knot); color: var(--soft); }
.prose pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: var(--panel); }
.terms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.terms a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 13px; background: var(--panel); text-decoration: none; }

.site-footer { margin-top: clamp(48px, 7vw, 88px); background: var(--ink); color: var(--soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 22px; }
.footer-row p { margin: 0; }

@media (max-width: 620px) {
  .search { width: 100%; margin-left: 0; }
  .search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
