/* Last War Tips — light theme */
:root {
  --bg: #f6f4ef;
  --bg2: #ffffff;
  --card: #ffffff;
  --line: #e3ded4;
  --text: #2b2a26;
  --muted: #7c776b;
  --accent: #c07b16;
  --accent-soft: #fdf3e0;
  --vs-bg: #fff7e0;
  --vs-line: #ecd9a0;
  --ar-bg: #e9f4f2;
  --ar-line: #c4dfda;
  --star-bg: #fdf0e2;
  --red-bg: #fdeae6;
  --shadow: 0 1px 3px rgba(60, 50, 30, .07), 0 8px 24px -18px rgba(60, 50, 30, .25);
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); white-space: nowrap; }
.mainnav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.mainnav a {
  color: var(--muted); padding: 6px 11px; border-radius: 8px; font-size: .92rem; white-space: nowrap;
}
.mainnav a:hover { color: var(--text); background: var(--accent-soft); }
.mainnav a.active { color: #fff; background: var(--accent); font-weight: 600; }
.clock {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; box-shadow: var(--shadow);
}
.clock:empty { display: none; }
.clock-part { display: flex; align-items: baseline; gap: 6px; }
.clock-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.clock-val { font-weight: 700; font-size: .92rem; color: var(--text); font-variant-numeric: tabular-nums; }
.clock-div { width: 1px; height: 16px; background: var(--line); }
.langswitch { display: flex; }
.langdrop { position: relative; }
.langdrop > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: .82rem; font-weight: 600; color: var(--text);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.langdrop > summary::-webkit-details-marker { display: none; }
.langdrop > summary::before { content: "🌐"; font-size: .85em; }
.langdrop > summary::after { content: "▾"; color: var(--muted); font-size: .8em; transition: transform .15s; }
.langdrop[open] > summary::after { transform: rotate(180deg); }
.langdrop[open] > summary { border-color: var(--accent); }
.langmenu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px -8px rgba(60,50,30,.25);
  min-width: 132px; padding: 6px; display: flex; flex-direction: column;
}
.langmenu a {
  color: var(--text); font-size: .86rem; padding: 8px 12px; border-radius: 9px;
}
.langmenu a:hover { background: var(--accent-soft); }
.langmenu a.active { color: var(--accent); font-weight: 700; }
.langmenu a.active::after { content: "✓"; float: right; }

.container { max-width: 1080px; margin: 0 auto; padding: 28px 16px 60px; }
h1 { font-size: 1.7rem; margin: .2em 0 .6em; }
.hero { text-align: center; padding: 26px 0 6px; }
.hero h1 { font-size: 2.1rem; margin-bottom: .1em; }
.tagline { color: var(--muted); margin-top: 0; }

