@font-face { font-family: "Mind War Sans"; src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mind War Sans"; src: url("assets/fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Mind War Ink"; src: url("assets/fonts/MindWar-InkDisplay.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --gold: #a77e3e; --rules-line: #e5e8e6; }
body { background: var(--paper); font-family: "Mind War Sans", Arial, sans-serif; }
.rules-header { height: 112px; padding: 26px clamp(24px, 5vw, 72px); position: relative; display: flex; justify-content: center; align-items: flex-start; }
.rules-header .brand { width: 80px; }
.rules-header .brand img { height: 64px; }
.header-back { position: absolute; top: 49px; left: clamp(24px, 5vw, 72px); color: #3e4441; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: #b2b9b6; text-underline-offset: 6px; }
.header-back:hover, .rules-footer a:hover { color: #000; text-decoration-color: #000; }
.rules-intro { max-width: 1100px; min-height: 172px; margin: 0 auto; padding: 8px 28px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-label, .outcome-label { color: #69716c; font-size: 13px; font-weight: 600; line-height: 1.4; }
.rules-intro h1 { margin: 0; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: clamp(58px, 7vw, 96px); font-weight: 400; letter-spacing: -.016em; line-height: 1.1; }
.rules-intro h1 em { font-weight: 400; }
.intro-line { margin: 16px 0 0; color: #656c69; font-size: 17px; line-height: 1.5; }
.rules-layout { max-width: 1180px; margin: 0 auto; padding: 26px 28px 100px; border-top: 1px solid var(--rules-line); }
.steps-column { min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.chapter-heading { grid-column: 1 / -1; padding: 23px 3px 3px; }
.chapter-heading span { color: var(--gold); font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: clamp(34px, 3.5vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.chapter-rules { margin-top: 18px; padding-top: 32px; border-top: 1px solid var(--rules-line); }
.rule-step { scroll-margin-top: 24px; margin: 0; padding: clamp(30px, 4vw, 48px); border: 1px solid #e0e3df; border-radius: 18px; background: #fff; box-shadow: inset 0 1px 0 #ffffffb8, 0 2px 5px #20292108, 0 16px 40px #20292112, 0 36px 72px #2029210a; }
#before-kingdom, #before-objective, #step-1, #step-6 { grid-column: 1 / -1; }
#step-2, #step-4 { grid-column: span 5; }
#step-3, #step-5 { grid-column: span 7; }
#step-7 { grid-column: 1 / -1; }
#before-kingdom { background: #f2f0ea; }
#before-objective { background: #f8f7f3; }
#step-2 { border-color: #242722; background: #242722; }
#step-7 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 42px; align-items: start; border-color: #d9d0bf; background: #e9e1d2; }
#step-7 .step-head, #step-7 > p, #step-7 .outcome-grid { grid-column: 1; }
#step-7 .step-head { margin-bottom: 18px; }
#step-7 > p { margin-bottom: 0; }
#step-7 .sneak-illustration { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
#step-7 .outcome-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 12px; }
#step-7 .outcome { padding-top: 15px; }
#step-7 .outcome-label { margin-bottom: 6px; }
#step-6 { background: #f1eee8; }
#step-2 h2 { color: #f7f5ee; }
#step-2 > p { color: #dbded7; }
.step-head { display: flex; align-items: flex-start; gap: 25px; margin-bottom: 24px; }
.step-number { min-width: 60px; color: #1f211f; font-family: "Mind War Ink", "Iowan Old Style", Georgia, serif; font-size: 53px; font-weight: 700; letter-spacing: -.045em; line-height: .9; font-variant-numeric: lining-nums; }
#step-2 .step-number { color: #f7f5ee; }
.rule-step h2 { margin: 0; font-family: "Mind War Sans", Arial, sans-serif; font-size: clamp(29px, 2.8vw, 39px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.rule-step > p { max-width: 680px; margin: 0 0 24px; color: #444b47; font-size: 16px; line-height: 1.65; }
.rule-step strong { color: #222724; }
.realms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.realm + .realm { padding-left: 24px; border-left: 1px solid #e1e2dd; }
.realm h3 { margin: 0 0 17px; font-family: "Mind War Sans", Arial, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.house-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.house-card { position: relative; min-width: 0; aspect-ratio: 5 / 7; margin: 0; padding: 20px 5px; border: 1px solid #d5d8d5; border-radius: 9px; background: #fff; box-shadow: 0 4px 5px #28332c0c, 0 17px 28px #28332c1a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .25s ease, box-shadow .25s ease; }
.house-card:hover { transform: translateY(-9px) rotate(-1deg); box-shadow: 0 7px 8px #28332c10, 0 27px 40px #28332c26; }
.house-corner { position: absolute; top: 7px; left: 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: #333834; font-size: 8px; font-weight: 600; line-height: 1; }
.house-corner img { width: 17px; height: 17px; object-fit: contain; mix-blend-mode: multiply; }
.house-corner-bottom { inset: auto 7px 7px auto; transform: rotate(180deg); }
.house-mark { display: block; width: min(56%, 73px); aspect-ratio: 1; }
.house-mark img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.house-card figcaption { color: #202622; font-family: "Mind War Sans", Arial, sans-serif; font-size: clamp(14px, 1.5vw, 19px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; text-align: center; }
.house-card figcaption::before { content: "House"; display: block; margin-bottom: 3px; color: #8a8374; font-size: 8px; font-weight: 600; letter-spacing: .12em; }
.setup-tile { padding: 28px; }
.setup-tile .step-head { margin-bottom: 12px; }
.setup-tile h2 { font-size: 29px; }
.setup-tile > p { margin-bottom: 14px; }
.council-primer { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 20px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #dedfd9; }
.council-primer h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.03em; }
.council-primer p { margin: 0; color: #5b625c; font-size: 13px; line-height: 1.5; }
.council-primer .council-example { margin: 0; }
.council-primer .council-cards { padding: 10px 0; }
.council-primer .council-cards img { width: clamp(52px, 6vw, 70px); }
.two-paths, .outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 26px; }
.path, .outcome { padding: 25px 0 0; border-top: 1px solid #cdd4d0; }
.path h3, .outcome h3 { margin: 0 0 9px; font-family: "Mind War Sans", Arial, sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.path p, .outcome p:last-child { margin: 0; color: #515955; font-size: 14px; line-height: 1.55; }
.inline-note { margin-top: 17px; padding: 19px 21px; border-left: 2px solid var(--gold); background: #f6f7f6; color: #505854; font-size: 14px; line-height: 1.6; }
.house-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.house-score .score-label { width: 100%; color: #797f78; font-size: 11px; }
.house-score div { display: flex; align-items: baseline; gap: 8px; padding-top: 7px; border-top: 1px solid #c9c3b6; }
.house-score span { color: #5e665f; font-size: 13px; }
.house-score strong { color: #1f211f; font-family: "Mind War Ink", "Iowan Old Style", Georgia, serif; font-size: 27px; font-weight: 700; }
.realm-switch { display: flex; gap: 19px; margin: 25px 0 11px; }
.realm-choice { padding: 3px 0 5px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #6b726d; font: inherit; font-size: 13px; cursor: pointer; }
.realm-choice:hover, .realm-choice.is-active { border-bottom-color: var(--gold); color: #202622; }
.winning-hand { display: flex; align-items: center; gap: 7px; padding: 12px 0 14px; }
.winning-card { width: 65px; height: 96px; padding: 9px 4px 7px; border: 1px solid #d7d4ca; border-radius: 5px; background: #fffdf8; box-shadow: 0 7px 12px #25302718; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .25s ease; }
.winning-card:nth-child(1) { transform: rotate(-7deg) translateY(4px); }
.winning-card:nth-child(2) { transform: rotate(-2deg); }
.winning-card:nth-child(3) { transform: rotate(3deg); }
.winning-card:nth-child(4) { transform: rotate(8deg) translateY(4px); }
.winning-card img { width: 50px; height: 50px; object-fit: contain; mix-blend-mode: multiply; }
.winning-card span { margin-top: 3px; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: 12px; }
.setup-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
.rule-illustration { margin: 0; }
.rule-illustration img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.rule-illustration figcaption { color: #667069; font-size: 12px; line-height: 1.45; text-align: center; }
.seating-scene { position: relative; }
.setup-illustration img { max-height: 330px; object-fit: contain; }
.seat-badge { position: absolute; z-index: 1; padding: 4px 8px 3px; border: 1px solid #9a7d51; border-radius: 2px; background: #f7f1e4; color: #4f3d24; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: 12px; font-style: italic; font-weight: 700; box-shadow: 1px 2px 5px #0002; transform: translate(-50%,-50%) rotate(-3deg); }
.seat-2, .seat-4, .seat-6 { border-color: #333833; background: #2a2d2a; color: #fff; transform: translate(-50%,-50%) rotate(3deg); }
.seat-1 { top: 8%; left: 50%; }
.seat-2 { top: 28%; left: 84%; }
.seat-3 { top: 69%; left: 82%; }
.seat-4 { top: 91%; left: 50%; }
.seat-5 { top: 69%; left: 18%; }
.seat-6 { top: 28%; left: 16%; }
.ask-illustration { margin: 12px 0 9px; overflow: hidden; }
.ask-illustration img { height: 170px; object-fit: cover; object-position: center 65%; }
.deduce-illustration { margin-top: 17px; overflow: hidden; }
.deduce-illustration img { height: 220px; object-fit: cover; object-position: center 55%; }
.access-illustration { margin: 4px 0 8px; }
.access-illustration img { height: 175px; object-fit: cover; object-position: center 64%; }
.sneak-illustration { margin: 0 0 15px; }
.sneak-illustration img { height: 350px; object-fit: cover; object-position: center 62%; }
.silence-card { display: block; width: 122px; height: auto; margin: 28px auto 0; border: 1px solid #454943; border-radius: 7px; box-shadow: 15px 19px 26px #090b0980; transform: rotate(-9deg); }
.council-example { margin: 30px 0 23px; }
.council-cards { display: flex; justify-content: center; align-items: center; padding: 21px 0; }
.council-cards img { width: clamp(70px, 10vw, 100px); height: auto; margin-left: -11px; border: 1px solid #cdd1cf; border-radius: 5px; box-shadow: 0 10px 17px #20272225; transform-origin: center bottom; }
.council-cards img:first-child { margin-left: 0; transform: rotate(-8deg) translateY(9px); }
.council-cards img:nth-child(2) { transform: rotate(-5deg) translateY(4px); }
.council-cards img:nth-child(3) { transform: rotate(-2deg); }
.council-cards img:nth-child(4) { transform: rotate(2deg); }
.council-cards img:nth-child(5) { transform: rotate(5deg) translateY(4px); }
.council-cards img:nth-child(6) { transform: rotate(8deg) translateY(9px); }
.council-example figcaption { margin-top: 10px; color: #5b655e; font-size: 13px; text-align: center; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid #edf0ef; }
.setup-list li:last-child { border-bottom: 1px solid #edf0ef; }
.setup-list li span { color: #1f211f; font-family: "Mind War Ink", "Iowan Old Style", Georgia, serif; font-size: 19px; font-weight: 700; font-variant-numeric: lining-nums; }
.setup-list p { margin: 0; color: #444b47; font-size: 15px; line-height: 1.55; }
.player-counts { margin-top: 28px; padding: 20px 24px; border: 1px solid #dfe3e1; border-radius: 12px; background: #fbfcfc; }
.player-counts .mini-label { margin: 0 0 10px; }
.player-counts div { display: flex; gap: 15px; justify-content: space-between; padding: 8px 0; border-top: 1px solid #ebeeee; font-size: 13px; }
.player-counts div strong { white-space: nowrap; }
.player-counts div span { color: #5b625e; text-align: right; }
.outcome-label { margin: 0 0 14px; }
.outcome-success { border-top: 2px solid #8b9b8c; }
.outcome-failure { border-top: 2px solid #aa8660; }
.rules-footer { max-width: 1210px; margin: 0 auto; padding: 26px 28px 42px; border-top: 1px solid var(--rules-line); display: flex; justify-content: space-between; gap: 20px; color: #747c77; font-size: 12px; }
.rules-footer a { color: #343a36; font-weight: 600; text-decoration: underline; text-decoration-color: #b3bab6; text-underline-offset: 5px; }
.header-back:focus-visible, .rules-footer a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 900px) { .rule-step { padding: 32px; } .step-head { gap: 17px; } .realms { grid-template-columns: 1fr; } .realm + .realm { padding: 23px 0 0; border-left: 0; border-top: 1px solid #e1e2dd; } }
@media (max-width: 700px) {
  .rules-header { height: 95px; padding: 20px 18px; }
  .rules-header .brand { width: 72px; }
  .rules-header .brand img { height: 57px; }
  .header-back { top: 40px; left: 18px; font-size: 11px; }
  .rules-intro { min-height: 160px; padding: 16px 22px 29px; }
  .rules-intro h1 { font-size: clamp(51px, 10vw, 75px); }
  .intro-line { max-width: 320px; font-size: 15px; }
  .rules-layout { padding: 16px 16px 65px; }
  .steps-column { grid-template-columns: 1fr; gap: 14px; }
  #before-kingdom, #before-objective, #step-1, #step-2, #step-3, #step-4, #step-5, #step-6, #step-7 { grid-column: 1 / -1; }
  .rule-step { padding: 32px 22px 38px; border-radius: 14px; scroll-margin-top: 15px; }
  #step-7 { display: block; }
  #step-7 .step-head { margin-bottom: 22px; }
  #step-7 > p { margin-bottom: 20px; }
  #step-7 .outcome-grid { margin-top: 16px; }
  .step-head { gap: 18px; margin-bottom: 22px; }
  .step-number { min-width: 44px; font-size: 40px; }
  .rule-step h2 { font-size: clamp(26px, 7vw, 34px); }
  .rule-step > p { font-size: 15px; }
  .house-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .house-card { aspect-ratio: 5 / 7; padding: 28px 7px; gap: 7px; }
  .house-corner { top: 8px; left: 8px; font-size: 8px; }
  .house-corner img { width: 18px; height: 18px; }
  .house-corner-bottom { inset: auto 8px 8px auto; }
  .house-card figcaption { font-size: 18px; }
  .house-card figcaption::before { margin-bottom: 4px; font-size: 9px; }
  .house-mark { width: 70px; }
  .council-primer { grid-template-columns: 1fr; gap: 8px; }
  .council-primer .council-cards img { width: 55px; }
  .setup-scene { grid-template-columns: 1fr; gap: 13px; }
  .setup-illustration img { max-height: 230px; }
  .seat-badge { padding: 2px 5px; font-size: 10px; }
  .ask-illustration img { height: 132px; }
  .deduce-illustration img { height: 160px; }
  .access-illustration img, .sneak-illustration img { height: 135px; }
  .two-paths, .outcome-grid { grid-template-columns: 1fr; gap: 10px; }
  .path, .outcome { padding: 19px 0 13px; }
  .council-cards img { width: 62px; margin-left: -14px; }
  .rules-footer { padding: 25px 22px 38px; line-height: 1.5; }
}
@media (max-width: 380px) { .rules-intro h1 { font-size: 49px; } .rule-step { padding: 26px 20px; } .step-head { gap: 11px; } .step-number { min-width: 39px; font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .house-card, .winning-card { transition: none; } .house-card:hover { transform: none; } }
@media print { .header-back, .rules-footer { display: none !important; } .rules-layout { display: block; border: 0; padding: 0; } .steps-column { display: block; } .chapter-heading { margin-top: 18px; } .rules-intro { min-height: 0; padding: 20px 0 40px; } .rule-step { break-inside: avoid; margin-bottom: 16px; box-shadow: none; } #step-2 { border-color: #ccc; background: #fff; } #step-2 h2, #step-2 > p, #step-2 .step-number { color: #222; } body { background: #fff; } }
