:root {
  --bg: #080706;
  --panel: rgba(26, 18, 14, 0.92);
  --panel2: rgba(36, 25, 19, 0.94);
  --line: rgba(235, 169, 84, 0.18);
  --line2: rgba(255, 255, 255, 0.08);
  --text: #f5eadb;
  --muted: #b8a99a;
  --dim: #7f7167;
  --accent: #f59e3d;
  --accent2: #d66a24;
  --good: #8ddc9c;
  --bad: #ff8d7a;
  --shadow: 0 18px 55px rgba(0,0,0,.38);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 123, 42, .20), transparent 38rem),
    radial-gradient(circle at bottom right, rgba(116, 44, 23, .18), transparent 30rem),
    linear-gradient(160deg, #070605 0%, #110b08 48%, #090706 100%);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.booting { opacity: 1; }

.app-shell { min-height: 100vh; }
.panel {
  background: linear-gradient(180deg, rgba(34, 23, 18, .94), rgba(19, 13, 10, .94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-screen, .create-screen {
  min-height: 100vh;
  padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}
.brand-card, .create-card, .auth-panel { padding: 22px; }
.brand-card {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(245, 142, 55, .17), rgba(23, 15, 11, .96));
  border: 1px solid rgba(245, 158, 61, .26);
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #6b2715);
  color: #1b0d06;
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow: 0 10px 25px rgba(245, 126, 42, .22);
}
.brand-mark.small { width: 34px; height: 34px; border-radius: 12px; font-size: 13px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 9vw, 58px); line-height: .96; margin-bottom: 10px; letter-spacing: -.06em; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
h3 { margin: 0 0 10px; font-size: 17px; }
.muted { color: var(--muted); }
.micro { font-size: 12px; line-height: 1.45; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.045); margin-bottom: 16px; }
.segment, .nav-btn, .ghost, .primary, .danger {
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
button:active { transform: scale(.98); }
.segment { background: transparent; color: var(--muted); }
.segment.active { background: rgba(245,158,61,.18); color: var(--text); }
.primary {
  background: linear-gradient(135deg, #f5a044, #b7441f);
  color: #1b0d06;
  box-shadow: 0 12px 28px rgba(230, 93, 31, .23);
}
.ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line2); }
.danger { background: rgba(255, 92, 70, .14); color: var(--bad); border: 1px solid rgba(255, 92, 70, .22); }
.wide { width: 100%; }
label { display: grid; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.label-title { display: block; margin: 12px 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
input {
  width: 100%;
  background: rgba(0,0,0,.24);
  border: 1px solid var(--line2);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 14px;
  outline: none;
}
input:focus { border-color: rgba(245,158,61,.55); box-shadow: 0 0 0 3px rgba(245,158,61,.10); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.choice-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.045);
  cursor: pointer;
}
.choice-card.active { border-color: rgba(245,158,61,.7); background: rgba(245,158,61,.12); }
.choice-card strong { display: block; margin-bottom: 4px; }

.game-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 330px;
  gap: 16px;
  padding: calc(16px + var(--safe-top)) 16px 16px;
  max-width: 1480px;
  margin: 0 auto;
}
.desktop-nav { padding: 16px; align-self: start; position: sticky; top: 16px; display: grid; gap: 8px; }
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 2px 14px; border-bottom: 1px solid var(--line2); margin-bottom: 8px; }
.nav-btn { text-align: left; background: rgba(255,255,255,.04); color: var(--muted); border: 1px solid transparent; }
.nav-btn.active { color: var(--text); border-color: rgba(245,158,61,.32); background: rgba(245,158,61,.12); }
.main-column { display: grid; gap: 14px; align-content: start; min-width: 0; }
.topbar { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.top-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-weight: 850; font-size: 12px; border: 1px solid var(--line2); }
.pill.accent { color: #ffd19b; border-color: rgba(245,158,61,.28); background: rgba(245,158,61,.10); }
.objective-card { padding: 14px 16px; border-color: rgba(245,158,61,.30); background: linear-gradient(135deg, rgba(245,158,61,.15), rgba(17,11,8,.95)); }
.content-area { display: grid; gap: 12px; padding-bottom: 10px; }
.right-rail { display: grid; gap: 14px; align-content: start; position: sticky; top: 16px; align-self: start; }
.right-rail .panel { padding: 16px; }
.mobile-only { display: none; }
.mobile-nav { display: none; }

.grid { display: grid; gap: 12px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  padding: 16px;
  min-height: 132px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  overflow: hidden;
}
.card.big { min-height: 170px; }
.card-row { display: flex; align-items: center; gap: 12px; }
.icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.19);
  padding: 4px;
  border: 1px solid var(--line2);
}
.icon.big { width: 64px; height: 64px; border-radius: 18px; }
.card-title { font-weight: 900; margin: 0; }
.card-sub { color: var(--muted); font-size: 13px; margin: 3px 0 0; line-height: 1.35; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-actions button { flex: 1 1 130px; }
.reward-list, .stat-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.055); border: 1px solid var(--line2); color: var(--muted); font-size: 12px; font-weight: 750; }
.progress { height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #f05c2c); border-radius: inherit; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.resource-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); font-size: 13px; }
.resource-row img { width: 24px; height: 24px; object-fit: contain; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line2); color: var(--muted); }
.kv strong { color: var(--text); }
.stat-card { display: grid; gap: 8px; }
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-head button { min-width: 46px; padding: 8px 10px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); min-height: 98px; }
.slot .slot-title { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; margin-bottom: 6px; }
.toast {
  position: fixed;
  left: 50%; bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(23, 15, 11, .96);
  border: 1px solid rgba(245,158,61,.26);
  box-shadow: var(--shadow);
  z-index: 50;
  font-weight: 800;
}

