/* Wolf & Dog Merge Sanctuary / Coziesta Games — shared stylesheet */

:root{
  --ink:#28402f; --ink-soft:#37543f; --muted:#6a9179; --faint:#8aa697;
  --green:#5cb85c; --green-dk:#3f9142;
  --gold:#ffd166; --gold-dk:#d99a10;
  --pink:#e8709e; --purple:#a855d9; --blue:#4fa3ff;
  --orange:#ff9c3a; --red:#d94141;
  --card:rgba(255,255,255,.9);
  --shadow:0 8px 24px rgba(40,80,50,.12);
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}

body{
  margin:0; color:var(--ink); line-height:1.6; min-height:100vh;
  font-family:'Trebuchet MS','Segoe UI',system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.9), transparent 40%),
    radial-gradient(circle at 88% 100%, rgba(255,255,255,.6), transparent 45%),
    linear-gradient(170deg,#eaf7e2,#d3eec7 42%,#bfe6ae);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
}

a{color:#2f6a44;}
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:3px solid var(--blue);outline-offset:2px;
}

.wrap{max-width:900px;margin:0 auto;padding:18px 14px 70px;}

/* ---------- header ---------- */
.site-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  max-width:900px;margin:0 auto;padding:16px 14px 0;
}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;min-width:0;}
.logo{width:36px;height:36px;flex:0 0 auto;}
.brandname{font-size:16px;font-weight:900;color:#2f5a3c;line-height:1.05;}
.brandname span{
  display:block;font-size:9px;letter-spacing:1.5px;text-transform:uppercase;
  color:#6a9678;font-weight:700;margin-top:2px;
}

/* ---------- nav ---------- */
.site-nav{
  display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;
  max-width:900px;margin:16px auto 20px;padding:0 14px;
}

.site-nav > a,
.site-nav > details{
  flex:0 0 auto;
  display:block;
  margin:0;
}

.nav-link,
.site-nav summary{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  padding:8px 13px;
  border-radius:10px;
  background:linear-gradient(#ffffff,#eef6ea);
  color:#3a6349;
  border:2px solid #d9ecdd;
  box-shadow:0 2px 0 rgba(80,130,90,.28);
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  -webkit-user-select:none;
  transition:transform .12s;
  box-sizing:border-box;
  white-space:nowrap;
  list-style:none;
}

.nav-link:hover,
.site-nav summary:hover{transform:translateY(-1px);}

.nav-link.active,
.nav-dd:has(.nav-dd-panel a.active) summary,
.nav-dd[open] summary{
  background:linear-gradient(#9ee08a,#5cb85c);
  color:#fff;
  border-color:#3f9142;
  box-shadow:0 3px 0 #3f9142;
}

.site-nav summary::-webkit-details-marker{display:none;}
.site-nav summary::marker{content:'';}

.nav-dd{position:relative;}

.nav-dd-panel{
  position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);
  background:#fff;border:2px solid #d9ecdd;border-radius:12px;
  padding:6px;min-width:180px;
  display:flex;flex-direction:column;gap:2px;
  z-index:200;
  box-shadow:0 8px 24px rgba(40,80,50,.2);
}
.nav-dd-panel a{
  text-decoration:none;padding:8px 11px;
  font-size:12px;font-weight:800;color:#3a6349;
  border-radius:8px;text-align:left;white-space:nowrap;
}
.nav-dd-panel a:hover{background:#eef6ea;color:#1f5a3c;}
.nav-dd-panel a.active{
  background:#eefaea;color:#1f5a1f;
  box-shadow:inset 3px 0 0 #5cb85c;

}
/* ---------- Support nav pill: gold, beating ---------- */
/* The general nav rules above make every dropdown turn green on open.
   The Support dropdown should stay gold in every state — so this block
   uses !important on the colour properties to override those. */

.nav-dd-support > summary{
  background:linear-gradient(#ffec9b,#ffc63d) !important;
  color:#5a3d00 !important;
  border-color:rgba(217,154,16,.5) !important;
  font-weight:900;
  padding:8px 16px !important;
  margin-left:6px;
  box-shadow:
    0 2px 0 #d99a10,
    0 3px 8px rgba(217,154,16,.28),
    0 0 0 0 rgba(255,200,61,.55) !important;
  animation:nav-support-beat 2.4s ease-in-out infinite;
}
.nav-dd-support > summary:hover{
  background:linear-gradient(#fff0b0,#ffcc4d) !important;
  animation-play-state:paused;
  transform:translateY(-2px) scale(1.03);
}
.nav-dd-support > summary:active{
  transform:translateY(1px) scale(0.98);
  animation-play-state:paused;
}
.nav-dd-support[open] > summary,
.site-nav .nav-dd-support:has(.nav-dd-panel a.active) > summary{
  background:linear-gradient(#fff0b0,#ffcc4d) !important;
  color:#5a3d00 !important;
  border-color:rgba(217,154,16,.7) !important;
  box-shadow:
    0 3px 0 #d99a10,
    0 5px 12px rgba(217,154,16,.35) !important;
  animation-play-state:paused;
}

/* The heartbeat — two soft thumps per cycle, then a long rest */
@keyframes nav-support-beat{
  0%, 100%{
    transform:scale(1);
    box-shadow:
      0 2px 0 #d99a10,
      0 3px 8px rgba(217,154,16,.28),
      0 0 0 0 rgba(255,200,61,.55);
  }
  20%{
    transform:scale(1.045);
    box-shadow:
      0 2px 0 #d99a10,
      0 4px 10px rgba(217,154,16,.35),
      0 0 0 5px rgba(255,200,61,0);
  }
  40%{ transform:scale(1); }
  60%{
    transform:scale(1.03);
    box-shadow:
      0 2px 0 #d99a10,
      0 3px 9px rgba(217,154,16,.32),
      0 0 0 4px rgba(255,200,61,0);
  }
}

/* Users who prefer reduced motion get a static gold pill */
@media (prefers-reduced-motion: reduce){
  .nav-dd-support > summary{ animation:none; }
}

/* The Support-page link inside the dropdown — top billing */
.nav-dd-support .nav-dd-panel a[href="support.html"]{
  font-weight:900;
  color:#8a5c00;
}
.nav-dd-support .nav-dd-panel a[href="support.html"]:hover{
  background:#fff8e0;
}
/* ---------- end Support nav pill ---------- */
/* ---------- chips (in-page anchors) ---------- */
.chips{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 16px;}
.chips a{
  text-decoration:none;font-size:11px;font-weight:900;padding:5px 10px;
  border-radius:16px;background:#fff;color:#3a6349;border:2px solid #d9ecdd;
}
.chips a:hover{background:#f0fff0;border-color:#5cb85c;color:#1f5a1f;}

/* ---------- panels ---------- */
.panel{
  background:var(--card);border:1px solid rgba(255,255,255,.8);
  border-radius:16px;padding:16px 18px;margin:0 0 14px;
  box-shadow:var(--shadow);
}
.panel h2{
  margin:0 0 12px;font-size:13px;letter-spacing:1.1px;
  text-transform:uppercase;color:#5d8670;
}
.panel h3{
  margin:16px 0 6px;font-size:14px;color:#2f5a3c;letter-spacing:.2px;
}
.panel h3:first-child{margin-top:0;}
.panel p{margin:8px 0;font-size:14px;}
.panel ul,.panel ol{margin:8px 0;padding-left:22px;font-size:14px;}
.panel li{margin:5px 0;}
.panel strong{color:#24502f;}

/* ---------- page title ---------- */
.page-title{max-width:900px;margin:0 auto 14px;padding:0 14px;}
.page-title h1{
  margin:0;font-size:clamp(20px,4vw,28px);color:#2f5a3c;line-height:1.15;
}
.page-title p{
  margin:6px 0 0;font-size:13.5px;color:#5d8670;font-weight:700;
}

/* ---------- buttons ---------- */
.btn{
  border:none;border-radius:10px;padding:9px 14px;font-weight:900;font-size:13px;
  font-family:inherit;background:linear-gradient(#ffffff,#eef6ea);color:#2c5238;
  box-shadow:0 2px 0 rgba(80,130,90,.35);
  text-decoration:none;display:inline-flex;align-items:center;gap:5px;
  cursor:pointer;
}
.btn.primary{background:linear-gradient(#ffe89b,#ffc63d);color:#5a3d00;box-shadow:0 2px 0 #d99a10;}
.btn.gold{background:linear-gradient(#ffe89b,#d99a10);color:#fff;box-shadow:0 2px 0 #a87a0c;}
.btn.purple{background:linear-gradient(#e0c8ff,#b888f0);color:#3a1a6a;}
.btn.pink{background:linear-gradient(#ffd3e4,#ff9dc4);color:#7a1f45;}
.btn.blue{background:linear-gradient(#d5ecff,#9fd0ff);color:#14456e;}
.btn.sm{padding:6px 11px;font-size:12px;}

/* ---------- callouts ---------- */
.tip{
  font-size:13px;font-weight:700;padding:10px 12px;border-radius:8px;margin:10px 0;
  line-height:1.5;
}
.tip.info{color:#1a4a8a;background:#e0f0ff;border-left:4px solid var(--blue);}
.tip.gold{color:#6a4a00;background:#fff8d6;border-left:4px solid var(--gold-dk);}
.tip.danger{color:#8a1f1f;background:#ffe4e4;border-left:4px solid var(--red);}
.tip.good{color:#1f5a1f;background:#eefaea;border-left:4px solid var(--green);}
.tip.purple{color:#5a1a8a;background:#f3e0ff;border-left:4px solid var(--purple);}

.stamp{
  display:inline-block;font-size:10px;font-weight:900;letter-spacing:.7px;
  text-transform:uppercase;padding:3px 9px;border-radius:5px;
  background:#fff3c2;color:#7a5600;transform:rotate(-2deg);
  border:1px dashed #d9b355;
}

.note{
  background:#fffdf2;border:1px dashed #d9c88a;border-radius:10px;
  padding:10px 12px;margin:12px 0;font-size:12.5px;font-weight:700;
  color:#7a5600;line-height:1.5;transform:rotate(-0.6deg);
}
.note b{color:#5a3d00;letter-spacing:.4px;text-transform:uppercase;font-size:10.5px;}

/* ---------- fact / folklore boxes ---------- */
.fact{border-radius:12px;padding:11px 13px;margin:9px 0;font-size:13.5px;font-weight:700;line-height:1.5;}
.fact .mark{font-weight:900;margin-right:5px;}
.fact.no{background:#fff0f0;border-left:4px solid var(--red);color:#7a2020;}
.fact.yes{background:#eefaea;border-left:4px solid var(--green);color:#22502a;}
.fact.mid{background:#fff8d6;border-left:4px solid var(--gold-dk);color:#6a4a00;}

/* ---------- tables ---------- */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:10px 0;}
table.t{
  width:100%;border-collapse:collapse;font-size:13px;background:#fff;
  border-radius:10px;overflow:hidden;min-width:420px;
}
table.t th,table.t td{
  border:1px solid #d9ecdd;padding:7px 9px;text-align:left;vertical-align:top;
}
table.t th{background:#eef6ea;color:#2f5a3c;font-weight:900;font-size:11.5px;
  letter-spacing:.4px;text-transform:uppercase;}
table.t td{font-weight:700;color:var(--ink-soft);}
table.t tr:nth-child(even) td{background:#fafdf8;}

/* ---------- timeline ---------- */
.tl{position:relative;padding-left:26px;margin:12px 0;}
.tl::before{
  content:'';position:absolute;left:7px;top:4px;bottom:4px;
  border-left:3px dotted #b6dcc3;
}
.tl-item{position:relative;margin:0 0 16px;}
.tl-item::before{
  content:'';position:absolute;left:-23px;top:6px;width:13px;height:13px;
  border-radius:50%;background:#fff;border:3px solid var(--green);
}
.tl-date{
  display:inline-block;font-size:10.5px;font-weight:900;letter-spacing:.6px;
  text-transform:uppercase;background:#fff3c2;color:#7a5600;
  padding:2px 8px;border-radius:5px;margin-bottom:4px;
}
.tl-item h4{margin:0 0 3px;font-size:14px;color:#2f5a3c;}
.tl-item p{margin:0;font-size:13px;color:var(--ink-soft);}

.tl.illustrated{padding-left:34px;}
.tl.illustrated .tl-item{padding-left:6px;}
.tl.illustrated .tl-item::before{display:none;}
.tl-icon{
  position:absolute;
  left:-34px;
  top:2px;
  width:26px;
  height:26px;
  background:#fff;
  border:3px solid #5cb85c;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  line-height:1;
  box-shadow:0 2px 4px rgba(40,80,50,.12);
}
.tl.illustrated .tl-item:nth-child(even) .tl-icon{
  border-color:#4fa3ff;
}

/* ---------- grid ---------- */
.grid2{display:grid;grid-template-columns:1fr;gap:10px;}
@media(min-width:640px){.grid2{grid-template-columns:1fr 1fr;}}

.card{
  background:#fff;border:2px solid #d9ecdd;border-radius:12px;padding:12px 14px;
}
.card h4{margin:0 0 5px;font-size:13.5px;color:#2f5a3c;}
.card p{margin:0;font-size:12.5px;color:#5d8670;font-weight:700;line-height:1.5;}
.card .em{font-size:20px;display:block;margin-bottom:4px;}

/* ---------- support tiles ---------- */
.support-tile{
  display:block;text-decoration:none;background:#fff;border:2px solid #d9ecdd;
  border-radius:14px;padding:16px;transition:transform .12s,border-color .12s;
  box-shadow:0 3px 0 rgba(80,130,90,.15);
}
.support-tile:hover{transform:translateY(-2px);border-color:#5cb85c;}
.support-tile .em{font-size:26px;display:block;margin-bottom:6px;}
.support-tile h4{margin:0 0 4px;font-size:14px;color:#2f5a3c;}
.support-tile p{margin:0;font-size:12.5px;color:#5d8670;font-weight:700;line-height:1.45;}

/* ---------- footer ---------- */
.site-foot{
  max-width:900px;margin:24px auto 0;padding:16px 14px 0;
  border-top:2px solid rgba(255,255,255,.7);
  font-size:12px;color:#6a9179;font-weight:700;text-align:center;line-height:1.7;
}
.site-foot a{color:#2f6a44;}

/* ---------- anchors ---------- */
[id]{scroll-margin-top:16px;}

/* ---------- home hero ---------- */
.hero{
  background:linear-gradient(160deg,#fffdf5,#eef8e6);
  border:2px solid #d9ecdd;border-radius:20px;
  padding:28px 20px;text-align:center;margin:0 0 16px;
  box-shadow:var(--shadow);
}
.hero .mark{width:96px;height:96px;margin:0 auto 12px;display:block;}
.hero h1{margin:0 0 8px;font-size:clamp(22px,5vw,34px);color:#2f5a3c;line-height:1.1;}
.hero .tag{
  margin:0 auto 18px;max-width:520px;font-size:14.5px;
  color:#5d8670;font-weight:700;line-height:1.55;
}
.hero .btn.big{padding:14px 26px;font-size:15px;}
.hero-demo{
  display:block;
  max-width:min(260px, 32vh);
  margin:14px auto;
  border-radius:12px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 6px 16px rgba(40,80,50,.15);
}
.hero-demo img{
  display:block;
  width:100%;
  height:auto;
}

.hero-demo{
  display:block;
  max-width:min(340px, 38vh);
  margin:14px auto;
  border-radius:14px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 8px 20px rgba(40,80,50,.15);
}
.hero-demo img{
  display:block;
  width:100%;
  height:auto;
}

/* ---------- court dispatches ---------- */

/* ---------- court dispatches ---------- */
.dispatch{
  background:#fffdf5;border:2px solid #e8dcc0;border-radius:14px;
  padding:16px 18px;margin:0 0 14px;position:relative;
  box-shadow:var(--shadow);
}
.dispatch .ddate{
  display:inline-block;font-size:10px;font-weight:900;letter-spacing:.7px;
  text-transform:uppercase;background:#fff3c2;color:#7a5600;
  padding:3px 9px;border-radius:5px;border:1px dashed #d9b355;
}
.dispatch .dfrom{
  font-size:12px;font-weight:900;color:#8a6a3a;margin:9px 0 4px;letter-spacing:.3px;
}
.dispatch h3{margin:0 0 10px;font-size:18px;color:#2f5a3c;line-height:1.2;}
.dispatch .dbody{
  font-size:14px;line-height:1.65;color:#37543f;font-style:italic;
}
.dispatch .dbody p{margin:0 0 10px;}
.dispatch .dbody p:last-child{margin:0;}
.dispatch .real{
  margin-top:14px;background:#eefaea;border-left:4px solid #5cb85c;
  border-radius:8px;padding:10px 12px;font-size:12.5px;color:#22502a;
  font-weight:700;line-height:1.55;
}
.dispatch .real b{
  display:block;font-size:10px;letter-spacing:.6px;text-transform:uppercase;
  color:#3f9142;margin-bottom:4px;
}
.dispatch .words{
  margin-top:10px;background:#fdf8ec;border:1px dashed #e0d0a8;
  border-radius:8px;padding:9px 12px;font-size:11.5px;
  color:#8a6a3a;font-weight:700;line-height:1.7;
}
.dispatch .words b{
  display:block;font-size:10px;letter-spacing:.6px;text-transform:uppercase;
  color:#7a5600;margin-bottom:5px;
}
.dispatch .words span{display:inline-block;margin-right:14px;}
.dispatch .ingame{
  margin-top:10px;background:#f7fdf9;border:1px dashed #b6dcc3;
  border-radius:8px;padding:8px 11px;font-size:12px;color:#5d8670;font-weight:700;
}
.dispatch .ingame b{color:#2f5a3c;}

/* ---------- court page graphics ---------- */
.scene{
  display:flex;align-items:center;gap:22px;
  margin:14px 0 18px;flex-wrap:wrap;
}
.portrait{flex:0 0 88px;width:88px;}
.portrait svg{
  width:88px;height:106px;display:block;
  border-radius:12px;background:#fdf6e8;padding:3px;
}
.bubble{
  position:relative;flex:0 0 auto;width:240px;max-width:240px;
  background:#fff;border:3px solid #d9ecdd;border-radius:22px;padding:6px;
}
.bubble svg{
  width:100%;height:auto;display:block;border-radius:15px;
}
.thought-dot{
  position:absolute;border-radius:50%;
  background:#fff;border:3px solid #d9ecdd;
}
.thought-dot.d1{width:11px;height:11px;left:-14px;top:40%;}
.thought-dot.d2{width:8px;height:8px;left:-21px;top:48%;}
.thought-dot.d3{width:5px;height:5px;left:-27px;top:56%;}

.wants{
  font-size:12px;font-weight:800;color:#5d8670;
  margin:14px 0 6px;
}
.candidates{
  display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px;
}
.candidate{
  flex:0 0 96px;width:96px;
  background:#fff;border:2px solid #e8dcc0;border-radius:12px;
  padding:8px 4px 6px;text-align:center;
}
.candidate svg{
  width:52px;height:52px;
  display:block;margin:0 auto 4px;
}
.candidate .em{
  display:block;font-size:24px;line-height:1;
  margin:2px auto 4px;
}
.candidate .cname{
  display:block;font-size:10.5px;font-weight:900;
  color:#2f5a3c;line-height:1.15;
}
.candidate .cmeta{
  display:block;font-size:8.5px;color:#8aa697;
  font-weight:800;margin-top:1px;line-height:1.2;
}

/* ---------- pack page extras ---------- */
.almost{
  margin-top:10px;background:#fdf4e8;border-left:4px solid #e0a52a;
  border-radius:8px;padding:10px 12px;font-size:12.5px;color:#7a5028;
  font-weight:700;line-height:1.55;
}
.almost b{
  display:block;font-size:10px;letter-spacing:.6px;text-transform:uppercase;
  color:#a87a2a;margin-bottom:4px;
}

/* ---------- history page graphics ---------- */
.history-hero{
  background:#fffdf5;
  border:2px solid #e8dcc0;
  border-radius:16px;
  padding:10px;
  margin:0 0 16px;
  box-shadow:var(--shadow);
}
.history-hero svg{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}
.hh-caption{
  text-align:center;
  font-size:12px;
  font-weight:800;
  color:#8aa697;
  padding:8px 4px 2px;
}
.history-diagram{
  background:#fffdf5;
  border:2px solid #e8dcc0;
  border-radius:14px;
  padding:12px;
  margin:14px 0;
}
.history-diagram svg{
  width:100%;
  max-width:520px;
  height:auto;
  display:block;
  margin:0 auto;
}
.history-diagram text{
  font-family:'Trebuchet MS','Segoe UI',system-ui,sans-serif;
}

/* ---------- save tool ---------- */
.save-status{
  font-size:12px;
  font-weight:800;
  padding:8px 10px;
  border-radius:8px;
  margin-top:8px;
  min-height:0;
  line-height:1.4;
}
.save-status:empty{display:none;}
.save-status.ok{color:#1f5a1f;background:#eefaea;border-left:3px solid #5cb85c;}
.save-status.bad{color:#8a1f1f;background:#ffe4e4;border-left:3px solid #d94141;}
.save-status.warn{color:#6a4a00;background:#fff8d6;border-left:3px solid #d99a10;}

/* ---------- devlog ---------- */
.devlog-entry{
  background:#fffdf5;
  border:2px solid #e8dcc0;
  border-radius:14px;
  padding:14px 16px;
  margin:0 0 12px;
  box-shadow:var(--shadow);
}
.devlog-date{
  display:inline-block;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  background:#fff3c2;
  color:#7a5600;
  padding:2px 8px;
  border-radius:5px;
  margin-bottom:8px;
  border:1px dashed #d9b355;
}
.devlog-entry h3{
  margin:0 0 8px;
  font-size:16px;
  color:#2f5a3c;
  line-height:1.25;
}
.devlog-entry p{
  margin:0 0 8px;
  font-size:13.5px;
  color:#37543f;
  line-height:1.6;
}
.devlog-entry p:last-child{margin-bottom:0;}
.devlog-entry ul{margin:6px 0;padding-left:20px;}
.devlog-entry li{font-size:13.5px;margin:3px 0;}

/* ---------- guestbook ---------- */
.gb-form{display:grid;gap:10px;margin-top:14px;}
.gb-form label{display:block;}
.gb-form label span{
  display:block;
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#5d8670;
  margin-bottom:4px;
}
.gb-form label span em{
  font-style:normal;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
  color:#8aa697;
}
.gb-form input[type="text"],
.gb-form input[type="email"],
.gb-form textarea{
  width:100%;
  font-family:inherit;
  font-size:14px;
  padding:9px 11px;
  border:2px solid #d9ecdd;
  border-radius:8px;
  background:#f7fdf9;
  color:#28402f;
  resize:vertical;
}
.gb-form input:focus,.gb-form textarea:focus{
  outline:none;
  border-color:#5cb85c;
  background:#fff;
}
.gb-form button{margin-top:4px;justify-self:start;}

.gb-entry{
  background:#fff;
  border:2px solid #d9ecdd;
  border-radius:12px;
  padding:12px 14px;
  margin:10px 0;
}
.gb-meta{
  display:flex;
  gap:8px;
  align-items:baseline;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.gb-name{font-size:13px;font-weight:900;color:#2f5a3c;}
.gb-date{font-size:11px;font-weight:700;color:#8aa697;}
.gb-msg{margin:0;font-size:13.5px;color:#37543f;line-height:1.55;}

/* ---------- breeds ---------- */
.breed-lineage{
  background:#fffdf5;
  border:2px solid #e8dcc0;
  border-radius:14px;
  padding:14px 16px;
  margin:0 0 14px;
  box-shadow:var(--shadow);
}
.bl-head{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.bl-badge{
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  padding:3px 10px;
  border-radius:6px;
}
.bl-job{
  font-size:11px;
  font-weight:800;
  color:#6a9179;
}
.bl-intro{
  font-size:13px;
  color:#5d8670;
  font-weight:700;
  margin:0 0 12px;
  line-height:1.5;
}
.breed-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
@media(min-width:640px){.breed-grid{grid-template-columns:repeat(3,1fr);}}
.breed-card{
  background:#fff;
  border:2px solid #e8dcc0;
  border-radius:10px;
  padding:9px 10px;
}
.breed-card.featured{
  border-color:#5cb85c;
  background:#f7fdf5;
}
.bc-lvl{
  font-size:10px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#a87a2a;
  margin-bottom:2px;
}
.bc-name{
  font-size:14px;
  font-weight:900;
  color:#2f5a3c;
  line-height:1.2;
  margin-bottom:3px;
}
.breed-card.featured .bc-name{color:#1f5a1f;}
.bc-note{
  font-size:11.5px;
  color:#6a9179;
  font-weight:700;
  line-height:1.4;
}

/* ---------- quiz ---------- */
.quiz-q{
  margin:0 0 18px;
  padding:0 0 14px;
  border-bottom:1px dashed #d9ecdd;
}
.quiz-q:last-of-type{border-bottom:none;}
.quiz-q h3{
  margin:0 0 8px;
  font-size:14px;
  color:#2f5a3c;
  letter-spacing:0;
}
.quiz-a{
  display:block;
  padding:7px 10px;
  margin:4px 0;
  border:2px solid #d9ecdd;
  border-radius:8px;
  font-size:13px;
  font-weight:700;
  color:#37543f;
  background:#f7fdf9;
  cursor:pointer;
  transition:border-color .1s,background .1s;
}
.quiz-a:hover{border-color:#9ee08a;background:#fff;}
.quiz-a input{margin-right:7px;}

.quiz-result{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin:12px 0 0;
}
.qr-art{
  flex:0 0 100px;
  width:100px;
}
.qr-art svg{width:100px;height:100px;display:block;}
.qr-text{flex:1;min-width:200px;}
.qr-tag{
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
  color:#8aa697;
}
.quiz-result-panel{background:linear-gradient(160deg,#fffdf5,#eef8e6);}

/* ============================================================
   ===== MARKET / SHOP (in-game Market tab) ===================
   ============================================================ */
.news-box{
  background:linear-gradient(135deg,#fff4d6,#ffe3a8);
  border:2px solid #d9b355;
  border-radius:11px;
  padding:9px;
  margin-bottom:8px;
}
.news-box h4{
  margin:0 0 5px 0;
  font-size:12px;
  color:#5a3d00;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.news-item{
  font-size:11.5px;
  font-weight:800;
  color:#6a4a00;
  line-height:1.4;
  margin:3px 0;
  display:flex;
  gap:6px;
}
.news-item .ni{flex:0 0 auto;}
.news-item.ban{color:#8a1f1f;}

.trend-box{
  background:#fff;
  border:2px solid #d9ecdd;
  border-radius:11px;
  padding:9px;
  margin-bottom:8px;
}
.trend-box h4{
  margin:0 0 5px 0;
  font-size:12px;
  color:#2f5a3c;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.trend-row{display:flex;flex-wrap:wrap;gap:5px;}
.trend-chip{
  font-size:10.5px;
  font-weight:900;
  padding:4px 8px;
  border-radius:14px;
  background:#eef6ea;
  color:#37543f;
}
.trend-chip.up{background:#d9f5d0;color:#1f6a2a;}
.trend-chip.down{background:#ffe0e0;color:#8a2a2a;}

.sell-row{
  display:flex;
  gap:8px;
  align-items:center;
  background:#fff;
  border:2px solid #d9ecdd;
  border-radius:11px;
  padding:7px;
  margin-bottom:6px;
}
.sell-row .thumb{
  width:52px;
  height:52px;
  flex:0 0 auto;
  cursor:pointer;
}
.sell-row .thumb svg{width:100%;height:100%;display:block;}
.sell-row .info{flex:1;min-width:0;}
.sell-row .snm{font-size:12.5px;font-weight:900;color:#2f5a3c;}
.sell-row .ssub{font-size:10.5px;font-weight:800;color:#6a9179;}
.sell-row .price{
  font-size:13px;
  font-weight:900;
  color:#8a5c00;
  white-space:nowrap;
}

.mreq-card{
  background:#fff;
  border:2px solid #d9b355;
  border-radius:11px;
  padding:8px;
  margin-bottom:7px;
}
.mreq-head{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:5px;
}
.mreq-face{
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:8px;
  background:#fff7d6;
  border:2px solid #d9b355;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}
.mreq-name{font-size:12.5px;font-weight:900;color:#5a3d00;}
.mreq-want{
  font-size:10.5px;
  font-weight:800;
  color:#8a6a00;
  line-height:1.35;
}

.wolf-warn{
  background:linear-gradient(135deg,#e8e4ff,#d8d0ff);
  border:2px solid #7a6ad9;
  border-radius:10px;
  padding:8px;
  font-size:11.5px;
  font-weight:800;
  color:#3a2a7a;
  line-height:1.4;
  margin-bottom:8px;
}
/* ============================================================
   ===== end market / shop ====================================
   ============================================================ */

/* --- FIX FOR LARGE POPUPS AND IMAGE SIZING --- */

/* 1. Make sure the popup never gets taller than the screen */
.modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: 92% !important;
}

/* 2. Style the painting frame */
.painting-frame {
    text-align: center;
    margin-bottom: 12px;
}

/* 3. Force the image to stay small enough to fit on screen */
.painting-frame img {
    width: 100% !important;
    max-width: 200px !important; /* Keeps it nice and small */
    max-height: 25vh !important; /* Prevents it from pushing text off-screen */
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    border: 2px solid #d4af37 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
    
    /* The cartoon filter */
    filter: contrast(1.15) saturate(1.5) brightness(1.1) !important;
}

/* 4. Style the title under the painting */
.painting-title {
    font-family: 'Cinzel', serif !important; 
    color: #d4af37 !important; 
    font-size: 0.75rem !important;
    margin-top: 8px !important; 
    letter-spacing: 1px !important; 
    text-transform: uppercase !important;
}
/* ---------- mobile ---------- */
@media(max-width:639px){
  .nav-dd-panel{
    position:static;transform:none;width:100%;margin-top:6px;
    box-shadow:none;border-color:#e0f0e0;background:#f7fdf9;
  }
  .nav-link,.site-nav summary{font-size:11px;padding:7px 10px;}
  .nav-dd-support > summary{padding:7px 12px !important;font-size:11px !important;}
}

@media(max-width:520px){
  .panel{padding:14px 14px;}
  .panel p,.panel ul,.panel ol{font-size:13.5px;}
  table.t{font-size:12px;}
  table.t th,table.t td{padding:6px 7px;}
  .scene{gap:16px;}
  .portrait{flex:0 0 64px;width:64px;}
  .portrait svg{width:64px;height:78px;}
  .bubble{width:190px;max-width:190px;}
  .thought-dot.d3{display:none;}
  .candidate{flex:0 0 84px;width:84px;}
  .candidate svg{width:46px;height:46px;}
  .candidate .em{font-size:20px;}
  .history-diagram svg{max-width:100%;}
  .tl.illustrated{padding-left:30px;}
  .tl-icon{left:-28px;width:22px;height:22px;font-size:11px;border-width:2px;}
  .hero-demo{max-width:min(180px, 26vh);margin:10px auto;border-radius:8px;}
}