/* 바람의나라 : X — 옛 바람 느낌: 종이 · 나무 틀 · 갈색 · 금색 */
:root {
  --paper: #f3e6c4;
  --paper-2: #ead8ab;
  --paper-edge: #d9bf86;
  --ink: #3b2a17;
  --ink-soft: #6b5233;
  --wood: #5a3a1e;
  --wood-dark: #3a240f;
  --wood-light: #8a5a2e;
  --gold: #d4a63a;
  --gold-light: #f1d27a;
  --red: #9c2f22;
  --g1: #6f7d5a;   /* 보통 */
  --g2: #2f6c9c;   /* 희귀 */
  --g3: #b07a12;   /* 전설 */
  --r-atk: #a3392a; --r-heal: #3f8a4c; --r-buff: #6a4c9c; --r-exp: #b88416;
  --radius: 6px;
  --serif: "Nanum Myeongjo", "NanumMyeongjo", "AppleMyungjo", "Batang", "바탕", "Noto Serif KR", serif;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(120,80,30,.03) 0 2px, transparent 2px 5px),
    var(--wood-dark);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--red); }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- 머리 (나무 틀) ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, var(--wood-light), var(--wood) 55%, var(--wood-dark));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 0 var(--wood-dark), 0 4px 12px rgba(0,0,0,.35);
}
.top-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.logo {
  font-family: var(--serif); font-weight: 800; font-size: 22px; text-decoration: none;
  color: var(--gold-light); text-shadow: 0 1px 0 #000, 0 0 6px rgba(212,166,58,.5); white-space: nowrap; letter-spacing: 1px;
}
.logo span { color: #fff3c9; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: #f3e2b5; text-decoration: none; padding: 6px 12px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.nav a:hover { background: rgba(0,0,0,.2); border-color: rgba(241,210,122,.35); }
.nav a.on { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wood-dark); border-color: #fff2bf; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--gold); color: var(--gold-light); font-size: 20px; border-radius: var(--radius); padding: 2px 10px; cursor: pointer; }

/* ---------- 본문 (종이) ---------- */
.wrap {
  flex: 1; width: 100%; max-width: 1100px; margin: 18px auto; padding: 22px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.5), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 3px solid var(--wood);
  outline: 2px solid var(--gold); outline-offset: -8px;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45), inset 0 0 40px rgba(140,95,40,.25);
}
h1, h2, h3 { font-family: var(--serif); color: var(--wood-dark); line-height: 1.3; }
h1 { font-size: 28px; margin: 4px 0 12px; }
h2 { font-size: 22px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--paper-edge); }
h2::before { content: "◆ "; color: var(--gold); }
h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.lead { font-size: 17px; }