@media (max-width: 1099px) {
  .game-screen { grid-template-columns: 190px minmax(0, 1fr); }
  .right-rail { display: none; }
  .mobile-only { display: block; }
  .mobile-only .panel { padding: 14px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .auth-screen, .create-screen { padding-left: 12px; padding-right: 12px; }
  .game-screen {
    display: block;
    padding: calc(10px + var(--safe-top)) 10px calc(82px + var(--safe-bottom));
  }
  .desktop-nav, .right-rail { display: none; }
  .main-column { display: grid; gap: 10px; }
  .topbar { padding: 14px; border-radius: 20px; }
  .objective-card { padding: 12px 14px; border-radius: 20px; }
  h2 { font-size: 19px; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .card { padding: 14px; min-height: 118px; border-radius: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav {
    position: fixed;
    left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(14, 9, 7, .92);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0,0,0,.48);
    z-index: 20;
  }
  .mobile-nav .nav-btn { text-align: center; padding: 10px 4px; border-radius: 16px; font-size: 11px; }
  .toast { bottom: calc(84px + var(--safe-bottom)); }
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 850;
  padding: 10px 6px;
  cursor: pointer;
}
.form-row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
textarea {
  width: 100%; min-height: 160px; resize: vertical;
  background: rgba(0,0,0,.24); border: 1px solid var(--line2); color: var(--text);
  border-radius: 16px; padding: 14px; outline: none; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
select {
  width: 100%; background: rgba(0,0,0,.24); border: 1px solid var(--line2); color: var(--text);
  border-radius: 16px; padding: 14px; outline: none;
}
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line2); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
th { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.admin-shell { min-height: 100vh; padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom)); max-width: 1480px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.admin-nav { padding: 16px; align-self: start; position: sticky; top: 16px; display: grid; gap: 8px; }
.admin-main { display: grid; gap: 14px; align-content: start; }
.badge-good { color: var(--good); }
.badge-bad { color: var(--bad); }
.code-box { white-space: pre-wrap; overflow: auto; max-height: 420px; padding: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line2); border-radius: 14px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 699px) {
  .form-row { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
}

.awakening-card { max-width: 980px; margin: 0 auto; }
.awakening-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.skill-roll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skill-roll-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.skill-card {
  min-height: 130px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.skill-card h3 { margin-top: 8px; margin-bottom: 6px; }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rarity-badge, .unique-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.07); border: 1px solid var(--line2); }
.unique-badge { color: #f5eadb; border-color: rgba(255,255,255,.22); }
.rarity-common { border-color: rgba(210,210,210,.18); }
.rarity-uncommon { border-color: rgba(112, 218, 137, .28); background: linear-gradient(180deg, rgba(112, 218, 137, .10), rgba(255,255,255,.02)); }
.rarity-rare { border-color: rgba(91, 164, 255, .34); background: linear-gradient(180deg, rgba(91, 164, 255, .12), rgba(255,255,255,.02)); }
.rarity-epic { border-color: rgba(191, 116, 255, .42); background: linear-gradient(180deg, rgba(191, 116, 255, .14), rgba(255,255,255,.02)); }
.rarity-legendary { border-color: rgba(255, 193, 88, .55); background: linear-gradient(180deg, rgba(255, 179, 64, .18), rgba(255,255,255,.025)); box-shadow: 0 0 28px rgba(245,158,61,.08); }
.rarity-mythic { border-color: rgba(255, 102, 214, .62); background: radial-gradient(circle at top left, rgba(255,102,214,.20), transparent 70%), linear-gradient(180deg, rgba(125, 77, 255, .16), rgba(255,255,255,.025)); box-shadow: 0 0 34px rgba(180,92,255,.12); }
.rarity-unique { border-color: rgba(255,255,255,.72); background: radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 60%), linear-gradient(145deg, rgba(245,158,61,.20), rgba(113,43,255,.16)); box-shadow: 0 0 40px rgba(245,158,61,.16); }
.rarity-common .rarity-badge { color: #d8d2ca; }
.rarity-uncommon .rarity-badge { color: #8ddc9c; }
.rarity-rare .rarity-badge { color: #8ec1ff; }
.rarity-epic .rarity-badge { color: #d4a1ff; }
.rarity-legendary .rarity-badge { color: #ffd38b; }
.rarity-mythic .rarity-badge { color: #ffa6e6; }
.rarity-unique .rarity-badge { color: #fff2c7; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
@media (max-width: 699px) {
  .awakening-status { grid-template-columns: 1fr; }
  .skill-roll-grid { grid-template-columns: 1fr; }
}

/* v0.4 visual camp + universal battle engine */
.quick-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.camp-scene {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .85fr);
  isolation: isolate;
}
.camp-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 24% 62%, rgba(247, 123, 43, .42), transparent 10rem),
    radial-gradient(circle at 22% 70%, rgba(255, 176, 80, .28), transparent 18rem),
    linear-gradient(180deg, rgba(52, 38, 31, .4), rgba(8,7,6,.9)),
    url('/assets/art/camp/campfire_level_2.png') center/cover no-repeat;
  opacity: .62;
  filter: saturate(.95) contrast(1.05);
  z-index: -2;
}
.camp-bg::after, .battle-sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,7,6,.05), rgba(8,7,6,.72));
  z-index: -1;
}
.camp-visuals { position: relative; min-height: 430px; }
.camp-prop { position: absolute; object-fit: contain; filter: drop-shadow(0 22px 28px rgba(0,0,0,.48)); }
.camp-fire { width: 38%; left: 10%; bottom: 1%; animation: emberPulse 2.8s ease-in-out infinite; }
.camp-workbench { width: 34%; right: 6%; bottom: 5%; opacity: .96; }
.camp-shrine { width: 24%; left: 43%; top: 10%; opacity: .82; }
.survivor-stand {
  position: absolute; left: 49%; bottom: 23%; width: 86px; height: 112px;
  border-radius: 44px 44px 24px 24px;
  background: linear-gradient(180deg, #33221a, #100b08);
  border: 1px solid rgba(245,158,61,.42);
  box-shadow: 0 24px 40px rgba(0,0,0,.5), 0 0 28px rgba(245,158,61,.13);
  display: grid; place-items: center;
}
.survivor-stand span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(245,158,61,.16); font-weight: 950; color: #ffd39b; }
.camp-copy { padding: 28px; align-self: end; z-index: 1; }
.camp-copy h1 { font-size: clamp(34px, 5vw, 62px); }
@keyframes emberPulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.015); } }

