@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/alegreya-sans-500.woff2) format("woff2")}
@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/alegreya-sans-700.woff2) format("woff2")}
@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/alegreya-sans-800.woff2) format("woff2")}
@font-face{font-family:"Alegreya Sans";font-style:normal;font-weight:900;font-display:swap;src:url(/assets/fonts/alegreya-sans-900.woff2) format("woff2")}
@font-face{font-family:"Germania One";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/germania-one-400.woff2) format("woff2")}
@font-face{font-family:"Jersey 15";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/jersey-15-400.woff2) format("woff2")}
/* towerfuse.com. The game's own look: baize ground, wood bars, gold buttons, parchment frames, its three typefaces. One dark look, as in the game. */
:root {
  color-scheme: dark;
  --ink: #170d07; --baize: #183222; --baize-deep: #10231a; --night: #0c1611;
  --wood: #472b18; --wood-hi: #775130; --wood-lo: #2a1705; --well: #1c120a;
  --gold-hi: #fadc83; --gold: #f1be4c; --gold-lo: #dc9c2f; --gold-edge: #a8691a; --gold-ink: #2a1705;
  --parch: #cdb89a; --text: #fff7e6; --dim: #ecdcbd; --mute: #b4c7b6;
  --red: #9f3930; --red-hi: #c8473a; --sky: #2280c8; --sky-lo: #1a6ab0; --ok: #a6e060;
  --display: "Germania One", "Arial Narrow", system-ui, sans-serif;
  --pixel: "Jersey 15", "Courier New", ui-monospace, monospace;
  --body: "Alegreya Sans", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --gutter-l: max(18px, env(safe-area-inset-left, 0px)); --gutter-r: max(18px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--text); font: 600 18px/1.55 var(--body); background: var(--baize);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.07) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 2px, transparent 2px 6px); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--gold-hi); }
a:focus-visible, button:focus-visible, summary:focus-visible, .reel:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 6.4vw, 54px); text-shadow: 0 3px 0 var(--ink); }
h3 { font-size: 26px; color: var(--gold-hi); }
p { margin: 0 0 12px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 760px; }

