/* Titan Realms UI — mythic / obsidian / bronze / stormlight (FULL FILE)
   Adds: consistent RED outline glow on all buttons:
   .btn, button.itemtag (Inventory + Crucible), .popup__btn, .dpad__btn
*/

:root{
  --bg0:#06060a;
  --panel:#0f101a;

  --ink:#e8e8f2;
  --muted:#a7a9c0;

  --gold:#d7b56d;
  --storm:#6fd0ff;
  --ember:#ff5a5a;

  --line2: rgba(255,255,255,.06);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.45);

  --radius2: 22px;

  /* dynamic tile size (JS may change this) */
  --tile: 22px;

  /* ✅ Button red-glow system */
  --btn-red: rgba(255, 60, 60, .95);
  --btn-red-soft: rgba(255, 60, 60, .22);
  --btn-red-mid: rgba(255, 60, 60, .34);
  --btn-red-hard: rgba(255, 60, 60, .55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body.tr{
  margin:0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: radial-gradient(1200px 900px at 20% 10%, #101024 0%, var(--bg0) 55%, #000 100%);
  overflow:hidden;
}

/* Background */
.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(800px 500px at 80% 20%, rgba(111,208,255,.12), transparent 60%),
    radial-gradient(700px 600px at 20% 80%, rgba(215,181,109,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.55));
  pointer-events:none;
}
.vignette{
  position:fixed; inset:-2px;
  box-shadow: inset 0 0 180px rgba(0,0,0,.85);
  pointer-events:none;
}

/* Topbar */
.topbar{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(15,16,26,.92), rgba(8,8,12,.40));
  backdrop-filter: blur(10px);
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand__sigil{
  width:40px; height:40px; border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.15), transparent 55%),
    linear-gradient(135deg, rgba(215,181,109,.85), rgba(111,208,255,.35));
  box-shadow: var(--shadow2);
  border: 1px solid rgba(255,255,255,.14);
}
.brand__title{
  font-weight: 1000;
  letter-spacing:.8px;
  text-transform: uppercase;
  line-height:1;
}
.brand__sub{ color: var(--muted); font-size: 12px; margin-top: 2px; }
.topbar__right{ display:flex; align-items:center; gap:10px; }

.chip{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.88);
  font-weight: 900;
  letter-spacing:.4px;
}

/* Layout */
.layout{
  height: calc(100vh - 64px);
  display:grid;
  grid-template-columns: 340px 1fr 360px;
  gap: 12px;
  padding: 12px;
}

.panel{
  border-radius: var(--radius2);
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(18,20,40,.78), rgba(10,10,14,.60));
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.panel__title{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line2);
  background: rgba(0,0,0,.18);
  font-weight: 1000;
  letter-spacing:.7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.mt{ margin-top: 6px; }
.mb{ margin-bottom: 10px; }

/* HUD */
.statblock{ padding: 12px 14px 8px; display:flex; flex-direction:column; gap: 10px; }
.statrow{
  display:grid;
  grid-template-columns: 34px 1fr 80px;
  align-items:center;
  gap: 10px;
}
.label{ color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing:.4px; }
.value{ font-weight: 900; text-align:right; color: rgba(255,255,255,.92); }