/* 첫 화면 */
.hero {
  text-align: center; padding: 34px 16px 28px; margin: -8px -8px 10px;
  background: linear-gradient(180deg, rgba(90,58,30,.08), transparent);
  border-bottom: 2px dashed var(--paper-edge);
}
.hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 4px; }
.hero h1 span { color: var(--red); }
.hero .sub { font-family: var(--serif); font-size: 18px; color: var(--ink-soft); }
.hero-pets { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 20px 0 8px; flex-wrap: wrap; }
.hero-pets img { height: 96px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: rgba(255,250,235,.7); border: 2px solid var(--paper-edge); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 1px 0 #fff inset;
}
a.card { color: inherit; text-decoration: none; transition: transform .1s, border-color .1s; }
a.card:hover { transform: translateY(-2px); border-color: var(--gold); }
.card .big { font-family: var(--serif); font-size: 30px; font-weight: 800; color: var(--red); }
.note { background: #fff6da; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }

/* 거르기 줄 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; }
.search {
  flex: 1 1 220px; padding: 9px 12px; font-size: 16px; border: 2px solid var(--wood-light); border-radius: var(--radius);
  background: #fffaf0; color: var(--ink);
}
.search:focus { outline: 2px solid var(--gold); }
select.sel { padding: 8px; font-size: 15px; border: 2px solid var(--wood-light); border-radius: var(--radius); background: #fffaf0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--wood-light); background: #fbf1d6; color: var(--ink); border-radius: 999px; padding: 5px 12px;
  font-size: 14px; cursor: pointer; font-family: inherit;
}
.chip.on { background: var(--wood); color: var(--gold-light); border-color: var(--wood-dark); }
.count { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }

/* 아이템 */
.item-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.item {
  background: rgba(255,250,235,.75); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 10px 12px;
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%;
}
.item:hover { border-color: var(--gold); }
.ico {
  flex: 0 0 38px; height: 38px; border-radius: 4px; display: grid; place-items: center; font-family: var(--serif);
  font-weight: 800; font-size: 16px; color: var(--gold-light); background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  border: 1px solid var(--gold);
}
.item .nm { font-weight: 700; }
.item .meta { font-size: 13px; color: var(--ink-soft); }
.tag { display: inline-block; font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--paper-edge); margin-right: 3px; }
.tag.lock { background: #f4d9cf; border-color: #d8a796; }
.more { display: block; margin: 16px auto 0; padding: 9px 22px; font: inherit; font-weight: 700; border-radius: var(--radius); border: 2px solid var(--wood); background: var(--gold-light); color: var(--wood-dark); cursor: pointer; }

/* 창(자세히) */
.modal { position: fixed; inset: 0; background: rgba(20,12,4,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.modal-box {
  width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 3px solid var(--wood); outline: 2px solid var(--gold); outline-offset: -7px; border-radius: 4px; padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); position: relative;
}
.modal-x { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--wood); }
table.stat { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
table.stat th, table.stat td { border-bottom: 1px dashed var(--paper-edge); padding: 5px 4px; text-align: left; }
table.stat th { color: var(--ink-soft); font-weight: 600; width: 45%; }

/* 환수 */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pet {
  position: relative; text-align: center; padding: 12px 8px 10px; cursor: pointer; font: inherit; color: inherit;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,.7), rgba(255,250,235,.4) 70%);
  border: 2px solid var(--paper-edge); border-radius: var(--radius);
}
.pet:hover { border-color: var(--gold); }
.pet.g3 { border-color: #d9b45a; box-shadow: 0 0 0 1px #f1d27a inset, 0 0 10px rgba(212,166,58,.35); }
.pet .stage { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.pet .stage img { max-height: 110px; transform-origin: bottom; }
.pet .nm { font-family: var(--serif); font-weight: 800; font-size: 17px; margin-top: 6px; }
.badges { display: flex; justify-content: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.b { font-size: 12px; padding: 1px 8px; border-radius: 999px; color: #fff; font-weight: 700; }
.b.g1 { background: var(--g1); } .b.g2 { background: var(--g2); } .b.g3 { background: linear-gradient(180deg, #e2b23f, var(--g3)); }
.b.atk { background: var(--r-atk); } .b.heal { background: var(--r-heal); } .b.buff { background: var(--r-buff); } .b.exp { background: var(--r-exp); }
.pet-detail { display: flex; gap: 16px; align-items: flex-end; }
.pet-detail .pic { flex: 0 0 110px; height: 150px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse at 50% 85%, rgba(90,58,30,.25), transparent 60%); }
.pet-detail .pic img { max-height: 140px; }
.lv-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.lv-row input { flex: 1; accent-color: var(--wood); }
.lv-row b { font-family: var(--serif); min-width: 64px; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.role-cards .card h3 { display: flex; align-items: center; gap: 6px; }

table.data { width: 100%; border-collapse: collapse; background: rgba(255,250,235,.6); font-size: 15px; }
table.data th, table.data td { border: 1px solid var(--paper-edge); padding: 6px 8px; text-align: center; }
table.data th { background: var(--wood); color: var(--gold-light); font-weight: 600; }
.scroll-x { overflow-x: auto; }

/* 퀘스트 */
.q { border: 1px solid var(--paper-edge); border-radius: var(--radius); background: rgba(255,250,235,.7); margin-bottom: 10px; overflow: hidden; }
.q summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "▾"; margin-left: auto; color: var(--wood-light); }
.q[open] summary::after { content: "▴"; }
.q .lvb { font-family: var(--serif); font-weight: 800; color: var(--red); min-width: 56px; }
.q .qn { font-weight: 700; font-family: var(--serif); font-size: 17px; }
.q .body { padding: 2px 16px 14px; border-top: 1px dashed var(--paper-edge); }
.q .say { font-family: var(--serif); background: #fff8e2; border-left: 3px solid var(--gold); padding: 8px 12px; white-space: pre-line; margin: 10px 0; }
.q dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 0; font-size: 15px; }
.q dt { color: var(--ink-soft); font-weight: 600; }
.q dd { margin: 0; }

/* 공지 */
.news { border: 1px solid var(--paper-edge); background: rgba(255,250,235,.75); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.news .hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.news .t { font-family: var(--serif); font-weight: 800; font-size: 18px; }
.news ul { margin: 8px 0 0; padding-left: 20px; }
.ntag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 4px; color: #fff; background: var(--wood-light); }
.ntag.공지 { background: var(--red); } .ntag.업데이트 { background: var(--g2); } .ntag.점검 { background: #555; } .ntag.준비 { background: var(--g3); }

.foot { text-align: center; color: #d9c79c; font-size: 13px; padding: 4px 16px 24px; }
.foot p { margin: 4px 0; }
.foot .muted { color: #a8946a; }

/* 휴대폰 */
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; padding: 8px 12px; }
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; margin: 4px 0 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .wrap { margin: 8px; width: auto; padding: 16px 14px; outline-offset: -6px; }
  .hero h1 { font-size: 30px; }
  .hero-pets img { height: 64px; }
  h1 { font-size: 24px; }
  .item-list { grid-template-columns: 1fr; }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .pet .stage { height: 96px; }
  .pet .stage img { max-height: 90px; }
}
.b { white-space: nowrap; flex-shrink: 0; }
.role-cards .card h3 { align-items: flex-start; }

/* ===== 첫 화면 (12-03: 옛바도구식 배치) ===== */
.top-inner { flex-wrap: wrap; }
.sitesearch { display: flex; margin-left: auto; }
.sitesearch input { width: 240px; padding: 6px 10px; border: 1px solid var(--gold); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff8e2; font-size: 14px; color: var(--ink); }
.sitesearch button { border: 1px solid var(--gold); background: var(--gold); border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; padding: 0 10px; }
.nav { margin-left: 0; width: 100%; justify-content: center; }
.banner { position: relative; border: 2px solid var(--wood); border-radius: var(--radius); overflow: hidden; margin: -6px -6px 12px;
  background: linear-gradient(120deg, #4a2f17, #7a5126 55%, #3a240f); color: #f7e8c2; }
.slide { display: none; min-height: 120px; padding: 22px 26px 18px; text-decoration: none; color: inherit; flex-direction: column; gap: 6px; }
.slide.on { display: flex; }
.slide b { font-family: var(--serif); font-size: 26px; color: var(--gold-light); }
.slide .muted { color: #e3cf9f; }
.banner-tabs { display: flex; border-top: 1px solid rgba(241,210,122,.4); }
.banner-tabs button { flex: 1; padding: 8px 6px; background: rgba(0,0,0,.35); color: #f3e2b5; border: 0; border-right: 1px solid rgba(241,210,122,.25); cursor: pointer; font: inherit; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-tabs button.on { background: var(--gold); color: var(--wood-dark); font-weight: 700; }
.today { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 10px 4px 14px; border-bottom: 2px dashed var(--paper-edge); margin-bottom: 14px; }
.today .clock, .today .today-siege { display: flex; flex-direction: column; line-height: 1.3; }
.today .clock b { font-family: var(--serif); font-size: 30px; }
.quick { display: flex; gap: 8px; }
.quick a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700;
  border: 1px solid var(--paper-edge); background: rgba(255,250,235,.8); border-radius: var(--radius); padding: 6px 10px; min-width: 62px; }
.quick a span { font-size: 22px; }
.quick a:hover { border-color: var(--gold); }
.box { background: rgba(255,250,235,.72); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.box-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--paper-edge); padding-bottom: 6px; }
.box-hd h3 { margin: 0; font-size: 17px; }
.box-hd .muted, .box-hd .btn-sm { margin-left: auto; }
.btn-sm { font-size: 13px; padding: 2px 10px; border: 1px solid var(--wood-light); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fbf1d6; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shouts { background: linear-gradient(180deg, #2c2f6e, #23265a); border-radius: 4px; padding: 4px 0; }
.shout { display: flex; gap: 10px; padding: 3px 10px; color: #fff; font-size: 14px; border-bottom: 1px dashed rgba(255,255,255,.15); }
.shout:last-child { border-bottom: 0; }
.shout span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shout .t { color: #c8cbff; font-size: 12px; white-space: nowrap; }
.shout.empty { color: #c8cbff; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-bottom: 10px; }
.sc { border: 1px solid var(--paper-edge); background: #fff8e2; border-radius: 4px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 13px; }
.sc b { font-size: 16px; }
.sc.main { background: #e9f0d8; border-color: #b8c79a; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.dot.warrior { background: #c0503d; } .dot.rogue { background: #8a5cc0; } .dot.mage { background: #3f6fb8; } .dot.poet { background: #3f8a4c; } .dot.none { background: #888; }
.chart-hd { display: flex; justify-content: space-between; font-size: 14px; }
.chart { width: 100%; height: auto; background: #fff8e2; border: 1px solid var(--paper-edge); border-radius: 4px; margin: 4px 0 10px; }
.chart .gl { stroke: #e2d2a6; stroke-dasharray: 3 3; }
.chart .ln { fill: none; stroke: var(--wood); stroke-width: 2.2; }
.chart text { font-size: 11px; fill: var(--ink-soft); }
h4.sub { margin: 6px 0; font-size: 14px; }
table.data.small { font-size: 13px; }
table.data.small td, table.data.small th { padding: 3px 5px; }
.wait { background: #fff3d4; border: 1px dashed var(--gold); border-radius: 4px; padding: 10px 12px; color: var(--ink-soft); font-size: 14px; margin: 4px 0; }
.siege-today { margin: 0 0 8px; }
.siege-today .hot { color: var(--red); }
.castles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.castle { display: flex; justify-content: space-between; align-items: center; gap: 6px; border: 1px solid var(--paper-edge); border-radius: 4px; background: #fff8e2; padding: 8px 10px; min-height: 76px; }
.castle > div { display: flex; flex-direction: column; line-height: 1.35; }
.castle b { font-family: var(--serif); font-size: 18px; }
.castle img { height: 60px; }
.castle.today { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-light) inset; }
ul.links { list-style: none; margin: 0; padding: 0; }
ul.links li { border-bottom: 1px dashed var(--paper-edge); }
ul.links li:last-child { border-bottom: 0; }
ul.links a { display: flex; gap: 6px; align-items: center; padding: 6px 2px; color: var(--ink); text-decoration: none; }
ul.links a:hover { color: var(--red); }
ul.links .muted { margin-left: auto; }
a.tag { text-decoration: none; color: var(--ink); padding: 3px 10px; font-size: 14px; }

@media (max-width: 760px) {
  .sitesearch { order: 3; width: 100%; margin: 6px 0 0; }
  .sitesearch input { flex: 1; width: auto; }
  .cols { grid-template-columns: 1fr; }
  .today { grid-template-columns: 1fr 1fr; }
  .quick { grid-column: 1 / -1; justify-content: space-between; }
  .quick a { flex: 1; }
  .slide b { font-size: 21px; }
  .banner-tabs button { font-size: 12px; }
}

/* ===== 12-03 b: 우리 식 배치(두루마리 첫머리 · 사신 방위 공성 · 종이 세계후) ===== */
.hero2 { display: grid; grid-template-columns: 1fr 200px; gap: 16px; margin: -6px -6px 16px; padding: 18px 20px;
  border: 2px solid var(--wood); border-radius: 10px 10px 4px 4px;
  background: radial-gradient(ellipse at 80% 40%, rgba(212,166,58,.25), transparent 60%), linear-gradient(180deg, #f8edd0, #ecd9a8);
  box-shadow: inset 0 6px 0 var(--wood-light), inset 0 -6px 0 var(--wood-light); }
.hero2-title { font-family: var(--serif); font-size: 32px; font-weight: 800; color: var(--wood-dark); letter-spacing: 2px; }
.hero2-title span { color: var(--red); }
.hero2-row { display: flex; gap: 28px; margin: 8px 0; }
.hero2-row .clock, .hero2-row .today-siege { display: flex; flex-direction: column; line-height: 1.3; }
.hero2-row .clock b { font-family: var(--serif); font-size: 28px; }
.hero2-row .today-siege b { font-size: 18px; }
.hero2-news { display: inline-block; margin: 4px 0 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.hero2-news:hover { color: var(--red); }
.quick2 { display: flex; flex-wrap: wrap; gap: 6px; }
.quick2 a { text-decoration: none; color: var(--gold-light); background: var(--wood); border: 1px solid var(--gold); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; }
.quick2 a:hover { background: var(--wood-dark); }
.pet-of-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; text-decoration: none; color: var(--ink);
  border: 2px solid var(--gold); border-radius: 8px; padding: 10px; background: radial-gradient(ellipse at 50% 75%, rgba(255,255,255,.8), rgba(255,248,226,.5) 70%); }
.pet-of-day img { height: 110px; }
.pet-of-day b { font-family: var(--serif); font-size: 20px; }
.live-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.castles.cross { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: ". n ." "w c e" ". s ."; gap: 6px; }
.castles.cross .pos-n { grid-area: n; } .castles.cross .pos-e { grid-area: e; } .castles.cross .pos-s { grid-area: s; } .castles.cross .pos-w { grid-area: w; }
.castles.cross .center { grid-area: c; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--gold); border-radius: 50%; aspect-ratio: 1; font-family: var(--serif); color: var(--ink-soft); }
.castles.cross .castle { flex-direction: column-reverse; justify-content: center; text-align: center; padding: 6px; min-height: 0; }
.castles.cross .castle > div { align-items: center; }
.castles.cross .castle img { height: 46px; }
.castles.cross .castle b { font-size: 15px; }
.castles.cross .castle .muted { font-size: 12px; }
.shouts2 { background: repeating-linear-gradient(180deg, #fff8e2 0 27px, #ead8ab 27px 28px); border: 1px solid var(--paper-edge); border-radius: 4px; padding: 0 8px; max-height: 260px; overflow: auto; }
.shouts2 .shout { color: var(--ink); border: 0; padding: 4px 0; font-size: 14px; line-height: 20px; }
.shouts2 .shout b { color: var(--red); white-space: nowrap; }
.shouts2 .shout span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shouts2 .shout .t { color: var(--ink-soft); }
.shouts2 .shout.empty { color: var(--ink-soft); }
.dex-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dex-strip a { text-align: center; text-decoration: none; color: var(--ink); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 10px 4px; background: rgba(255,250,235,.8); font-weight: 700; }
.dex-strip a b { display: block; font-family: var(--serif); font-size: 26px; color: var(--red); }
.dex-strip a:hover { border-color: var(--gold); }
@media (max-width: 760px) {
  .hero2 { grid-template-columns: 1fr; }
  .pet-of-day { flex-direction: row; justify-content: flex-start; }
  .pet-of-day img { height: 64px; }
  .live-grid { grid-template-columns: 1fr; }
  .dex-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 12-04: 아이템 그림 · 마법 도감 ===== */
.ico.has-img { background: #fff8e2; border-color: var(--paper-edge); overflow: hidden; }
.ico.has-img img { max-width: 34px; max-height: 34px; }
.item-h { display: flex; align-items: center; gap: 10px; }
.item-h img { width: 48px; height: 48px; object-fit: contain; background: #fff8e2; border: 1px solid var(--paper-edge); border-radius: 4px; }
.spell-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.spell { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,250,235,.75); border: 1px solid var(--paper-edge); border-radius: var(--radius); padding: 10px 12px; }
.spell .fx { flex: 0 0 72px; height: 72px; display: grid; place-items: center; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle, #3a2a18, var(--wood-dark)); border: 1px solid var(--gold); }
.spell .fx img { max-width: 70px; max-height: 70px; }
.spell .nofx { font-size: 11px; color: var(--gold-light); text-align: center; padding: 4px; }
.spell .nm { font-family: var(--serif); font-weight: 800; font-size: 17px; }
.spell .meta { font-size: 13px; color: var(--ink-soft); }
.spell .desc { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
@media (max-width: 760px) { .spell-list { grid-template-columns: 1fr; } }

/* ===== 12-04: 디스코드 공지 ===== */
.news.dc .dc-body h3, .news.dc .dc-body h4, .news.dc .dc-body h5 { margin: 12px 0 4px; }
.news.dc .dc-body p { margin: 2px 0; }
.news.dc .dc-body blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--paper-edge); color: var(--ink-soft); }
.news.dc .dc-body code { background: var(--paper-2); padding: 0 4px; border-radius: 3px; }
.dc-box { white-space: pre-wrap; font-family: var(--sans); background: #fff8e2; border: 1px solid var(--paper-edge); border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 4px; margin: 6px 0; }
.dc-embed { border-left: 4px solid var(--wood-light); background: rgba(255,250,235,.7); padding: 8px 12px; margin: 8px 0; border-radius: 4px; }
.dc-embed img, .dc-img { display: block; max-width: 100%; margin-top: 8px; border-radius: 4px; }
.dc-from { font-size: 12px; margin-top: 8px; }
.news.focus { outline: 2px solid var(--gold); }
.ntag.점검 { background: #f4d9cf; }