.battle-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 14px; }
.battle-stage {
  min-height: 540px;
  overflow: hidden;
  position: relative;
  padding: 18px;
  isolation: isolate;
}
.battle-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 28%, rgba(245, 158, 61, .28), transparent 14rem),
    radial-gradient(circle at 78% 18%, rgba(124, 58, 237, .18), transparent 18rem),
    linear-gradient(180deg, rgba(39,25,18,.94), rgba(8,7,6,.98));
  z-index: -2;
}
.battle-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; position: relative; z-index: 1; }
.fighters { min-height: 310px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; padding: 34px 0 12px; }
.clash-mark { align-self: center; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(245,158,61,.13); border: 1px solid rgba(245,158,61,.28); font-size: 27px; box-shadow: 0 0 34px rgba(245,158,61,.12); }
.fighter-box {
  min-height: 290px;
  border-radius: 28px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}
.fighter-box::before { content:""; position:absolute; left:50%; bottom:84px; width:150px; height:38px; transform:translateX(-50%); border-radius:50%; background:rgba(0,0,0,.30); filter:blur(6px); }
.fighter-box.ally { background: radial-gradient(circle at 40% 22%, rgba(245,158,61,.16), transparent 50%), linear-gradient(180deg, rgba(255,255,255,.065), rgba(0,0,0,.2)); }
.fighter-box.enemy { background: radial-gradient(circle at 62% 24%, rgba(255,73,73,.14), transparent 52%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.22)); }
.fighter-avatar {
  width: 112px; height: 138px; margin: 0 auto 12px;
  border-radius: 54px 54px 32px 32px;
  display: grid; place-items: center;
  font-size: 48px; font-weight: 950;
  position: relative; z-index: 1;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.45));
}
.fighter-avatar.ally { background: linear-gradient(180deg, #452e21, #17100d); border: 1px solid rgba(245,158,61,.40); color: #ffd39b; }
.fighter-avatar.enemy { background: linear-gradient(180deg, #3a1613, #120807); border: 1px solid rgba(255,115,84,.36); }
.fighter-avatar.empty { background: rgba(255,255,255,.04); border: 1px dashed var(--line2); color: var(--muted); }
.battle-stage.is-fighting .fighter-avatar.ally { animation: fighterBreathe 1.45s ease-in-out infinite; }
.battle-stage.is-fighting .fighter-avatar.enemy { animation: fighterBreathe 1.65s ease-in-out infinite reverse; }
@keyframes fighterBreathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hp-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; }
.hpbar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; border: 1px solid rgba(255,255,255,.07); margin: 6px 0 10px; }
.hpbar > i { display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, #8ddc9c, #f5a044); transition: width .35s ease; }
.hpbar.enemy > i { background: linear-gradient(90deg, #ff8d7a, #b7441f); }
.fighter-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.fighter-stats span { padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.045); color: var(--muted); font-size: 11px; font-weight: 800; }
.battle-summary, .loot-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.battle-side { display: grid; gap: 14px; align-content: start; }
.battle-log, .target-panel { padding: 16px; }
.log-list { display: grid; gap: 8px; max-height: 324px; overflow: auto; padding-right: 4px; }
.log-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.log-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.log-row.crit p, .log-row.victory p { color: #ffd39b; }
.log-row.retreat p { color: var(--bad); }
.target-list { display: grid; gap: 9px; }
.target-card { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 11px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(255,255,255,.045); color: var(--text); cursor: pointer; }
.target-card:hover { border-color: rgba(245,158,61,.38); background: rgba(245,158,61,.08); }
.target-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.24); font-size: 22px; }
.target-card small { display:block; color: var(--muted); margin-top: 2px; }
.target-card em { color: var(--accent); font-size: 12px; font-style: normal; font-weight: 900; }

@media (max-width: 1099px) {
  .camp-scene, .battle-layout { grid-template-columns: 1fr; }
  .camp-copy { align-self: end; }
  .battle-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .quick-panels { grid-template-columns: 1fr; }
  .camp-scene { min-height: 560px; display: block; }
  .camp-visuals { min-height: 330px; }
  .camp-copy { padding: 18px; }
  .camp-fire { width: 56%; left: -3%; }
  .camp-workbench { width: 48%; right: -8%; bottom: 2%; }
  .camp-shrine { width: 34%; left: 54%; top: 8%; }
  .survivor-stand { left: 43%; bottom: 18%; }
  .battle-stage { min-height: unset; padding: 12px; border-radius: 22px; }
  .fighters { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; }
  .clash-mark { width: 42px; height: 42px; margin: 0 auto; transform: rotate(90deg); }
  .fighter-box { min-height: 230px; border-radius: 22px; }
  .fighter-avatar { width: 86px; height: 106px; font-size: 38px; }
  .battle-side { grid-template-columns: 1fr; }
  .target-card { grid-template-columns: 34px 1fr; }
  .target-card em { grid-column: 2; }
}

/* v0.4.1 immersive player UI pass */
@media (min-width: 1100px) {
  .game-screen {
    grid-template-columns: 190px minmax(0, 1fr);
    max-width: 1640px;
    gap: 14px;
  }
  .right-rail { display: none; }
}
.topbar {
  background: linear-gradient(135deg, rgba(35,22,15,.76), rgba(10,7,5,.72));
  backdrop-filter: blur(18px);
  border-color: rgba(245,158,61,.20);
}
.objective-card {
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: none;
  background: linear-gradient(90deg, rgba(245,158,61,.12), rgba(17,11,8,.64));
}
.quest-ribbon-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.quest-ribbon-inner span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 950;
}
.quest-ribbon-inner strong { font-size: 14px; }
.hud-stat-strip { display: none; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hud-stat-strip span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  border: 1px solid var(--line2);
  font-size: 11px;
  font-weight: 850;
}
.camp-world {
  position: relative;
  min-height: min(690px, calc(100vh - 184px));
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  background: #0d0907;
}
.camp-world .camp-bg {
  opacity: .72;
  filter: saturate(1.08) contrast(1.08);
  background:
    radial-gradient(circle at 23% 68%, rgba(255, 155, 50, .40), transparent 13rem),
    radial-gradient(circle at 66% 37%, rgba(245, 158, 61, .16), transparent 14rem),
    radial-gradient(circle at 80% 72%, rgba(110, 54, 31, .30), transparent 17rem),
    linear-gradient(180deg, rgba(35,25,18,.22), rgba(6,5,4,.72)),
    url('/assets/art/camp/campfire_level_3.png') center/cover no-repeat;
}
.camp-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,5,4,.28), transparent 35%, rgba(7,5,4,.52)),
    linear-gradient(0deg, rgba(7,5,4,.70), transparent 38%, rgba(7,5,4,.16));
  pointer-events: none;
  z-index: -1;
}
.camp-title {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vw, 36px);
  max-width: 460px;
  z-index: 4;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(9,6,5,.62), rgba(9,6,5,.18));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.camp-title h1 { margin-bottom: 8px; font-size: clamp(40px, 6vw, 74px); text-shadow: 0 5px 24px rgba(0,0,0,.55); }