.bar{
  height: 12px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  overflow:hidden;
}
.bar__fill{
  height:100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255,90,90,.95), rgba(215,181,109,.55));
  box-shadow: 0 0 18px rgba(255,90,90,.12);
}
.bar--xp{ height: 10px; }
.bar__fill--xp{
  background: linear-gradient(90deg, rgba(111,208,255,.95), rgba(215,181,109,.65));
  box-shadow: 0 0 18px rgba(111,208,255,.12);
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill{
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.25);
  border-radius: 14px;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.pill__k{ color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing:.5px; }
.pill__v{ font-weight: 1000; color: var(--storm); }

/* Inventory */
.inventory{
  padding: 10px 14px 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  min-height: 56px;
}

.itemtag{
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  transition: transform .08s ease, filter .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.itemtag:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
  border-color: rgba(215,181,109,.22);
}
.itemtag:active{ transform: translateY(0px); }

/* ✅ SELECTED INVENTORY ITEM (matches JS class "itemtag--selected") */
.itemtag.itemtag--selected{
  border-color: rgba(111,208,255,.45);
  box-shadow:
    0 0 0 3px rgba(111,208,255,.14),
    0 10px 22px rgba(111,208,255,.08);
  filter: brightness(1.08);
}
.itemtag.itemtag--selected:hover{
  transform: translateY(-2px);
}

.itemtag--common{ border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.90); }
.itemtag--uncommon{ border-color: rgba(111,208,255,.22); color: var(--storm); }
.itemtag--rare{ border-color: rgba(215,181,109,.26); color: var(--gold); }
.itemtag--epic{ border-color: rgba(255,90,90,.26); color: var(--ember); }

/* Target panel */
.target{
  padding: 10px 14px 12px;
  min-height: 70px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.target__name{
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.target__meta{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.tchip{
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.90);
}
.tchip--boss{ border-color: rgba(215,181,109,.28); color: var(--gold); }
.tchip--enemy{ border-color: rgba(255,90,90,.28); color: var(--ember); }
.tchip--tele{ border-color: rgba(111,208,255,.26); color: var(--storm); }

/* Buttons */
.actions{
  padding: 12px 14px 6px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.btn{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.14);
  border-bottom-color: rgba(0,0,0,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.32));
  color: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 12px 12px;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: 0 10px 18px rgba(0,0,0,.28);
  transition: transform .08s ease, filter .12s ease, border-color .12s ease, box-shadow .12s ease;
  touch-action: manipulation;
}
.btn:hover{ filter: brightness(1.06); border-color: rgba(215,181,109,.22); }
.btn:active{ transform: translateY(1px) scale(.99); }
.btn--ghost{ background: rgba(0,0,0,.18); box-shadow:none; }

/* ✅ GLOBAL RED OUTLINE GLOW FOR BUTTONS
   - Applies to: main actions (.btn), inventory buttons (button.itemtag),
     popup buttons (.popup__btn), mobile dpad (.dpad__btn)
   - Keeps non-button .itemtag (div “pills”) mostly unchanged by scoping to button.itemtag
*/
.btn,
button.itemtag,
.popup__btn,
.dpad__btn{
  position: relative;
  outline: none;
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 10px 18px rgba(0,0,0,.28),
    0 0 0 1px rgba(255, 60, 60, .22),
    0 0 18px rgba(255, 60, 60, .14);
}

.btn:hover,
button.itemtag:hover,
.popup__btn:hover,
.dpad__btn:hover{
  border-color: rgba(255, 60, 60, .38);
  box-shadow:
    0 12px 22px rgba(0,0,0,.30),
    0 0 0 1px rgba(255, 60, 60, .34),
    0 0 26px rgba(255, 60, 60, .18),
    0 0 44px rgba(255, 60, 60, .10);
}

.btn:active,
button.itemtag:active,
.popup__btn:active,
.dpad__btn:active{
  box-shadow:
    0 8px 16px rgba(0,0,0,.26),
    0 0 0 1px rgba(255, 60, 60, .30),
    0 0 18px rgba(255, 60, 60, .14);
}

.btn:focus-visible,
button.itemtag:focus-visible,
.popup__btn:focus-visible,
.dpad__btn:focus-visible{
  border-color: rgba(255, 60, 60, .55);
  box-shadow:
    0 14px 26px rgba(0,0,0,.32),
    0 0 0 2px rgba(255, 60, 60, .40),
    0 0 0 5px rgba(255, 60, 60, .14),
    0 0 40px rgba(255, 60, 60, .12);
}

/* Disabled buttons should not glow hard */
.btn:disabled,
button.itemtag:disabled,
.popup__btn:disabled,
.dpad__btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  filter: none;
  box-shadow:
    0 8px 14px rgba(0,0,0,.22),
    0 0 0 1px rgba(255, 60, 60, .12);
}