/* ---------- buttons, as the game's: square, bevelled, a hard shadow */
.btn { display: inline-block; font: 400 30px/1 var(--display); text-decoration: none; padding: 14px 34px 16px; border: 3px solid var(--ink); cursor: pointer; }
.btn.gold { color: var(--gold-ink); background: linear-gradient(var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: inset 0 3px 0 #fff3c4, inset 0 -6px 0 var(--gold-edge), 0 5px 0 var(--ink); }
.btn.wood { color: var(--text); background: linear-gradient(var(--wood-hi), var(--wood)); box-shadow: inset 0 3px 0 #94683f, inset 0 -6px 0 #36200f, 0 5px 0 var(--ink); }
.btn.small { font-size: 22px; padding: 7px 20px 9px; }
.btn.gold.small { box-shadow: inset 0 2px 0 #fff3c4, inset 0 -4px 0 var(--gold-edge), 0 3px 0 var(--ink); }
.btn.wood.small { box-shadow: inset 0 2px 0 #94683f, inset 0 -4px 0 #36200f, 0 3px 0 var(--ink); }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.3), 0 2px 0 var(--ink); }

/* ---------- the wooden bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; min-height: 60px;
  padding: 8px var(--gutter-r) 8px var(--gutter-l); padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: linear-gradient(#5b3920, var(--wood)); border-bottom: 4px solid var(--ink); box-shadow: inset 0 3px 0 #7c5433, inset 0 -3px 0 #33200f; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 28px/1 var(--display); text-shadow: 0 2px 0 var(--ink); }
.brand img { image-rendering: pixelated; border: 2px solid var(--ink); }
.bar nav { display: none; gap: 22px; margin-left: 14px; }
.bar nav a { color: var(--dim); text-decoration: none; font: 400 22px/1 var(--pixel); }
.bar nav a:hover { color: var(--gold-hi); }
.bar .btn { margin-left: auto; }
@media (min-width: 860px) { .bar nav { display: flex; } }

/* ---------- the hero: the game's icon come alive */
.hero { position: relative; overflow: hidden; text-align: center; background: var(--sky-lo); isolation: isolate; }
.sky { position: absolute; left: 50%; top: 64%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; z-index: -1;
  background: repeating-conic-gradient(var(--sky) 0 15deg, var(--sky-lo) 15deg 30deg); animation: turn 240s linear infinite; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 46% at 50% 66%, rgba(140,205,255,.55), rgba(26,106,176,0) 70%); }
@keyframes turn { to { transform: rotate(360deg); } }
.hero-in { position: relative; padding: clamp(26px, 6vw, 56px) var(--gutter-r) 0 var(--gutter-l); }
.ribbon { display: inline-block; margin: 0 0 14px; padding: 5px 26px 6px; font: 400 21px/1.1 var(--pixel); color: #fff; background: linear-gradient(var(--red-hi), var(--red)); text-shadow: 0 2px 0 rgba(0,0,0,.45);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
.hero h1 { font-size: clamp(68px, 18vw, 156px); letter-spacing: .01em; color: var(--text);
  text-shadow: 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 0 12px 0 rgba(12,40,80,.55); }
.lede { font: 400 clamp(24px, 4.6vw, 34px)/1.2 var(--display); margin: 12px auto 22px; max-width: 22ch; text-shadow: 0 3px 0 rgba(12,40,80,.7); }
.cta { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; align-items: center; }
.under { margin: 18px auto 0; max-width: 34ch; font-size: 17px; color: #e4f1ff; text-shadow: 0 2px 0 rgba(12,40,80,.6); }
.hero { --kw: min(600px, 100vw); }
/* the keep's picture is used twice: its loose pieces beside the buttons, its island below the words */
.cta-zone { position: relative; }
.bits { position: absolute; left: 50%; top: -14px; width: var(--kw); max-width: none; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; clip-path: inset(0 0 74% 0); }
.cta { position: relative; }
.keep { display: block; width: var(--kw); max-width: none; margin: calc(var(--kw) * -0.4) 0 -4px 50%; transform: translateX(-50%); image-rendering: pixelated; pointer-events: none; clip-path: inset(41% 0 0 0); }
.merlons { position: relative; height: 34px; margin-top: -30px;
  background: linear-gradient(var(--baize), var(--baize)) 0 100% / 100% 16px no-repeat, repeating-linear-gradient(90deg, var(--baize) 0 30px, transparent 30px 60px);
  border-bottom: 0; filter: drop-shadow(0 -4px 0 var(--ink)); }

/* ---------- bands */
.band { padding: clamp(56px, 9vw, 96px) 0; }
.band.alt { background: var(--baize-deep); box-shadow: inset 0 4px 0 var(--ink), inset 0 -4px 0 var(--ink); }
.intro { max-width: 60ch; margin: 12px 0 28px; font-size: 20px; color: var(--dim); }
.frame { margin: 0; background: var(--well); border: 3px solid var(--parch); box-shadow: 0 0 0 3px var(--ink), 0 9px 0 rgba(0,0,0,.35); }

/* pieces */
.viewer { display: grid; gap: 22px; }
.stage img { display: block; width: 100%; image-rendering: pixelated; background: #1d3a25; }
.stage figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px 14px 14px; background: linear-gradient(var(--wood), var(--wood-lo)); border-top: 3px solid var(--ink); }
.stage figcaption b { font: 400 28px/1 var(--display); }
.stage figcaption span:last-child { grid-column: 1 / -1; color: var(--dim); }
.chip { justify-self: start; font: 400 19px/1 var(--pixel); color: var(--gold-hi); background: var(--well); border: 2px solid var(--gold-lo); padding: 3px 9px 4px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; align-content: start; }
.pc { display: grid; justify-items: center; align-content: end; gap: 7px; min-height: 86px; padding: 10px 4px 7px; cursor: pointer; color: var(--dim); font: 400 19px/1 var(--pixel);
  background: linear-gradient(#5b3920, var(--wood)); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 #7c5433, inset 0 -4px 0 #33200f; }
.pc .glyph { height: 34px; width: auto; }
.pc:hover { filter: brightness(1.12); }
.pc.on { color: var(--gold-ink); background: linear-gradient(var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: inset 0 3px 0 #fff3c4, inset 0 -4px 0 var(--gold-edge); }
@media (min-width: 900px) { .viewer { grid-template-columns: minmax(0, 600px) 1fr; align-items: start; } }

/* fusing */
.recipes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.recipes li { padding: 16px 16px 8px; background: linear-gradient(var(--wood), var(--wood-lo)); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 #7c5433, 0 7px 0 rgba(0,0,0,.3); }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 84px; padding: 12px; background: var(--well); border: 2px solid var(--ink); }
.part { display: grid; justify-items: center; gap: 5px; }
.part small { font: 400 17px/1 var(--pixel); color: var(--mute); }
.eq i { font: 400 30px/1 var(--pixel); color: var(--gold); font-style: normal; }
.eq .fused { margin-left: 2px; filter: drop-shadow(0 0 6px rgba(255,180,90,.55)); }
.recipes h3 { margin: 12px 0 2px; }
.recipes p { color: var(--dim); }
.note { margin: 26px 0 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--gold-lo); max-width: 62ch; color: var(--dim); }

/* maps */
.maps { list-style: none; margin: 0; padding: 0 0 14px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.maps li { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; background: var(--well); border: 3px solid var(--parch); box-shadow: 0 0 0 3px var(--ink); margin: 3px; }
.maps img { display: block; width: 100%; image-rendering: pixelated; border-bottom: 3px solid var(--ink); }
.maps div { padding: 12px 14px 6px; }
.tier { font: 400 19px/1 var(--pixel); color: var(--gold-hi); }
.maps p { color: var(--dim); font-size: 17px; }
@media (min-width: 900px) { .maps { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 22px; } .maps li { margin: 0; } }

/* the horde */
.horde { position: relative; padding: 0 0 clamp(56px, 9vw, 96px); background: linear-gradient(var(--night), #13241b 55%, var(--baize)); box-shadow: inset 0 4px 0 var(--ink); overflow: hidden; }
.crowd { display: block; width: min(680px, 108%); max-width: none; margin: 0 auto -18%; position: relative; left: 50%; transform: translateX(-50%); image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 92%); mask-image: linear-gradient(#000 62%, transparent 92%); }
.horde .wrap { position: relative; }
.bosses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.bosses li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; background: rgba(23,13,7,.82); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px #4a2a1a; }
.bosses img { width: 96px; height: 96px; image-rendering: pixelated; background: radial-gradient(#5a2a22, #2a1210); border: 2px solid var(--ink); }
.where { display: inline-block; margin: 4px 0 6px; padding: 2px 8px 3px; font: 400 18px/1 var(--pixel); color: #fff; background: var(--red); }
.bosses p { margin: 0; color: var(--dim); font-size: 17px; line-height: 1.4; }

/* between runs */
.rooms { display: grid; gap: 22px; }
.rooms article { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; }
.rooms p { color: var(--dim); margin: 6px 0 0; }
.shot { display: block; width: 100%; border: 3px solid var(--parch); box-shadow: 0 0 0 3px var(--ink), 0 8px 0 rgba(0,0,0,.35); background: var(--well); }
.smith { display: grid; gap: 0; margin-top: 34px; }
.smith img { display: block; width: 100%; image-rendering: pixelated; }
.smith p { margin: 0; padding: 14px 16px 16px; font: 400 24px/1.25 var(--display); border-top: 3px solid var(--ink); background: linear-gradient(var(--wood), var(--wood-lo)); }
@media (min-width: 900px) { .rooms { grid-template-columns: repeat(3, 1fr); gap: 34px; } .rooms article { grid-template-columns: 1fr; align-items: start; } .rooms .shot { max-width: 260px; } .rooms h3 { margin-top: 6px; }
  .smith { grid-template-columns: 372px 1fr; align-items: center; max-width: 860px; } .smith p { border-top: 0; border-left: 3px solid var(--ink); align-self: stretch; display: grid; align-content: center; padding: 20px 26px; } }

.two { display: grid; gap: 40px; }
.two p { color: var(--dim); max-width: 46ch; margin-top: 10px; font-size: 19px; }
.leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.leagues img { width: 40px; height: 43px; image-rendering: pixelated; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }

/* screenshots */
.reel-nav { display: flex; gap: 12px; margin: 14px 0 0; }
.reel-nav .btn { cursor: pointer; font-family: var(--display); }
.reel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 4px 18px; }
.reel figure { flex: 0 0 min(236px, 62vw); min-width: 0; margin: 0; scroll-snap-align: start; }
.reel figcaption { margin-top: 14px; font: 400 20px/1.15 var(--pixel); color: var(--dim); }

/* questions */
details { border-top: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255,255,255,.05); }
details:last-of-type { border-bottom: 3px solid var(--ink); }
summary { cursor: pointer; padding: 16px 0; font: 400 25px/1.2 var(--display); }
summary::marker { color: var(--gold); }
details p { color: var(--dim); max-width: 62ch; padding: 0 0 8px 22px; }
#faq h2 { margin-bottom: 24px; }

/* the last call */
.last { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(64px, 12vw, 120px) 0; background: var(--sky-lo); box-shadow: inset 0 4px 0 var(--ink); }
.last .sky { top: 50%; }
.last h2 { margin-bottom: 26px; text-shadow: 0 4px 0 var(--ink); }

/* foot */
.foot { background: linear-gradient(var(--wood), var(--wood-lo)); border-top: 4px solid var(--ink); box-shadow: inset 0 3px 0 #7c5433; padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px)); }
.foot-in { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--dim); font: 400 21px/1.3 var(--pixel); text-decoration: none; }
.foot nav a:hover { color: var(--gold-hi); text-decoration: underline; }
.fine { margin: 0; font-size: 15px; color: var(--mute); }

/* the text pages */
.page { min-height: 62vh; }
.prose h1 { font-size: clamp(40px, 8vw, 58px); color: var(--gold-hi); text-shadow: 0 3px 0 var(--ink); margin-bottom: 10px; }
.prose h2 { font-size: 28px; margin: 34px 0 8px; text-shadow: 0 2px 0 var(--ink); }
.prose p, .prose li { color: var(--dim); max-width: 66ch; }
.prose .small { font-size: 16px; color: var(--mute); }
.prose b { color: var(--text); }
.notice { margin: 0 0 34px; padding: 16px 18px 6px; background: linear-gradient(var(--wood), var(--wood-lo)); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 #7c5433; }
.notice h2 { margin: 0 0 6px; font-size: 24px; color: var(--gold-hi); }
.steps { padding-left: 24px; }
.steps li { margin-bottom: 8px; }
.steps li::marker { font-family: var(--pixel); color: var(--gold-hi); font-size: 22px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 14px; padding: 10px 0; border-bottom: 3px solid var(--ink); }
.facts dt { font: 400 20px/1.3 var(--pixel); color: var(--mute); }
.facts dd { margin: 0; color: var(--text); }
.pressgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px; padding: 6px 3px; }
.pressart { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; }
.pressart img { image-rendering: pixelated; background: var(--sky-lo); border: 3px solid var(--ink); }

@media (prefers-reduced-motion: reduce) { .sky { animation: none; } html { scroll-behavior: auto; } .btn:active { transform: none; } }

/* wide screens: the island comes up under the words so the whole scene fits the first screen */
@media (min-width: 900px) {
  .hero-in { padding-top: 34px; }
  .hero h1 { font-size: clamp(110px, 11vw, 150px); }
  .hero { --kw: 720px; }
  .lede { max-width: 30ch; margin-bottom: 20px; }
  .under { max-width: 46ch; }
}
@media (min-width: 900px) { .bits { width: calc(var(--kw) * 1.14); top: -22px; } }
