/* Interfejs gry „Wirtualne Jagodno” – ciepły, kolejkowy styl: kremowe panele, brązowy tekst, miodowe obwódki. */
:root {
  --cream: #fff6e3; --cream2: #f8e8c4; --paper: #fffaf0; --brown: #5b3a14; --brown2: #7a5a33; --gold: #e9b44c; --gold2: #f3c969; --green: #5da24a; --red: #d9534f; --sky: #4f9bd9;
  --shadow: 0 8px 26px rgba(70, 40, 6, .30); --r: 16px;
}
body { font-family: "Nunito", "Trebuchet MS", system-ui, "Segoe UI", Roboto, sans-serif; }
body:not(.classic) #panel { display: none !important; }
body.classic #gameUI, body.classic #startScreen { display: none !important; }
button { font-family: inherit; }

/* —— pigułki HUD —— */
#hudTop { position: fixed; top: 12px; left: 12px; z-index: 6; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.pill { background: var(--cream); color: var(--brown); border: 2px solid var(--gold); border-radius: 999px; padding: 6px 16px; box-shadow: var(--shadow); font-weight: 800; font-size: 15px; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; pointer-events: auto; }
.pill .dim { color: var(--brown2); font-weight: 700; font-size: 13px; }
.pill .sep { width: 2px; height: 16px; background: var(--cream2); border-radius: 2px; }
#hcTime { font-variant-numeric: tabular-nums; font-size: 18px; letter-spacing: .5px; }
.pill.accent { background: #ffe3a1; }
body.menu #hudTop, body.menu #toolbar, body.menu #detailBadge, body.menu #droneHud, body.menu #filmChip { display: none !important; }

/* —— pasek narzędzi —— */
#toolbar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 8; display: flex; gap: 0; align-items: stretch; background: var(--cream); border: 2px solid var(--gold); border-radius: 16px; padding: 5px; box-shadow: var(--shadow); }
.tbGroup { display: flex; gap: 2px; padding: 0 4px; }
.tbGroup + .tbGroup { border-left: 2px solid var(--cream2); margin-left: 4px; }
#toolbar button { all: unset; box-sizing: border-box; cursor: pointer; width: 64px; padding: 5px 0 4px; border-radius: 10px; text-align: center; color: var(--brown); transition: background .12s; }
.tbGroup[data-g="ride"] button { width: 74px; }
#toolbar button i { display: block; font-style: normal; font-size: 24px; line-height: 28px; }
#toolbar button span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .2px; margin-top: 1px; }
#toolbar button:hover { background: var(--cream2); }
#toolbar button:focus-visible { outline: 3px solid var(--sky); }
#toolbar button.on { background: var(--gold); color: #3b2506; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
body.photo #gameUI, body.photo #detailBadge, body.photo #attr, body.photo #hudTop, body.photo #droneHud, body.photo #zHud, body.photo #busInfo, body.photo #followCard, body.photo #search, body.photo #missionHud { display: none !important; }
#photoUI { display: none; }
body.photo #photoUI { display: block; }

/* —— wyskakujące panele nad paskiem —— */
.pop { position: fixed; bottom: 92px; z-index: 9; display: none; background: var(--cream); color: var(--brown); border: 2px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; min-width: 230px; font-size: 14px; }
.pop.open { display: block; }
.pop h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .3px; }
.pop .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pop button.opt, .btn { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; background: #fff; color: var(--brown); border: 2px solid var(--cream2); border-radius: 12px; padding: 7px 10px; font-weight: 800; font-size: 13px; transition: background .12s, transform .1s; }
.pop button.opt:hover, .btn:hover { background: var(--cream2); }
.pop button.opt:active, .btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold); border-color: #cf9628; color: #3b2506; }
.btn.primary:hover { background: var(--gold2); }
.btn.danger { background: #fde4e1; border-color: #eab0aa; color: #8a2a24; }
.btn.on { background: var(--gold); border-color: #cf9628; }
.btn:focus-visible, .pop button.opt:focus-visible { outline: 3px solid var(--sky); }
#popFollow { width: 300px; } #popFollow #followRow { margin: 0; } #popFollow select { width: 100%; font: inherit; padding: 6px; border-radius: 10px; border: 2px solid var(--cream2); background: #fff; color: var(--brown); }
#popFollow #followRow { display: flex; gap: 6px; flex-wrap: wrap; } #popFollow #followRow button { all: unset; cursor: pointer; background: var(--gold); color: #3b2506; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 12px; }

/* —— szukajka (ukryta, dopóki nie klikniesz Szukaj lub /) —— */
body:not(.classic) #search { display: none; top: 12px; z-index: 7; }
body:not(.classic).showSearch #search { display: block; }
body:not(.classic) #search .box { background: var(--cream); border: 2px solid var(--gold); box-shadow: var(--shadow); }
body:not(.classic) #searchInput { color: var(--brown); }
body:not(.classic) #searchList, body:not(.classic) #searchInfo { background: var(--paper); color: var(--brown); }
body:not(.classic) #searchList li:hover, body:not(.classic) #searchList li.cur { background: var(--cream2); }
body:not(.classic) #searchChips button { background: var(--cream); color: var(--brown); border: 1.5px solid var(--gold); }
body:not(.classic) #searchChips button.on { background: var(--gold); color: #3b2506; }
body:not(.classic) #busInfo, body:not(.classic) #followCard { background: var(--cream); color: var(--brown); border: 2px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); top: 12px; }
body:not(.classic) #busInfo button, body:not(.classic) #followCard button.close { background: var(--gold); color: #3b2506; }
body:not(.classic) #busInfo button.close, body:not(.classic) #followCard button.close { background: var(--cream2); }
body:not(.classic) #busInfo .delay, body:not(.classic) #busInfo .state, body:not(.classic) #followCard .hint { color: var(--brown2); }

/* —— elementy istniejące, dopasowane stylem —— */
#toast { bottom: 96px; background: var(--brown); color: #fff3d6; border: 2px solid var(--gold); font-weight: 700; font-size: 14px; border-radius: 16px; padding: 9px 18px; text-align: center; white-space: pre-line; }
#attr { max-width: 330px; font-size: 10px; line-height: 1.35; background: rgba(255,246,227,.92); color: var(--brown2); border-radius: 8px; right: 8px; bottom: 6px; padding: 3px 8px; }
#attr a { color: #8a4b08; }
#detailBadge { bottom: 14px !important; left: 12px; border-radius: 999px !important; font-family: inherit; }
#dioPop { bottom: 60px; border: 2px solid var(--gold); }
#missionHud { top: 56px; }
#droneHud { position: static; left: auto; bottom: auto; transform: none; background: var(--cream); color: var(--brown); border: 2px solid var(--gold); box-shadow: var(--shadow); border-radius: var(--r); padding: 8px 12px; max-width: 240px; text-align: left; pointer-events: auto; }
#droneVals { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#droneHelp { display: flex; gap: 6px; margin-top: 6px; }
#droneHud #droneVals b { color: #9b5a00; } #droneHud #droneVals b.warn, #droneHud .warn { color: #c0392b !important; } #droneVals i { font-size: 11px; color: var(--brown2); font-style: normal; margin-left: 2px; }
#droneHelp { color: var(--brown2); font-size: 11.5px; line-height: 1.5; }
#droneView, #droneExit { border: 2px solid var(--cream2); background: #fff; color: var(--brown); border-radius: 10px; font-weight: 800; padding: 1px 9px; cursor: pointer; }
#droneExit { background: var(--gold); border-color: #cf9628; }
body.drone #toolbar, body.drone #hudTop { opacity: 1; pointer-events: auto; }
body.drone #search, body.drone #busInfo, body.drone #followCard { opacity: 0; pointer-events: none; }
#zHud { bottom: 96px; right: 12px; background: rgba(30,50,24,.92); border: 2px solid #8ac56f; }
#zEnd { z-index: 12; }

/* —— panele trybów (po prawej, pod paskiem) —— */
#hudSide { position: fixed; left: 12px; top: 104px; z-index: 6; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.card { background: var(--cream); color: var(--brown); border: 2px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px 14px; font-size: 13.5px; pointer-events: auto; max-width: 340px; }
.card b { font-variant-numeric: tabular-nums; }
.card .big { font-size: 20px; font-weight: 900; }
.card small { color: var(--brown2); display: block; margin-top: 2px; line-height: 1.35; }
.card .row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.card .btn { padding: 4px 10px; font-size: 12px; }
#ufoHud { border-color: #7bd389; background: #eaf8e8; }
#ufoHud .big { color: #2d6a3a; }
#scooterHud { position: static; transform: none; z-index: 6; display: none; text-align: left; width: 168px; min-width: 0; pointer-events: auto; padding: 8px 12px; }
#scooterHud .who { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--brown2); }
#scooterHud .speed { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; } #scooterHud .speed small { display: inline; font-size: 12px; color: var(--brown2); font-weight: 800; }
#scooterHud .bar { height: 6px; background: var(--cream2); border-radius: 6px; margin: 6px 0 3px; position: relative; overflow: hidden; } #scooterHud .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8ac56f, #e9b44c); border-radius: 6px; } #scooterHud .bar u { position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: #c0392b; }
#scooterHud .hint { font-size: 12px; color: var(--brown2); } #scooterHud .hint:empty { display: none; }
#partyChip { position: fixed; left: 50%; top: 62px; transform: translateX(-50%); z-index: 7; display: none; }
#partyChip .pill { background: #2b1747; color: #ffd1f6; border-color: #ff6ad5; font-size: 14px; }
#partyChip button { all: unset; cursor: pointer; background: #ff6ad5; color: #240d3a; font-weight: 900; border-radius: 999px; padding: 2px 12px; font-size: 13px; }
#partyChip button + button { background: #ffe1fb; }
#windowBack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; display: none; }
#fwHud { }

/* —— tryb foto —— */
#photoUI .shutter { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; display: flex; gap: 8px; align-items: flex-end; }
#photoPanel { position: fixed; right: 12px; top: 12px; z-index: 20; width: 250px; background: rgba(255,246,227,.96); color: var(--brown); border: 2px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 12px; font-size: 13px; }
#photoPanel.hidden { display: none; }
#photoPanel h4 { margin: 0 0 6px; }
#photoPanel .filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-bottom: 8px; }
#photoPanel .filters .btn { padding: 5px 4px; font-size: 12px; }
#photoPanel label { display: flex; justify-content: space-between; font-weight: 800; margin-top: 6px; }
#photoPanel input[type=range] { width: 100%; accent-color: #d9962b; }
#photoUI .hintBar { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 20; font-size: 12px; background: rgba(91,58,20,.82); color: #fff3d6; border-radius: 999px; padding: 4px 14px; opacity: .9; transition: opacity 1s; }
#photoFlash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; transition: opacity .45s ease-out; }
#photoFlash.on { opacity: .85; transition: none; }

/* —— ekran startowy —— */
#startScreen { position: fixed; inset: 0; z-index: 40; display: none; align-items: stretch; justify-content: flex-start; pointer-events: none; background: linear-gradient(90deg, rgba(32,16,4,.5) 0%, rgba(32,16,4,.22) 340px, rgba(32,16,4,0) 70%); }
body.menu #startScreen { display: flex; }
.startCard { pointer-events: auto; box-sizing: border-box; overflow-y: auto; background: linear-gradient(180deg, rgba(255,246,227,.97), rgba(244,228,196,.94)); border: 0; border-right: 3px solid var(--gold); border-radius: 0; box-shadow: 18px 0 50px rgba(40,18,0,.28); padding: 6vh 40px 28px; text-align: left; width: min(400px, 86vw); height: 100%; display: flex; flex-direction: column; justify-content: center; animation: slideIn .4s ease-out; }
@keyframes slideIn { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.85) translateY(20px); } to { transform: none; } }
.logo { display: flex; flex-direction: column; line-height: .9; color: var(--brown); }
.logo .l1 { font-size: 13px; font-weight: 800; letter-spacing: .42em; text-transform: uppercase; color: var(--brown2); }
.logo .l2 { font-family: Georgia, "Times New Roman", serif; font-size: 68px; font-weight: 900; letter-spacing: 0; color: #8d3b12; }
.tag { margin: 10px 0 32px; color: var(--brown2); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.startBtns { display: grid; gap: 2px; }
.btn.big { padding: 8px 14px 8px 16px; font-size: 16px; border-radius: 4px; text-align: left; letter-spacing: .16em; text-transform: uppercase; background: transparent; border-color: transparent; box-shadow: none; }
.btn.big.primary { background: transparent; border-color: transparent; color: var(--brown); }
.btn.big:hover, .btn.big.sel { background: transparent; border-color: transparent; color: #3b2506; box-shadow: inset 4px 0 0 #b4561b; }
.startStat { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.startStat .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--brown2); }
.startStat b { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.startFoot { margin-top: 12px; font-size: 11px; color: var(--brown2); letter-spacing: .03em; }

/* —— okna (modale) —— */
#modalWrap { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(60,35,8,.45); backdrop-filter: blur(2px); }
#modalWrap.open { display: flex; }
#modal { background: var(--cream); color: var(--brown); border: 3px solid var(--gold); border-radius: 24px; box-shadow: 0 16px 60px rgba(40,20,0,.5); width: min(720px, 94vw); max-height: min(86vh, 640px); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease-out; }
#modal .mh { display: flex; align-items: center; gap: 10px; padding: 12px 18px 8px; } #modal .mh h2 { margin: 0; font-size: 22px; flex: 1; font-weight: 900; }
#modal .mx { all: unset; cursor: pointer; width: 32px; height: 32px; text-align: center; line-height: 32px; border-radius: 50%; background: var(--cream2); font-size: 18px; font-weight: 900; } #modal .mx:hover { background: var(--gold); }
#modal .tabs { display: flex; gap: 6px; padding: 0 18px; flex-wrap: wrap; }
#modal .tabs button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 12px 12px 0 0; font-weight: 800; font-size: 14px; color: var(--brown2); background: var(--cream2); } #modal .tabs button.on { background: var(--paper); color: var(--brown); box-shadow: 0 -3px 0 var(--gold) inset; } #modal .tabs button:focus-visible { outline: 3px solid var(--sky); }
#modal .mb { background: var(--paper); padding: 14px 20px 16px; overflow-y: auto; flex: 1; border-top: 2px solid var(--cream2); font-size: 14px; line-height: 1.45; }
#modal .mf { padding: 10px 18px; display: flex; gap: 8px; justify-content: flex-end; background: var(--cream); border-top: 2px solid var(--cream2); }
.set { display: grid; grid-template-columns: 1fr minmax(180px, 1.1fr); gap: 8px 16px; align-items: center; }
.set .lb { font-weight: 800; } .set .lb small { display: block; font-weight: 600; color: var(--brown2); font-size: 12px; }
.set .ct { display: flex; align-items: center; gap: 8px; min-width: 0; } .set .ct input[type=range] { flex: 1; min-width: 0; accent-color: #d9962b; } .set .ct .val { min-width: 54px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.set h3 { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--brown2); border-bottom: 2px dashed var(--cream2); padding-bottom: 3px; }
.set h3:first-child { margin-top: 0; }
.set select { font: inherit; padding: 5px 8px; border-radius: 10px; border: 2px solid var(--cream2); background: #fff; color: var(--brown); width: 100%; }
.sw { position: relative; width: 46px; height: 26px; flex: none; } .sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; } .sw span { position: absolute; inset: 0; background: #d8c7a3; border-radius: 14px; transition: background .15s; } .sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; } .sw input:checked + span { background: var(--green); } .sw input:checked + span::after { transform: translateX(20px); } .sw input:focus-visible + span { outline: 3px solid var(--sky); }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; } .wgrid .btn { padding: 6px 2px; font-size: 12px; } .wgrid .btn i { display: block; font-style: normal; font-size: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mcard { background: var(--cream); border: 2px solid var(--cream2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; } .mcard.on { border-color: var(--green); background: #eef8e6; }
.mcard h3 { margin: 0; font-size: 16px; } .mcard p { margin: 0; font-size: 12.5px; color: var(--brown2); flex: 1; line-height: 1.4; } .mcard .ic { font-size: 30px; }
.keys { width: 100%; border-collapse: collapse; font-size: 13.5px; } .keys td { padding: 5px 6px; border-bottom: 1px dashed var(--cream2); vertical-align: top; } .keys td:first-child { white-space: nowrap; font-weight: 800; width: 34%; } .keys h3 { margin: 12px 0 2px; font-size: 13px; text-transform: uppercase; color: var(--brown2); letter-spacing: .6px; }
kbd { display: inline-block; background: #fff; border: 2px solid var(--cream2); border-bottom-width: 3px; border-radius: 7px; padding: 0 6px; font: 800 12px/18px inherit; color: var(--brown); margin: 0 1px; }
.about h3 { margin: 12px 0 4px; font-size: 15px; } .about p, .about li { margin: 3px 0; } .about ul { padding-left: 20px; margin: 4px 0; } .about a { color: #9b4b08; }
.pauseBtns { display: grid; gap: 10px; padding: 8px 4px; } 
.stats { font-size: 12px; color: var(--brown2); margin-top: 10px; font-variant-numeric: tabular-nums; }
@media (max-height: 640px) { .logo .l2 { font-size: 46px; } .startCard { padding: 16px 30px 14px; } .btn.big { padding: 8px 14px; font-size: 16px; } #toolbar button { width: 58px; } #toolbar button i { font-size: 21px; } }
@media (max-width: 760px) { #toolbar button { width: 46px; } #toolbar button span { display: none; } .set { grid-template-columns: 1fr; } #hudClock #hcW { display: none; } .startCard { width: min(300px, 78vw); padding: 18px 16px 14px; } .logo .l2 { font-size: 46px; } body.menu #attr { max-width: calc(100vw - 316px); } }
@media (prefers-reduced-motion: reduce) { .startCard, #modal { animation: none; } }

/* ===== Etap 8: prawy górny róg (gazeta, licznik graczy, samouczek) ===== */
#hudUser { position: fixed; top: 12px; right: 12px; z-index: 7; display: flex; gap: 8px; align-items: center; }
#hudUser .pill { padding: 5px 12px; font-size: 14px; gap: 6px; cursor: default; }
#hudPlayers b { font-variant-numeric: tabular-nums; font-size: 16px; } #hudPlayers .lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; } #hudPlayers.local { background: #fff0cf; } #hudPlayers .ic { font-size: 15px; }
#hudPlayers.flash { animation: pflash .9s ease-out; } @keyframes pflash { 0% { transform: scale(1.18); background: #ffe08a; } 100% { transform: none; } }
.uBtn { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--cream); color: var(--brown); border: 2px solid var(--gold); box-shadow: var(--shadow); font-weight: 900; font-size: 13px; transition: transform .12s, background .12s; }
.uBtn i { font-style: normal; font-size: 18px; } .uBtn.round { width: 36px; padding: 0; justify-content: center; }
.uBtn:hover { background: var(--cream2); transform: translateY(-1px); } .uBtn:focus-visible { outline: 3px solid var(--sky); }
.uBtn.fresh::after { content: ''; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; animation: dotp 1.6s ease-in-out infinite; }
@keyframes dotp { 50% { transform: scale(1.35); } }
body.menu #hudUser, body.menu #floodPanel, body.menu #floodChip { display: none !important; }
body.photo #floodPanel, body.photo #floodChip { display: none !important; }
body:not(.classic) #busInfo, body:not(.classic) #followCard { top: 64px; }
body.classic #hudUser, body.classic #floodPanel, body.classic #floodChip, body.classic #tutorial { display: none !important; }
.startPlayers { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--brown2); }
@media (max-width: 760px) { .uBtn span { display: none; } .uBtn { padding: 0 9px; } #hudUser .pill .dim { display: none; } }

/* ===== Powódź: panel i znacznik ===== */
#floodPanel { position: fixed; right: 12px; top: 64px; z-index: 9; width: 316px; max-height: calc(100vh - 150px); overflow-y: auto; display: none; background: rgba(255,250,240,.98); color: var(--brown); border: 2px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 12px 12px; font-size: 13px; }
#floodPanel.open { display: block; }
#floodPanel .fh { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 8px; }
#floodPanel .x { all: unset; cursor: pointer; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--cream2); font-weight: 900; } #floodPanel .x:hover { background: var(--gold2); }
#floodPanel .fvar { display: grid; gap: 4px; margin-bottom: 8px; }
#floodPanel .opt { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 10px; border-radius: 10px; background: var(--cream2); font-weight: 800; font-size: 13px; border: 2px solid transparent; } #floodPanel .opt:hover { background: #f3d99b; } #floodPanel .opt:focus-visible { outline: 3px solid var(--sky); }
#floodPanel .opt.on { background: #cfe9f7; border-color: var(--sky); color: #124a73; }
#floodPanel .fdesc { font-size: 12.5px; line-height: 1.4; color: var(--brown2); margin-bottom: 8px; min-height: 52px; }
#floodPanel .fsl label { display: flex; justify-content: space-between; font-weight: 900; margin-bottom: 2px; } #floodPanel .fsl b { color: #124a73; font-variant-numeric: tabular-nums; font-size: 15px; }
#floodPanel input[type=range] { width: 100%; accent-color: #2e8bc0; }
#floodPanel .frow { display: flex; gap: 6px; margin: 8px 0; } #floodPanel .frow .btn { flex: 1; padding: 6px 4px; font-size: 12.5px; } #floodPanel .btn:disabled { opacity: .5; cursor: default; } #floodPanel .btn.on { background: #cfe9f7; }
#floodPanel .fst { background: #eaf5fb; border: 1px solid #b9dcef; border-radius: 10px; padding: 7px 10px; line-height: 1.5; font-size: 12.5px; color: #1b4560; } #floodPanel .fst b { font-variant-numeric: tabular-nums; }
#floodPanel .fnote { margin-top: 8px; font-size: 11px; line-height: 1.35; color: var(--brown2); }
#floodChip { display: flex; align-items: center; gap: 8px; pointer-events: auto; background: #e1f2fb; border-color: var(--sky); color: #124a73; } #floodChip .btn { padding: 2px 8px; font-size: 11.5px; }

/* ===== Samouczek: dymki jak narysowane kredką ===== */
#tutorial { position: fixed; inset: 0; z-index: 60; display: none; font-family: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", "Marker Felt", "Nunito", cursive; --tc: #e0562b; }
#tutorial.open { display: block; }
#tutorial .tRing { position: absolute; border: 4px solid var(--tc); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(35,20,4,.5); pointer-events: none; animation: ringp 1.4s ease-in-out infinite; transition: left .25s, top .25s, width .25s, height .25s; }
#tutorial.center::before { content: ''; position: absolute; inset: 0; background: rgba(35,20,4,.5); }
@keyframes ringp { 50% { transform: scale(1.04); } }
#tutorial .tArrow { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
#tutorial .tPath, #tutorial .tHead { fill: none; stroke: var(--tc); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
#tutorial .tBub { position: absolute; background: #fffbe9; color: #3d2a10; border: 4px solid var(--tc); border-radius: 22px 30px 24px 28px / 28px 22px 30px 24px; padding: 12px 16px 12px; box-shadow: 4px 6px 0 rgba(0,0,0,.18); width: max-content; transition: left .25s, top .25s; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 27px, rgba(80,120,190,.12) 27px 28px); }
#tutorial .tTop { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; } #tutorial .tTitle { font-size: 21px; color: var(--tc); } #tutorial .tNum { font-size: 12px; opacity: .6; }
#tutorial .tText { margin: 6px 0 10px; font-size: 15px; line-height: 1.45; max-width: 320px; }
#tutorial .tDots { display: flex; gap: 6px; margin-bottom: 8px; } #tutorial .tDots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--tc); } #tutorial .tDots i.on { background: var(--tc); }
#tutorial .tBtns { display: flex; align-items: center; gap: 6px; } #tutorial .gap { flex: 1; }
#tutorial .tBtns button { font: inherit; cursor: pointer; border: 3px solid var(--tc); background: #fff; color: #3d2a10; padding: 4px 12px; border-radius: 14px 18px 14px 18px; font-size: 14px; } #tutorial .tBtns button:hover { background: #ffeeb8; } #tutorial .tBtns .tNext { background: var(--tc); color: #fff; } #tutorial .tBtns .tSkip { border-style: dashed; opacity: .85; } #tutorial .tBtns button:focus-visible { outline: 3px solid var(--sky); }
body.tutOn #floodPanel { display: none !important; }

/* ===== Gazeta „Tygodnik Jagodno” ===== */
#modal:has(.npPaper) { width: min(940px, 96vw); background: #e9e1cf; border-color: #8a7a55; }
#modal:has(.npPaper) .mh h2 { font-family: Georgia, "Times New Roman", serif; }
.npBody { background: #d8cfba !important; padding: 12px !important; }
.npPaper { background: #f6f0e1; color: #1d1a14; font-family: Georgia, "Times New Roman", serif; padding: 14px 22px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.3); background-image: radial-gradient(rgba(120,90,40,.06) 1px, transparent 1px); background-size: 5px 5px; }
.npTop { display: flex; justify-content: space-between; font-size: 12px; font-style: italic; border-bottom: 1px solid #1d1a14; padding-bottom: 3px; letter-spacing: .3px; }
.npMast { margin: 6px 0 0; text-align: center; font-size: clamp(34px, 7vw, 66px); line-height: 1; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; font-family: "Old English Text MT", "Times New Roman", Georgia, serif; } .npMast em { font-style: normal; color: #9a2a14; }
.npSub { text-align: center; font-size: 12px; font-style: italic; border-top: 3px double #1d1a14; border-bottom: 1px solid #1d1a14; margin: 6px 0 12px; padding: 3px 0; }
.npAdLink { display: block; border: 2px solid #1d1a14; line-height: 0; margin-bottom: 14px; } .npAd { width: 100%; height: auto; display: block; } .npAdLink:hover .npAd { filter: brightness(1.04); }
.npCols { column-count: 2; column-gap: 24px; column-rule: 1px solid #b9ad8f; }
.npArt { break-inside: avoid-column; margin: 0 0 14px; } .npArt:first-child { column-span: all; break-inside: auto; }
.npArt .kick { font: 800 11px Arial, sans-serif; letter-spacing: 2px; color: #9a2a14; }
.npArt h3 { margin: 2px 0 6px; font-size: 22px; line-height: 1.15; } .npArt:first-child h3 { font-size: 30px; }
.npArt p { margin: 0 0 7px; font-size: 14.5px; line-height: 1.5; text-align: justify; hyphens: auto; } .npArt p:first-of-type::first-letter { font-size: 2.3em; float: left; line-height: .9; padding: 3px 5px 0 0; font-weight: 900; }
.npArt:first-child p { column-count: 1; }
.npNote { border: 1px solid #1d1a14; background: #efe6cc; font-size: 12.5px; padding: 5px 9px; font-style: italic; margin-top: 4px; }
.npSmall { border: 2px solid #1d1a14; padding: 6px 12px; margin-top: 4px; background: #fbf7ea; } .npSmall h4 { margin: 0 0 4px; font: 800 12px Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase; } .npSmall ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.npFoot { margin-top: 10px; font-size: 11px; font-style: italic; text-align: center; color: #5a5242; border-top: 1px solid #b9ad8f; padding-top: 5px; }

/* —— opinia, film —— */
#filmChip { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 7; display: none; gap: 10px; }
#filmChip button { all: unset; cursor: pointer; background: var(--gold); color: #3b2506; border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: 12px; }
.fb p { margin: 0 0 10px; }
.fbStars { display: flex; gap: 6px; margin-bottom: 10px; }
.fbStars .btn { width: 42px; text-align: center; font-size: 16px; }
.fbStars .btn.on { background: var(--gold); border-color: #cf9628; }
.fbText, .fbMail { width: 100%; box-sizing: border-box; border: 2px solid var(--cream2); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--brown); background: #fff; }
.fbMail { margin-bottom: 8px; }
.fbChk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 8px 0; }
.fbRow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fbNote { font-size: 13px; font-weight: 700; color: var(--brown2); }
.fbLab { font-weight: 800; margin: 12px 0 6px; }
@media (max-width: 700px) { .npCols { column-count: 1; } }

/* —— intro: plansza startowa, Dead Net Lab, JagodnoLand —— */
#intro { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: #000; cursor: pointer; transition: opacity .6s ease; }
body.intro #intro { display: flex; }
#intro.out { opacity: 0; pointer-events: none; }
#intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .25s; }
#intro video.on { opacity: 1; }
#introGate { position: relative; z-index: 2; text-align: center; color: var(--cream); user-select: none; padding: 0 24px; }
#intro.playing #introGate { display: none; }
#introGate .ig1 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; animation: igPulse 1.8s ease-in-out infinite; }
#introGate .ig2 { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 246, 227, .55); }
@keyframes igPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
#introSkip { all: unset; box-sizing: border-box; position: absolute; right: 22px; bottom: 20px; z-index: 3; display: none; cursor: pointer; padding: 7px 16px; border-radius: 999px; background: rgba(255, 246, 227, .14); border: 2px solid rgba(233, 180, 76, .55); color: var(--cream); font-weight: 800; font-size: 14px; letter-spacing: .04em; animation: igIn .4s ease-out .8s both; }
#intro.playing #introSkip { display: block; }
#introSkip:hover { background: rgba(255, 246, 227, .26); }
#introSkip:focus-visible { outline: 3px solid var(--sky); }
@keyframes igIn { from { opacity: 0; } to { opacity: 1; } }
