/* Towers of Fortune guide: bright sky, Lucky Block yellow, hard-shadow blocks */
:root {
  --sky: #7CCBF0;
  --sky-light: #C8EEF9;
  --cloud: #F4FBFE;
  --gold: #F6B91D;
  --gold-dark: #D98A00;
  --ink: #1F2A44;
  --muted: #4A5873;
  --white: #FFFFFF;
  --green: #1F6B25;
  --violet: #4B3FC9;
  --radius: 0;
  --shadow-1: 0 4px 0 #1F2A44;
  --shadow-2: 0 8px 0 #1F2A44;
  --font-head: "Lilita One", "Arial Black", Impact, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-light);
  background-image: linear-gradient(180deg, var(--sky) 0, var(--sky-light) 560px);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible, .tf-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 16px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }
.tf-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.tf-top { background: var(--white); border-bottom: 4px solid var(--ink); position: relative; z-index: 2; }
.tf-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.tf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.tf-lucky { width: 44px; height: 44px; background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--shadow-1); font-family: var(--font-head); font-size: 28px; line-height: 38px; text-align: center; color: var(--ink); flex: none; }
.tf-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.tf-brand-name { font-family: var(--font-head); font-size: 22px; letter-spacing: .02em; }
.tf-brand-sub { font-size: 12px; font-weight: 700; color: var(--muted); }
.tf-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-nav a { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); padding: 8px 12px; border: 3px solid transparent; }
.tf-nav a:hover { border-color: var(--ink); background: var(--gold); color: var(--ink); }

/* shared blocks */
.tf-block { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-2); padding: 24px; }
.tf-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.tf-h1 { font-family: var(--font-head); font-weight: 400; font-size: 48px; line-height: 1.2; margin: 0 0 16px; letter-spacing: .01em; }
.tf-h1-page { font-size: 36px; }
.tf-lead { font-size: 18px; margin: 0 0 24px; }
.tf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow-1); font-family: var(--font-head); font-size: 18px; text-decoration: none; letter-spacing: .02em; }
.tf-btn:hover { background: var(--gold-dark); color: var(--ink); }
.tf-btn:active { transform: translateY(4px); box-shadow: none; }
.tf-ghost { background: var(--white); }
.tf-ghost:hover { background: var(--sky-light); }
.tf-tag { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.2; padding: 4px 8px; border: 2px solid var(--ink); vertical-align: middle; white-space: nowrap; }
.tf-tag-ok { background: #D6F0D4; color: var(--green); }
.tf-tag-rep { background: #FDE9A8; color: var(--ink); }
.tf-tag-no { background: var(--white); color: var(--muted); border-style: dashed; }
.tf-small { font-size: 14px; color: var(--muted); }

/* hero */
.tf-hero { padding: 48px 0 24px; position: relative; }
.tf-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; pointer-events: none; opacity: .9;
  background:
    linear-gradient(var(--cloud), var(--cloud)) 6% 24px / 96px 16px no-repeat,
    linear-gradient(var(--cloud), var(--cloud)) calc(6% + 16px) 8px / 64px 16px no-repeat,
    linear-gradient(var(--cloud), var(--cloud)) 62% 48px / 128px 16px no-repeat,
    linear-gradient(var(--cloud), var(--cloud)) calc(62% + 24px) 32px / 80px 16px no-repeat,
    linear-gradient(var(--cloud), var(--cloud)) 88% 16px / 72px 16px no-repeat; }
.tf-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.tf-fig { margin: 0; }
.tf-fig img { border: 3px solid var(--ink); box-shadow: var(--shadow-2); background: var(--white); }
.tf-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.tf-facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 32px 0 8px; }
.tf-fact { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 12px; }
.tf-fact dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.tf-fact dd { margin: 4px 0 0; font-family: var(--font-head); font-size: 18px; line-height: 1.2; }
.tf-facts-note { margin: 12px 0 0; }

