html,body{
  margin:0;
  padding:0;
  background:#0e1014;
  color:#e6e6e6;
  font-family:Georgia,serif;
}

/* =========================
   MAIN LAYOUT
   ========================= */
.main-wrap{
  display:flex;
  max-width:1400px;
  margin:0 auto;
  padding:40px;
  gap:40px;
}
.map-block{
  flex:2;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.clocks{
  flex:1;
}

/* =========================
   INTRO
   ========================= */
#intro-screen{
  position:fixed;
  inset:0;
  background:#0b0d11;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  text-align:center;
}
#intro-screen.hidden{
  display:none;
}

/* =========================
   MAPS
   ========================= */
.map{
  display:none;
}
.map-area{
  width:100%;
  max-width:1240px;
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:30px;
  margin-left:auto;
  margin-right:auto;
}

/* =========================
   SELECTOR
   ========================= */
.map-selector{
  text-align:center;
  margin-bottom:15px;
}
.map-selector button{
  background:#1b1f26;
  color:#ccc;
  border:1px solid #333;
  padding:6px 14px;
  margin:0 4px;
  cursor:pointer;
}
.map-selector button.active{
  border-color:#ff5555;
  color:#ff7777;
}

/* =========================
   HEADER
   ========================= */
.site-header{
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  align-items:center;
  padding:60px;
  background:linear-gradient(#0b0d11,#050607);
}

/* LEFT */
.header-left{
  font-size:0.75em;
  opacity:0.85;
}
.header-stats{
  margin-bottom:12px;
}
.header-legend div{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:help;
}

/* DOTS */
.legend-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
}
.legend-dot.confirmed{ background:#4caf50; }
.legend-dot.disputed{ background:#ff9800; }
.legend-dot.denied{ background:#f44336; }

/* CENTER */
.header-center{
  text-align:center;
}
.header-center h1{
  letter-spacing:0.35em;
  margin:0 0 10px 0;
}
.header-center h2{
  letter-spacing:0.2em;
  font-size:0.85em;
  margin:0 0 6px 0;
  opacity:0.85;
}
.header-community{
  letter-spacing:0.2em;
  font-size:0.75em;
  opacity:0.8;
  margin-bottom:10px;
}
.header-tagline{
  font-size:0.75em;
  max-width:640px;
  margin:0 auto;
  opacity:0.7;
  line-height:1.4;
}

/* RIGHT */
.header-right{
  text-align:right;
  font-size:0.75em;
  opacity:0.7;
}
.lore-tablet{
  font-style:italic;
  border-left:2px solid #333;
  padding-left:12px;
}

/* =========================
   SAGA + FATE
   ========================= */
/* ==========================
   BELOW MAP – SAGA + FATE (LAYOUT)
========================== */
.below-map{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:40px;

    width:100%;
    max-width:1240px;   /* dokładnie tyle co mapa */
    margin:20px auto 40px auto;

    align-items:start;
}

.below-left,
.below-right{
    width:100%;
}

/* ==========================
   SAGA + FATE (CONTENT)
========================== */
.saga-log,
.choose-fate{
    height:200px;
    overflow:auto;
}
/* buttons */
.roles button{
  background:#1b1f26;
  color:#ccc;
  border:1px solid #333;
  padding:6px 12px;
  margin:5px;
  cursor:pointer;
}
.roles button.active{
  border-color:#4caf50;
  color:#a5d6a7;
}
.roles .count{
  display:block;
  font-size:0.65em;
  opacity:0.6;
}

.roles button.locked{
  opacity:0.5;
  cursor:not-allowed;
}


/* =========================
   FOOTER – FIXED
   ========================= */
.site-footer{
  width:100%;
  text-align:center;
  padding:30px 20px;
  opacity:0.75;
  margin-top:40px;
  box-sizing:border-box;
}

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:1000px){
  .site-header{
    grid-template-columns:1fr;
    text-align:center;
    gap:20px;
  }
  .header-right,
  .header-left{
    text-align:center;
  }
  .lore-tablet{
    border-left:none;
  }
  .main-wrap{
    flex-direction:column;
  }
}
/* ===== FOOTER FIX (ONLY) ===== */
.site-footer{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:30px 20px;
  margin-top:40px;
  box-sizing:border-box;
}

.site-footer .footer-inner{
  max-width:1200px;
  width:100%;
  text-align:center;
  opacity:0.75;
}
/* =========================
   CLOCKS – CLEAN LAYOUT
   ========================= */

.clocks{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-top:10px;
}

.clock{
  padding:10px 14px;
  border-left:2px solid #333;
}

.clock-name{
  font-weight:bold;
  letter-spacing:0.15em;
  font-size:0.75em;
}

.clock-sub{
  font-size:0.7em;
  opacity:0.6;
  margin-bottom:4px;
}

.clock-time{
  font-size:1.05em;
  letter-spacing:0.1em;
}
.clocks{
  max-width:260px;
}
/* =========================
   SAGA LOG – POLISH
   ========================= */

.saga-log{
  background:#12151b;
  border-left:2px solid #333;
  padding:14px 16px;
}

.saga-log h3{
  margin:0 0 10px 0;
  letter-spacing:0.12em;
}

.saga-log ul{
  list-style:none;
  padding:0;
  margin:0;
}

.saga-log li{
  font-size:0.8em;
  opacity:0.85;
  padding:6px 0;
  animation:fadeIn 0.4s ease-in;
}

.saga-log .time{
  display:inline-block;
  min-width:60px;
  font-size:0.7em;
  opacity:0.6;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(4px)}
  to{opacity:0.85; transform:none}
}


/* =========================
   ACCORDION – FATE
   ========================= */

.accordion{
  border-top:1px solid #333;
}

.acc-header{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid #333;
  user-select:none;
}

.acc-header.active{
  color:#ff7777;
}

.acc-body{
  display:none;
  padding:12px 0;
}

.acc-body.open{
  display:block;
}

.professions{
  max-height:200px;
  overflow-y:auto;
}
/* =========================
   BELOW MAP – HARD ALIGN FIX
   ========================= */

/* BELOW MAP – SAGA + FATE (FINAL TILE) */
.below-map{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:32px;

    max-width:1024px;   /* KLUCZ – taka sama szerokość jak mapa */
    margin:20px auto 40px auto;

    ppadding:14px;
background:#14181f;
border:1px solid rgba(180,160,120,0.25);
box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.45),
    0 12px 28px rgba(0,0,0,0.35);


    align-items:stretch;
}