/* Stage */
.stage{
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: 10px;
}
.stage__frame{
  background: linear-gradient(180deg, rgba(18,20,40,.70), rgba(12,12,18,.55));
  border: 1px solid var(--line2);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  flex: 1;
  display:flex;
  flex-direction:column;
}
.stage__header{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid var(--line2);
  background: rgba(0,0,0,.18);
}
.stage__title{
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.stage__legend{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.leg{
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.85);
}
.leg--p{ border-color: rgba(111,208,255,.32); color: var(--storm); }
.leg--e{ border-color: rgba(255,90,90,.32); color: var(--ember); }
.leg--b{ border-color: rgba(215,181,109,.38); color: var(--gold); }
.leg--i{ border-color: rgba(215,181,109,.32); color: var(--gold); }
.leg--w{ border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.72); }

/* Map tiles */
.map{
  padding: 14px;
  display:grid;
  /* JS should set explicit columns based on MAP.w */
  grid-auto-rows: var(--tile);
  gap: 6px;
  justify-content:center;
  align-content:center;
  flex: 1;
}

.tile{
  width: var(--tile);
  height: var(--tile);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  line-height: 1;
  user-select:none;
  position: relative; /* ✅ for target ring */
}

.t-wall{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.25));
  border-color: rgba(255,255,255,.10);
}

/* FLOOR uses the stone tile sprite */
.t-floor{
  background-image: url("assets/img/tiles/floor.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

.t-player{
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), rgba(0,0,0,.15)),
              linear-gradient(135deg, rgba(111,208,255,.85), rgba(215,181,109,.25));
  border-color: rgba(111,208,255,.25);
}
.t-enemy{
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), rgba(0,0,0,.15)),
              linear-gradient(135deg, rgba(255,90,90,.85), rgba(215,181,109,.12));
  border-color: rgba(255,90,90,.25);
}
.t-boss{
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), rgba(0,0,0,.14)),
              linear-gradient(135deg, rgba(215,181,109,.92), rgba(255,90,90,.28));
  border-color: rgba(215,181,109,.32);
  box-shadow: 0 6px 18px rgba(215,181,109,.12), 0 4px 10px rgba(0,0,0,.25);
}
.t-item{
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), rgba(0,0,0,.12)),
              linear-gradient(135deg, rgba(215,181,109,.85), rgba(111,208,255,.22));
  border-color: rgba(215,181,109,.25);
}

.t-door{
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.12), rgba(0,0,0,.14)),
              linear-gradient(135deg, rgba(215,181,109,.75), rgba(0,0,0,.15));
  border-color: rgba(215,181,109,.22);
}

.t-stairs{
  background: radial-gradient(circle at 30% 25%, rgba(111,208,255,.12), rgba(0,0,0,.14)),
              linear-gradient(135deg, rgba(111,208,255,.22), rgba(0,0,0,.15));
  border-color: rgba(111,208,255,.22);
}

/* ✅ TARGET HIGHLIGHT ON MAP */
@keyframes trTargetPulse{
  0%   { transform: scale(1); filter: brightness(1.00); }
  50%  { transform: scale(1.03); filter: brightness(1.12); }
  100% { transform: scale(1); filter: brightness(1.00); }
}

.tile.t-target{
  z-index: 3;
  animation: trTargetPulse 1.05s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(111,208,255,.55),
    0 0 22px rgba(111,208,255,.20),
    0 10px 18px rgba(0,0,0,.30);
}

.tile.t-target::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius: 10px;
  border: 2px solid rgba(111,208,255,.55);
  box-shadow:
    0 0 0 3px rgba(111,208,255,.14),
    0 0 28px rgba(111,208,255,.12);
  pointer-events:none;
}