/* jump nav + guides */
.tf-toc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 24px; padding-bottom: 8px; }
.tf-toc-label { font-weight: 700; font-size: 14px; margin-right: 8px; }
.tf-toc a { font-weight: 700; font-size: 14px; padding: 4px 12px; background: var(--white); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.tf-toc a:hover { background: var(--gold); }
.tf-guides { padding-top: 24px; padding-bottom: 8px; }
.tf-h2-small { font-family: var(--font-head); font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.tf-guides-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tf-guides-list li { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tf-guides-list a { font-weight: 700; }
.tf-guides-list span { font-size: 14px; color: var(--muted); }

/* sections ("floors") */
.tf-sec { padding: 48px 0; }
.tf-sec-alt { background: var(--cloud); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.tf-floor { display: inline-block; margin: 0 0 12px; padding: 4px 12px; background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--shadow-1); font-family: var(--font-head); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.tf-sec h2, .tf-prose h2 { font-family: var(--font-head); font-weight: 400; font-size: 36px; line-height: 1.2; margin: 0 0 16px; }
.tf-prose { max-width: 70ch; }
.tf-prose h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 32px 0 12px; }
.tf-prose p, .tf-prose li { margin: 0 0 16px; }
.tf-prose ul, .tf-prose ol { padding-left: 24px; margin: 0 0 16px; }
.tf-prose table { border-collapse: collapse; width: 100%; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.tf-prose th, .tf-prose td { border: 2px solid var(--ink); padding: 8px 12px; text-align: left; vertical-align: top; }
.tf-prose th { background: var(--gold); font-weight: 700; }
.tf-prose td { background: var(--white); }
.tf-prose code, .tf-codes code { font-family: var(--font-head); font-size: 18px; background: var(--sky-light); border: 2px solid var(--ink); padding: 0 8px; letter-spacing: .04em; }
.tf-note { font-size: 16px; padding: 12px 16px; background: var(--white); border-left: 8px solid var(--gold); margin: 24px 0 16px; }
.tf-more { font-weight: 700; margin-top: 24px; }
.tf-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.tf-split-rev { grid-template-columns: 1fr 1.1fr; }

/* ladder (how to play) */
.tf-ladder { list-style: none; counter-reset: rung; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.tf-rung { counter-increment: rung; position: relative; background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 16px 16px 16px 80px; }
.tf-rung::before { content: counter(rung); position: absolute; left: 16px; top: 16px; width: 48px; height: 48px; background: var(--gold); border: 3px solid var(--ink); font-family: var(--font-head); font-size: 28px; line-height: 42px; text-align: center; }
.tf-rung h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.tf-rung p { margin: 0; }

/* codes */
.tf-codes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.tf-code { display: grid; grid-template-columns: 16px auto 1fr auto; gap: 8px 16px; align-items: center; background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 16px; }
.tf-wool { width: 16px; height: 48px; background: #E85D75; border: 2px solid var(--ink); grid-row: 1 / span 2; }
.tf-code:nth-child(2) .tf-wool { background: var(--sky); }
.tf-code-reward { font-weight: 700; }
.tf-code-note { grid-column: 2 / -1; }

/* spins */
.tf-rarity { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tf-rar { font-family: var(--font-head); font-size: 18px; padding: 8px 16px; border: 3px solid var(--ink); box-shadow: var(--shadow-1); background: var(--white); }
.tf-rar-b { background: var(--sky); }
.tf-rar-c { background: var(--gold); }
.tf-rar-d { background: var(--violet); color: var(--white); }
.tf-rar-e { background: var(--ink); color: var(--gold); }

/* level tower */
.tf-tower { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.tf-brick { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 8px 16px; background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--shadow-1); }
.tf-brick { min-width: 150px; }
.tf-brick strong { font-family: var(--font-head); font-weight: 400; font-size: 18px; }
.tf-brick span { font-size: 14px; font-weight: 700; }
.tf-brick-1 { width: 38%; background: var(--violet); color: var(--white); }
.tf-brick-2 { width: 46%; }
.tf-brick-3 { width: 54%; }
.tf-brick-4 { width: 62%; }
.tf-brick-5 { width: 70%; }
.tf-brick-6 { width: 78%; background: var(--sky); }
.tf-brick-7 { width: 86%; background: var(--sky); }
.tf-brick-8 { width: 100%; background: var(--white); }

/* passes */
.tf-passes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.tf-pass { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 16px; }
.tf-pass-price { margin: 0 0 8px; display: inline-block; font-family: var(--font-head); font-size: 22px; background: var(--gold); border: 2px solid var(--ink); padding: 0 8px; }
.tf-pass h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.tf-pass p { margin: 0; font-size: 16px; }

/* event */
.tf-event { background: var(--ink); color: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-2); padding: 24px; }
.tf-event-tag { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.tf-event-title { margin: 0 0 16px; font-family: var(--font-head); font-size: 28px; line-height: 1.2; }
.tf-event dl { margin: 0 0 16px; display: grid; gap: 8px; }
.tf-event dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px dashed var(--muted); padding-bottom: 8px; }
.tf-event dt { font-size: 14px; color: var(--sky-light); }
.tf-event dd { margin: 0; font-weight: 700; text-align: right; }
.tf-fx { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tf-fx li { background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px; padding: 4px 12px; border: 2px solid var(--white); }

/* ad */
.tf-ad { max-width: 360px; margin: 48px auto; padding: 8px; text-align: center; background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); }
.tf-ad-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.tf-ad-box { min-height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* faq */
.tf-faq { display: grid; gap: 12px; margin-top: 24px; max-width: 860px; }
.tf-page .tf-faq { margin: 32px 0; }
.tf-page .tf-faq h2, .tf-related h2 { font-family: var(--font-head); font-weight: 400; font-size: 28px; margin: 0; }
.tf-qa { background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); }
.tf-qa summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; font-weight: 700; position: relative; min-height: 48px; }
.tf-qa summary::-webkit-details-marker { display: none; }
.tf-qa summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-family: var(--font-head); font-size: 28px; line-height: 1.2; }
.tf-qa[open] summary::after { content: "-"; }
.tf-qa[open] summary { background: var(--gold); }
.tf-qa-a { padding: 16px; border-top: 3px solid var(--ink); }
.tf-qa-a p { margin: 0 0 12px; }

/* sources */
.tf-src { padding-left: 24px; }
.tf-src li { margin-bottom: 8px; }

/* inner pages */
.tf-page { padding-top: 32px; padding-bottom: 64px; }
.tf-crumbs { font-size: 14px; font-weight: 700; margin-bottom: 24px; }
.tf-crumbs a { color: var(--ink); }
.tf-head { margin-bottom: 24px; }
.tf-answer { display: flex; gap: 16px; align-items: flex-start; background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--shadow-2); padding: 24px; margin-bottom: 32px; }
.tf-answer-tag { flex: none; background: var(--ink); color: var(--gold); font-family: var(--font-head); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; }
.tf-answer-text { font-size: 18px; font-weight: 600; }
.tf-answer-text p { margin: 0; }
.tf-fig-wide { max-width: 720px; margin: 0 0 32px; }
.tf-article { margin-bottom: 8px; }
.tf-article .tf-prose h2:first-child { margin-top: 0; }
.tf-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.tf-related-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-1); padding: 16px; color: var(--ink); text-decoration: none; }
.tf-related-card:hover { background: var(--gold); }
.tf-legal { max-width: 860px; }
.tf-lost { text-align: center; }
.tf-lost-card { max-width: 640px; margin: 48px auto; }
.tf-lost-q { margin: 0 auto 16px; width: 96px; height: 96px; background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--shadow-1); font-family: var(--font-head); font-size: 64px; line-height: 88px; color: var(--ink); }
.tf-lost .tf-actions { justify-content: center; }

