/* The original .app/.game-screen sizing and iframe are deliberately unchanged. */
html { overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; }
body { height: auto; min-height: 100%; overflow: visible; background: #fbfaf7; }
.app { overflow: hidden; }
.guide-area {
  --guide-ink: #292824;
  --guide-muted: #777268;
  --guide-accent: #99411f;
  --guide-gold: #d5ac60;
  --guide-line: #e7e1d6;
  color: var(--guide-ink);
  background: #fbfaf7;
  border-top: 3px solid #d7b16c;
  font-size: 18px;
  line-height: 1.8;
}
.guide-wrap { max-width: 1232px; margin: 0 auto; padding: 78px 44px 0; }
.guide-heading { max-width: 850px; margin: 0 0 52px; }
.guide-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #8b5a30; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.guide-kicker img { border-radius: 6px; }
.guide-area h2, .guide-area h3 { overflow-wrap: anywhere; hyphens: auto; }
.guide-heading > h2 { margin: 0; color: #29241f; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3.6vw, 48px); font-weight: 400; letter-spacing: -.035em; line-height: 1.16; }
.guide-heading > p { margin: 18px 0 0; color: #777064; font-size: 19px; line-height: 1.6; }
.guide-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 68px; align-items: start; }
.guide-sidebar { position: sticky; top: 24px; min-width: 0; }
.guide-toc { overflow: hidden; border: 1px solid #e4ddcf; border-radius: 10px; background: #fffefa; box-shadow: 0 3px 16px #44351e04; }
.guide-toc > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; color: #473a29; font-size: 16px; font-weight: 650; line-height: 1.4; cursor: pointer; list-style: none; }
.guide-toc > summary::-webkit-details-marker, .toc-questions > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.toc-chevron { width: 7px; height: 7px; flex-shrink: 0; border-right: 1.5px solid #8b7659; border-bottom: 1.5px solid #8b7659; transform: rotate(45deg); transition: transform .15s; }
.guide-toc[open] .toc-chevron { transform: rotate(225deg); }
.toc-navigation { max-height: calc(100dvh - 180px); overflow: auto; padding: 0 10px 15px; scrollbar-width: thin; scrollbar-color: #dfd3be transparent; }
.toc-navigation ul { list-style: none; margin: 0; padding: 0; }
.toc-navigation > ul > li + li { margin-top: 3px; }
.toc-navigation a { display: block; border-left: 2px solid transparent; padding: 6px 10px; color: #6c665d; font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .15s, background .15s; }
.toc-navigation a:hover { color: #8c391c; background: #f6f0e5; }
.toc-navigation a[aria-current="location"] { border-left-color: #b56c34; border-radius: 0 4px 4px 0; background: #f7efdf; color: #8d411f; font-weight: 600; }
.toc-navigation .toc-sublist { margin: 1px 0 7px 12px; border-left: 1px solid #e8e1d6; }
.toc-navigation .toc-sublist a { font-size: 13px; padding-block: 4px; }
.toc-questions summary { padding: 5px 12px; color: #8b7353; font-size: 12px; line-height: 1.5; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.toc-bottom { border-top: 1px solid #ece5d8; padding: 12px 20px; }
.toc-play-link { color: #8e4b25; font-size: 13px; text-decoration: none; }
.toc-play-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-copy { min-width: 0; max-width: 740px; }
.guide-copy p { margin: 0 0 22px; }
.guide-copy a { color: #984624; text-decoration-color: #cda98a; text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.guide-copy a:hover { color: #622711; text-decoration-color: currentColor; }
.guide-copy a:focus-visible, .guide-sidebar a:focus-visible, .guide-toc summary:focus-visible, .faq-item summary:focus-visible { outline: 2px solid #b46a2d; outline-offset: 4px; border-radius: 3px; }
.guide-copy strong { color: #393329; font-weight: 650; }
.guide-intro { font-size: 19px; line-height: 1.8; }
.guide-intro > p:first-child { font-size: 21px; line-height: 1.75; color: #3d372f; }
.guide-cover { margin: 32px 0 0; overflow: hidden; border: 1px solid #e4d7c8; border-radius: 12px; background: #46104f; }
.guide-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.guide-section { margin-top: 48px; padding-top: 35px; border-top: 1px solid var(--guide-line); }
.guide-section h2 { margin: 0 0 23px; color: #30271f; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 400; letter-spacing: -.025em; line-height: 1.3; scroll-margin-top: 36px; }
.guide-section h3 { margin: 30px 0 15px; font-size: 20px; font-weight: 650; line-height: 1.4; color: #513b29; scroll-margin-top: 36px; }
.guide-section ul, .guide-section ol { padding-left: 24px; margin: 14px 0 24px; }
.guide-section li { padding-left: 6px; margin: 12px 0; }
.guide-section li::marker { color: #ad7b40; }
.guide-section ol { list-style: none; padding: 0; counter-reset: guide-step; }
.guide-section ol > li { position: relative; counter-increment: guide-step; margin: 0; padding: 16px 0 16px 48px; border-bottom: 1px solid #ede7de; }
.guide-section ol > li:last-child { border-bottom: 0; }
.guide-section ol > li::before { content: counter(guide-step); position: absolute; left: 0; top: 17px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dfccab; border-radius: 50%; color: #96602e; font-size: 13px; font-weight: 600; line-height: 1; }
.guide-faq { margin-top: 55px; }
.faq-list { border-top: 1px solid #e7dfd2; }
.faq-item { border-bottom: 1px solid #e7dfd2; }
.faq-item > summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; list-style: none; cursor: pointer; }
.faq-item > summary h3 { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.6; color: #42372c; }
.faq-item[open] > summary h3 { color: #8c431f; }
.faq-symbol { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.faq-symbol::before, .faq-symbol::after { content: ''; position: absolute; left: 1px; top: 7px; width: 13px; height: 1px; background: #a77a4a; }
.faq-symbol::after { transform: rotate(90deg); transition: transform .15s; }
.faq-item[open] .faq-symbol::after { transform: rotate(0); }
.faq-answer { padding: 0 30px 0 0; color: #6a6257; font-size: 17px; }
.faq-answer p { margin-bottom: 22px; }
.guide-end { margin: 50px 0 0; padding: 32px 20px 35px; border: 1px solid #e8d8bb; border-radius: 10px; background: #f5eddd; text-align: center; }
.guide-end-symbol { display: inline-grid; place-items: center; width: 38px; height: 47px; margin-bottom: 14px; border: 1px solid #e6c88c; border-radius: 4px; background: #fff9e8; color: #9b402a; box-shadow: -2px 3px 0 #dcb469; font-family: Georgia, serif; font-size: 31px; line-height: 1; }
.guide-end p { margin: 0 0 18px; color: #66503a; font-family: Georgia, serif; font-size: 22px; }
.guide-play-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 24px; border: 1px solid #914224; border-radius: 5px; background: #974421; color: #fffaf0 !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.guide-play-button:hover { background: #793318; }
.guide-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 75px; padding: 25px 0 30px; border-top: 1px solid #e6ded0; color: #8a8175; font-size: 12px; }
.guide-footer a { color: #7c6850; text-decoration: none; }
.guide-footer > a:first-child { color: #4f463b; font-size: 17px; letter-spacing: -.3px; }
.guide-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app:fullscreen { background: #000; overflow: hidden; }
@media (max-width: 1100px) {
  .guide-wrap { padding-inline: 32px; }
  .guide-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 900px) {
  .guide-wrap { padding-top: 48px; }
  .guide-heading { margin-bottom: 30px; }
  .guide-layout { display: block; }
  .guide-sidebar { position: static; margin-bottom: 34px; }
  .guide-toc > summary { padding: 15px 20px; }
  .toc-navigation { max-height: 380px; }
  .guide-copy { max-width: none; }
}
@media (max-width: 600px) {
  .guide-area { font-size: 17px; line-height: 1.8; }
  .guide-wrap { padding: 36px 23px 0; }
  .guide-kicker { gap: 10px; margin-bottom: 16px; font-size: 10px; }
  .guide-heading > h2 { max-width: 320px; font-size: 34px; }
  .guide-heading > p { font-size: 16px; }
  .guide-intro { font-size: 17px; }
  .guide-intro > p:first-child { font-size: 19px; }
  .guide-section { margin-top: 34px; padding-top: 29px; }
  .guide-section h2 { font-size: 26px; scroll-margin-top: 24px; }
  .guide-section h3 { font-size: 19px; scroll-margin-top: 24px; }
  .guide-section li { padding-left: 3px; margin-block: 13px; }
  .guide-section ol > li { padding-block: 14px; padding-left: 43px; }
  .faq-item > summary { gap: 15px; padding: 17px 0; }
  .faq-item > summary h3 { font-size: 17px; }
  .faq-answer { padding-right: 15px; font-size: 16px; }
  .guide-end { margin-top: 36px; padding-inline: 14px; }
  .guide-footer { margin-top: 42px; padding-bottom: 24px; font-size: 12px; }
  .guide-footer > a:first-child { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-area * { transition: none !important; }
}

.guide-heading > .guide-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin: 22px 0 0; color: #8a7b68; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.7; }
.guide-byline a { color: #914224; font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.guide-byline a:hover { text-decoration: underline; }