.below-left,
.below-right{
    display:flex;
    flex-direction:column;

    min-height:320px;
    height:100%;

    align-items:stretch;
}

/* CAŁA KOLUMNA ZAWSZE NA PEŁNĄ WYSOKOŚĆ */
.below-left > *,
.below-right > *{
    flex:1 1 auto;
}



/* reset marginesów startowych */
.below-left,
.below-right{
  margin:;
  padding:0;
}

/* reset h3 które psują baseline */
.below-left h3,
.below-right h3{
  margin-top:0;
}
/* ===============================
   CHOOSE YOUR FATE – STATES
   =============================== */

.fate-section {
    margin-bottom: 28px;
}

.fate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d6d1c4;
    margin-bottom: 12px;
}

.fate-counter {
    font-size: 12px;
    opacity: 0.8;
}

/* STATES */

.fate-locked {
    opacity: 0.4;
    pointer-events: none;
}

.fate-active {
    opacity: 1;
}

.fate-completed {
    opacity: 0.75;
}

.fate-sealed {
    opacity: 0.6;
    pointer-events: none;
}

/* options */

.fate-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fate-option {
    padding: 6px 12px;
    border: 1px solid rgba(180,160,120,0.25);
    cursor: pointer;
    font-size: 13px;
}

.fate-option:hover {
    background: rgba(180,160,120,0.08);
}

.fate-option.selected {
    background: rgba(180,160,120,0.18);
    border-color: rgba(180,160,120,0.6);
}
.fate-locked .fate-options,
.fate-completed .fate-options {
    display: none;
}
.saga-log{
    font-size:15px;           /* było za małe */
    line-height:1.55;
    letter-spacing:0.02em;
}

.saga-log .entry{
    margin-bottom:12px;
}

.saga-log .entry-time{
    font-size:12px;
    opacity:0.6;
    margin-right:8px;
}



.choose-fate{
    font-size:13px;
}

.choose-fate .fate-header{
    margin-bottom:6px;
}

.choose-fate .fate-section{
    margin-bottom:10px;   /* było za luźno */
}

.choose-fate .fate-option{
    padding:4px 10px;     /* mniejsze kafelki */
    font-size:12px;
}


/* ===============================
   BIND THE NAME – RITUAL (ADD-ON)
   =============================== */

#bind-name{
  text-align:center;
  padding:60px 20px;
}

.ritual-text{
  font-style:italic;
  letter-spacing:0.15em;
  margin-bottom:30px;
  opacity:0.85;
}

.name-label{
  display:block;
  margin-bottom:18px;
  font-size:13px;
  letter-spacing:0.08em;
}

#chosen-name{
  margin-top:6px;
  padding:6px 12px;
  background:#0f1218;
  border:1px solid rgba(180,160,120,0.4);
  color:#e6e6e6;
}

#bind-name-btn{
  margin-top:10px;
  padding:8px 20px;
  border:1px solid rgba(180,160,120,0.5);
  background:#14181f;
  color:#e6e6e6;
  letter-spacing:0.15em;
  cursor:pointer;
}

#bind-name-btn:hover{
  background:rgba(180,160,120,0.12);
}

.ritual-done{
  margin-top:30px;
  font-style:italic;
  opacity:0.9;
  letter-spacing:0.12em;
}
#fate-runes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.fate-rune {
    font-size: 32px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    font-family: "NotoRunic", serif;
}

.fate-rune:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* === FORCE FATE ICON SIZE (DO NOT MOVE) === */

#fate-runes .fate-rune {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fate-runes .fate-rune img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    display: block;
}


@font-face {
    font-family: "NotoRunic";
    src: url("/fehu/assets/fonts/Noto_Sans_Runic/NotoSansRunic-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
.fate-rune img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}