/* footer */
.tf-foot { background: var(--white); border-top: 4px solid var(--ink); padding: 32px 0 24px; }
.tf-foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.tf-foot-in > div { max-width: 560px; }
.tf-foot-name { font-family: var(--font-head); font-size: 22px; margin: 0 0 8px; }
.tf-foot-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.tf-foot-links a { font-weight: 700; color: var(--ink); }
.tf-copy { margin: 24px 0 0; }

@media (max-width: 900px) {
  .tf-facts { grid-template-columns: repeat(3, 1fr); }
  .tf-passes { grid-template-columns: repeat(2, 1fr); }
  .tf-split, .tf-split-rev { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tf-h1 { font-size: 32px; }
  .tf-h1-page { font-size: 28px; }
  .tf-sec h2, .tf-prose h2 { font-size: 28px; }
  .tf-hero { padding-top: 32px; }
  .tf-hero-in { grid-template-columns: 1fr; gap: 24px; }
  .tf-block { padding: 16px; }
  .tf-facts { grid-template-columns: repeat(2, 1fr); }
  .tf-passes { grid-template-columns: 1fr; }
  .tf-btn { width: 100%; }
  .tf-answer { flex-direction: column; padding: 16px; }
  .tf-code { grid-template-columns: 16px 1fr; }
  .tf-code-note { grid-column: 2; }
  .tf-rung { padding: 16px 16px 16px 72px; }
  .tf-rung::before { left: 12px; width: 44px; height: 44px; line-height: 38px; }
  .tf-top-in { justify-content: center; }
  .tf-ad { margin: 32px auto; }
}