.camp-title p:not(.eyebrow) { color: var(--muted); margin: 0; line-height: 1.35; }
.camp-hotspot {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 150px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  text-align: center;
  transition: transform .16s ease, filter .16s ease;
}
.camp-hotspot:hover { transform: translateY(-5px) scale(1.02); filter: brightness(1.08); }
.camp-hotspot img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.62));
}
.camp-hotspot span {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(12,8,6,.72);
  border: 1px solid rgba(245,158,61,.24);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.camp-hotspot strong { font-size: 13px; }
.camp-hotspot small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.hot-campfire { left: 8%; bottom: 10%; width: 210px; }
.hot-campfire img { width: 210px; height: 180px; animation: emberPulse 2.8s ease-in-out infinite; }
.hot-workbench { right: 14%; bottom: 12%; }
.hot-shrine { left: 43%; top: 22%; }
.hot-dummy { right: 31%; top: 42%; }
.hot-chest { right: 5%; bottom: 34%; }
.hot-map { left: 18%; top: 42%; }
.world-survivor {
  z-index: 3;
  left: 50%;
  bottom: 23%;
  transform: translateX(-50%);
}
.camp-bottom-hud {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(10,7,5,.74);
  border: 1px solid rgba(245,158,61,.20);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,.36);
}
.camp-bottom-hud button { min-width: 112px; }