/* callouts */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0 10px;
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 700; font-size: 1.06rem;
}
.callout p { margin: 0; }
.callout .icon::before { content: attr(data-emoji); }
.block-color-yellow_background { background: var(--vs-bg); border-color: var(--vs-line); }
.block-color-teal_background { background: var(--ar-bg); border-color: var(--ar-line); }
.block-color-orange_background { background: var(--star-bg); border-color: #eed0a8; }
.block-color-red_background { background: var(--red-bg); border-color: #f0c2b5; }

/* toggles */
details.toggle {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
details.toggle > summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
details.toggle > summary::-webkit-details-marker { display: none; }
details.toggle > summary::after {
  content: "▾"; position: absolute; right: 16px; top: 13px;
  color: var(--muted); transition: transform .2s;
}
details.toggle[open] > summary::after { transform: rotate(180deg); }
details.toggle > .indented { padding: 4px 18px 14px; border-top: 1px solid var(--line); }

/* lists */
ul { padding-left: 1.3em; margin: .45em 0; }
ul.to-do-list { list-style: none; padding-left: .1em; }
ul.to-do-list > li.task {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 4px 2px;
}
.task-mark {
  flex: 0 0 8px; width: 8px; height: 8px; margin-top: 10px;
  border-radius: 50%; background: var(--accent);
}

/* columns (index intro) */
.column-list { display: flex; gap: 16px; align-items: flex-start; }
.column { flex: 1; min-width: 0; }
.page-index .column-list { flex-direction: column; gap: 4px; }
.page-index .column { width: 100% !important; }
@media (max-width: 760px) { .column-list { flex-direction: column; } .column { width: 100% !important; } }

/* schedule */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 6px; }
.chip {
  white-space: nowrap; font-size: .85rem; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
section.day { margin-top: 30px; }
.day-title {
  font-size: 1.3rem; margin: 0 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .day-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 10px; font-size: .95rem; letter-spacing: .02em; }
.panel-vs { border-top: 3px solid #e5b93c; }
.panel-ar { border-top: 3px solid #4d9c8f; }

/* today / now markers */
.schedule-note { color: var(--muted); font-size: .88rem; margin: -4px 0 14px; }
.todaytag { margin-left: 10px; font-size: .7em; font-weight: 800; color: #fff; background: #4d9c8f; border-radius: 999px; padding: 3px 12px; vertical-align: 2px; }
.todaytag:empty { display: none; }
section.day.today .panel-ar { border-color: #4d9c8f; box-shadow: 0 0 0 2px rgba(77,156,143,.25), var(--shadow); }
table.artable tr.now td { background: #e2f2ee; }
table.artable tr.now td:first-child { border-radius: 6px 0 0 6px; }
table.artable tr.now td:last-child { border-radius: 0 6px 6px 0; }
.nowtag { margin-left: 8px; font-size: .74rem; font-weight: 800; color: #1f6c5f; background: #c5e6de; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.nowtag:empty { display: none; }
.localtime { font-size: .78rem; color: #b0a892; font-variant-numeric: tabular-nums; }

/* arms race time table */
table.artable { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.artable td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.artable tr:last-child td { border-bottom: none; }
table.artable td.time {
  white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums;
  width: 1%; padding-right: 14px; font-size: .86rem;
}
table.artable tr.vsrow { background: var(--vs-bg); }
table.artable tr.vsrow td:first-child { border-radius: 6px 0 0 6px; }
table.artable tr.vsrow td:last-child { border-radius: 0 6px 6px 0; }
.vsbadge {
  font-size: .72rem; font-weight: 700; color: #8a6207;
  background: #f7e3ac; border-radius: 999px; padding: 1px 8px;
  margin-left: 4px; white-space: nowrap;
}

/* images — one per line, uniform height */
figure.image { display: block; margin: 12px 0; }
figure.image img, .indented > img, li > img {
  display: block; height: 600px; width: auto; max-width: 100%; object-fit: contain;
  object-position: left center;
  border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #fff;
}
@media (max-width: 760px) {
  figure.image img, .indented > img, li > img { height: 380px; max-width: 100%; }
}

/* ---- guides & tips hub ---- */
.page-tips {
  max-width: 1180px;
  padding-top: 52px;
}
.page-tips > h1 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 48px;
  color: #23231f;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.page-tips > h1::after {
  content: "";
  height: 1px;
  background: #d8d2c7;
  flex: 1;
}
.gwrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.gtoc {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  padding: 2px 18px 18px 0;
  font-size: .84rem;
  scrollbar-width: thin;
  scrollbar-color: #d4cec3 transparent;
}
.gtoc-group { margin-bottom: 24px; }
.gtoc-group:last-child { margin-bottom: 0; }
.gtoc-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 9px;
  color: #35342f;
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.gtoc-cat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc, var(--accent));
  flex: 0 0 auto;
}
.gtoc-item {
  display: block;
  margin-left: 2px;
  padding: 5px 0 5px 13px;
  border-left: 1px solid #ddd7cc;
  color: #858075;
  font-weight: 560;
  line-height: 1.42;
  transition: color .14s ease, border-color .14s ease;
}
.gtoc-item:hover { color: #373630; }
.gtoc-item.active {
  color: var(--gc, var(--accent));
  border-left: 2px solid var(--gc, var(--accent));
  font-weight: 750;
}
.gmain { min-width: 0; }
.gcat {
  margin: 0 0 80px;
  scroll-margin-top: 96px;
}
.gcat details { scroll-margin-top: 96px; }
.cathead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 18px 0 17px;
  border-top: 1px solid #cfc8bc;
  border-bottom: 1px solid #e4dfd6;
  color: #292823;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.cathead .cbar {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--gc);
  flex-shrink: 0;
}
.gc-tech   { --gc: #4865a9; --gc-soft: #f0f3fa; --gc-line: #d8dfef; }
.gc-hero   { --gc: #77569c; --gc-soft: #f4f0f7; --gc-line: #e2d8e9; }
.gc-combat { --gc: #a85e31; --gc-soft: #f8f1eb; --gc-line: #ead8ca; }
.gc-train  { --gc: #38796b; --gc-soft: #eef5f3; --gc-line: #d4e4df; }
.gc-etc    { --gc: #746e64; --gc-soft: #f3f1ed; --gc-line: #dfdad1; }
.gitem {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 42px 0 14px;
  color: #34332e;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: -.015em;
  scroll-margin-top: 96px;
}
.cathead + .gitem { margin-top: 0; }
.gitem::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gc);
  flex: 0 0 auto;
  transform: translateY(-1px);
}
.gitem::after {
  content: "";
  height: 1px;
  margin-left: 6px;
  background: #e3ddd3;
  flex: 1;
}
.gsub {
  display: inline-block;
  margin: 12px 0 6px;
  padding: 4px 11px;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  background: transparent;
  color: var(--gc);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .045em;
}
.grow {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid #ebe6de;
}
.grow:last-of-type { border-bottom-color: transparent; }
.gnum {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gc);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.gtxt {
  color: #514f48;
  font-weight: 580;
  line-height: 1.5;
}
.gnote {
  margin: 12px 0 8px;
  padding: 10px 13px;
  border-left: 2px solid var(--gc);
  background: var(--gc-soft);
  color: #6e6a61;
  font-size: .9rem;
  font-weight: 600;
}

/* guide accordions */
.page-tips .stack { display: grid; gap: 8px; }
.page-tips .stack > * + * { margin-top: 0; }
.page-tips details.toggle {
  margin: 0;
  border-color: #ded8ce;
  border-radius: 9px;
  box-shadow: none;
  transition: border-color .15s ease, background .15s ease;
}
.page-tips details.toggle:hover,
.page-tips details.toggle[open] { border-color: #bdb4a6; }
.page-tips details.toggle > summary {
  padding: 14px 44px 14px 16px;
  color: #45433d;
  font-weight: 680;
  line-height: 1.4;
}
.page-tips details.toggle > summary::after {
  content: "+";
  right: 16px;
  top: 50%;
  color: #8a8377;
  font-size: 1.1rem;
  transform: translateY(-50%);
}
.page-tips details.toggle[open] > summary::after {
  content: "−";
  transform: translateY(-50%);
}
.page-tips details.toggle > .indented {
  padding: 12px 18px 18px;
  border-top-color: #e7e2d9;
  background: #fbfaf7;
}
.page-tips details.toggle li { margin: 6px 0; }

/* tall guide images — natural flow */
.treehead { margin-top: 26px; }
.page-tips .treeimg {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  margin: 16px 0 8px;
  border: 1px solid #dcd6cc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px -25px rgba(49,41,29,.42);
}
.page-tips .treeimg.half { max-width: 300px; }
.page-tips .treeimg.duel { max-width: 430px; }
.page-tips figure.image img,
.page-tips .indented > img,
.page-tips li > img {
  height: auto;
  max-height: 640px;
  border-radius: 7px;
}
.page-tips :is(.gtoc-cat, .gtoc-item, .gitem, details.toggle):focus-visible {
  outline: 2px solid rgba(192,123,22,.36);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .page-tips { padding-top: 36px; }
  .page-tips > h1 { margin-bottom: 30px; }
  .gwrap { display: block; }
  .gtoc {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: none;
    margin: 0 0 34px;
    padding: 0 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gtoc-group {
    min-width: max-content;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--gc-line);
    border-radius: 999px;
    background: var(--gc-soft);
  }
  .gtoc-cat { padding: 0; white-space: nowrap; }
  .gtoc-item { display: none; }
}
@media (max-width: 600px) {
  .page-tips { padding: 30px 16px 48px; }
  .page-tips > h1 {
    gap: 14px;
    margin-bottom: 26px;
    font-size: 2.05rem;
  }
  .gcat { margin-bottom: 58px; }
  .cathead { margin-bottom: 24px; padding: 15px 0 14px; }
  .gitem { margin-top: 34px; align-items: flex-start; }
  .gitem::before { margin-top: 7px; }
  .gitem::after { display: none; }
  .grow { gap: 10px; padding: 9px 0; }
  .page-tips .column-list { gap: 8px; }
  .page-tips details.toggle > summary { padding: 13px 40px 13px 14px; }
  .page-tips details.toggle > .indented { padding: 10px 14px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-tips *, .page-tips *::before, .page-tips *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.simple-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
table.simple-table th, table.simple-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
table.simple-table thead td, table.simple-table thead th {
  position: sticky; top: 0; background: var(--accent-soft); font-weight: 700;
}
table.simple-table tr:nth-child(even) { background: #faf8f3; }

.stack > * + * { margin-top: 8px; }
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; border-top: 1px solid var(--line); }

/* notion inline highlights */
.highlight-yellow_background, mark {
  background: #fceebc; color: #7a5a08;
  border-radius: 4px; padding: 0 4px; font-weight: 600;
}

/* time converter tool */
.toolpanel { max-width: 720px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-field { display: flex; flex-direction: column; gap: 5px; }
.tool-field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.tool-field input {
  font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text);
}
.tool-field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.tool-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  margin: 16px 0 8px;
}
.tool-btns { display: flex; gap: 6px; }
.tool-head button {
  font: inherit; font-size: .78rem; cursor: pointer;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px;
}
.tool-head button:hover { border-color: var(--accent); color: var(--accent); }
.tool-head button.ok { border-color: #3fae65; color: #2c7d4c; background: #eaf6ef; }
.tz-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.tzflag {
  font: inherit; font-size: .84rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  transition: all .12s;
}
.tzflag-f { font-size: 1.05em; filter: grayscale(1); opacity: .6; }
.tzflag.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 600; }
.tzflag.on .tzflag-f { filter: none; opacity: 1; }
#tz-out {
  width: 100%; font: inherit; font-size: .9rem; line-height: 1.55;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #faf8f3; color: var(--text); resize: vertical;
}

/* tz tool additions */
.tz-search {
  width: 100%; font: inherit; font-size: .88rem;
  padding: 8px 12px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text);
}
.tz-search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.tz-flags { max-height: 300px; overflow-y: auto; padding: 2px; }
.tool-opts { display: flex; gap: 14px; font-weight: 500; }
.tool-opts label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: .82rem; color: var(--text); }
.tool-opts input { accent-color: var(--accent); width: 15px; height: 15px; }

/* code boss (지명수배) native infographic */
.cb-card { border: 1px solid #ded8ce; border-top: 4px solid var(--cbc); border-radius: 12px;
  background: #fff; padding: 14px 16px 12px; margin: 12px 0; }
.cb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cb-code { background: var(--cbc); color: #fff; font-weight: 800; font-size: .76rem;
  border-radius: 7px; padding: 2px 9px; }
.cb-boss { font-weight: 900; font-size: 1.05rem; }
.cb-btype { color: #858075; font-size: .84rem; font-weight: 600; }
.cb-arrow { color: #a29a89; font-weight: 900; }
.cb-squad { color: var(--cbc); font-weight: 800; }
.cb-rowlbl { font-size: .7rem; font-weight: 800; color: #a29a89; letter-spacing: .09em; margin: 6px 0 2px; }
.cb-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.cb-hero { display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; }
.cb-av { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--cbc);
  overflow: hidden; background: #eceff6; display: block; }
.cb-av img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: scale(1.15); transform-origin: top center; display: block; }
.cb-noimg { display: flex; align-items: center; justify-content: center; font-weight: 900; color: #9aa2b5; }
.cb-name { font-weight: 800; font-size: .84rem; margin-top: 4px; line-height: 1.2; }
.cb-sub { font-size: .7rem; color: #b3541e; font-weight: 700; word-break: keep-all; }
.cb-prio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #faf8f3; border-radius: 9px; padding: 7px 12px; margin-top: 6px; font-size: .84rem; }
.cb-plbl { font-weight: 800; color: #858075; margin-right: 2px; }
.cb-pn { width: 20px; height: 20px; border-radius: 50%; background: var(--cbc); color: #fff;
  font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cb-pname { font-weight: 800; margin-right: 8px; }
.cb-warn { color: #b3402f; font-weight: 700; font-size: .85rem; margin-top: 8px; }

/* waterfall table */
.wf-wrap { margin-top: 12px; max-width: 640px; }
table.wftable td, table.wftable th { text-align: center; }
table.wftable td.wf-hq { font-weight: 800; background: #eef1f8; }
.wf-tier { display: inline-block; min-width: 44px; padding: 1px 10px; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: .8rem; }

/* brand logo + discord button */
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: block; }
.discord-btn {
  display: flex; align-items: center; gap: 7px;
  background: #5865F2; color: #fff !important; font-size: .82rem; font-weight: 700;
  border-radius: 999px; padding: 6px 14px; box-shadow: var(--shadow); white-space: nowrap;
}
.discord-btn:hover { background: #4752c4; }
.discord-btn svg { display: block; }

/* mobile topbar: tidy rows — brand+buttons / clock / scrollable nav */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px 8px; }
  .brand { font-size: 1rem; }
  .discord-btn { margin-left: auto; padding: 5px 12px; font-size: .78rem; }
  .clock { order: 4; margin: 0; flex: 1 0 100%; justify-content: center; }
  .mainnav {
    order: 5; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto;
    gap: 4px; padding-bottom: 2px; scrollbar-width: none;
  }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { font-size: .85rem; padding: 6px 11px; }
}
