/* Scoped tutorial and local-only rehearsal; no changes to live game layouts. */
body.player-guide-open { overflow: hidden; }
dialog.player-guide { color: #faf6ff; background: #100b19; border: 1px solid #8950b1; padding: 0; border-radius: 22px; width: min(760px, calc(100vw - 28px)); max-width: none; height: min(880px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 20px 90px #000b; font: 600 15px/1.5 system-ui, -apple-system, sans-serif; }
dialog.player-guide:not([open]) { display: none; }
.player-guide::backdrop { background: #050209db; backdrop-filter: blur(6px); }
.player-guide *, .player-guide *::before, .player-guide *::after { box-sizing: border-box; }
.player-guide button, .player-guide select { font: inherit; }
.player-guide button { cursor: pointer; }
.player-guide button:disabled { cursor: default; opacity: .5; }
.player-guide :focus-visible { outline: 3px solid #ffda6d; outline-offset: 3px; }
.guide-shell { height: 100%; display: grid; grid-template-rows: auto 4px minmax(0, 1fr) auto; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px 14px; background: linear-gradient(120deg, #28113d, #100b19); }
.guide-eyebrow { color: #ffcf58; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.guide-header p { margin: 3px 0 0; font-size: 12px; color: #d2c4e1; }
.guide-close { flex: 0 0 44px; min-height: 44px; color: white; background: #ffffff0d; border: 1px solid #a36dcc66; border-radius: 12px; font-size: 25px !important; }
.guide-progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 0; background: #33203e; accent-color: #bf5aff; }
.guide-progress::-webkit-progress-bar { background: #33203e; }
.guide-progress::-webkit-progress-value { background: linear-gradient(90deg, #963af4, #f5cb61); }
.guide-progress::-moz-progress-bar { background: #bf5aff; }
.guide-scroll { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px; scroll-padding-bottom: 16px; }
.guide-scroll h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 12px; color: #fff; }
.guide-scroll h2:focus { outline: none; }
.guide-intro { font-size: 16px; color: #d9cde3; margin: 0 0 20px; line-height: 1.6; }
.guide-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #6d438266; background: #170e22; }
.guide-button { min-height: 46px; padding: 11px 17px; border: 1px solid #9262b1; border-radius: 12px; background: #2a173e; color: #fff; font-size: 14px !important; font-weight: 850 !important; line-height: 1.2; }
.guide-button.primary { background: linear-gradient(130deg, #892de7, #6020a3); border-color: #be70ff; box-shadow: inset 0 1px #ffffff27; }
.guide-button:hover:not(:disabled) { filter: brightness(1.15); }
.guide-button:active:not(:disabled) { transform: translateY(1px); }
.guide-text-button { min-height: 44px; border: 0; background: transparent; color: #e3c9f5; padding: 9px 6px; font-size: 12px !important; line-height: 1.3; }
.guide-note { padding: 16px; border: 1px solid #66457d; border-radius: 14px; background: #241630; margin: 14px 0; }
.guide-note strong { color: #ffda74; font-size: 15px; }
.guide-note p { margin: 6px 0 0; color: #e0d4e9; font-size: 14px; line-height: 1.6; }
.guide-welcome-art { background: radial-gradient(ellipse, #57208280, transparent 70%); display: grid; place-items: center; min-height: 170px; }
.guide-welcome-art img { width: min(300px, 90%); height: 160px; object-fit: contain; }
.guide-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 12px 0 20px; }
.guide-three span { padding: 12px 8px; border: 1px solid #624078; background: #21132e; border-radius: 12px; font-size: 12px; }
.guide-three b { display: block; font-size: 22px; color: #f7cc60; margin-bottom: 5px; }
.guide-page-preview { background: radial-gradient(at top, #692a984d, transparent 70%), #201429; border: 1px solid #966039; border-radius: 16px 16px 0 0; min-height: 195px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; gap: 10px; }
.guide-page-preview img { object-fit: contain; width: min(260px, 100%); height: 82px; }
.guide-page-preview strong { color: #ffda74; font-size: 18px; }
.guide-page-preview p { margin: 0; font-size: 13px; color: #dfd2e8; }
.guide-nav-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #6b4580; border-top: 0; border-radius: 0 0 14px 14px; padding: 6px; gap: 3px; }
.guide-nav-preview span { font-size: 10px; padding: 12px 1px; text-align: center; color: #cabbcf; border-radius: 7px; }
.guide-nav-preview .is-current { background: #6f23a755; box-shadow: inset 0 2px #c153ff; color: #fff; }
.guide-tips { padding-left: 22px; color: #d9cce3; font-size: 14px; line-height: 1.65; }
.guide-tips li + li { margin-top: 12px; }
.guide-small { font-size: 12px; color: #c9bbd3; line-height: 1.55; }
.guide-install-icon { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid #8d6756; border-radius: 15px; color: #ffdb7d; }
.guide-install-icon img { border-radius: 18px; object-fit: contain; flex: 0 0 72px; }
.guide-instructions { margin: 20px 0; padding-left: 26px; color: #decfe7; line-height: 1.65; }
.guide-instructions li { padding-left: 4px; margin-bottom: 16px; }
.guide-instructions b { color: #fff; }
.guide-help-link { display: inline-block; padding: 12px 0; color: #f7ce65; text-decoration: underline; }
.guide-chip { display: inline-flex; padding: 5px 10px; border-radius: 99px; border: 1px solid #9275a6; color: #eee2f5; background: #2e1d40; font-size: 12px; }
.guide-chip.success { color: #bdf5d9; border-color: #51ad84; background: #16372c; }
.guide-chip.practice { color: #ffe493; border-color: #af8b3b; background: #362815; }
.guide-fixture { display: grid; text-align: center; gap: 9px; background: linear-gradient(130deg, #3e175c, #1b1028); border: 1px solid #9a6e4d; padding: 20px 12px; border-radius: 15px; }
.guide-fixture strong { font-size: 23px; line-height: 1.3; }.guide-fixture i { font-style: normal; font-size: 16px; color: #ffdb73; }.guide-fixture span { font-size: 12px; color: #d9c5e7; }
.guide-field { display: grid; gap: 8px; margin: 18px 0; color: #f4d687; font-size: 13px; }
.guide-field select { appearance: auto; color-scheme: dark; width: 100%; min-height: 48px; min-width: 0; background: #241530; color: #fff; border: 1px solid #bc81db; border-radius: 10px; padding: 10px; font-size: 16px; }
.guide-time-pair, .guide-pick-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.guide-time-pair > div, .guide-pick-slots > div { border: 1px solid #7f588d; border-radius: 12px; padding: 12px; background: #24152f; min-width: 0; }
.guide-time-pair span, .guide-pick-slots span { display: block; font-size: 12px; color: #cdbcda; }.guide-time-pair strong { display: block; font-size: 28px; color: #ffda72; }.guide-pick-slots strong { font-size: 14px; overflow-wrap: anywhere; }
.guide-emphasis { color: #ffe2a1; font-size: 16px; padding-left: 12px; border-left: 3px solid #f4c551; }
.guide-seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }.guide-seats > span { padding: 10px 3px; text-align: center; border: 1px solid #5b416c; border-radius: 9px; font-size: 12px; background: #22162b; }.guide-seats .you { border-color: #af6de0; background: #562185; }.guide-seats small { display: block; font-size: 9px; font-weight: 600; color: #d0bedc; margin-top: 3px; }
.guide-draft-status { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border: 1px solid #7dba9a; border-radius: 13px; background: #143125; }.guide-draft-status > strong, .guide-draft-status > span:last-child { flex-basis: 100%; }.guide-draft-status strong { font-size: 21px; }.guide-draft-status > span:last-child { font-size: 12px; color: #c2e1d0; }
.guide-snake { display: grid; gap: 4px; padding: 12px 0; font-size: 12px; color: #d4c3e0; }.guide-snake b { color: #ffda74; }
.guide-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #a265c5; border-radius: 12px; padding: 14px; background: #291639; }.guide-confirm > div { min-width: 0; }.guide-confirm span { display: block; color: #c9b5d6; font-size: 11px; }.guide-confirm strong { display: block; font-size: 14px; }.guide-confirm .guide-button { flex: 0 0 160px; }
.guide-history { background: #1e1427; border: 1px solid #604674; padding: 12px; border-radius: 12px; margin: 10px 0 18px; }.guide-history summary { cursor: pointer; min-height: 24px; color: #f4d68b; font-size: 13px; }.guide-history ol { padding-left: 22px; margin-bottom: 0; font-size: 12px; }.guide-history li { padding: 4px 0; color: #d9cbe3; }.guide-history b { color: #fff; }
.guide-player-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide-player { display: flex; flex-direction: column; align-items: center; min-width: 0; border: 1px solid #856497; border-radius: 12px; padding: 9px 7px; background: linear-gradient(140deg, #332043, #18101f); color: white; text-align: center; }
.guide-player:disabled { opacity: .66 !important; }.guide-player.selected { outline: 3px solid #f4d05c; outline-offset: 1px; background: #4d216b; }.guide-player.taken { background: #251f29; }
.guide-card-top { display: flex; justify-content: space-between; width: 100%; color: #edd38c; font-size: 9px; font-weight: 900; }.guide-shirt { width: 58px; height: 64px; margin: 9px 0; flex-shrink: 0; }.guide-player > strong { font-size: 12px; overflow-wrap: anywhere; }.guide-player > small { font-size: 10px; color: #dac9e3; }.guide-player-status { margin-top: 8px; border-top: 1px solid #a186b944; width: 100%; padding-top: 6px; color: #f4db9b; font-size: 10px; line-height: 1.3; }
.guide-feedback { color: #ffe2a1; font-size: 13px; min-height: 0; margin: 14px 0 0; }.guide-feedback:empty { display: none; }
@media (max-width: 560px) {
  dialog.player-guide { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .guide-header { padding: max(14px, env(safe-area-inset-top)) 16px 12px; }.guide-scroll { padding: 20px 16px; }.guide-footer { padding-left: 12px; padding-right: 12px; gap: 4px; }.guide-footer .guide-button { padding: 10px 12px; max-width: 143px; }.guide-footer .guide-text-button { font-size: 11px !important; }
  .guide-player-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.guide-confirm { flex-direction: column; align-items: stretch; }.guide-confirm .guide-button { flex-basis: auto; }.guide-intro { font-size: 15px; }
}
@media (max-width: 350px) { .guide-scroll { padding: 16px 12px; }.guide-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }.guide-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.guide-three { gap: 5px; }.guide-three span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .player-guide *, .player-guide *::before, .player-guide *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }.guide-button:active:not(:disabled) { transform: none; } }
