/* Strona główna i instrukcja MakiiColony */
:root {
  --bg: #07090f; --panel: #10151f; --panel2: #171e2c; --line: #253047; --text: #e3e8f2; --muted: #8b97ad;
  --accent: #4fd1c5; --accent2: #f6ad55; --rust: #d0683a; --good: #68d391; --bad: #fc8181;
  font-family: "Segoe UI", system-ui, -apple-system, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.center { text-align: center; }
.good { color: var(--good); } .bad { color: var(--bad); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 72px 20px; }
.band { background: linear-gradient(180deg, #0c1018, #111827 50%, #0c1018); border-top: 1px solid #141b29; border-bottom: 1px solid #141b29; }
h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .5px; margin: 0 0 14px; }
h3 { margin: 6px 0; }

/* nawigacja */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px 24px;
  background: linear-gradient(180deg, rgba(7, 9, 15, .85), rgba(7, 9, 15, 0)); backdrop-filter: blur(2px); }
.manual-page .site-nav { background: rgba(7, 9, 15, .95); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: .5px; }
.logo span { color: var(--accent); }
.site-nav nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.site-nav nav a { color: var(--text); text-decoration: none; opacity: .8; font-size: 14px; }
.site-nav nav a:hover { opacity: 1; color: var(--accent); }
.lang { display: flex; gap: 4px; }
.lang button { background: rgba(255, 255, 255, .06); color: var(--muted); border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-weight: 600; }
.lang button.active { background: var(--accent); color: #052320; }
.btn { display: inline-block; background: linear-gradient(135deg, #4fd1c5, #38b2ac); color: #052320; font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; box-shadow: 0 6px 24px rgba(79, 209, 197, .25); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79, 209, 197, .35); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: none; border: 1px solid rgba(255, 255, 255, .18); }
.link { font-weight: 600; text-decoration: none; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-3d { position: absolute; inset: 0; background: radial-gradient(circle at 30% 80%, #6d3a2a, #2a1830 45%, #090b16); }
.hero-3d canvas { width: 100%; height: 100%; display: block; }
.nowebgl { position: absolute; bottom: 20px; right: 20px; color: var(--muted); font-size: 12px; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 9, 15, .82) 0%, rgba(7, 9, 15, .45) 38%, rgba(7, 9, 15, 0) 65%), linear-gradient(0deg, rgba(7, 9, 15, 1) 0%, rgba(7, 9, 15, 0) 22%); }
.hero-overlay { position: absolute; left: max(24px, 6vw); top: 50%; transform: translateY(-50%); max-width: 640px; }
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--accent2); margin: 0 0 10px; }
.hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; margin: 0 0 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero h1 span { background: linear-gradient(90deg, #f6ad55, #d0683a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: #cfd6e4; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 18px 0 0; font-size: 15px; opacity: .92; }
.hero-stats span { background: rgba(10, 16, 28, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 14px; }
.hero-stats b { font-variant-numeric: tabular-nums; font-size: 17px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); text-decoration: none; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; letter-spacing: 2px; text-transform: uppercase; }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; background: var(--muted); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* historia */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.big-text { font-size: 20px; color: #d7dde8; }
.charter { margin: 0; aspect-ratio: 3 / 4; max-width: 300px; justify-self: center; border-radius: 6px; padding: 28px; position: relative;
  background: linear-gradient(160deg, #e9dcc0, #cdb991); color: #4a3220; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transform: rotate(3deg);
  display: flex; flex-direction: column; justify-content: flex-end; font-family: Georgia, serif; font-size: 13px; letter-spacing: 1px; }
.charter::before { content: ''; position: absolute; inset: 14px; border: 2px solid rgba(74, 50, 32, .4); border-radius: 4px; }
.charter-seal { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e0573b, #8e2a1c); color: #f6dcc4; font: 700 44px Georgia, serif; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 0 0 6px rgba(255, 255, 255, .12); }

/* filary */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.feature { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature .ico { font-size: 34px; }
.feature p { color: var(--muted); margin: 0; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 30px; }
.g-item { margin: 0; background: radial-gradient(circle at 50% 35%, #1f2a3d, #0f141e 70%); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  text-align: center; transition: transform .2s, border-color .2s; }
.g-item:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent2); }
.g-item img, .g-ph { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.g-ph { background: radial-gradient(circle, #1c2535, transparent 70%); }
.g-item figcaption b { display: block; }
.g-item figcaption span { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; }

/* tura */
.turn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step { border-left: 3px solid var(--accent); padding: 4px 18px; }
.step b { font-size: 40px; color: var(--accent); opacity: .5; }
.step p { color: var(--muted); }

/* ranking */
.podium { list-style: none; padding: 0; max-width: 560px; margin: 26px auto; }
.podium li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 8px; }
.podium .m { font-size: 22px; }
.podium .pts { color: var(--accent2); font-weight: 800; }
.cta-final { text-align: center; }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid #141b29; }

/* instrukcja */
.manual { display: grid; grid-template-columns: 240px 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 90px 20px 40px; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a.active, .toc a:hover { color: var(--text); border-left-color: var(--accent); }
.manual main h1 { font-size: 40px; margin-top: 0; }
.m-section { padding-top: 10px; margin-bottom: 40px; scroll-margin-top: 80px; }
.m-section h2 { font-size: 26px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.dropcap::first-letter { float: left; font: 700 54px/0.9 Georgia, serif; margin: 6px 10px 0 0; color: var(--accent2); }
.lore-end { font-style: italic; color: var(--accent2); font-size: 18px; }
.steps li { margin-bottom: 8px; }
.tbl, .m-section table { border-collapse: collapse; width: 100%; }
.tbl td, .tbl th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.m-section table th, .m-section table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.build-card img { width: 120px; height: 120px; float: right; margin: -6px -6px 0 6px; }
.build-card h4 { margin: 0 0 4px; font-size: 17px; }
.build-card p { color: var(--muted); font-size: 13px; margin: 0 0 8px; min-height: 52px; }
.build-card table { clear: both; font-size: 13px; }
.build-card td:first-child { color: var(--muted); }
.build-card td:last-child { text-align: right; }

@media (max-width: 900px) {
  .site-nav nav { display: none; }
  .two-col, .turn-steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .manual { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 9, 15, .95) 10%, rgba(7, 9, 15, .3) 60%); }
  .hero-overlay { top: auto; bottom: 70px; transform: none; right: 20px; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-hint i::after { animation: none; } }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img { width: 38px; height: 38px; filter: drop-shadow(0 2px 8px rgba(229, 138, 76, .35)); transition: transform .4s; }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.logo .wm { color: var(--text); }
.logo .wm span { color: var(--accent); }

/* logo – zestaw godło + napis */
.logo img { width: auto; height: 46px; }
.logo:hover img { transform: none; filter: drop-shadow(0 2px 10px rgba(229, 138, 76, .45)); }
.hero-logo { display: block; width: min(440px, 80vw); height: auto; margin: 0 0 14px -10px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(34px, 5vw, 64px); }
.music-btn { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px;
  padding: 4px 10px; cursor: pointer; font-weight: 700; }
.music-btn.on { color: #052320; background: var(--accent); border-color: var(--accent); }
.music-btn.waiting { color: var(--accent); border-color: var(--accent); animation: musicPulse 1.6s ease-in-out infinite; }
@keyframes musicPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, .5); } 50% { box-shadow: 0 0 0 6px rgba(79, 209, 197, 0); } }
.music-wrap { display: inline-flex; gap: 4px; }

/* trwające mecze */
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.live-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.live-card:hover { border-color: var(--accent); }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.lc-mode { font-size: 12px; color: var(--accent2); margin: 4px 0 8px; }
.live-card ol { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.live-card li span { float: right; color: var(--muted); }
@media (max-width: 520px) {
  .site-nav { gap: 8px; padding: 10px 12px; }
  .logo img { height: 36px; }
  .music-wrap .music-btn { padding: 4px 7px; }
  .lang button { padding: 3px 6px; }
}