.battle-world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-areas:
    "stage targets"
    "log targets";
  gap: 14px;
}
.battle-world-layout .battle-stage { grid-area: stage; min-height: min(640px, calc(100vh - 190px)); border-radius: 30px; }
.target-dock { grid-area: targets; padding: 16px; align-self: start; position: sticky; top: 16px; }
.battle-log-drawer { grid-area: log; padding: 14px 16px; }
.battle-world-layout .fighters {
  min-height: 410px;
  align-items: center;
  padding: 48px 0 80px;
}
.battle-world-layout .fighter-box {
  min-height: 350px;
  border-radius: 32px;
}
.battle-world-layout .fighter-box.enemy { order: 0; }
.battle-world-layout .fighter-box.ally { order: 2; }
.battle-world-layout .clash-mark { order: 1; }
.battle-overlay-feed {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 112px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.ticker-line {
  flex: 0 0 auto;
  max-width: 360px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11,7,5,.72);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,.24);
}
.ticker-line.crit, .ticker-line.victory { color: #ffd39b; border-color: rgba(245,158,61,.30); }
.ticker-line.dodge { color: #b8d8ff; }
.ticker-line.retreat { color: var(--bad); }
.battle-bottom-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(10,7,5,.74);
  border: 1px solid rgba(245,158,61,.16);
  backdrop-filter: blur(14px);
}
.battle-bottom-bar .battle-summary, .battle-bottom-bar .loot-strip { margin-top: 0; }
.battle-actions { display: flex; gap: 8px; align-items: center; }
.compact-btn { padding: 9px 12px; }

@media (max-width: 1099px) {
  .battle-world-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "stage" "targets" "log";
  }
  .target-dock { position: static; }
  .target-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .hud-stat-strip { display: flex; }
  .objective-card { padding: 9px 11px; }
  .quest-ribbon-inner { display: grid; gap: 2px; }
  .camp-world {
    min-height: calc(100vh - 230px);
    border-radius: 24px;
  }
  .camp-title {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
    padding: 14px;
    border-radius: 20px;
  }
  .camp-title h1 { font-size: 40px; }
  .camp-title p:not(.eyebrow) { font-size: 13px; }
  .camp-hotspot { width: 104px; }
  .camp-hotspot img { width: 92px; height: 92px; }
  .camp-hotspot span { min-width: 100px; padding: 7px 8px; border-radius: 15px; }
  .camp-hotspot strong { font-size: 11px; }
  .camp-hotspot small { display: none; }
  .hot-campfire { left: 2%; bottom: 14%; width: 148px; }
  .hot-campfire img { width: 148px; height: 126px; }
  .hot-workbench { right: 2%; bottom: 14%; }
  .hot-shrine { left: 56%; top: 33%; }
  .hot-dummy { right: 35%; top: 54%; }
  .hot-chest { right: 1%; bottom: 39%; }
  .hot-map { left: 5%; top: 43%; }
  .world-survivor { left: 49%; bottom: 28%; width: 70px; height: 92px; }
  .camp-bottom-hud {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .camp-bottom-hud button { min-width: 0; padding: 10px 6px; }
  .battle-world-layout .battle-stage { min-height: calc(100vh - 260px); }
  .battle-world-layout .fighters {
    min-height: 470px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 44px 0 150px;
  }
  .battle-world-layout .fighter-box { min-height: 185px; }
  .battle-world-layout .fighter-avatar { width: 76px; height: 90px; font-size: 34px; }
  .battle-world-layout .fighter-box.enemy { order: 0; }
  .battle-world-layout .clash-mark { order: 1; transform: rotate(90deg); }
  .battle-world-layout .fighter-box.ally { order: 2; }
  .battle-overlay-feed { bottom: 120px; left: 12px; right: 12px; }
  .ticker-line { max-width: 280px; }
  .battle-bottom-bar { left: 12px; right: 12px; bottom: 12px; }
  .target-list { grid-template-columns: 1fr; }
  .battle-log-drawer .log-list { max-height: 220px; }
}

/* v0.4.2 desktop visual cleanup + proficiency bars */
@media (min-width: 1100px) {
  .game-screen {
    grid-template-columns: 176px minmax(0, 1fr);
    max-width: 1500px;
    gap: 16px;
    padding: calc(14px + var(--safe-top)) 18px 18px;
  }
  .desktop-nav {
    border-radius: 24px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(31,20,15,.82), rgba(13,8,6,.82));
    box-shadow: 0 18px 48px rgba(0,0,0,.32);
  }
  .nav-btn { padding: 11px 12px; border-radius: 14px; }
  .main-column { gap: 12px; }
  .topbar { padding: 12px 16px; border-radius: 22px; }
  .topbar h2 { font-size: 20px; }
  .content-area { min-width: 0; }
  .camp-world {
    min-height: min(650px, calc(100vh - 160px));
    max-height: 740px;
    border-radius: 28px;
  }
  .camp-title {
    max-width: 360px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(9,6,5,.76), rgba(9,6,5,.28));
  }
  .camp-title h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: .94; }
  .camp-title p:not(.eyebrow) { font-size: 14px; max-width: 330px; }
}
.camp-world .camp-bg {
  opacity: 1;
  filter: none;
  background:
    radial-gradient(ellipse at 22% 70%, rgba(255, 134, 41, .36), transparent 18rem),
    radial-gradient(ellipse at 52% 48%, rgba(160, 77, 36, .22), transparent 24rem),
    radial-gradient(ellipse at 80% 62%, rgba(69, 34, 22, .42), transparent 24rem),
    linear-gradient(180deg, rgba(31, 21, 16, .98), rgba(10, 7, 5, .98) 56%, #070504 100%);
}
.camp-world::before {
  content: "";
  position: absolute;
  left: 7%; right: 5%; bottom: 6%; height: 46%;
  background:
    radial-gradient(ellipse at 22% 77%, rgba(245, 158, 61, .10), transparent 34%),
    radial-gradient(ellipse at 60% 82%, rgba(255,255,255,.05), transparent 36%),
    linear-gradient(160deg, rgba(70,48,35,.36), rgba(24,15,10,.18));
  border-radius: 48% 54% 18% 22%;
  transform: skewX(-5deg);
  filter: blur(.1px);
  opacity: .9;
  z-index: -1;
}
.camp-world::after {
  background:
    linear-gradient(90deg, rgba(7,5,4,.22), transparent 42%, rgba(7,5,4,.38)),
    linear-gradient(0deg, rgba(7,5,4,.62), transparent 42%, rgba(7,5,4,.14));
}
.camp-hotspot img {
  filter: drop-shadow(0 24px 24px rgba(0,0,0,.68));
  image-rendering: auto;
}
.camp-hotspot span {
  background: rgba(12,8,6,.62);
  border-color: rgba(245,158,61,.18);
}
.hot-campfire { left: 7%; bottom: 8%; width: 190px; }
.hot-campfire img { width: 190px; height: 160px; }
.hot-workbench { right: 15%; bottom: 9%; width: 146px; }
.hot-workbench img { width: 140px; height: 128px; }
.hot-shrine { left: 46%; top: 14%; width: 132px; }
.hot-shrine img { width: 122px; height: 128px; }
.hot-dummy { right: 33%; top: 40%; width: 122px; }
.hot-dummy img { width: 104px; height: 124px; }
.hot-chest { right: 7%; top: 30%; width: 130px; }
.hot-chest img { width: 122px; height: 112px; }
.hot-map { left: 25%; top: 43%; width: 126px; }
.hot-map img { width: 112px; height: 108px; }
.world-survivor { left: 51%; bottom: 25%; }
.survivor-stand.world-survivor {
  background: radial-gradient(circle at 50% 32%, rgba(245,158,61,.22), rgba(11,7,5,.88));
  border-color: rgba(245,158,61,.34);
}
.camp-bottom-hud { right: 24px; bottom: 24px; }
.prof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.prof-row {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line2);
}
.prof-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.prof-top span { color: #ffd19b; font-weight: 900; }
.prof-row .progress { height: 7px; margin-top: 8px; }
.prof-row .micro { margin: 5px 0 0; }
@media (max-width: 699px) {
  .camp-world .camp-bg {
    background:
      radial-gradient(ellipse at 20% 70%, rgba(255, 134, 41, .34), transparent 13rem),
      radial-gradient(ellipse at 63% 48%, rgba(160, 77, 36, .20), transparent 15rem),
      linear-gradient(180deg, rgba(31,21,16,.98), rgba(8,6,5,.98));
  }
  .prof-grid { grid-template-columns: 1fr; }
}

/* v0.4.3 focused world pass: compact desktop chrome + stronger camp scene */
.nav-btn { display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 22px; min-width: 22px; display: inline-grid; place-items: center; font-size: 16px; line-height: 1; }
.nav-label { white-space: nowrap; }
.hud-stat-strip { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.hud-stat-strip span { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.055); border: 1px solid var(--line2); color: var(--muted); font-size: 11px; font-weight: 850; }
.quest-ribbon-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.quest-ribbon-inner span { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 950; }
.quest-ribbon-inner strong { line-height: 1.3; }

@media (min-width: 1100px) {
  .game-screen {
    grid-template-columns: 74px minmax(0, 1fr);
    max-width: 1540px;
    padding: calc(12px + var(--safe-top)) 18px 18px;
  }
  .desktop-nav {
    width: 74px;
    padding: 10px;
    overflow: hidden;
    z-index: 30;
    transition: width .18s ease, background .18s ease, box-shadow .18s ease;
  }
  .desktop-nav:hover, .desktop-nav:focus-within { width: 206px; }
  .desktop-nav .nav-brand { justify-content: center; padding-bottom: 12px; }
  .desktop-nav .nav-brand strong { opacity: 0; width: 0; overflow: hidden; white-space: nowrap; transition: opacity .14s ease; }
  .desktop-nav:hover .nav-brand, .desktop-nav:focus-within .nav-brand { justify-content: flex-start; }
  .desktop-nav:hover .nav-brand strong, .desktop-nav:focus-within .nav-brand strong { opacity: 1; width: auto; }
  .desktop-nav .nav-btn { min-height: 44px; padding: 10px; justify-content: center; }
  .desktop-nav .nav-label { opacity: 0; width: 0; overflow: hidden; transition: opacity .14s ease; }
  .desktop-nav:hover .nav-btn, .desktop-nav:focus-within .nav-btn { justify-content: flex-start; }
  .desktop-nav:hover .nav-label, .desktop-nav:focus-within .nav-label { opacity: 1; width: auto; }
  .topbar { display: none; }
  .objective-card { padding: 10px 14px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .objective-card .quest-ribbon-inner { flex: 1; justify-content: flex-start; }
  .main-column { gap: 10px; }
}

.camp-v043 {
  position: relative;
  min-height: min(720px, calc(100vh - 100px));
  overflow: hidden;
  border-radius: 30px;
  isolation: isolate;
  background: #090605;
}
.camp-v043 .camp-bg {
  opacity: 1;
  filter: none;
  background:
    radial-gradient(ellipse at 16% 73%, rgba(251, 127, 37, .42), transparent 17rem),
    radial-gradient(ellipse at 35% 64%, rgba(168, 88, 42, .30), transparent 22rem),
    radial-gradient(ellipse at 70% 68%, rgba(95, 53, 31, .32), transparent 24rem),
    radial-gradient(ellipse at 50% 108%, rgba(52, 32, 20, .82), transparent 36rem),
    linear-gradient(180deg, #17100d 0%, #0b0706 54%, #060403 100%);
}
.camp-v043::before {
  content: "";
  position: absolute;
  left: 7%; right: 6%; bottom: 7%; height: 50%;
  background:
    radial-gradient(ellipse at 22% 74%, rgba(245,158,61,.18), transparent 34%),
    radial-gradient(ellipse at 54% 60%, rgba(255,255,255,.05), transparent 33%),
    linear-gradient(155deg, rgba(92,61,40,.46), rgba(23,14,9,.22));
  border-radius: 52% 50% 20% 23%;
  transform: perspective(800px) rotateX(55deg) skewX(-6deg);
  transform-origin: center bottom;
  z-index: -1;
}
.camp-v043::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 68%, rgba(255,153,56,.10), transparent 16rem),
    linear-gradient(90deg, rgba(6,4,3,.20), transparent 45%, rgba(6,4,3,.44)),
    linear-gradient(0deg, rgba(6,4,3,.70), transparent 36%, rgba(6,4,3,.10));
  pointer-events: none;
  z-index: 1;
}
.camp-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 110px rgba(0,0,0,.74); z-index: 2; pointer-events: none; }
.camp-v043 .camp-title {
  left: 22px;
  top: 22px;
  max-width: 380px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10,7,5,.86), rgba(12,8,6,.48));
  border: 1px solid rgba(245,158,61,.15);
  backdrop-filter: blur(8px);
  z-index: 6;
}
.camp-v043 .camp-title h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: .9; }
.camp-status-strip {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 50%;
}
.camp-status-strip span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(11,7,5,.70);
  border: 1px solid rgba(245,158,61,.18);
  color: #dcc9b7;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.camp-v043 .camp-hotspot {
  z-index: 5;
  background: transparent;
  border: 0;
  padding: 0;
  filter: saturate(1.02);
}
.camp-v043 .camp-hotspot:hover { z-index: 8; }
.camp-v043 .camp-hotspot img { filter: drop-shadow(0 28px 22px rgba(0,0,0,.72)); }
.camp-v043 .camp-hotspot span {
  background: rgba(10,7,5,.72);
  border: 1px solid rgba(245,158,61,.22);
  box-shadow: 0 12px 26px rgba(0,0,0,.30);
  backdrop-filter: blur(7px);
}
.camp-v043 .hot-campfire { left: 8%; bottom: 7%; width: 230px; }
.camp-v043 .hot-campfire img { width: 230px; height: 184px; animation: emberPulse 2.8s ease-in-out infinite; }
.camp-v043 .hot-map { left: 28%; top: 41%; width: 128px; }
.camp-v043 .hot-map img { width: 118px; height: 112px; }
.camp-v043 .hot-shrine { left: 49%; top: 17%; width: 140px; }
.camp-v043 .hot-shrine img { width: 132px; height: 134px; }
.camp-v043 .hot-dummy { left: 54%; bottom: 28%; width: 120px; }
.camp-v043 .hot-dummy img { width: 112px; height: 128px; }
.camp-v043 .hot-chest { right: 9%; top: 32%; width: 144px; }
.camp-v043 .hot-chest img { width: 136px; height: 118px; }
.camp-v043 .hot-workbench { right: 18%; bottom: 12%; width: 162px; }
.camp-v043 .hot-workbench img { width: 156px; height: 136px; }
.camp-v043 .world-survivor { left: 48%; bottom: 23%; z-index: 6; }
.camp-quick-actions {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 9;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 23px;
  background: rgba(10,7,5,.78);
  border: 1px solid rgba(245,158,61,.20);
  box-shadow: 0 18px 38px rgba(0,0,0,.42);
  backdrop-filter: blur(12px);
}
.camp-quick-actions button { min-width: 104px; }

