#game { --ink:#132e38; --pine:#195b51; --rust:#a2422b; --paper:#f8f4e9; --line:#d6d3bf; color:var(--ink); background:var(--paper); min-height:80vh; }
#game[hidden] {display:none!important}
#game *,#game *::before,#game *::after {box-sizing:border-box}
#game .ob-wrap {max-width:1220px;margin:auto;padding:20px clamp(18px,4vw,64px) 48px;font-family:inherit;text-align:left;}
#game .ob-crumb {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 20px;margin-bottom:24px;border-bottom:1px solid var(--line);font-size:.92rem;font-weight:650;}
#game .ob-crumb a,#game .ob-return {color:var(--pine);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em;}
#game .ob-crumb span,#game .ob-kicker {font:700 .73rem/1.5 ui-monospace,Menlo,monospace;text-transform:uppercase;letter-spacing:.11em;color:#47665e}
#game h1,#game h2,#game h3,#game p {color:inherit;margin:0;}
#game h1 {font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.4rem,5.6vw,5.2rem);font-weight:550;letter-spacing:-.055em;line-height:1.04;margin:.18em 0 .28em;overflow-wrap:break-word;}
#game h3 {font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.3rem,2.4vw,1.8rem);letter-spacing:-.025em;font-weight:600;line-height:1.12;margin:3px 0 6px;}
#game p {font-size:1rem;line-height:1.6;max-width:66ch;}
#game .ob-lead {font-size:clamp(1.1rem,2vw,1.34rem);line-height:1.5;margin:0 0 14px;}
#game .ob-intro {display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(24px,4.6vw,68px);align-items:start;}
#game .ob-intro-copy {align-self:center;}
#game .ob-plate {position:relative;background:#d7dfcd;border-radius:22px;overflow:hidden;border:1px solid var(--line);}
#game .ob-plate img {width:100%;height:auto;max-height:520px;aspect-ratio:5/5.6;object-fit:cover;display:block;}
#game .ob-plate span {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;font:700 .73rem/1.4 ui-monospace,Menlo,monospace;text-transform:uppercase;letter-spacing:.09em;color:var(--ink);}
#game .ob-brief,#game .ob-details {margin:20px 0 14px;border-left:3px solid #bf6843;padding:2px 0 2px 16px;}
#game .ob-brief b {font-weight:750;}
#game .ob-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px;}
#game .ob-btn,#game .ob-audio {font-family:inherit;line-height:1.25;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;text-decoration:none;}
#game .ob-btn {background:var(--pine);color:#fff;border:1px solid var(--pine);border-radius:8px;padding:13px 18px;font-weight:700;font-size:.98rem;}
#game .ob-btn:hover {background:#164a43;}
#game .ob-light {background:transparent;color:var(--pine);border-color:#738b7e;}
#game .ob-light:hover {background:#e8eada;}
#game .ob-audio {background:transparent;border:0;padding:4px 3px;color:var(--pine);font-size:.94rem;font-weight:700;text-decoration:underline;text-underline-offset:.22em;}
#game .ob-audio svg {width:20px;height:20px;}
#game .ob-return {display:inline-flex;align-items:center;min-height:44px;font-weight:650;font-size:.92rem;margin-top:8px;}
#game .ob-paper {max-width:840px;margin:auto;padding:clamp(18px,3vw,42px);border:1px solid var(--line);border-radius:18px;background:#fffcf3;}
#game .ob-paper h1 {font-size:clamp(2.15rem,4.5vw,4.1rem);}
#game .ob-list {list-style:none;padding:0;margin:20px 0;}
#game .ob-list li {border-top:1px solid var(--line);padding:17px 0;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;}
#game .ob-index {margin-top:3px;display:grid;place-items:center;align-self:start;min-height:34px;background:#e4ebdd;color:var(--pine);border-radius:9px;font:700 .86rem ui-monospace,monospace;}
#game .ob-play {margin:18px 0;}
#game .ob-choices {display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;}
#game .ob-symbol {flex:1 1 92px;max-width:178px;min-height:102px;padding:12px 5px 10px;cursor:pointer;border:1.5px solid #9fa998;background:#f8f4e9;border-radius:14px;display:grid;place-items:center;gap:4px;color:var(--ink);font:700 1rem/1.2 inherit;font-family:inherit;font-weight:700;font-size:1rem;}
#game .ob-symbol svg {width:clamp(48px,7vw,72px);height:auto;}
#game .ob-symbol:hover:enabled {border-color:var(--pine);background:#edf1e3;}
#game button:disabled {opacity:.48;cursor:default;}
#game .ob-slots {display:flex;align-items:center;gap:8px;margin:6px 0 18px;}
#game .ob-slots span {width:48px;height:48px;border:1px dashed #829486;display:grid;place-items:center;border-radius:9px;color:#526b61;font:700 .93rem ui-monospace,monospace;}
#game .ob-slots svg {width:38px;height:38px;}
#game .ob-inputform {display:grid;justify-items:start;gap:10px;}
#game label {display:grid;gap:5px;font-weight:670;}
#game input,#game select {min-width:0;width:100%;max-width:360px;min-height:46px;color:var(--ink);background:#fffdf7;border:1px solid #819383;padding:9px 13px;border-radius:7px;font:inherit;}
#game .ob-feedback {color:var(--rust);font-weight:650;margin-top:12px;}
#game .ob-feedback:empty,#game .ob-audio-status:empty {display:none}
#game .ob-details summary {cursor:pointer;font-weight:700;min-height:42px;display:list-item;padding:8px 0;}
#game .ob-details p {margin:0 0 8px;}
#game .ob-finish {text-align:center;display:flex;flex-direction:column;align-items:center;}
#game .ob-seal {font-size:2rem;width:64px;height:64px;display:grid;place-items:center;border-radius:50%;border:3px double var(--pine);background:#dce7d7;color:var(--pine);margin-bottom:20px;}
#game .ob-secret {max-width:100%;overflow-wrap:anywhere;font:bold clamp(1.9rem,5vw,3.8rem)/1.15 Georgia,serif;background:#e6ecd9;border:1px dashed #82917c;padding:14px 25px;border-radius:12px;color:var(--pine);margin:10px 0 20px;}
#game .ob-setup fieldset {border:1px solid var(--line);border-radius:10px;padding:15px;margin:18px 0;}
#game .ob-setup legend {font-weight:700;color:var(--pine);padding:0 6px;}
#game .ob-setup fieldset p {margin-bottom:12px;}
#game .ob-configrow {display:flex;flex-wrap:wrap;gap:12px;}
#game .ob-audio-status {margin:10px auto;color:#76462f;}
#game :focus-visible {outline:3px solid #c36d35;outline-offset:3px;}
#game [tabindex="-1"]:focus {outline:0}
@media(max-width:720px) {
  #game .ob-wrap {padding-top:8px;}
  #game .ob-intro {display:flex;flex-direction:column;gap:16px;}
  #game .ob-intro-copy {width:100%;}
  #game .ob-plate {width:100%;}
  #game .ob-plate img {aspect-ratio:2.6;max-height:185px;}
  #game .ob-crumb {margin-bottom:14px;}
}
@media(max-width:440px) {
  #game .ob-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
  #game .ob-symbol {min-height:90px;font-size:.8rem;}
  #game .ob-configrow {display:grid;grid-template-columns:1fr;width:100%;}
}
/* Karty obrazkowe dla dzieci korzystających ze wspólnego tabletu. */
#game .ob-wrap:has(.ob-picture){padding-top:6px;padding-bottom:14px}
#game .ob-wrap:has(.ob-picture) .ob-crumb{min-height:44px;margin-bottom:12px;padding:4px 0}
#game .ob-picture{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(20px,4vw,48px);border:1px solid #d5cfba;border-radius:20px;background:#fffaf0;padding:clamp(16px,2.4vw,30px);box-shadow:0 6px 24px #5449280a}
#game .ob-picture-frame{width:100%;height:clamp(205px,43svh,410px);overflow:hidden;border-radius:14px;background:#fbf2da}
#game .ob-picture-frame img{display:block;width:100%;height:100%;object-fit:contain}
#game .ob-picture h1{font:700 clamp(2.2rem,4.7vw,4.3rem)/1.02 'Barlow Condensed',Arial,sans-serif;letter-spacing:-.015em;margin:8px 0 14px}
#game .ob-picture-line{font-size:clamp(1.05rem,2.05vw,1.42rem);line-height:1.35;max-width:31ch;margin:0 0 13px}
#game .ob-picture .ob-audio{border:2px solid #a87a31;color:#543918;background:#ffe8a6;text-decoration:none;padding:9px 16px;min-height:50px;border-radius:28px;font-size:1.05rem;gap:10px}
#game .ob-picture .ob-audio svg{width:27px;height:27px}
#game .ob-kid-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
#game .ob-picture .ob-btn{min-height:49px;min-width:100px;border-radius:10px;font-size:1.04rem;line-height:1.25}
#game .ob-kid-actions svg,#game .ob-kid-exit svg{width:24px;height:24px;flex-shrink:0}
#game .ob-step-title{display:flex;align-items:center;gap:12px;font-weight:700;color:#3e6154}
#game .ob-dots{display:inline-flex;gap:4px}
#game .ob-dots i{width:10px;height:10px;border:1px solid #809b86;border-radius:50%}
#game .ob-dots .active{background:#20664e;border-color:#20664e}
#game .ob-kid-exit{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--pine);font-weight:650;margin-top:8px}
#game .ob-kid-signs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0 0}
#game .ob-kid-signs .ob-symbol{width:100%;max-width:none;min-height:92px;background:#fffcf4}
#game .ob-kid-signs .ob-symbol svg{width:clamp(42px,6.6vw,72px);height:auto}
#game .ob-win{grid-column:1/-1;text-align:center;display:flex;flex-direction:column;align-items:center}
#game .ob-win .ob-secret{margin:0 0 8px;padding:8px 20px;line-height:1.1}
#game .ob-win-steps{display:flex;gap:10px;justify-content:center;list-style:none;padding:0;margin:16px 0 18px;counter-reset:win}
#game .ob-win-steps li{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:210px;max-width:46%;border-radius:11px;padding:10px;background:#ecf0e2;font-weight:650;font-size:1.02rem;line-height:1.25;counter-increment:win}
#game .ob-win-steps li:before{content:counter(win);position:absolute;left:8px;top:8px;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;background:var(--pine);color:white}
#game .ob-win-steps svg{width:42px;height:42px;color:var(--pine)}
@media(max-width:700px) and (orientation:portrait){
  #game .ob-picture{grid-template-columns:1fr;gap:14px}
  #game .ob-picture-frame{height:clamp(140px,26svh,290px)}
  #game .ob-picture h1{font-size:clamp(2rem,6.5vw,3rem)}
  #game .ob-kid-actions{margin-top:10px}
}
@media(min-width:701px) and (orientation:portrait){
  #game .ob-picture{grid-template-columns:1fr;max-width:728px;margin-inline:auto}
  #game .ob-picture-frame{height:29svh}
  #game .ob-picture-copy{padding:0 12px 10px}
}
@media(orientation:landscape) and (max-height:650px){
  #game .ob-picture{gap:20px;padding:15px}
  #game .ob-picture h1{font-size:clamp(2.05rem,4.3vw,3rem);margin-block:4px 8px}
  #game .ob-kid-actions{margin-top:10px}
  #game .ob-kid-signs{margin-top:10px}
}
/* Kolejne stanowiska starszych tras. */
#game .ob-wrap:has(.ob-atlas){padding-top:5px;padding-bottom:15px}
#game .ob-wrap:has(.ob-atlas) .ob-crumb{min-height:40px;padding:4px 0;margin:0 0 8px}
#game .ob-atlas{--mission:#215e50;--wash:#e4ecdd;--mark:#edc569;color:#172f35}
#game .ob-atlas[data-guide="klucz"]{--mission:#3a4675;--wash:#e7e8ef;--mark:#efc278}
#game .ob-atlas-heading{display:flex;align-items:center;gap:12px;margin:0 0 9px;color:#425650;font-size:.95rem;font-weight:600}
#game .ob-atlas-route{font:700 clamp(1.7rem,3.8vw,2.4rem)/1.04 "Barlow Condensed",sans-serif;color:var(--mission)}
#game .ob-stations{display:grid;grid-template-columns:repeat(var(--stage-count),minmax(0,1fr));gap:8px;margin-bottom:12px}
#game .ob-stations a{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;text-decoration:none;background:#fff9ed;color:#294841;border:2px solid #c4cabb;border-radius:8px;min-height:65px}
#game .ob-stations a:hover{border-color:var(--mission)}
#game .ob-stations img{display:block;width:100%;height:clamp(38px,7.8svh,79px);object-fit:cover;object-position:center}
#game .ob-stations span{font-size:.92rem;font-weight:700;line-height:1.15;display:flex;align-items:center;gap:6px;padding:4px 7px}
#game .ob-stations b{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:50%;background:#e5e9dd;color:#28483c;font-size:.74rem;line-height:1}
#game .ob-stations [aria-current]{background:var(--mission);border-color:var(--mission);color:white;box-shadow:0 0 0 2px var(--mark)}
#game .ob-stations [aria-current] b{color:#283f36;background:var(--mark)}
#game .ob-station{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);align-items:stretch;border:1px solid #c7cdbc;border-radius:12px;overflow:hidden;background:#fffcf3}
#game .ob-station figure{position:relative;margin:0;min-height:clamp(210px,36svh,365px);background:#d2dacb}
#game .ob-station figure img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--wash)}
#game .ob-station-copy{align-self:center;min-width:0;padding:clamp(12px,2.2vw,28px)}
#game .ob-station-meta{display:flex;align-items:center;gap:8px;color:var(--mission);font-size:.87rem;font-weight:700}
#game .ob-station-meta span+span{border-left:1px solid #939f93;padding-left:9px;font-weight:550}
#game .ob-station h1{font:700 clamp(1.8rem,3.4vw,3rem)/1.03 "Barlow Condensed",sans-serif;letter-spacing:-.012em;margin:.22em 0 .4em}
#game .ob-station ol{list-style:none;padding:0;margin:0;counter-reset:guide-step;display:grid;gap:8px}
#game .ob-station li{position:relative;padding-left:28px;line-height:1.4;font-size:clamp(.97rem,1.65vw,1.1rem);counter-increment:guide-step}
#game .ob-station li::before{content:counter(guide-step);position:absolute;left:0;top:.1em;display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:var(--wash);font-size:.8rem;font-weight:700;color:var(--mission)}
#game .ob-atlas-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}
#game .ob-atlas-actions>div{display:flex;align-items:center;gap:8px}
#game .ob-atlas-actions .ob-btn{min-width:108px;min-height:46px;color:white;background:var(--mission);border-color:var(--mission)}
#game .ob-atlas-actions .ob-light{color:var(--mission);background:#fffaf0}
#game .ob-atlas-exit{min-height:44px;display:inline-flex;align-items:center;color:var(--mission);text-underline-offset:.2em;font-size:.94rem;font-weight:650}
@media (max-width:780px) and (orientation:portrait){
  #game .ob-stations{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #game .ob-stations img{height:clamp(34px,6svh,65px)}
  #game .ob-station{grid-template-columns:1fr}
  #game .ob-station figure{min-height:clamp(145px,26svh,275px)}
}
@media (max-width:500px){
  #game .ob-atlas-heading{gap:7px;flex-wrap:wrap;font-size:.83rem}
  #game .ob-stations span{font-size:.78rem;padding:4px;gap:3px}
  #game .ob-stations{gap:4px}#game .ob-atlas-actions{align-items:flex-start;flex-direction:column;gap:2px}
  #game .ob-atlas-actions .ob-btn{min-width:92px}
}
#game .ob-station .ob-audio{font-size:.92rem;margin:5px 0 -3px;color:var(--mission);text-decoration:none}
@media(min-width:730px) and (orientation:landscape) and (max-height:700px){
  #game .ob-wrap:has(.ob-atlas){padding-top:10px}
  #game .ob-wrap:has(.ob-atlas) .ob-crumb{display:none}
  #game .ob-atlas-heading{margin-bottom:6px}
  #game .ob-station-copy{padding:10px 15px}
  #game .ob-station li{font-size:1rem;line-height:1.32}
  #game .ob-station ol{gap:7px}
  #game .ob-atlas-actions{margin-top:8px}
}