.tile.t-target-auto{
  z-index: 2;
  box-shadow:
    0 0 0 2px rgba(215,181,109,.28),
    0 0 16px rgba(111,208,255,.10),
    0 10px 18px rgba(0,0,0,.28);
}

.tile.t-target-auto::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 10px;
  border: 2px dashed rgba(215,181,109,.28);
  pointer-events:none;
  opacity: .9;
}

/* If it's the boss AND selected, add extra mythic heat */
.tile.t-boss.t-target{
  box-shadow:
    0 0 0 2px rgba(111,208,255,.60),
    0 0 0 4px rgba(215,181,109,.22),
    0 0 26px rgba(215,181,109,.18),
    0 0 22px rgba(111,208,255,.18),
    0 10px 18px rgba(0,0,0,.32);
}

/* D-Pad */
.dpad{
  display:none;
  gap: 8px;
  justify-content:center;
  padding-bottom: 2px;
}
.dpad__btn{
  width: 56px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  touch-action: manipulation;
}
.dpad__btn:active{ transform: translateY(1px); }

/* Log */
.log__box{
  padding: 12px 14px;
  overflow:auto;
  min-height:0;
  flex: 1;
}
.logline{
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.14);
  margin-bottom: 8px;
}
.logline--good{ border-color: rgba(111,208,255,.18); }
.logline--warn{ border-color: rgba(215,181,109,.18); }
.logline--bad{ border-color: rgba(255,90,90,.18); }

.log__footer{
  display:flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line2);
  background: rgba(0,0,0,.16);
}

/* Modal */
.modal{ position:fixed; inset:0; display:none; }
.modal.is-open{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.65); }
.modal__card{
  position:relative;
  width: min(560px, calc(100vw - 28px));
  margin: 84px auto 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,20,40,.92), rgba(10,10,14,.88));
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal__title{
  font-weight: 1000;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.modal__content{ color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.5; }
.modal__actions{ display:flex; justify-content:flex-end; gap:10px; margin-top: 14px; }

/* Responsive */
@media (max-width: 1180px){
  .layout{ grid-template-columns: 320px 1fr; grid-template-areas: "hud stage" "log stage"; }
  .hud{ grid-area:hud; }
  .stage{ grid-area:stage; }
  .log{ grid-area:log; }
}

@media (max-width: 860px){
  body.tr{ overflow:auto; }
  .layout{ height:auto; grid-template-columns: 1fr; grid-template-areas: "stage" "hud" "log"; }
  .dpad{ display:flex; }
}

.muted{ color: var(--muted); font-size: 12px; }
.hint{ padding: 12px 14px; border-top: 1px solid var(--line2); background: rgba(0,0,0,.14); }
.hint__title{ font-weight: 1000; letter-spacing:.6px; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-bottom: 6px; }
.hint__text{ color: rgba(255,255,255,.86); font-size: 12px; line-height: 1.35; }

/* Popup (death + notices) */
#gamePopup{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
#gamePopup.is-open{ display: block; }

#gamePopup .popup__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}

#gamePopup .popup__card{
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: 18vh auto 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(18,20,40,.96), rgba(10,10,14,.90));
  box-shadow: 0 22px 70px rgba(0,0,0,.65);
  padding: 16px;
}

#gamePopup .popup__card--bad{
  border-color: rgba(255,90,90,.22);
  box-shadow: 0 22px 70px rgba(0,0,0,.65), 0 0 0 3px rgba(255,90,90,.10);
}

#gamePopup .popup__title{
  font-weight: 1000;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
  margin-bottom: 10px;
}

#gamePopup .popup__body{
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.6;
}

#gamePopup .popup__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

#gamePopup .popup__btn{
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  border-bottom-color: rgba(0,0,0,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.32));
  color: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: 0 10px 18px rgba(0,0,0,.28);
  transition: transform .08s ease, filter .12s ease, border-color .12s ease, box-shadow .12s ease;
}
#gamePopup .popup__btn:hover{ filter: brightness(1.06); border-color: rgba(215,181,109,.22); }
#gamePopup .popup__btn:active{ transform: translateY(1px) scale(.99); }
#gamePopup .popup__btn--ghost{
  background: rgba(0,0,0,.18);
  box-shadow: none;
}

