:root {
  --gold: #f59e0b;
  --gold-hover: #d97706;
  --green: #10b981;
  --blue: #3b82f6;
  --danger: #ef4444;
  --purple: #a855f7;
  --bg-dark: rgba(15, 23, 42, 0.96);
  --panel-border: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #09131d;
  color: #f8fafc;
  position: relative;
}

button { font-family: inherit; }

/* ============================================================
   EKRAN LOGOWANIA / REJESTRACJI
   ============================================================ */
#authScreen {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #143a52 0%, #071018 70%);
  background-size: cover;
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}
#authScreen.hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.auth-card {
  width: 380px; max-width: 92vw;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  text-align: center;
  animation: authCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes authCardIn { 0% { opacity: 0; transform: translateY(16px) scale(0.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.auth-logo { font-size: 2.4rem; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.auth-card h1 { font-size: 1.35rem; color: var(--gold); margin-bottom: 2px; }
.auth-card p.tagline { font-size: 0.78rem; color: #94a3b8; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: 12px; }
.auth-tab-btn {
  flex: 1; padding: 9px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: #94a3b8; font-weight: 700; font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.auth-tab-btn:hover:not(.active) { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.auth-tab-btn:active { transform: scale(0.97); }
.auth-tab-btn.active { background: var(--gold); color: #1c1300; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.06); color: #f8fafc; font-size: 0.9rem;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-submit {
  margin-top: 4px; padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 800;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}
.auth-submit { transition: filter 0.15s ease, transform 0.12s ease; }
.auth-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0) scale(0.98); }
.auth-error { color: var(--danger); font-size: 0.78rem; min-height: 16px; }
.auth-note { margin-top: 16px; font-size: 0.68rem; color: #64748b; line-height: 1.4; }
.auth-pane { display: none; }
.auth-pane.active { display: flex; flex-direction: column; gap: 12px; animation: paneFadeIn 0.3s ease; }
@keyframes paneFadeIn { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }

/* ============================================================
   PLANSZA GRY
   ============================================================ */
#gameScreen {
  display: flex; height: 100vh; width: 100vw; flex-direction: row; align-items: stretch; position: relative;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s ease 0.1s, visibility 0s linear 0.55s;
}
#gameScreen.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s ease 0.1s, visibility 0s linear 0s; }
#gameMain { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }

.scenery {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; overflow: hidden; background-size: cover; background-position: center; background-color: #0b1a26;
  transition: background-image 0.6s ease;
}
.time-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: rgba(2,6,23,0.10); transition: background 3s linear; }
.pov-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pov-pond::after     { content:''; position:absolute; bottom:0; left:0; width:100%; height:110px; background:linear-gradient(0deg, #163822 0%, #1e4d2b 55%, transparent 100%); border-top:6px solid #0f2917; }
.pov-lake::after      { content:''; position:absolute; bottom:0; left:0; width:100%; height:120px; background:linear-gradient(0deg, #3d2314 0%, #5c3a21 45%, transparent 100%); border-top:6px solid #2b180d; }
.pov-river::after     { content:''; position:absolute; bottom:0; left:0; width:100%; height:100px; background:linear-gradient(0deg, #1e293b 0%, #334155 60%, transparent 100%); border-top:6px solid #0f172a; }
.pov-baltic::after    { content:''; position:absolute; bottom:0; left:0; width:100%; height:110px; background:linear-gradient(0deg, #334155 0%, #475569 50%, #1e293b 100%); border-top:8px solid #cbd5e1; }
.pov-atlantic::after  { content:''; position:absolute; bottom:0; left:0; width:100%; height:130px; background:linear-gradient(0deg, #0c4a6e 0%, #0369a1 50%, #082f49 100%); border-top:8px solid #bae6fd; }

.water-shimmer {
  position: absolute; bottom: 0; left: 0; width: 200%; height: 130px; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 42px);
  animation: shimmerMove 7s linear infinite;
}
@keyframes shimmerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.rod-stage { position: absolute; bottom: 50px; left: 12%; width: 320px; height: 320px; z-index: 5; pointer-events: none; transform-origin: bottom left; transition: transform 0.3s ease; }
.rod-graphic { width: 100%; height: 100%; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.8)); }

.float-element { position: absolute; left: 46%; bottom: 100px; width: 15px; height: 42px; z-index: 4; display: none; }
.float-body { width: 100%; height: 100%; background: linear-gradient(180deg, #ef4444 0%, #ef4444 40%, #ffffff 40%, #ffffff 65%, #000 65%); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.7); }
.float-bite { animation: floatBite 0.35s ease-in-out infinite alternate; }
@keyframes floatBite { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(13px) rotate(16deg); } }
/* Dokładny offset "bottom" dla każdego akwenu jest ustawiany z JS (patrz FLOAT_BOTTOM
   w game.js) — floatElement jest rodzeństwem #povOverlay, nie jego dzieckiem, więc
   selektory potomkowe typu ".pov-pond .float-element" by tu nie zadziałały. */
.ripple { position: absolute; z-index: 4; border: 2px solid rgba(255,255,255,0.55); border-radius: 50%; pointer-events: none; animation: rippleGrow 1s ease-out forwards; }
@keyframes rippleGrow { 0% { width: 4px; height: 4px; opacity: 0.9; } 100% { width: 90px; height: 90px; opacity: 0; margin-left: -43px; margin-top: -43px; } }

.anim-cast { animation: castMotion 1.5s ease-in-out forwards; }
@keyframes castMotion { 0% { transform: rotate(0deg); } 30% { transform: rotate(-32deg) translateY(-18px); } 60% { transform: rotate(20deg) translateY(6px); } 100% { transform: rotate(0deg); } }

header {
  position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  height: 64px; flex-shrink: 0; padding: 0 22px; background: var(--bg-dark); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border); box-shadow: 0 4px 25px rgba(0,0,0,0.6);
  flex-wrap: nowrap; gap: 12px;
}
.game-title {
  min-width: 0; height: 100%; margin: 0; padding: 0;
  display: flex; align-items: center; overflow: hidden;
}
.game-title .logo-wrapper { height: 100%; display: flex; align-items: center; }
.game-title .game-logo { max-height: 40px; width: auto; max-width: 100%; }
.hud-stats {
  display: flex; flex: 3; height: 100%; gap: 8px; align-items: center; justify-content: flex-end;
  flex-wrap: nowrap; margin: 0; padding: 0; scrollbar-width: thin;
}
.hud-stats::-webkit-scrollbar { height: 4px; }
.hud-stats::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 4px; }
.hud-card { background: rgba(255,255,255,0.05); padding: 5px 11px; border-radius: 10px; border: 1px solid var(--panel-border); display: flex; flex-direction: column; align-items: flex-end; transition: background 0.2s ease, transform 0.2s ease; }
.hud-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-1px); }
.hud-card .label { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; }
.hud-card .val { font-size: 0.8rem; font-weight: bold; display: inline-block; }
.hud-card .val.stat-pop { animation: statPop 0.5s ease; }
@keyframes statPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); color: #4ade80; }
  100% { transform: scale(1); }
}
.gold { color: var(--gold); } .green { color: var(--green); } .blue { color: var(--blue); } .purple { color: var(--purple); }
.btn-icon-small { padding: 8px 12px; font-size: 0.75rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid var(--panel-border); border-radius: 10px; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.btn-icon-small:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.btn-icon-small:active { transform: translateY(0) scale(0.94); }

.xp-bar-wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 5px 22px; background: rgba(15,23,42,0.82); border-bottom: 1px solid var(--panel-border); }
.xp-level { font-weight: 800; color: var(--purple); font-size: 0.75rem; min-width: 44px; }
.xp-track { flex-grow: 1; height: 7px; background: #1e293b; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.xp-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--purple), var(--blue)); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); position: relative; overflow: hidden; }
.xp-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%); animation: xpShine 2.6s ease-in-out infinite;
}
@keyframes xpShine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(220%); } }
.xp-level.stat-pop { display: inline-block; animation: statPop 0.5s ease; }
.xp-text { font-size: 0.64rem; color: #94a3b8; min-width: 80px; text-align: right; }

.bottom-bar { position: relative; z-index: 10; margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(360deg, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.75) 80%, transparent 100%); }
.cast-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.btn-action { padding: 14px 34px; font-size: 1.02rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: 2px solid rgba(255,255,255,0.25); border-radius: 50px; cursor: pointer; box-shadow: 0 8px 30px rgba(16,185,129,0.4); text-transform: uppercase; transition: 0.15s; }
.btn-action:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); }
.btn-action:active:not(:disabled) { transform: translateY(0) scale(0.97); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.btn-action:disabled { background: #475569; cursor: not-allowed; opacity: 0.7; }
.power-bar-wrap { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 220px; margin-bottom: 10px; }
.power-track { width: 100%; height: 13px; background: #1e293b; border-radius: 7px; overflow: hidden; border: 1px solid var(--panel-border); }
.power-fill { width: 0%; height: 100%; background: var(--gold); }
.power-hint { text-align: center; font-size: 0.62rem; color: #cbd5e1; margin-top: 3px; }
.btn-hud { padding: 12px 16px; font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid var(--panel-border); border-radius: 12px; cursor: pointer; backdrop-filter: blur(8px); transition: 0.2s; }
.btn-hud:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-hud:active:not(:disabled) { transform: translateY(0) scale(0.96); }
.btn-hud:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* MINIGRA HOLOWANIA */
.minigame-box { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 420px; max-width: 90vw; background: rgba(15,23,42,0.96); border: 2px solid var(--gold); border-radius: 16px; padding: 20px; z-index: 50; display: none; flex-direction: column; align-items: center; box-shadow: 0 15px 40px rgba(0,0,0,0.8); text-align: center; }
.mystery-fish-box { width: 90px; height: 55px; margin-bottom: 8px; background: rgba(0,0,0,0.4); border-radius: 10px; border: 1px solid var(--panel-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mystery-fish-box img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.35) saturate(0); }

/* Zdjęcie ryby w modalu wyniku połowu — obwódka w kolorze rzadkości (ustawiana z JS). */
.result-fish-photo { display: block; width: 130px; height: 130px; margin: 4px auto 16px; border-radius: 50%;
  object-fit: cover; background: #0f172a; border: 3px solid var(--gold); box-shadow: 0 0 22px rgba(0,0,0,0.55); }
.result-fish-photo.golden { border-color: #fde68a; box-shadow: 0 0 28px rgba(253,230,138,0.65); }
.minigame-box h3 { color: var(--gold); margin-bottom: 4px; font-size: 1.1rem; }
.minigame-box .sub { font-size: 0.72rem; color: #94a3b8; margin-bottom: 10px; }
.tension-track { width: 100%; height: 26px; background: #334155; border-radius: 13px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); margin-bottom: 14px; }
.tension-safe-zone { position: absolute; height: 100%; background: rgba(16,185,129,0.4); border-left: 2px dashed var(--green); border-right: 2px dashed var(--green); }
.tension-bar { position: absolute; top: 0; left: 0; height: 100%; width: 12px; background: var(--gold); border-radius: 6px; box-shadow: 0 0 10px var(--gold); }
.progress-track { width: 100%; height: 12px; background: #1e293b; border-radius: 6px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--panel-border); }
.progress-fill { width: 0%; height: 100%; background: var(--green); }
.btn-reel { width: 100%; padding: 14px; font-size: 1.05rem; font-weight: bold; background: var(--blue); color: white; border: none; border-radius: 10px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 15px rgba(59,130,246,0.4); transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; }
.btn-reel:hover { background: #2563eb; box-shadow: 0 6px 20px rgba(59,130,246,0.55); }
.btn-reel:active { background: #2563eb; transform: scale(0.98); }

/* SIATKA */
.keepnet-panel { position: absolute; bottom: 88px; right: 22px; width: 320px; max-height: 360px; background: var(--bg-dark); backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: 16px; padding: 13px; z-index: 20; display: flex; flex-direction: column; box-shadow: 0 12px 35px rgba(0,0,0,0.8); }
.keepnet-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--panel-border); margin-bottom: 9px; }
.keepnet-header h3 { font-size: 0.9rem; color: var(--green); }
.btn-sell-all { padding: 4px 10px; font-size: 0.68rem; font-weight: bold; background: var(--gold); color: #000; border: none; border-radius: 6px; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.btn-sell-all:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-sell-all:active { transform: translateY(0) scale(0.94); }
.keepnet-list { overflow-y: auto; display: flex; flex-direction: column; gap: 7px; max-height: 255px; padding-right: 4px; }
.keepnet-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 6px 8px; border-radius: 8px; border-left: 4px solid #94a3b8; animation: keepnetIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); transition: background 0.15s ease, transform 0.15s ease; }
.keepnet-item:hover { background: rgba(255,255,255,0.07); transform: translateX(2px); }
@keyframes keepnetIn { 0% { opacity: 0; transform: translateX(-16px) scale(0.97); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
.keepnet-item img { width: 48px; height: 34px; object-fit: cover; background: rgba(0,0,0,0.4); border-radius: 4px; }
.keepnet-info { flex-grow: 1; margin-left: 8px; }
.keepnet-name { font-size: 0.78rem; font-weight: 600; }
.keepnet-sub { font-size: 0.65rem; color: #94a3b8; }
.btn-sell-single { padding: 4px 8px; font-size: 0.65rem; font-weight: bold; background: #15803d; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background 0.15s ease, transform 0.12s ease; }
.btn-sell-single:hover { background: #16a34a; transform: translateY(-1px); }
.btn-sell-single:active { transform: translateY(0) scale(0.94); }
.empty-msg { text-align: center; color: #64748b; font-size: 0.78rem; padding: 18px 0; }

/* MODALE */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0); backdrop-filter: blur(0px); z-index: 100;
  display: flex; justify-content: center; align-items: center;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease, visibility 0s linear 0.25s;
}
.modal-overlay.open {
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: opacity 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease, visibility 0s linear 0s;
}
.modal-card {
  background: #0f172a; border: 1px solid var(--panel-border); border-radius: 20px; width: 92%; max-width: 860px; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.85); position: relative;
  transform: translateY(22px) scale(0.96); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--panel-border); padding-bottom: 12px; margin-bottom: 16px; }
.modal-header h2 { color: var(--gold); font-size: 1.2rem; }
.close-modal-btn { background: transparent; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color 0.15s ease, transform 0.15s ease; }
.close-modal-btn:hover { color: #fff; transform: rotate(90deg) scale(1.1); }

.shop-tabs { display: flex; gap: 6px; margin-bottom: 15px; flex-wrap: wrap; }
.tab-btn { padding: 7px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border); color: #94a3b8; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.78rem; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease; }
.tab-btn:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; transform: translateY(-1px); }
.tab-btn:active { transform: translateY(0) scale(0.97); }
.tab-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

.items-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); padding: 10px 14px; border-radius: 12px; }
.card-item img.item-photo { width: 164px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--panel-border); background: #000; }
.card-item-info { flex-grow: 1; }
.card-item-info h4 { color: #f8fafc; font-size: 0.92rem; margin-bottom: 2px; }
.card-item-info p { font-size: 0.72rem; color: #94a3b8; }
.tier-badge { display: inline-block; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; margin-left: 6px; background: rgba(245,158,11,0.18); color: var(--gold); border: 1px solid rgba(245,158,11,0.4); }
.card-item-action { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 90px; }
.item-price { font-weight: bold; color: var(--gold); font-size: 0.92rem; }
.btn-buy { padding: 5px 12px; background: var(--blue); color: white; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 0.78rem; transition: background 0.15s ease, transform 0.12s ease; }
.btn-buy:hover:not(:disabled) { background: #2563eb; transform: translateY(-1px); }
.btn-buy:active:not(:disabled) { transform: translateY(0) scale(0.96); }
.btn-buy:disabled { background: #475569; cursor: not-allowed; }

.card-item { transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.card-item:hover { transform: translateY(-2px); border-color: rgba(245,158,11,0.4); background: rgba(255,255,255,0.05); }

.map-thumb { min-width: 172px; min-height: 100px; width: 172px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--panel-border); }

/* BESTIARIUM / OSIĄGNIĘCIA / STATYSTYKI */
.bestiary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
.fish-card { background: rgba(255,255,255,0.04); border: 2px solid var(--panel-border); border-radius: 12px; padding: 10px; text-align: center; }
.fish-card img { width: 100%; height: 58px; object-fit: cover; background: rgba(0,0,0,0.3); border-radius: 8px; margin-bottom: 6px; }
.fish-card.locked { opacity: 0.5; }
.fish-card-question { font-size: 1.8rem; margin-bottom: 6px; height: 58px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: 8px; }
.fish-card-name { font-weight: 700; font-size: 0.8rem; }
.fish-card-rarity { font-size: 0.66rem; margin-bottom: 4px; }
.fish-card-stats { font-size: 0.64rem; color: #94a3b8; }

.achievements-list { display: flex; flex-direction: column; gap: 8px; }
.achievement-item { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 10px; padding: 10px 14px; opacity: 0.55; }
.achievement-item.done { opacity: 1; border-color: var(--gold); background: rgba(245,158,11,0.08); }
.ach-icon { font-size: 1.5rem; width: 38px; text-align: center; }
.ach-info { flex-grow: 1; }
.ach-info h4 { font-size: 0.88rem; }
.ach-info p { font-size: 0.7rem; color: #94a3b8; }
.ach-reward { font-weight: 700; color: var(--gold); font-size: 0.78rem; white-space: nowrap; }

.stats-panel { display: flex; flex-direction: column; gap: 10px; }
.stat-row { display: flex; justify-content: space-between; padding: 10px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 10px; font-size: 0.88rem; }

#toastContainer { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast {
  background: rgba(15,23,42,0.95); border: 1px solid var(--gold); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 0.82rem; font-weight: bold; box-shadow: 0 10px 25px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(-16px) scale(0.95);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.toast-show { opacity: 1; transform: translateY(0) scale(1); }
.toast.toast-hide { opacity: 0; transform: translateY(-10px) scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease; }
.toast-achievement { border-color: var(--gold); background: linear-gradient(135deg, rgba(217,119,6,0.95), rgba(15,23,42,0.95)); }
.toast-levelup { border-color: var(--purple); background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(15,23,42,0.95)); }

/* UMIEJĘTNOŚCI */
.skills-list { display: flex; flex-direction: column; gap: 10px; }
.skill-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 12px; padding: 12px 14px; }
.skill-icon { font-size: 1.6rem; width: 40px; text-align: center; }
.skill-info { flex-grow: 1; }
.skill-info h4 { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.skill-info p { font-size: 0.72rem; color: #94a3b8; }
.skill-per-level { color: #64748b !important; font-style: italic; margin-top: 2px; }
.skill-dots { display: inline-flex; gap: 3px; }
.skill-dot { width: 9px; height: 9px; border-radius: 50%; background: #334155; border: 1px solid rgba(255,255,255,0.15); display: inline-block; }
.skill-dot.filled { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 6px rgba(168,85,247,0.7); }

@media (max-width: 720px) {
  .keepnet-panel { width: 90vw; right: 5vw; }
  .rod-stage { width: 200px; height: 200px; left: 4%; }
  header { height: 52px; padding: 0 12px; }
  .game-title .game-logo { max-height: 30px; }
}

/* ============================================================
   EFEKTY EKRANOWE PRZY ZŁOWIENIU RYBY (zależne od rzadkości/wagi)
   ============================================================ */
@keyframes shakeSm {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -2px); }
}
@keyframes shakeLg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-11px, 7px) rotate(-0.6deg); }
  20% { transform: translate(11px, -8px) rotate(0.6deg); }
  30% { transform: translate(-9px, 8px) rotate(-0.5deg); }
  40% { transform: translate(9px, -6px) rotate(0.5deg); }
  50% { transform: translate(-7px, 5px) rotate(-0.3deg); }
  60% { transform: translate(7px, -4px) rotate(0.3deg); }
  70% { transform: translate(-4px, 3px); }
  80% { transform: translate(4px, -3px); }
  90% { transform: translate(-2px, 2px); }
}
body.shake-sm { animation: shakeSm 0.35s ease-in-out; }
body.shake-lg { animation: shakeLg 0.6s ease-in-out; }

.effect-flash { position: fixed; inset: 0; pointer-events: none; z-index: 600; opacity: 0; }
@keyframes flashPulse { 0% { opacity: 0.6; } 100% { opacity: 0; } }
.effect-flash.play { animation: flashPulse 0.5s ease-out; }
.effect-flash.white  { background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 65%); }
.effect-flash.blue   { background: radial-gradient(circle, rgba(59,130,246,0.75) 0%, rgba(59,130,246,0) 68%); }
.effect-flash.purple { background: radial-gradient(circle, rgba(168,85,247,0.8) 0%, rgba(168,85,247,0) 68%); }
.effect-flash.gold   { background: radial-gradient(circle, rgba(245,158,11,0.9) 0%, rgba(245,158,11,0) 68%); }
.effect-flash.red    { background: radial-gradient(circle, rgba(239,68,68,0.85) 0%, rgba(239,68,68,0) 68%); }

.particle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 601; overflow: hidden; }
.particle {
  position: absolute; top: 50%; left: 50%; font-size: 1.7rem;
  will-change: transform, opacity; animation: particleFly 1s ease-out forwards;
}
@keyframes particleFly {
  0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.15) rotate(var(--rot)); opacity: 0; }
}

.record-banner {
  position: fixed; top: 16%; left: 50%; z-index: 602; width: 100%; text-align: center;
  font-size: 2rem; font-weight: 900; color: var(--gold); pointer-events: none;
  text-shadow: 0 4px 20px rgba(0,0,0,0.85), 0 0 30px rgba(245,158,11,0.7);
  opacity: 0;
}
@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, -10px) scale(1.08); }
  25% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(1); }
}
.record-banner.play { left: 50%; transform: translate(-50%, -10px); animation: bannerPop 1.8s ease-out forwards; }

/* ============================================================
   MULTIPLAYER — obecność graczy / ranking / live feed
   ============================================================ */
.online-badge {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4);
  border-radius: 10px; font-size: 0.75rem; font-weight: 700; color: var(--green);
}
.online-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.online-badge.offline { color: #64748b; border-color: var(--panel-border); background: rgba(255,255,255,0.04); }
.online-badge.offline .dot { background: #64748b; box-shadow: none; }

.leaderboard-tables { display: flex; gap: 18px; flex-wrap: wrap; }
.leaderboard-col { flex: 1; min-width: 260px; }
.leaderboard-col h3 { color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-border); font-size: 0.85rem; }
.leaderboard-table th { color: #94a3b8; font-weight: 600; }
.leaderboard-table td.rank { color: var(--gold); font-weight: 700; width: 28px; }
.leaderboard-table tr.me { background: rgba(245,158,11,0.08); }

/* ---- REKORDY SERWERA ---- */
.records-hint { font-size: 0.78rem; color: #94a3b8; margin-bottom: 12px; }
.records-scroll { overflow-x: auto; }
.records-lake { margin-bottom: 22px; }
.records-lake h3 { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.rec-weight { font-weight: 800; color: var(--gold); white-space: nowrap; }
.rec-unclaimed { color: #64748b; font-style: italic; }

.toast-live-catch { border-color: var(--blue); background: linear-gradient(135deg, rgba(37,99,235,0.9), rgba(15,23,42,0.95));
}
/* ---- CZAT (stały panel boczny) ---- */
#chatSidebar {
  width: 300px; flex-shrink: 0; height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column;
  background: rgba(2,6,23,0.55); border-left: 1px solid var(--panel-border);
}
.events-panel {
  flex: 0 0 38%; min-height: 160px; display: flex; flex-direction: column;
  padding: 14px; border-bottom: 1px solid var(--panel-border); overflow: hidden;
}
.chat-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px; overflow: hidden; }
.events-list {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 8px; background: rgba(2,6,23,0.4); border: 1px solid var(--panel-border); border-radius: 12px;
}
.events-list .empty-msg { margin: auto; font-size: 0.78rem; }
.event-item { display: flex; align-items: baseline; gap: 6px; font-size: 0.8rem; padding: 4px 2px; border-radius: 6px; }
.event-item .ev-user { font-weight: 800; color: var(--gold); flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-item .ev-user.me { color: var(--green); }
.event-item .ev-text { color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-item .ev-time { margin-left: auto; font-size: 0.65rem; color: #64748b; flex-shrink: 0; }
.event-item.golden { background: rgba(253,230,138,0.08); }
.chat-sidebar-header { font-weight: 800; color: var(--gold); font-size: 0.95rem; margin-bottom: 10px; flex-shrink: 0; }
.chat-messages {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 10px; margin-bottom: 12px;
  background: rgba(2,6,23,0.4); border: 1px solid var(--panel-border); border-radius: 12px;
}
.chat-messages .empty-msg { margin: auto; }
.chat-msg { max-width: 92%; padding: 7px 11px; border-radius: 12px; background: rgba(148,163,184,0.12); align-self: flex-start; }
.chat-msg.me { align-self: flex-end; background: rgba(245,158,11,0.16); }
.chat-msg-author { font-size: 0.72rem; font-weight: 800; color: var(--gold); margin-right: 8px; }
.chat-msg.me .chat-msg-author { color: var(--green); }
.chat-msg-time { font-size: 0.65rem; color: #64748b; }
.chat-msg-text { font-size: 0.86rem; color: #e2e8f0; word-wrap: break-word; white-space: pre-wrap; margin-top: 2px; }
.chat-input-row { display: flex; gap: 8px; flex-shrink: 0; }
.chat-input-row input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--panel-border);
  background: rgba(2,6,23,0.5); color: #e2e8f0; font-size: 0.88rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--gold); }

@media (max-width: 900px) {
  #gameScreen.active { flex-direction: column; }
  #gameMain { height: auto; overflow-y: visible; }
  #chatSidebar { width: 100%; height: 360px; border-left: none; border-top: 1px solid var(--panel-border); }
  .events-panel { min-height: 110px; padding: 10px; }
  .chat-panel { padding: 10px; }
}

/* ---- POGODA ---- */
.weather-sunny { color: var(--gold); } .weather-cloudy { color: #94a3b8; }
.weather-rain { color: var(--blue); } .weather-storm { color: var(--purple); } .weather-fog { color: #cbd5e1; }

/* ---- TROFEA (ściana trofeów) ---- */
.trophy-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.trophy-plaque {
  background: linear-gradient(160deg, rgba(120,80,20,0.28), rgba(15,23,42,0.9));
  border: 2px solid rgba(245,158,11,0.35); border-radius: 12px; padding: 12px; text-align: center;
  position: relative;
}
.trophy-plaque.locked { background: rgba(30,41,59,0.5); border-color: var(--panel-border); opacity: 0.6; }
.trophy-plaque img { width: 100%; height: 76px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.trophy-plaque .trophy-rank { position: absolute; top: 6px; left: 8px; font-size: 0.9rem; }
.trophy-plaque .trophy-name { font-weight: 800; font-size: 0.82rem; margin-bottom: 2px; }
.trophy-plaque .trophy-weight { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.trophy-plaque .trophy-meta { font-size: 0.68rem; color: #94a3b8; margin-top: 3px; }
.trophy-plaque .trophy-question { font-size: 1.8rem; margin-bottom: 6px; }

/* ---- SKRZYNKA NA PRZYNĘTY (limit sztuk) ---- */
.tackle-stock-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tackle-stock-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(148,163,184,0.15); overflow: hidden; }
.tackle-stock-fill { height: 100%; background: var(--green); }
.tackle-stock-fill.low { background: var(--gold); }
.tackle-stock-fill.empty { background: var(--danger); }
.tackle-stock-label { font-size: 0.68rem; color: #94a3b8; white-space: nowrap; }

/* ---- ODZNAKA SALDA W MODALACH (sklep/akweny) ---- */
.modal-money-badge {
  background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.35);
  color: var(--gold); font-weight: 800; font-size: 0.9rem;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---- SYGNAŁ BRANIA ("podnieś wędkę") ---- */
.bite-alert-box {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  width: 380px; max-width: 90vw;
  background: rgba(15,23,42,0.97); border: 3px solid var(--danger); border-radius: 16px;
  padding: 22px; z-index: 51; display: none; flex-direction: column; align-items: center;
  box-shadow: 0 0 45px rgba(239,68,68,0.55), 0 15px 40px rgba(0,0,0,0.8);
  text-align: center; animation: biteAlertPulse 0.9s ease-in-out infinite;
}
.bite-alert-icon { font-size: 2.4rem; animation: biteIconBounce 0.6s ease-in-out infinite; }
.bite-alert-box h3 { color: var(--danger); font-size: 1.4rem; letter-spacing: 1px; margin: 4px 0; }
.bite-alert-box .sub { font-size: 0.78rem; color: #cbd5e1; margin-bottom: 14px; }
.bite-react-track { width: 100%; height: 10px; background: #334155; border-radius: 6px; overflow: hidden; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.2); }
.bite-react-fill { width: 100%; height: 100%; background: var(--danger); transition: width 0.1s linear; }
.bite-hookset-btn { background: var(--danger); box-shadow: 0 4px 15px rgba(239,68,68,0.5); font-size: 1.15rem; }
.bite-hookset-btn:active { background: #b91c1c; }

@keyframes biteAlertPulse {
  0%, 100% { box-shadow: 0 0 45px rgba(239,68,68,0.55), 0 15px 40px rgba(0,0,0,0.8); }
  50% { box-shadow: 0 0 70px rgba(239,68,68,0.85), 0 15px 40px rgba(0,0,0,0.8); }
}
@keyframes biteIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- LISTA GRACZY ONLINE (po najechaniu na odznakę) ---- */
.online-badge-wrap { position: relative; }
.online-players-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 603;
  min-width: 160px; max-width: 240px;
  background: rgba(15,23,42,0.97); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.online-badge-wrap:hover .online-players-dropdown { display: block; }
.online-players-dropdown .op-title { font-size: 0.68rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; padding: 0 4px; }
.online-players-dropdown .op-name { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #e2e8f0; padding: 4px; border-radius: 6px; }
.online-players-dropdown .op-name .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 5px var(--green); flex-shrink: 0; }
.online-players-dropdown .op-empty { font-size: 0.78rem; color: #64748b; padding: 4px; }



/* -- LOGO ---*/

/* Stylizacja kontenera obrazka (dla lepszej kontroli) */
.logo-wrapper {
    text-align: center;
}

/* Stylizacja samego obrazka logo */
.game-logo {
    display: block;
    height: auto;            /* Zachowanie proporcji */
    max-width: 50%;         /* Skalowanie w dół na małych ekranach */
    
    /* Lekki efekt poświaty, aby metaliczne litery bardziej "wyskakiwały" z tła */
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.3));
}


/* ============================================================
   WYDARZENIA / DEATHMATCH
============================================================ */

.event-modal-card {
  max-width: 650px;
}

.event-hero {
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(239, 68, 68, 0.12),
      rgba(15, 23, 42, 0.4)
    );
  margin-bottom: 15px;
}

.event-type {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.event-hero h2 {
  margin: 4px 0 8px;
}

.event-location {
  color: #94a3b8;
  font-size: 0.85rem;
}

.event-countdown {
  margin: 15px 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
}

.event-joined {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-weight: 800;
}

.event-rules {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--panel-border);
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.event-rules p {
  margin: 5px 0 0;
}

.event-ranking-title {
  margin: 18px 0 8px;
}

.event-player-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-player-row {
  display: grid;
  grid-template-columns: 45px 1fr 80px 110px;
  align-items: center;
  gap: 8px;

  padding: 9px 11px;
  border-radius: 8px;

  background: rgba(30, 41, 59, 0.65);
  border: 1px solid transparent;
}

.event-player-row.me {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.event-rank {
  color: #94a3b8;
  font-weight: 800;
}

.event-player-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-catches {
  color: #94a3b8;
  font-size: 0.78rem;
}

.event-player-row strong {
  text-align: right;
  color: var(--gold);
}

.event-empty {
  padding: 35px 15px;
  text-align: center;
  color: #94a3b8;
}

.event-big-icon {
  font-size: 3rem;
}

//ADMIN --  
.admin-event-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-event-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;

  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.admin-event-form input,
.admin-event-form select {
  width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;

  border: 1px solid var(--panel-border);
  border-radius: 8px;

  background: rgba(15, 23, 42, 0.8);
  color: #fff;

  font: inherit;
}

.admin-event-form input:focus,
.admin-event-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.admin-event-separator {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--panel-border);
  margin: 10px 0;
}

.admin-event-management {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-event-management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-event-management-header h3 {
  margin: 0;
}

#adminEventsList {
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 350px;
  overflow-y: auto;
}

.admin-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 12px;

  border: 1px solid var(--panel-border);
  border-radius: 10px;

  background: rgba(15, 23, 42, 0.6);
}

.admin-event-item-main {
  min-width: 0;
}

.admin-event-status {
  margin-left: 8px;

  font-size: 0.72rem;
  color: #94a3b8;
}

.admin-event-meta {
  margin-top: 5px;

  font-size: 0.75rem;
  color: #94a3b8;
}

.admin-event-winner {
  margin-top: 5px;

  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-event-actions {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}

@media (max-width: 650px) {
  .admin-event-item {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-event-actions {
    width: 100%;
  }

  .admin-event-actions button {
    flex: 1;
  }
}

.event-history-section {
  margin-top: 20px;
  padding-top: 15px;

  border-top:
    1px solid var(--panel-border);
}

.event-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 10px;
}

.event-history-header h3 {
  margin: 0;
}

#eventHistoryList {
  display: flex;
  flex-direction: column;
  gap: 7px;

  max-height: 280px;
  overflow-y: auto;
}

.event-history-item {
  padding: 10px 12px;

  border: 1px solid var(--panel-border);
  border-radius: 8px;

  background:
    rgba(15, 23, 42, 0.55);
}

.event-history-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-history-meta {
  margin-top: 5px;

  color: #94a3b8;
  font-size: 0.75rem;
}

.event-history-win {
  color: var(--gold);
  font-weight: 900;
}

.event-history-winner {
  margin-top: 4px;

  color: #cbd5e1;
  font-size: 0.75rem;
}
/* ============================================================
   BATTLE / EVENT ANNOUNCEMENT
   ============================================================ */

.battle-announcement {
  position: relative;
  z-index: 12;

  width: calc(100% - 24px);
  margin: 8px 12px 0;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  cursor: pointer;
  text-align: center;

  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;

  color: #e2e8f0;

  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);

  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.battle-announcement:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(245, 158, 11, 0.45);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(245, 158, 11, 0.07);

  transform: translateY(-1px);
}

.battle-announcement:active {
  transform: translateY(0) scale(0.995);
}


/* -------------------------
   EVENT WAITING
   ------------------------- */

.battle-announcement.waiting {
  color: #fde68a;

  background:
    linear-gradient(
      90deg,
      rgba(245, 158, 11, 0.06),
      rgba(15, 23, 42, 0.94) 25%,
      rgba(15, 23, 42, 0.94) 75%,
      rgba(245, 158, 11, 0.06)
    );

  border-color: rgba(245, 158, 11, 0.28);
  border-left-color: var(--gold);
}


/* -------------------------
   EVENT ACTIVE
   ------------------------- */

.battle-announcement.active {
  color: #fecaca;

  background:
    linear-gradient(
      90deg,
      rgba(239, 68, 68, 0.13),
      rgba(15, 23, 42, 0.96) 28%,
      rgba(15, 23, 42, 0.96) 72%,
      rgba(239, 68, 68, 0.13)
    );

  border-color: rgba(239, 68, 68, 0.38);
  border-left-color: var(--danger);

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(239, 68, 68, 0.08);

  animation: battleAnnouncementPulse 2s ease-in-out infinite;
}

@keyframes battleAnnouncementPulse {
  0%,
  100% {
    border-color: rgba(239, 68, 68, 0.32);
  }

  50% {
    border-color: rgba(239, 68, 68, 0.58);
  }
}


/* -------------------------
   EVENT FINISHED
   ------------------------- */

.battle-announcement.finished {
  color: #cbd5e1;

  background: rgba(15, 23, 42, 0.92);

  border-color: var(--panel-border);
  border-left-color: #64748b;
}


/* -------------------------
   FINISHED + RESULT
   ------------------------- */

.battle-announcement.finished-result {
  color: #fde68a;

  background:
    linear-gradient(
      90deg,
      rgba(120, 53, 15, 0.48),
      rgba(15, 23, 42, 0.96) 30%,
      rgba(15, 23, 42, 0.96) 70%,
      rgba(120, 53, 15, 0.48)
    );

  border-color: rgba(245, 158, 11, 0.38);
  border-left-color: var(--gold);

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(245, 158, 11, 0.08);
}


/* -------------------------
   TIMER
   ------------------------- */

.battle-announcement-time {
  display: inline-flex;
  align-items: center;

  margin-left: 5px;
  padding: 2px 7px;

  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;

  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 6px;
}


/* -------------------------
   HIDDEN
   ------------------------- */

.battle-announcement.hidden {
  display: none;
}


/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 720px) {
  .battle-announcement {
    width: calc(100% - 16px);
    margin: 6px 8px 0;
    padding: 8px 10px;

    font-size: 0.7rem;
    border-radius: 8px;
  }

  .battle-announcement-time {
    font-size: 0.66rem;
    padding: 2px 5px;
  }
}