@media (max-width: 1099px) {
  .nav-icon { display: none; }
  .camp-v043 { min-height: calc(100vh - 230px); }
  .camp-status-strip { top: auto; left: 12px; right: 12px; bottom: 74px; max-width: none; justify-content: center; }
}
@media (max-width: 699px) {
  .quest-ribbon-inner { display: grid; gap: 4px; }
  .hud-stat-strip { display: none; }
  .camp-v043 .camp-title { left: 12px; right: 12px; top: 12px; max-width: none; padding: 14px; }
  .camp-v043 .camp-title h1 { font-size: 36px; }
  .camp-status-strip { display: none; }
  .camp-v043 .hot-campfire { left: 3%; bottom: 13%; width: 154px; }
  .camp-v043 .hot-campfire img { width: 154px; height: 128px; }
  .camp-v043 .hot-map { left: 7%; top: 43%; width: 104px; }
  .camp-v043 .hot-shrine { left: 56%; top: 31%; width: 112px; }
  .camp-v043 .hot-dummy { left: 45%; bottom: 30%; width: 104px; }
  .camp-v043 .hot-chest { right: 2%; top: 43%; width: 108px; }
  .camp-v043 .hot-workbench { right: 4%; bottom: 14%; width: 116px; }
  .camp-v043 .world-survivor { left: 48%; bottom: 29%; width: 66px; height: 86px; }
  .camp-quick-actions {
    left: 10px; right: 10px; bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .camp-quick-actions button { min-width: 0; padding: 10px 6px; }
}
.camp-v043::before { z-index: 3; pointer-events: none; }

/* v0.4.4: replace fragile hotspot map with a responsive camp command hub */
@media (min-width: 1100px) {
  .game-screen {
    grid-template-columns: 190px minmax(0, 1fr);
    max-width: 1480px;
    gap: 16px;
    padding: calc(14px + var(--safe-top)) 18px 18px;
  }
  .desktop-nav {
    width: auto;
    padding: 14px;
    overflow: visible;
    transition: none;
  }
  .desktop-nav:hover, .desktop-nav:focus-within { width: auto; }
  .desktop-nav .nav-brand,
  .desktop-nav:hover .nav-brand,
  .desktop-nav:focus-within .nav-brand { justify-content: flex-start; }
  .desktop-nav .nav-brand strong,
  .desktop-nav:hover .nav-brand strong,
  .desktop-nav:focus-within .nav-brand strong,
  .desktop-nav .nav-label,
  .desktop-nav:hover .nav-label,
  .desktop-nav:focus-within .nav-label {
    opacity: 1;
    width: auto;
    overflow: visible;
  }
  .desktop-nav .nav-btn,
  .desktop-nav:hover .nav-btn,
  .desktop-nav:focus-within .nav-btn {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
  }
  .topbar {
    display: flex;
    padding: 12px 16px;
    border-radius: 22px;
  }
  .objective-card { padding: 10px 14px; }
}

.camp-hub {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, .95fr);
  grid-template-areas: "hero commands";
  gap: 16px;
  padding: 16px;
  min-height: min(680px, calc(100vh - 190px));
  background:
    radial-gradient(ellipse at 18% 72%, rgba(245, 126, 42, .18), transparent 22rem),
    radial-gradient(ellipse at 80% 20%, rgba(146, 78, 40, .12), transparent 24rem),
    linear-gradient(180deg, rgba(22,14,10,.96), rgba(8,5,4,.96));
}
.camp-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 25%, transparent 72%, rgba(0,0,0,.18)),
    radial-gradient(circle at 50% 100%, rgba(255,164,75,.08), transparent 34rem);
  pointer-events: none;
  z-index: -1;
}
.camp-hub-hero {
  grid-area: hero;
  position: relative;
  min-height: 610px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 24% 72%, rgba(255, 132, 36, .36), transparent 18rem),
    radial-gradient(ellipse at 62% 50%, rgba(154, 78, 38, .18), transparent 22rem),
    linear-gradient(180deg, #17100c 0%, #0b0705 58%, #060403 100%);
  border: 1px solid rgba(245,158,61,.16);
  box-shadow: inset 0 0 80px rgba(0,0,0,.60), 0 22px 52px rgba(0,0,0,.28);
}
.camp-hub-copy {
  position: relative;
  z-index: 5;
  max-width: 430px;
  padding: 26px;
}
.camp-hub-copy h1 {
  max-width: 390px;
  margin-bottom: 10px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: .88;
  letter-spacing: -.07em;
  text-shadow: 0 12px 26px rgba(0,0,0,.48);
}
.camp-hub-copy p:not(.eyebrow) {
  max-width: 380px;
  color: #cdbbaa;
  line-height: 1.38;
}
.camp-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.camp-hub-stats span,
.camp-active-row strong {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(245,158,61,.18);
  color: #ffe0b8;
  font-size: 12px;
  font-weight: 900;
}
.camp-diorama {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.camp-diorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(6,4,3,.34) 74%, rgba(6,4,3,.70)),
    linear-gradient(90deg, rgba(6,4,3,.04), transparent 44%, rgba(6,4,3,.34));
  pointer-events: none;
}
.camp-diorama-ground {
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 7%;
  height: 46%;
  border-radius: 52% 48% 19% 21%;
  transform: perspective(800px) rotateX(58deg) skewX(-4deg);
  transform-origin: center bottom;
  background:
    radial-gradient(ellipse at 22% 72%, rgba(255,157,61,.22), transparent 34%),
    radial-gradient(ellipse at 62% 58%, rgba(255,255,255,.045), transparent 32%),
    linear-gradient(155deg, rgba(91,59,38,.48), rgba(20,12,8,.18));
  box-shadow: 0 32px 60px rgba(0,0,0,.28);
}
.camp-diorama img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.66));
  z-index: 3;
  user-select: none;
  pointer-events: none;
}
.diorama-campfire { width: 230px; height: 184px; left: 8%; bottom: 9%; animation: emberPulse 2.8s ease-in-out infinite; }
.diorama-map { width: 132px; height: 130px; left: 33%; bottom: 34%; }
.diorama-shrine { width: 162px; height: 166px; left: 50%; bottom: 44%; }
.diorama-dummy { width: 112px; height: 130px; left: 56%; bottom: 31%; }
.diorama-workbench { width: 164px; height: 142px; right: 9%; bottom: 14%; }
.diorama-chest { width: 142px; height: 122px; right: 7%; bottom: 38%; }
.diorama-survivor {
  position: absolute;
  left: 48%;
  bottom: 25%;
  z-index: 4;
}
.camp-command-panel {
  grid-area: commands;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
}
.camp-active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(245,158,61,.15);
}
.camp-active-row .eyebrow { margin: 0; }
.camp-active-row strong {
  max-width: 64%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.camp-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}