/* 👑 Gatekeeper — Stair Sentinel */
.t-gatekeeper{
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), rgba(0,0,0,.15)),
    linear-gradient(135deg, rgba(255,90,90,.95), rgba(80,0,0,.45));
  border-color: rgba(255,90,90,.45);
  box-shadow:
    0 0 0 2px rgba(255,90,90,.45),
    0 0 26px rgba(255,90,90,.35),
    0 12px 22px rgba(0,0,0,.45);
  animation: gatekeeperPulse 1.4s ease-in-out infinite;
}

@keyframes gatekeeperPulse{
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.18); }
  100% { filter: brightness(1); }
}

/* ==========================
   Desktop layout tweak (V2)
   ========================== */

.layout.layout--desktop-v2{
  height: calc(100vh - 64px);
  display:grid;
  grid-template-columns: 340px 1fr 360px;
  gap: 12px;
  padding: 12px;
}

.layout.layout--desktop-v2 > *{
  min-width:0;
  min-height:0;
}

/* Right panel */
.panel.side{
  min-height:0;
  display:flex;
  flex-direction:column;
}

/* Chronicle becomes a compact feed */
.log__box.log__box--compact{
  flex: 1;
  min-height: 140px;
  max-height: 260px;   /* smaller chronicle like a feed */
  overflow:auto;
}

/* Inventory / equipment / materials should scroll if needed */
.panel.side .inventory{
  overflow:auto;
  min-height:56px;
  max-height: 220px;
}

/* ==========================
   Desktop stat grid + log popup
   ========================== */

.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* ✅ REMOVE LEFT SCROLLBAR (Champion should not scroll) */
.panel.hud{
  overflow:hidden;
}
#championStats{
  overflow: visible;
}

/* Full log in modal */
.log__box.log__box--full{
  max-height: 56vh;
  overflow:auto;
  padding: 10px 0 0;
}

/* ==========================
   Footer: sticky to bottom + readable links
   ========================== */

.side__footer{
  margin-top: auto; /* ✅ pushes footer to the bottom inside the flex column */
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line2);
  background: rgba(0,0,0,.14);
}

.side__footerTop{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .3px;
  color: rgba(255,255,255,.80);
}

.side__mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.86);
  font-weight: 1000;
}

.side__copy{
  color: rgba(255,255,255,.78);
  font-weight: 900;
}

.side__footerLinks{
  margin-top: 6px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap:wrap;
  font-size: 12px;
}

.side__link{
  color: rgba(255,255,255,.88);   /* ✅ not blue */
  text-decoration: none;          /* ✅ cleaner */
  font-weight: 900;
  border-bottom: 1px solid rgba(215,181,109,.18);
  padding-bottom: 1px;
  transition: filter .12s ease, border-color .12s ease;
}

.side__link:hover{
  filter: brightness(1.12);
  border-bottom-color: rgba(215,181,109,.40);
}

.side__dot{
  color: rgba(255,255,255,.35);
}

/* If you ever want links to pop a bit more */
.side__link:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(111,208,255,.14);
  border-radius: 8px;
  padding: 2px 6px;
  margin: -2px -6px;
}

/* ==========================
   Desktop layout v2 helpers
   ========================== */

.layout.layout--desktop-v2{
  grid-template-columns: 340px 1fr 360px;
}

/* Compact Chronicle feed on the right */
.log__box.log__box--compact{
  flex: 1;
  min-height: 140px;
  max-height: 240px;
  overflow:auto;
}

/* Full Chronicle inside modal */
.log__box.log__box--full{
  max-height: 56vh;
  overflow:auto;
}

.logo {
  width: 75px;      /* adjust as needed */
  height: auto;
  display: block;
}
