* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { width:100%; height:100%; overflow:hidden; background:#dfeaf5; touch-action:none;
  font-family:'Segoe UI', system-ui, -apple-system, sans-serif; user-select:none; -webkit-user-select:none; }
#game { position:fixed; inset:0; width:100%; height:100%; display:block; }

/* ===== ekran ładowania ===== */
#loadingScreen { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(120% 90% at 50% 10%,#f2f8ff 0%,#cfe0f0 55%,#a9c3dc 100%); }
.loading-content { display:flex; flex-direction:column; align-items:center; gap:12px; }
.loading-icon { font-size:min(10vw,44px); filter:drop-shadow(0 4px 6px rgba(60,90,130,.4)); }
.loading-title { font-size:min(12vw,52px); font-weight:900; color:#fff; text-align:center; line-height:1;
  -webkit-text-stroke:2px #5b7794; text-shadow:0 4px 0 #5b7794,0 8px 18px rgba(50,80,120,.35); letter-spacing:2px; }
.loading-bar-wrap { width:min(280px,65vw); height:9px; background:rgba(88,116,148,.25); border-radius:99px; overflow:hidden; margin-top:8px; }
.loading-bar-fill { height:100%; width:0%; border-radius:99px;
  background:linear-gradient(90deg,#60d394,#3c91e6); transition:width .18s ease; }
.loading-text { font-size:13px; font-weight:700; color:#5b7794; }

/* ===== HUD zasobów ===== */
#hud { position:fixed; top:calc(10px + env(safe-area-inset-top)); right:10px; display:flex;
  flex-direction:column; gap:6px; z-index:10; pointer-events:none; }
.res { display:flex; align-items:center; background:linear-gradient(180deg,#8b98a6,#6e7c8b);
  border-radius:20px; padding:3px 14px 3px 3px; min-width:118px; box-shadow:0 2px 6px rgba(40,60,90,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transform-origin:right center; transition:transform .12s; }
.res.bump { transform:scale(1.12); }
.res svg { width:30px; height:30px; margin-right:8px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.res span { color:#fff; font-weight:800; font-size:19px; margin-left:auto;
  text-shadow:0 2px 2px rgba(0,0,0,.45); font-variant-numeric:tabular-nums; }
.res.gain span { color:#7CFC5A; }

/* ===== tytuł / start ===== */
#titleScreen { position:fixed; inset:0; z-index:30; display:flex; flex-direction:column;
  align-items:center; justify-content:center; background:radial-gradient(120% 90% at 50% 10%, #f2f8ff 0%, #cfe0f0 55%, #a9c3dc 100%);
  transition:opacity .5s; }
#titleScreen.hide { opacity:0; pointer-events:none; }
.logo { text-align:center; margin-bottom:8px; }
.logo .l1 { font-size:min(15vw,72px); font-weight:900; letter-spacing:1px; color:#fff;
  -webkit-text-stroke:2px #5b7794;
  text-shadow:0 4px 0 #5b7794, 0 8px 18px rgba(50,80,120,.35); }
.logo .l2 { font-size:min(8vw,38px); font-weight:900; color:#ffcf3f; letter-spacing:6px;
  -webkit-text-stroke:1.5px #a9741a; text-shadow:0 3px 0 #a9741a, 0 6px 12px rgba(120,80,0,.3); margin-top:-4px; }
.snowcap { font-size:min(10vw,44px); margin-bottom:4px; filter:drop-shadow(0 4px 6px rgba(60,90,130,.4)); }
#playBtn { margin-top:26px; padding:16px 58px; font-size:26px; font-weight:900; color:#fff; border:none;
  border-radius:16px; background:linear-gradient(180deg,#6fd63a,#3fa61b); cursor:pointer;
  box-shadow:0 6px 0 #2c7d10, 0 10px 20px rgba(40,110,20,.4), inset 0 2px 0 rgba(255,255,255,.5);
  text-shadow:0 2px 2px rgba(0,60,0,.4); animation:pulse 1.6s ease-in-out infinite; }
#playBtn:active { transform:translateY(4px); box-shadow:0 2px 0 #2c7d10, 0 4px 10px rgba(40,110,20,.4); }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.subtitle { margin-top:14px; color:#5b7794; font-weight:600; font-size:15px; }

/* ===== kontynuacja + konto ===== */
#continueBtn { margin-top:26px; padding:16px 44px; font-size:24px; font-weight:900; color:#fff; border:none;
  border-radius:16px; background:linear-gradient(180deg,#5db4f2,#2b7fc4); cursor:pointer;
  box-shadow:0 6px 0 #1d629c, 0 10px 20px rgba(30,90,150,.4), inset 0 2px 0 rgba(255,255,255,.5);
  text-shadow:0 2px 2px rgba(0,30,60,.4); }
#continueBtn:active { transform:translateY(4px); box-shadow:0 2px 0 #1d629c, 0 4px 10px rgba(30,90,150,.4); }
#continueBtn + #playBtn { margin-top:12px; padding:12px 38px; font-size:19px; animation:none; }
#accountBox { position:absolute; bottom:18px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px; }
#accStatus { color:#5b7794; font-weight:700; font-size:13px; text-align:center; }
#accBtn { border:none; border-radius:12px; padding:9px 22px; font-size:14px; font-weight:900; color:#3d5570;
  background:linear-gradient(180deg,#fff,#dde9f5); border:1px solid rgba(88,116,148,.3);
  box-shadow:0 3px 0 rgba(88,116,148,.28), 0 6px 12px rgba(40,70,110,.18); cursor:pointer; }
#accBtn:active { transform:translateY(2px); box-shadow:0 1px 0 rgba(88,116,148,.28); }
#authOverlay { position:fixed; inset:0; z-index:40; display:none; align-items:center; justify-content:center;
  background:rgba(20,35,55,.45); backdrop-filter:blur(3px); }
#authOverlay.show { display:flex; }
.auth-panel { width:min(360px, calc(100vw - 36px)); padding:20px 20px 16px; border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(224,236,248,.96));
  border:1px solid rgba(88,116,148,.24); box-shadow:0 20px 50px rgba(25,40,60,.4); color:#26384f; }
.auth-head { display:flex; justify-content:space-between; align-items:center; font-size:19px; margin-bottom:6px; }
.auth-head button { border:none; background:none; font-size:20px; font-weight:900; color:#5b7794; cursor:pointer; }
.auth-sub { font-size:12.5px; font-weight:600; color:#53667d; line-height:1.45; margin-bottom:14px; }
.auth-panel input { width:100%; box-sizing:border-box; margin-bottom:10px; padding:11px 13px; font-size:15px; font-weight:700;
  color:#26384f; border:1.5px solid rgba(72,102,136,.35); border-radius:11px; background:#fff; outline:none; }
.auth-panel input:focus { border-color:#3c91e6; }
.auth-btns { display:flex; gap:10px; }
.auth-btns button, #logoutBtn { flex:1; border:none; border-radius:12px; padding:12px 0; font-size:15px; font-weight:900;
  color:#fff; cursor:pointer; }
#loginBtn { background:linear-gradient(180deg,#5db4f2,#2b7fc4); box-shadow:0 4px 0 #1d629c; }
#registerBtn { background:linear-gradient(180deg,#6fd63a,#3fa61b); box-shadow:0 4px 0 #2c7d10; }
#logoutBtn { width:100%; margin-top:2px; background:linear-gradient(180deg,#f27b6b,#d14b3a); box-shadow:0 4px 0 #a33526; }
.auth-btns button:active, #logoutBtn:active { transform:translateY(2px); box-shadow:none; }
#authMsg { min-height:20px; margin-top:10px; font-size:13px; font-weight:800; color:#3d5570; text-align:center; }

/* ===== podpowiedź / toasty ===== */
#hint { position:fixed; left:50%; bottom:16%; transform:translateX(-50%); z-index:12;
  color:#fff; font-size:min(8vw,34px); font-weight:900; text-align:center; pointer-events:none;
  text-shadow:0 3px 0 rgba(70,100,140,.9), 0 6px 14px rgba(40,70,110,.5);
  animation:hintFloat 1.4s ease-in-out infinite; transition:opacity .4s; white-space:nowrap; }
@keyframes hintFloat { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-10px)} }
#toast { position:fixed; left:50%; top:18%; transform:translateX(-50%) scale(0); z-index:12;
  background:linear-gradient(180deg,#fff,#e8f0fa); border-radius:14px; padding:12px 22px;
  font-weight:800; font-size:18px; color:#3d5570; box-shadow:0 6px 20px rgba(40,70,110,.35);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1); pointer-events:none; text-align:center; }
#toast.show { transform:translateX(-50%) scale(1); }

#retryOverlay { position:fixed; inset:0; z-index:40; display:none; align-items:center; justify-content:center;
  background:rgba(22,35,52,.48); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
#retryOverlay.show { display:flex; }
.retry-panel { width:min(420px, calc(100vw - 36px)); padding:24px 22px; border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(224,236,248,.94));
  border:1px solid rgba(88,116,148,.24); box-shadow:0 20px 50px rgba(25,40,60,.35); text-align:center; color:#26384f; }
.retry-panel h2 { font-size:28px; margin-bottom:8px; font-weight:900; }
.retry-panel p { font-size:14px; line-height:1.45; font-weight:700; color:#53667d; margin-bottom:18px; }
#retryBtn { border:none; border-radius:14px; padding:14px 28px; font-size:18px; font-weight:900; color:#fff;
  background:linear-gradient(180deg,#59c866,#2d9f3f); box-shadow:0 6px 0 #1f7d30, 0 12px 24px rgba(34,120,56,.28);
  cursor:pointer; }
#retryBtn:active { transform:translateY(3px); box-shadow:0 3px 0 #1f7d30, 0 8px 16px rgba(34,120,56,.25); }

/* ===== status osady / sezon ===== */
:root {
  --glass: rgba(246,250,255,.72);
  --ink: #26384f;
  --line: rgba(72,102,136,.22);
  --accent: #3c91e6;
  --danger: #e84f45;
}
#statusHud { position:fixed; top:calc(10px + env(safe-area-inset-top)); left:10px; z-index:10;
  display:none; flex-direction:column; gap:7px; min-width:210px; max-width:min(310px, calc(100vw - 150px));
  pointer-events:none; }
.status-card { color:var(--ink); background:linear-gradient(180deg, rgba(255,255,255,.82), var(--glass));
  border:1px solid var(--line); border-radius:14px; padding:10px 12px;
  box-shadow:0 10px 28px rgba(48,74,105,.18), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.status-title { display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:12px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; }
.status-title b { font-size:14px; color:#17283b; letter-spacing:0; text-transform:none; }
.status-bar { margin-top:8px; height:7px; border-radius:99px; background:rgba(110,137,168,.23); overflow:hidden; }
.status-bar i { display:block; width:0%; height:100%; border-radius:99px;
  background:linear-gradient(90deg,#60d394,#3c91e6); transition:width .25s ease; }
.status-sub { margin-top:6px; font-size:12px; line-height:1.25; font-weight:700; color:#53667d; }
.danger-card .status-bar i { background:linear-gradient(90deg,#ffb35c,#e84f45); }
@media (max-width:640px){
  #hud { top:calc(6px + env(safe-area-inset-top)); right:6px; gap:4px; }
  .res { min-width:72px; padding:2px 9px 2px 2px; border-radius:15px; }
  .res svg { width:20px; height:20px; margin-right:5px; }
  .res span { font-size:13px; }
  #statusHud { left:6px; top:calc(6px + env(safe-area-inset-top)); gap:5px;
    min-width:132px; max-width:min(50vw, calc(100vw - 110px)); }
  .status-card { padding:6px 8px; border-radius:10px; }
  .status-title { font-size:9px; }
  .status-title b { font-size:11px; }
  .status-sub { font-size:9.5px; margin-top:4px; }
  .status-bar { height:5px; margin-top:5px; }
  #toast { font-size:13px; padding:9px 14px; max-width:80vw; border-radius:11px; }
  #hint { font-size:min(6vw,22px); bottom:20%; }
  #shopFab { padding:10px 22px; font-size:15px; }
}

/* ===== sklep-warsztat ===== */
#shopFab { position:fixed; left:50%; bottom:calc(22px + env(safe-area-inset-bottom)); transform:translateX(-50%);
  z-index:20; display:flex; align-items:center; gap:8px; border:none; cursor:pointer;
  padding:14px 30px; border-radius:16px; font-size:19px; font-weight:900; color:#fff;
  background:linear-gradient(180deg,#f2a24b,#d97f1e); box-shadow:0 5px 0 #a95f10, 0 10px 22px rgba(150,90,10,.35);
  text-shadow:0 2px 2px rgba(90,50,0,.4); animation:pulse 1.6s ease-in-out infinite; }
#shopFab:active { transform:translateX(-50%) translateY(3px); box-shadow:0 2px 0 #a95f10; }
#shopOverlay { position:fixed; inset:0; z-index:35; display:none; align-items:center; justify-content:center;
  background:rgba(22,35,52,.45); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
#shopOverlay.show { display:flex; }
.shop-panel { width:min(460px, calc(100vw - 28px)); max-height:min(72vh, 560px); display:flex; flex-direction:column;
  border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(228,238,248,.96));
  border:1px solid rgba(88,116,148,.24); box-shadow:0 20px 50px rgba(25,40,60,.4); overflow:hidden; }
.shop-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 4px; }
.shop-head b { font-size:21px; color:#26384f; }
#shopClose { border:none; background:rgba(110,137,168,.18); color:#3d5570; width:34px; height:34px;
  border-radius:10px; font-size:16px; font-weight:900; cursor:pointer; }
.shop-sub { padding:0 16px 10px; font-size:12px; font-weight:700; color:#53667d; }
#shopList { overflow-y:auto; padding:0 12px 14px; display:flex; flex-direction:column; gap:8px; }
.recipe { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:14px;
  background:rgba(255,255,255,.85); border:1px solid rgba(88,116,148,.18); }
.recipe.locked { opacity:.55; }
.r-icon { font-size:30px; filter:drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.r-info { display:flex; flex-direction:column; flex:1; min-width:0; }
.r-info b { font-size:15px; color:#26384f; }
.r-info span { font-size:11.5px; font-weight:600; color:#53667d; }
.r-info .r-cost { margin-top:2px; font-weight:900; color:#8a6a1d; font-size:12.5px; }
.r-btn { border:none; cursor:pointer; padding:10px 14px; border-radius:12px; font-weight:900; font-size:13px;
  color:#fff; background:linear-gradient(180deg,#59c866,#2d9f3f); box-shadow:0 3px 0 #1f7d30; white-space:nowrap; }
.r-btn:disabled { background:linear-gradient(180deg,#a9b6c4,#8b98a6); box-shadow:0 3px 0 #6e7c8b; cursor:default; }
.r-btn:not(:disabled):active { transform:translateY(2px); box-shadow:0 1px 0 #1f7d30; }
.shop-empty { text-align:center; padding:26px 10px; font-weight:800; color:#53667d; }

/* ===== ostrzeżenie gościa ===== */
.guest-warning { display:flex; flex-direction:column; align-items:center; gap:8px; max-width:340px;
  background:linear-gradient(135deg,rgba(255,185,50,.2),rgba(255,115,30,.15));
  border:1px solid rgba(210,130,0,.35); border-radius:14px; padding:12px 18px; margin:14px 0 0;
  text-align:center; font-size:13px; font-weight:700; color:#6b4800; line-height:1.45; }

/* ===== przycisk WIOSKI (zalogowany) ===== */
#villagesBtn { margin-top:26px; padding:16px 44px; font-size:24px; font-weight:900; color:#fff; border:none;
  border-radius:16px; background:linear-gradient(180deg,#f2a24b,#d97f1e); cursor:pointer;
  box-shadow:0 6px 0 #a95f10,0 10px 20px rgba(150,90,10,.4); text-shadow:0 2px 2px rgba(90,50,0,.4); }
#villagesBtn:active { transform:translateY(4px); box-shadow:0 2px 0 #a95f10; }

/* ===== ekran wyboru wioski ===== */
#villageScreen { position:fixed; inset:0; z-index:31; display:none; align-items:flex-start; justify-content:center;
  background:radial-gradient(120% 90% at 50% 10%,#f2f8ff 0%,#cfe0f0 55%,#a9c3dc 100%); overflow-y:auto; padding:20px 0; }
.village-panel { width:min(520px,calc(100vw - 28px)); display:flex; flex-direction:column; gap:12px; }
.village-header { display:flex; align-items:center; justify-content:space-between; padding:4px 0; }
.village-title { font-size:28px; font-weight:900; color:#26384f; }
#villageBackBtn { border:none; background:rgba(110,137,168,.22); color:#3d5570; padding:9px 18px;
  border-radius:12px; font-size:14px; font-weight:900; cursor:pointer; }
#villageBackBtn:active { opacity:.75; }
.village-loading { text-align:center; padding:30px; color:#53667d; font-weight:700; font-size:16px; }
.village-empty { text-align:center; padding:30px 18px; color:#53667d; font-weight:700; font-size:15px; line-height:1.55; }
.village-card { display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(230,240,252,.9));
  border:1px solid rgba(88,116,148,.2); box-shadow:0 4px 14px rgba(48,74,105,.15); }
.vc-info { flex:1; min-width:0; }
.vc-name { font-size:17px; font-weight:900; color:#26384f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vc-active { font-size:11px; font-weight:900; background:#3c91e6; color:#fff; border-radius:6px; padding:1px 6px; margin-left:5px; vertical-align:middle; }
.vc-meta { font-size:12px; font-weight:700; color:#53667d; margin-top:3px; }
.vc-btns { display:flex; gap:8px; flex-shrink:0; }
.vc-play { border:none; border-radius:12px; padding:10px 18px; font-size:14px; font-weight:900; color:#fff;
  background:linear-gradient(180deg,#59c866,#2d9f3f); box-shadow:0 4px 0 #1f7d30; cursor:pointer; white-space:nowrap; }
.vc-play:disabled { background:linear-gradient(180deg,#a9b6c4,#8b98a6); box-shadow:0 4px 0 #6e7c8b; }
.vc-play:not(:disabled):active { transform:translateY(2px); box-shadow:0 2px 0 #1f7d30; }
.vc-del { border:none; border-radius:10px; padding:10px 12px; font-size:16px;
  background:rgba(220,80,70,.12); color:#c04040; cursor:pointer; }
.vc-del:hover { background:rgba(220,80,70,.24); }
#newVillageBtn { border:none; border-radius:14px; padding:14px 0; font-size:16px; font-weight:900; color:#fff; width:100%;
  background:linear-gradient(180deg,#5db4f2,#2b7fc4); box-shadow:0 5px 0 #1d629c; cursor:pointer; margin-top:4px; }
#newVillageBtn:disabled { background:linear-gradient(180deg,#a9b6c4,#8b98a6); box-shadow:0 5px 0 #6e7c8b; cursor:default; }
#newVillageBtn:not(:disabled):active { transform:translateY(2px); box-shadow:0 3px 0 #1d629c; }
.new-village-form { display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.new-village-form input { width:100%; padding:11px 13px; font-size:15px; font-weight:700;
  color:#26384f; border:1.5px solid rgba(72,102,136,.35); border-radius:11px; background:#fff; outline:none; }
.new-village-form input:focus { border-color:#3c91e6; }
.nvf-btns { display:flex; gap:8px; }
.nvf-btns button { flex:1; border:none; border-radius:12px; padding:11px 0; font-size:14px; font-weight:900; color:#fff; cursor:pointer; }
#newVillageConfirm { background:linear-gradient(180deg,#6fd63a,#3fa61b); box-shadow:0 4px 0 #2c7d10; }
#newVillageCancel { background:linear-gradient(180deg,#a9b6c4,#8b98a6); box-shadow:0 4px 0 #6e7c8b; }
.nvf-btns button:active { transform:translateY(2px); box-shadow:none; }

/* ===== przycisk pauzy (w HUD) ===== */
#pauseBtn { pointer-events:all; display:none; align-self:flex-end; border:none; border-radius:10px;
  padding:6px 13px; font-size:14px; font-weight:900; letter-spacing:.3px; margin-top:6px;
  background:rgba(40,65,95,.52); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  color:rgba(255,255,255,.9); cursor:pointer; box-shadow:0 2px 8px rgba(20,40,70,.3); }
#pauseBtn:active { opacity:.72; }

/* ===== overlay pauzy ===== */
#pauseOverlay { position:fixed; inset:0; z-index:38; display:none; align-items:center; justify-content:center;
  background:rgba(12,22,38,.65); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
#pauseOverlay.show { display:flex; }
.pause-panel { width:min(300px,calc(100vw - 36px)); padding:22px 20px 18px; border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(224,236,248,.95));
  border:1px solid rgba(88,116,148,.22); box-shadow:0 24px 60px rgba(20,38,60,.45);
  display:flex; flex-direction:column; gap:10px; text-align:center; }
.pause-logo { font-size:34px; line-height:1; }
.pause-title { font-size:22px; font-weight:900; color:#26384f; letter-spacing:1px; margin-bottom:2px; }
.pause-panel > button { border:none; border-radius:13px; padding:13px 0; font-size:15px; font-weight:900; color:#fff; cursor:pointer; }
.pause-panel > button:active { transform:translateY(3px); box-shadow:none !important; }
#pauseResumeBtn { background:linear-gradient(180deg,#6fd63a,#3fa61b); box-shadow:0 5px 0 #2c7d10; }
#pauseSaveBtn { background:linear-gradient(180deg,#5db4f2,#2b7fc4); box-shadow:0 5px 0 #1d629c; }
#pauseAccountBtn { background:linear-gradient(180deg,#9aafbe,#7a90a0); box-shadow:0 4px 0 #5a7080; }
#pauseMenuBtn { background:linear-gradient(180deg,#f27b6b,#c04a38); box-shadow:0 5px 0 #922d1e; }
.pause-info { font-size:12px; font-weight:800; color:#3d6d3d; min-height:14px; margin-top:-4px; }
.pause-sep { border:none; border-top:1px solid rgba(88,116,148,.2); margin:2px 0; }

/* ===== poprawiony overlay konta (nowa struktura) ===== */
.auth-benefits { display:flex; flex-direction:column; gap:5px; margin:0 0 14px; }
.ab-item { font-size:12.5px; font-weight:700; color:#3d5570; }
.ab-soon { font-size:10px; font-weight:900; background:#f2d060; color:#7a5c00; border-radius:6px; padding:1px 5px; margin-left:4px; }
.auth-logged { display:flex; flex-direction:column; align-items:center; gap:10px; margin:6px 0 12px; }
.auth-logged-info { font-size:15px; font-weight:700; color:#26384f; }
.auth-tabs { display:flex; gap:0; border-radius:12px; overflow:hidden; margin-bottom:12px;
  background:rgba(110,137,168,.18); padding:3px; }
.auth-tab { flex:1; border:none; background:none; padding:9px 0; font-size:13px; font-weight:900;
  color:#5b7794; cursor:pointer; border-radius:10px; transition:background .15s,color .15s; }
.auth-tab.active { background:#fff; color:#26384f; box-shadow:0 2px 6px rgba(60,90,130,.15); }
.auth-action-btn { width:100%; border:none; border-radius:12px; padding:12px 0; font-size:15px; font-weight:900;
  color:#fff; cursor:pointer; background:linear-gradient(180deg,#5db4f2,#2b7fc4); box-shadow:0 4px 0 #1d629c; margin-top:6px; display:block; }
.auth-action-btn:active { transform:translateY(2px); box-shadow:none; }
.auth-action-green { background:linear-gradient(180deg,#6fd63a,#3fa61b) !important; box-shadow:0 4px 0 #2c7d10 !important; }
.auth-hint { font-size:11.5px; color:#53667d; font-weight:600; margin:4px 0 6px; }
/* override starych styli auth dla nowej struktury */
#logoutBtn { width:100%; border:none; border-radius:12px; padding:12px 0; font-size:15px; font-weight:900;
  color:#fff; cursor:pointer; background:linear-gradient(180deg,#f27b6b,#d14b3a); box-shadow:0 4px 0 #a33526; display:block; margin:0; }
#logoutBtn:active { transform:translateY(2px); box-shadow:none; }
#loginBtn, #registerBtn { flex:unset; }