.camp-tile {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(245,158,61,.15);
  background:
    radial-gradient(circle at 22% 28%, rgba(245,158,61,.12), transparent 8rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 16px 34px rgba(0,0,0,.20);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.camp-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(245,158,61,.38);
  background:
    radial-gradient(circle at 22% 28%, rgba(245,158,61,.18), transparent 8rem),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
}
.camp-tile img {
  grid-row: 1 / 3;
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
  padding: 4px;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.46));
}
.camp-tile span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.camp-tile strong {
  font-size: 15px;
  color: var(--text);
  line-height: 1.1;
}
.camp-tile small {
  color: var(--muted);
  line-height: 1.25;
}
.camp-tile em {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(245,158,61,.11);
  border: 1px solid rgba(245,158,61,.18);
  color: #ffd19b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.camp-hub-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(9,6,5,.64);
  border: 1px solid rgba(245,158,61,.15);
}
.camp-hub-actions button {
  min-width: 0;
  min-height: 48px;
}

@media (max-width: 1099px) {
  .camp-hub {
    grid-template-columns: 1fr;
    grid-template-areas: "hero" "commands";
    min-height: 0;
  }
  .camp-hub-hero { min-height: 500px; }
  .camp-command-panel { grid-template-rows: auto auto auto; }
  .camp-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .camp-hub {
    display: block;
    padding: 12px;
    border-radius: 26px;
    overflow: visible;
  }
  .camp-hub-hero {
    min-height: 430px;
    border-radius: 24px;
    margin-bottom: 12px;
  }
  .camp-hub-copy { padding: 18px; }
  .camp-hub-copy h1 {
    font-size: 37px;
    max-width: 300px;
  }
  .camp-hub-copy p:not(.eyebrow) {
    max-width: 310px;
    font-size: 13px;
  }
  .camp-hub-stats { gap: 6px; margin-top: 12px; }
  .camp-hub-stats span { padding: 7px 9px; font-size: 11px; }
  .camp-diorama-ground { left: 4%; right: 2%; bottom: 6%; height: 42%; }
  .diorama-campfire { width: 150px; height: 122px; left: 1%; bottom: 9%; }
  .diorama-map { width: 92px; height: 92px; left: 15%; bottom: 34%; }
  .diorama-shrine { width: 124px; height: 126px; left: 44%; bottom: 38%; }
  .diorama-dummy { width: 78px; height: 96px; left: 44%; bottom: 25%; }
  .diorama-workbench { width: 118px; height: 104px; right: -1%; bottom: 11%; }
  .diorama-chest { width: 104px; height: 90px; right: 1%; bottom: 32%; }
  .diorama-survivor { width: 58px; height: 76px; left: 38%; bottom: 19%; }
  .camp-active-row {
    margin-bottom: 10px;
    align-items: flex-start;
    display: grid;
    gap: 7px;
  }
  .camp-active-row strong {
    max-width: 100%;
    white-space: normal;
    border-radius: 14px;
  }
  .camp-tile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .camp-tile {
    min-height: 88px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    padding: 12px;
    border-radius: 22px;
  }
  .camp-tile img {
    grid-row: auto;
    width: 64px;
    height: 64px;
  }
  .camp-tile small { font-size: 12px; }
  .camp-tile em { align-self: center; justify-self: end; }
  .camp-hub-actions {
    position: static;
    margin-top: 12px;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px;
    border-radius: 22px;
  }
  .camp-hub-actions button {
    min-height: 44px;
    padding: 10px 6px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .camp-hub-hero { min-height: 405px; }
  .camp-hub-copy h1 { font-size: 33px; }
  .camp-hub-copy p:not(.eyebrow) { display: none; }
  .diorama-campfire { width: 138px; height: 112px; }
  .diorama-shrine { width: 112px; height: 116px; left: 44%; }
  .diorama-chest { width: 94px; height: 82px; }
  .camp-tile { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .camp-tile img { width: 58px; height: 58px; }
  .camp-tile em { display: none; }
}
