/* DABIS fantasy realm UI */

:root {
  --et-bg: #e4e7f4;
  --et-bg-soft: #f4f3fb;
  --et-ink: #26223a;
  --et-ink-muted: #68647d;
  --et-line: #c5c2dc;
  --et-card: #ffffff;
  --et-green: #6550ad;
  --et-green-dark: #493681;
  --et-red: #a33d62;
  --et-maroon: #342451;
  --et-maroon-soft: #59418c;
  --et-gold: #b07a22;
  --et-shadow: rgba(38, 34, 58, 0.15);
  --et-font: "Pretendard", "Malgun Gothic", Arial, sans-serif;
  --et-mono: Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.et-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--et-font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--et-ink);
  background-color: #080b25;
  background-image: linear-gradient(rgba(5, 8, 25, 0.62), rgba(5, 8, 25, 0.86)), url('/rpg/assets/dabis_fantasy_banner.png');
  background-position: center, center top;
  background-size: 100% 100%, cover;
  background-repeat: no-repeat, no-repeat;
}

.et-body a {
  color: #2a5f8f;
}

.et-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  /* 내용이 짧은 페이지에서도 하단 배경을 조금 볼 수 있게 한다. */
  padding: 8px 10px 110px;
}

/* top bar */

.et-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 14px;
  background: var(--et-card);
  border: 1px solid var(--et-line);
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--et-shadow);
}

.et-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--et-maroon);
  text-decoration: none;
}

.et-logo:hover {
  color: var(--et-maroon-soft);
}

.et-topstats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--et-ink-muted);
}

.et-topstats span {
  white-space: nowrap;
}

.et-topstats strong {
  color: var(--et-ink);
  font-weight: 700;
}

.et-topstats .et-stat-gold strong {
  color: var(--et-gold);
}

.et-topstats .et-stat-premium strong {
  color: #7a4db8;
}

/* green nav */

.et-greennav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.et-greennav a {
  display: inline-block;
  padding: 7px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, #4aad58 0%, var(--et-green) 100%);
  border: 1px solid var(--et-green-dark);
  border-radius: 4px;
  box-shadow: 0 1px 2px var(--et-shadow);
}

.et-greennav a:hover {
  background: linear-gradient(180deg, #55b863 0%, #349044 100%);
}

.et-greennav a.is-active {
  background: linear-gradient(180deg, #2f7a3a 0%, #256830 100%);
  border-color: #1f5628;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* layout */

.et-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.et-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* PC에서는 세계 소식과 채팅을 본문 스크롤과 함께 유지한다. */
@media (min-width: 769px) {
  .et-sidebar {
    position: sticky !important;
    top: 10px !important;
    align-self: start;
  }
}

.et-main {
  min-width: 0;
}


/* cards */

.et-card {
  background: var(--et-card);
  border: 1px solid var(--et-line);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px var(--et-shadow);
  margin-bottom: 10px;
}

.et-card:last-child {
  margin-bottom: 0;
}

.et-card h2,
.et-card h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--et-line);
  font-size: 15px;
  color: var(--et-ink);
}

.et-card-title {
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--et-ink);
}

/* log + chat */

.et-log,
.et-chat {
  font-family: var(--et-mono);
  font-size: 11px;
  line-height: 1.65;
  height: 220px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  background: #faf8f3;
  border: 1px solid var(--et-line);
  border-radius: 4px;
}

.et-log.is-locked,
.et-chat.is-locked {
  position: relative;
  user-select: none;
  pointer-events: none;
}

.et-log.is-locked::after,
.et-chat.is-locked::after {
  content: '로그인 후 확인할 수 있습니다';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: rgba(28, 24, 48, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: var(--et-font);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.et-log-row,
.et-chat-row {
  padding: 3px 0;
  border-bottom: 1px dotted #ddd5c4;
  word-break: break-word;
}

.et-log-row:last-child,
.et-chat-row:last-child {
  border-bottom: none;
}

.et-chat-speaker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.et-chat-portrait {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--et-line);
  vertical-align: middle;
  cursor: zoom-in;
}

.et-portrait-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 18, .86);
  cursor: zoom-out;
}
.et-portrait-lightbox img {
  max-width: min(90vw, 720px);
  max-height: 86vh;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
}
.et-portrait-lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.et-portrait-card {
  display: grid;
  gap: 8px;
}

.et-portrait-card h3,
.et-portrait-card p {
  margin: 0;
}

.et-portrait-preview img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--et-line);
  border-radius: 8px;
}

.et-portrait-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.et-portrait-form input[type="file"] {
  min-width: 0;
  max-width: 100%;
  font: inherit;
}

.et-chat-form {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.et-chat-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--et-line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--et-ink);
}

.et-chat-form .et-btn {
  width: 48px;
  min-width: 48px;
  min-height: 24px;
  padding: 0;
  font-size: 8px;
  overflow: hidden;
}

.et-chat-form input[type="text"]:focus {
  outline: 2px solid rgba(61, 154, 74, 0.35);
  border-color: var(--et-green);
}

/* tags */

.et-tag {
  display: inline;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  border-radius: 0;
  vertical-align: baseline;
  background: none;
  color: inherit;
  border: 0;
}

.et-tag-alert {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #e6c878;
}

.et-tag-system {
  background: #e8f4fc;
  color: #1a5276;
  border: 1px solid #a8cce8;
}

.et-tag-combat {
  background: #fde8e8;
  color: var(--et-red);
  border: 1px solid #e8b4b4;
}

/* Match the compact server-log format: plain [tag] text, no badge box. */
.et-tag.et-tag-alert,
.et-tag.et-tag-system,
.et-tag.et-tag-combat {
  background: none;
  color: inherit;
  border: 0;
}

.et-log-row.is-important {
  color: inherit;
  font-weight: inherit;
  background: transparent;
  border-left: 0;
  padding-left: 0;
}

.et-log-row.is-war {
  position: relative;
  font-size: 20px;
  line-height: 1.5;
  color: #b4001b;
  background: linear-gradient(135deg, #fff0f2, #ffe0e5);
  border: 2px solid #e3344f;
  border-left: 8px solid #a90018;
  padding: 12px 14px;
  margin: 7px 0;
  font-weight: 900;
  text-shadow: 0 1px 0 #fff, 0 0 8px rgba(218, 27, 56, .18);
  box-shadow: 0 4px 14px rgba(160, 0, 25, .2);
  animation: et-war-log-pulse 1.8s ease-in-out infinite alternate;
}
.et-log-row.is-upgrade{font-size:15px;line-height:1.5;color:#7a3b00;background:linear-gradient(135deg,#fff7d7,#ffe1a1);border:1px solid #df9b23;border-left:6px solid #c86b00;border-radius:7px;padding:9px 10px;margin:6px 0;font-weight:900;box-shadow:0 3px 10px rgba(185,104,0,.18)}.et-log-row.is-upgrade .et-tag{color:#813d00;background:#ffd778;border-color:#d98d18}@media(max-width:600px){.et-log-row.is-upgrade{font-size:13px;padding:8px;border-left-width:5px}}
@keyframes et-war-log-pulse { from { box-shadow: 0 4px 14px rgba(160,0,25,.16); } to { box-shadow: 0 4px 20px rgba(205,0,35,.38); } }
@media(max-width:600px){.et-log-row.is-war{font-size:16px;padding:9px 10px;border-left-width:6px}}

.et-region-map {
  position: relative;
  margin-top: 12px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--et-line);
  border-radius: 8px;
  background: #f6edcf;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 5px 14px rgba(42, 28, 8, .12);
}

.et-region-route {
  position: absolute;
  top: 86px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: #c6a85d;
  box-shadow: 0 1px 0 #fff8;
}

.et-region-map {
  display: block;
  min-width: 0;
  height: 470px;
  padding: 0;
  background: radial-gradient(circle at 50% 45%, #fff8dc 0, #f1dfaa 70%, #dfc47b 100%);
}

.et-region-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.et-region-route path { fill: none; stroke: #b99545; stroke-width: 1.1; stroke-dasharray: 2 1; vector-effect: non-scaling-stroke; }

.et-region-node {
  position: absolute;
  left: calc(var(--region-x) * 1%);
  top: calc(var(--region-y) * 1%);
  z-index: 1;
  width: 140px;
  transform: translate(-50%, -50%);
  display: flex;
  min-height: 132px;
  align-items: center;
  flex-direction: column;
  padding: 10px 7px 8px;
  border: 1px solid #d5bd7a;
  border-radius: 7px;
  background: linear-gradient(#fff9df, #eadba9);
  color: #513d24;
  text-align: center;
  box-shadow: 0 3px 7px #80662a2b;
}

.et-region-node.is-reachable {
  border-color: #3d9a4a;
  box-shadow: 0 0 0 2px #3d9a4a33, 0 3px 7px #80662a2b;
}

.et-region-node.is-current {
  border-color: #bd6b2b;
  background: linear-gradient(#ffe4a2, #eab96b);
  box-shadow: 0 0 0 3px #bd6b2b55, 0 4px 10px #80662a44;
}

.et-region-node-icon { font-size: 24px; line-height: 1.1; }
.et-region-node strong { margin-top: 5px; font-size: 12px; }
.et-region-node small { min-height: 30px; margin-top: 3px; color: #806b45; font-size: 10px; line-height: 1.35; }
.et-region-node em { margin-top: auto; color: #886128; font-size: 10px; font-style: normal; font-weight: 700; }
.et-region-node.is-reachable em { color: #277334; }
.et-region-node-go { width: auto; min-height: 24px; margin-top: auto; padding: 4px 12px; border: 1px solid #277334; border-radius: 999px; background: #3d9a4a; color: #fff; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }

/* Positions follow the seven-region route used by travel_region. */
.et-region-node:nth-child(2) { --region-x: 12; --region-y: 52; }
.et-region-node:nth-child(3) { --region-x: 28; --region-y: 22; }
.et-region-node:nth-child(4) { --region-x: 45; --region-y: 50; }
.et-region-node:nth-child(5) { --region-x: 62; --region-y: 24; }
.et-region-node:nth-child(6) { --region-x: 82; --region-y: 48; }
.et-region-node:nth-child(7) { --region-x: 92; --region-y: 25; }
.et-region-node:nth-child(8) { --region-x: 68; --region-y: 82; }

@media (max-width: 768px) {
  .et-region-map { height: 430px; }
  .et-region-node { width: 116px; min-height: 116px; padding: 8px 5px; }
  .et-region-node strong { font-size: 11px; }
  .et-region-node small { font-size: 9px; }
}

.et-log-row.is-important .et-tag {
  color: #a11f3d;
  border-color: #d36a80;
  background: #ffe1e7;
}

.et-tag-default {
  background: #f0ebe0;
  color: var(--et-ink-muted);
  border: 1px solid var(--et-line);
}

/* buttons */

.et-btn {
  display: inline-block;
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
  color: var(--et-ink);
}

.et-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #eee 100%);
}

.et-btn-green {
  border-color: var(--et-green-dark);
  background: linear-gradient(180deg, #4aad58 0%, var(--et-green) 100%);
  color: #fff;
}

.et-btn-green:hover {
  background: linear-gradient(180deg, #55b863 0%, #349044 100%);
}

.et-btn-red {
  border-color: #8b2020;
  background: linear-gradient(180deg, #c44 0%, var(--et-red) 100%);
  color: #fff;
}

.et-btn-red:hover {
  background: linear-gradient(180deg, #d05555 0%, #962828 100%);
}

.et-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* flash */

.et-flash {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid var(--et-line);
  background: #f0ebe0;
  color: var(--et-ink);
}

.et-flash-good {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}

.et-flash-bad {
  background: #fdecea;
  border-color: #ef9a9a;
  color: var(--et-red);
}

/* VS battle panel */

.et-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.et-vs-side {
  padding: 10px;
  border: 1px solid var(--et-line);
  border-radius: 4px;
  background: #faf8f3;
}

.et-vs-side.enemy {
  border-color: #d4a0a0;
  background: #fff8f8;
}

.et-vs-side.player {
  border-color: #a0c4d4;
  background: #f5fafd;
}

.et-vs-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--et-maroon);
}

/* bars */

.et-bar {
  height: 10px;
  background: #e0d8c8;
  border: 1px solid var(--et-line);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0;
}

.et-bar i,
.et-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.2s ease;
}

.et-hp i,
.et-hp span {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.et-mp i,
.et-mp span {
  background: linear-gradient(90deg, #2471a3, #3498db);
}

/* facility grid */

.et-facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.et-facility-grid a,
.et-facility-grid .et-facility-item {
  display: block;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--et-ink);
  background: var(--et-bg-soft);
  border: 1px solid var(--et-line);
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.et-facility-grid a:hover {
  background: #fff;
  border-color: var(--et-green);
}

/* modal */

.et-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(59, 47, 36, 0.55);
}

.et-modal-box {
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px 20px;
  background: var(--et-card);
  border: 2px solid var(--et-maroon);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.et-modal-box h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--et-line);
  color: var(--et-maroon);
  font-size: 17px;
}

.et-modal-box label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--et-ink-muted);
}

.et-modal-box input[type="text"],
.et-modal-box select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--et-line);
  border-radius: 4px;
  font: inherit;
}

.et-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.et-modal-actions .et-btn {
  flex: 1;
}

/* utility */

.et-muted {
  color: var(--et-ink-muted);
  font-size: 12px;
}

.et-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: var(--et-ink-muted);
}

/* responsive */

@media (max-width: 768px) {
  .et-layout {
    grid-template-columns: 1fr;
  }

  .et-sidebar {
    order: 2;
  }

  .et-main {
    order: 1;
  }

  .et-log,
  .et-chat {
    height: 160px;
    max-height: 160px;
  }

  .et-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .et-greennav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .et-greennav a {
    flex-shrink: 0;
  }

  .et-vs {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .et-vs-mid {
    padding: 4px 0;
  }

  .et-facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.et-fortune { border-color:#9b7ac4; background:linear-gradient(135deg,#fbf7ff,#eee4fb); margin-bottom:10px; }
.et-fishing-card { overflow:hidden; }.et-fishing-art { position:relative; height:84px; margin:8px -10px 12px; overflow:hidden; background:linear-gradient(#9bd8ee,#dff5ed); border-bottom:3px solid #2c99a8; }.et-fishing-art img{position:absolute;inset:0;width:100%;height:55px;object-fit:cover;opacity:.45}.et-fishing-art span{position:absolute;left:14%;bottom:4px;font-size:42px}.et-fishing-art b{position:absolute;right:18%;bottom:14px;font-size:34px;transform:scaleX(-1)}
.et-fishing-meter{position:relative;height:16px;margin:8px 0;background:linear-gradient(90deg,#d05b57 0 20%,#e1b64b 20% 35%,#4caf66 35% 65%,#e1b64b 65% 80%,#d05b57 80%);border-radius:99px;box-shadow:inset 0 1px 3px #0004}.et-fishing-meter i{position:absolute;top:-3px;height:22px;border:2px solid #fff5b0;border-radius:5px;background:#fff4;box-shadow:0 0 6px #fff}.et-fishing-meter b{position:absolute;top:-6px;width:4px;height:28px;background:#27231d;border-radius:3px;transform:translateX(-2px);box-shadow:0 0 3px #fff}.et-fishing-chance{text-align:center;color:var(--et-ink-muted);font-size:12px}.et-fishing-chance strong{color:var(--et-green-dark);font-size:15px}
.et-stock-row,.et-mail-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--et-line); }.et-stock-row:last-child,.et-mail-row:last-child{border-bottom:0}.et-stock-row small,.et-mail-row span{display:block;color:var(--et-ink-muted);font-size:11px}.et-stock-row form{display:flex;gap:4px;align-items:center}.et-stock-row input{width:70px}.et-stock-row .et-btn{padding:6px 8px;font-size:12px;white-space:nowrap}.et-mail-row{display:block}
@media (max-width: 480px) {
  .et-shell {
    padding: 6px 8px 90px;
  }

  .et-logo {
    font-size: 18px;
  }

  .et-topstats {
    font-size: 11px;
    gap: 4px 10px;
  }

  .et-card {
    padding: 10px 12px;
  }

  .et-chat-form {
    gap: 8px;
  }

  .et-chat-form input[type="text"] {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 16px;
    line-height: 1.3;
  }

  .et-chat-form .et-btn {
    width: 48px;
  }

  .et-facility-grid {
    grid-template-columns: 1fr;
  }
}

.et-btn-maroon {
  background: linear-gradient(180deg, var(--et-maroon-soft), var(--et-maroon));
  border-color: #4a1520;
  color: #fff8f0;
}
.et-modal-birth { text-align: center; }
.et-birth-ornament { color: var(--et-gold); letter-spacing: 0.4em; margin-bottom: 8px; }
.et-birth-line { font-size: 15px; margin: 12px 0; }
.et-tag-birth { background: #f3e6c8; border-color: #c9a45c; color: #6b4e12; }
.et-vs-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 8px;
  align-items: stretch;
}
.et-fighter {
  border: 1px solid var(--et-line);
  background: var(--et-bg-soft);
  border-radius: 8px;
  padding: 10px;
}
.et-fighter.et-foe { background: #f8ecec; border-color: #d4a0a0; }
.et-vs-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--et-maroon);
}
.et-bars { display: grid; gap: 8px; margin: 10px 0; }
.et-bars > div { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; }
.et-statline { margin: 6px 0; font-weight: 600; }
.et-class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.et-class { border: 1px solid var(--et-line); border-radius: 8px; padding: 8px; background: var(--et-bg-soft); }
.et-class:has(input:checked) { border-color: var(--et-green); background: #e8f6ea; }
.et-class input { width: auto; margin-right: 4px; }
.et-class b { display: block; }
.et-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0; }
.et-victory { border-color: #3d9a4a; background: #f0faf1; }
.et-form label { display: block; margin: 8px 0; }
.et-form input[type=text], .et-form select, .et-main select {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--et-line);
  border-radius: 6px;
  background: #fff;
  color: var(--et-ink);
  font: inherit;
}
.et-eyebrow { font-size: 11px; letter-spacing: 0.12em; color: var(--et-gold); font-weight: 700; }
.et-combo-log {
  background: #2a241c;
  color: #f3e6c8;
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.55;
}
.et-combo-log div:first-child { color: #ffe08a; font-weight: 700; margin-bottom: 4px; }
.et-dual-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.et-turn-chip {
  background: #3d2a1c;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 12px;
}
.et-portrait {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #e8dcc4;
  border: 1px solid var(--et-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-weight: 800;
}
.et-portrait-foe { background: #f0d0c8; }
.et-reward-box {
  background: #2b2418;
  color: #f5ecd8;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
.et-reward-gold b { color: #ffd76a; }
.et-reward-tax { margin: 7px 0; padding: 7px 9px; border: 1px solid #87652b; border-radius: 5px; background: #3b2d18; color: #ffe8a8; font-size: 12px; }
.et-reward-tax b { color: #ffd76a; }
.et-reward-abp b { color: #7ec8ff; }
.et-reward-xp b { color: #7dff9a; }
.et-xp-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #444;
  font-size: 11px;
  color: #ddd;
}
.et-growth-title { color: #5a4aa0; font-weight: 700; font-style: italic; }
.et-growth-list { margin: 6px 0 12px; padding-left: 18px; line-height: 1.7; }
.et-growth-list b { color: #2f7a3a; }
.et-victory-banner {
  background: #111;
  color: #ffe066;
  text-align: center;
  font-weight: 800;
  padding: 10px;
  border-radius: 6px;
  margin: 8px 0;
}
.et-next-fight {
  background: #1f1a14;
  color: #f0e6d2;
  border-radius: 8px;
  padding: 12px;
}
.et-next-fight b { color: #ffe066; }
.et-auto-label { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-size: 12px; }
.et-daily-quest { border: 1px solid #d4b56a; background: linear-gradient(135deg, #fffaf0, #f5ecd7); }
.et-daily-quest h3 { margin: 4px 0; color: #4b3820; }
.et-quest-progress { height: 10px; background: #dfd2b8; border-radius: 999px; overflow: hidden; margin: 12px 0 7px; }
.et-quest-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bd8b35, #f2c866); }
.et-quest-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #6f542b; font-size: 13px; margin-bottom: 10px; }
.et-quest-meta span { text-align: right; }
.et-quest-done { display: inline-block; color: #2d7a42; font-weight: 700; font-size: 13px; }
.et-life-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.et-life-grid .et-card { margin:0; }
.et-life-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
.et-life-actions form,.et-craft-row { margin:0; }
.et-resource-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.et-resource-list span { padding:5px 8px; background:var(--et-bg-soft); border:1px solid var(--et-line); border-radius:4px; }
.et-craft-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--et-line); }
.et-craft-row:last-child { border-bottom:0; }.et-craft-row div { min-width:0; }.et-craft-row small { display:block; color:var(--et-ink-muted); }.et-craft-row .et-btn { width:auto; white-space:nowrap; }
.et-encounter { border-color:#b8860b; background:linear-gradient(135deg,#fffdf4,#f5ecd7); }
.et-achievement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.et-achievement { padding:10px; border:1px solid var(--et-line); border-radius:5px; background:var(--et-bg-soft); }
.et-achievement strong,.et-achievement small { display:block; }.et-achievement small { color:var(--et-ink-muted); min-height:36px; }.et-achievement span { display:block; font-size:11px; color:var(--et-ink-muted); margin-bottom:7px; }.et-achievement .et-btn { padding:6px 8px; font-size:12px; }.et-achievement.is-done { border-color:var(--et-green); background:#edf8ed; }
@media (max-width: 480px) {
  .et-life-grid { grid-template-columns:1fr; }
  .et-craft-row .et-btn { padding:7px 9px; }
  .et-achievement-grid { grid-template-columns:1fr; }
  .et-vs-grid { grid-template-columns: 1fr; }
  .et-vs-mark { padding: 4px 0; }
  .et-class-grid { grid-template-columns: 1fr; }
}
.et-active-buffs{border-color:#b9953d;background:linear-gradient(180deg,#fff9e8,#f8efcf)}
.et-hero-banner{min-height:250px;margin:0 0 12px;border:1px solid #7661ad;border-radius:14px;overflow:hidden;background:linear-gradient(90deg,rgba(19,18,48,.92) 0%,rgba(19,18,48,.58) 42%,rgba(19,18,48,.08) 100%),url('/rpg/assets/dabis_fantasy_banner.png') center/cover no-repeat;box-shadow:0 10px 28px rgba(39,28,88,.25);display:flex;align-items:center}.et-hero-copy{max-width:470px;padding:28px;color:#fff}.et-hero-copy h2{margin:5px 0 8px;font-size:clamp(22px,4vw,34px);letter-spacing:-.04em}.et-hero-copy p{color:#e1ddf4;margin:0 0 16px}.et-hero-copy .et-eyebrow{color:#d3b7ff}
.et-age-panel{margin-top:10px;padding:9px 11px;border:1px solid #b8aed8;border-radius:9px;background:linear-gradient(135deg,#f7f4ff,#ebe7fa);color:#574a83}.et-age-panel span,.et-age-panel small{display:block;font-size:11px}.et-age-panel .et-bar{margin:5px 0;height:8px;background:#d8d1ec}.et-age-panel .et-bar i{background:linear-gradient(90deg,#7658c6,#b57ee8)}
.et-atmosphere{margin-top:9px;padding:10px 12px;border-radius:9px;background:linear-gradient(135deg,#26204d,#51418a);color:#fff;display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.et-atmosphere b{font-size:13px}.et-atmosphere span{font-size:11px;color:#e7e1ff}
.et-companion-card{border-color:#8a75c7;background:linear-gradient(135deg,#f9f7ff,#ece8fb)}
.et-buff-row{display:flex;gap:8px;flex-wrap:wrap}.et-buff-pill{display:inline-block;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #d7b66a;color:#694d16;font-size:12px}.et-buff-pill b{margin-left:4px;color:#aa5b18}
.et-castle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.et-castle-card{border:1px solid var(--et-line);border-radius:10px;padding:14px;background:var(--et-bg-soft)}.et-castle-card.is-own{border-color:#4d9a56;background:#eef9ef}.et-castle-card h3{margin:6px 0}.et-castle-card p{font-size:13px}.et-castle-card .et-bar{margin:10px 0}
@media(max-width:700px){.et-castle-grid{grid-template-columns:1fr 1fr}}@media(max-width:460px){.et-castle-grid{grid-template-columns:1fr}}
@media(max-width:560px){.et-hero-banner{min-height:310px;background-position:64% center}.et-hero-copy{padding:20px 17px;align-self:flex-end;background:linear-gradient(180deg,transparent,rgba(19,18,48,.75))}}

/* 밤 배경이 카드 아래에서도 보이도록 공통 패널을 반투명 처리한다. */
.et-topbar,
.et-greennav,
.et-card {
  background-color: rgba(255, 255, 255, 0.74) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* 홈 화면 카드: 배경은 30%만 보이고 글자는 선명하게 유지한다. */
.et-home-page .et-card {
  background: rgba(8, 12, 32, 0.18) !important;
  color: #f7f8ff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.et-home-page .et-card h1,
.et-home-page .et-card h2,
.et-home-page .et-card h3,
.et-home-page .et-card h4,
.et-home-page .et-card strong,
.et-home-page .et-card b,
.et-home-page .et-card li,
.et-home-page .et-card p,
.et-home-page .et-card .et-muted {
  color: #f2f4ff !important;
}
.et-home-page .et-profile {
  background: rgba(8, 12, 32, 0.94) !important;
}
.et-home-page .et-log,
.et-home-page .et-chat {
  background: #faf8f3 !important;
  color: var(--et-ink) !important;
  text-shadow: none;
}
.et-home-page .et-log-row,
.et-home-page .et-chat-row {
  color: var(--et-ink) !important;
  border-bottom-color: #ddd5c4;
}
.et-chat-row strong,
.et-home-page .et-chat-row strong {
  color: #245b3a !important;
  font-weight: 900;
}
.et-body:not(.et-home-page) .et-hero-banner,
.et-body:not(.et-home-page) .et-world-chapter,
.et-body:not(.et-home-page) .et-pixel-roster {
  display: none !important;
}

/* Rounded secondary tabs and facility buttons based on the supplied menu reference. */
.et-greennav {
  gap: 7px;
  margin: 10px 0 14px;
  padding: 7px;
  border: 1px solid #e2c98e;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0, #f5e5bb);
  box-shadow: 0 5px 14px rgba(81, 58, 17, .12);
}
.et-greennav a,
.et-greennav a:hover,
.et-greennav a.is-active {
  padding: 8px 13px;
  border: 1px solid #d7e0ed;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  box-shadow: 0 1px 3px rgba(72, 57, 28, .08);
  font-size: 12px;
  text-shadow: none;
}
.et-greennav a:hover { border-color: #e7b34d; background: #fff8e7; }
.et-greennav a.is-active {
  border-color: #d17a00;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 4px rgba(157, 88, 0, .22);
}
.et-page-hunt .et-facility-grid a,
.et-page-hunt .et-facility-grid a:hover {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3c27b;
  border-radius: 12px;
  background: linear-gradient(#fffdf6, #f8e8b7);
  color: #5b4630;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 3px 0 #e4c57f, 0 5px 10px rgba(94, 70, 24, .1);
  text-decoration: none;
}
.et-page-hunt .et-facility-grid a:hover { background: linear-gradient(#fff8df, #f4d88f); transform: translateY(-1px); }
@media(max-width:768px){
  .et-greennav { overflow-x: auto; flex-wrap: nowrap; }
  .et-greennav a { flex-shrink: 0; }
}

/* 사냥터 탭은 홈의 사냥터 카드와 같은 화면/배경을 사용한다. */
body.et-body.et-page-hunt {
  background-color:#080b25 !important;
  background-image:url('/rpg/assets/rpg-night-campfire.png'),linear-gradient(rgba(5,8,25,.72),rgba(5,8,25,.88)),url('/rpg/assets/dabis_fantasy_banner.png') !important;
  background-size:100% auto,100% 100%,cover !important;
  background-position:center top,center,center bottom !important;
  background-repeat:no-repeat,no-repeat,no-repeat !important;
  background-attachment:scroll !important;
}
body.et-body.et-page-hunt > .et-shell { padding-bottom:110px; }
body.et-body.et-page-hunt .et-main::before { display:none; }
body.et-body.et-page-hunt .et-main > .et-card { background:rgba(255,255,255,.96); border-color:rgba(76,175,80,.55); }
body.et-body.et-page-hunt .et-main > .et-home-hunt-card { border-color:rgba(76,175,80,.55); background:linear-gradient(135deg,rgba(235,250,236,.98),rgba(255,255,255,.96)); color:#253d2a; }
body.et-body.et-page-hunt .et-home-hunt-layout { display:grid; grid-template-columns:minmax(180px,.72fr) minmax(0,1.28fr); gap:18px; align-items:stretch; }
body.et-body.et-page-hunt .et-home-hunt-card h2 { margin:5px 0; }
body.et-body.et-page-hunt .et-home-hunt-card form { margin:12px 0 8px; }
body.et-body.et-page-hunt .et-home-hunt-card .et-btn { width:100%; }
body.et-body.et-page-hunt .et-home-hunt-card .et-home-hunt-select { display:block; margin:12px 0 8px; color:#50705a; font-size:12px; font-weight:800; }
body.et-body.et-page-hunt .et-home-hunt-card .et-home-hunt-select select { display:block; width:100%; margin-top:6px; padding:11px 12px; border:1px solid #b8d8bc; border-radius:10px; background:#fff; color:#253d2a; font:inherit; font-weight:700; }
body.et-body.et-page-hunt .et-home-hunt-status { padding:18px; border-radius:14px; background:linear-gradient(160deg,#143d35,#102b3a); color:#effff8; }
body.et-body.et-page-hunt .et-home-hunt-status h2 { margin:6px 0 18px; color:#fff; }
body.et-body.et-page-hunt .et-home-stat { display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid rgba(255,255,255,.14); font-size:12px; }
body.et-body.et-page-hunt .et-home-stat:last-child { border-bottom:0; }
body.et-body.et-page-hunt .et-home-stat span { color:#a9d1c4; }
body.et-body.et-page-hunt .et-home-stat strong { color:#fff; text-align:right; }
body.et-body.et-page-hunt .et-home-hunt-controls h3 { margin:6px 0 12px; color:#253d2a; }
body.et-body.et-page-hunt .et-home-hunt-controls .et-home-hunt-select { margin:0 0 10px; }
body.et-body.et-page-hunt .et-home-auto-button { margin-top:8px !important; background:linear-gradient(180deg,#55b863,#349044) !important; }
body.et-body.et-page-hunt .et-hunt-buffs { color:#f2f4ff; background:rgba(13,18,43,.94) !important; }
body.et-body.et-page-hunt .et-hunt-buffs h2 { color:#fff !important; }
body.et-body.et-page-hunt .et-hunt-buffs .et-muted { color:#d1d8ec !important; }
.et-hunt-item-buffs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.et-hunt-item-buffs span { padding:8px 10px; border:1px solid rgba(255,255,255,.12); border-radius:8px; background:rgba(0,0,0,.18); color:#d9e1f3; font-size:11px; }
.et-hunt-item-buffs b { color:#fff; }
@media(max-width:600px){.et-hunt-item-buffs{grid-template-columns:1fr}}
body.et-body.et-page-hunt .et-greennav { display:flex !important; }
body.et-body.et-page-hunt .et-greennav .et-home-shortcut { display:inline-flex !important; }
@media(max-width:600px){
  body.et-body.et-page-hunt .et-home-hunt-layout { grid-template-columns:1fr; gap:12px; }
  body.et-body.et-page-hunt .et-home-hunt-status { padding:14px; }
  body.et-body.et-page-hunt .et-home-hunt-controls h3 { font-size:18px; }
}

/* Keep the original green menu palette. */
.et-greennav {
  gap: 4px;
  margin: 8px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.et-greennav a,
.et-greennav a:hover,
.et-greennav a.is-active {
  padding: 7px 12px;
  border-radius: 4px;
  color: #fff;
  border: 1px solid var(--et-green-dark);
  background: linear-gradient(180deg, #4aad58 0%, var(--et-green) 100%);
  box-shadow: 0 1px 2px var(--et-shadow);
  font-size: 12px;
  text-shadow: none;
}
.et-greennav a:hover { background: linear-gradient(180deg, #55b863 0%, #349044 100%); }
.et-greennav a.is-active { background: linear-gradient(180deg, #2f7a3a 0%, #256830 100%); border-color: #1f5628; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); }
.et-global-hunt-timer { display:inline-flex; align-items:center; margin-left:4px; padding:7px 10px; border:1px solid rgba(246,196,83,.75); border-radius:4px; background:rgba(38,29,10,.92); color:#ffe9a8; font-size:12px; font-weight:800; }
.et-global-hunt-timer b { margin-left:4px; color:#fff; }
.et-page-hunt .et-facility-grid a,
.et-page-hunt .et-facility-grid a:hover {
  display: block;
  min-height: 0;
  padding: 12px 10px;
  border: 1px solid var(--et-line);
  border-radius: 4px;
  background: var(--et-bg-soft);
  color: var(--et-ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  transform: none;
}
.et-page-hunt .et-facility-grid a:hover { background: #fff; border-color: var(--et-green); }
.et-home-page .et-greennav { display: none; }
.et-auto-countdown { display: inline-block; margin-left: 8px; color: #8a5b12; font-size: 12px; font-weight: 800; vertical-align: middle; }
.et-auto-running + .et-auto-countdown { color: #b45309; }
#et-auto-hunt, #et-auto-hunt.et-auto-running, .et-home-auto-button, .et-home-auto-button.et-auto-running {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #1f5628;
  border-radius: 8px;
  background: linear-gradient(180deg, #55b863 0%, #349044 100%) !important;
  background-size: 100% 100%;
  color: #fff !important;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
#et-auto-hunt:hover, #et-auto-hunt.et-auto-running:hover, .et-home-auto-button:hover, .et-home-auto-button.et-auto-running:hover {
  background: linear-gradient(180deg, #62c670 0%, #3c9d4b 100%) !important;
}
.et-combat-result { margin: 0 0 9px; padding: 8px 10px; border-radius: 6px; background: #332818; color: #f7e4b3; font-weight: 900; }
.et-combat-result.is-win { color: #b9ffd0; background: #173526; }
.et-turn-log-block { margin: 7px 0; padding: 8px 10px; border-left: 3px solid #b68a35; background: rgba(255,255,255,.055); }
.et-turn-log-block > strong { display: block; margin-bottom: 4px; color: #ffd76a; }
.et-home-duel-status { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(0,1fr); gap: 9px; align-items: center; margin-bottom: 12px; padding: 10px; border: 1px solid #6c5226; border-radius: 7px; background: rgba(0,0,0,.18); }
.et-home-combatant { min-width: 0; }
.et-home-combatant strong, .et-home-combatant span { display: block; color: #ffe8ae; }
.et-home-combatant span { margin: 4px 0 5px; font-size: 11px; }
.et-home-player-image { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; border-radius: 8px; background: #254a57; color: #fff; font-size: 20px; font-weight: 900; overflow: hidden; }
.et-player-portrait { display: block; width: 100%; height: 100%; object-fit: cover; }
.et-portrait .et-player-portrait { border-radius: inherit; }
.et-home-vs { color: #ffd76a; font-size: 17px; font-weight: 900; text-align: center; }
.et-home-foe-status { display: block; margin: 0; padding: 0; border: 0; background: transparent; }
.et-home-foe-image { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #241d16; }
.et-home-foe-image img { width: 62px; height: 62px; object-fit: contain; }
.et-home-foe-status strong, .et-home-foe-status span { display: block; color: #ffe8ae; }
.et-home-foe-status span { margin: 3px 0 5px; font-size: 11px; }
.et-page-home .et-legacy-combat-log, .et-page-home .et-legacy-hunt-launch { display: none !important; }
.et-page-home .et-home-hunt-card, .et-page-home .et-home-combat-log { display: none !important; }
.et-page-hunt .et-main { position: relative; isolation: isolate; }
.et-body.et-page-hunt {
  background-color: #102d31;
  background-image: linear-gradient(rgba(8, 28, 34, .45), rgba(8, 28, 34, .62)), url('/rpg/assets/rpg-hunt-ground.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.et-page-hunt .et-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  min-height: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 35, 43, .78), rgba(17, 45, 45, .7)), url('/rpg/assets/rpg-hunt-ground.png') center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 24px rgba(18, 42, 38, .16);
}
.et-page-hunt .et-main > .et-card { background: rgba(255, 252, 241, .94); border-color: rgba(225, 196, 125, .82); }
.et-page-hunt .et-main > .et-card:first-child { background: linear-gradient(135deg, rgba(22, 61, 65, .94), rgba(49, 89, 73, .9)); color: #fff; }
.et-page-hunt .et-main > .et-card:first-child .et-muted { color: #e8f1df; }
.et-hunt-status-card .et-hunt-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.et-hunt-status-card .et-hunt-status-grid > div { padding: 10px; border-radius: 9px; background: rgba(20, 59, 53, .08); }
.et-hunt-status-card .et-hunt-status-grid span, .et-hunt-status-card .et-hunt-status-grid strong { display: block; }
.et-hunt-status-card .et-hunt-status-grid span { color: var(--et-muted); font-size: 11px; }
.et-hunt-status-card .et-hunt-status-grid strong { margin-top: 4px; color: var(--et-ink); font-size: 14px; }
@media(max-width:600px){.et-hunt-status-card .et-hunt-status-grid{grid-template-columns:1fr}.et-hunt-status-card .et-hunt-status-grid>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.et-hunt-status-card .et-hunt-status-grid strong{margin-top:0}}
.et-greennav .et-home-shortcut { order: -1; background: linear-gradient(180deg, #2f7a3a 0%, #256830 100%); border-color: #1f5628; }
.et-home-facility-title { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); color: #cdd4ef; font-size: 12px; font-weight: 900; }
.et-home-menu-card .et-home-facilities a { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #f2f4ff !important; }
.et-home-menu-card .et-home-facilities a:hover { background: rgba(76,175,80,.28); border-color: #65c878; }

/* Region map: tile-based world map layout inspired by the legacy ETATS map. */
.et-region-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
  height: auto;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #25324a;
  border-radius: 22px;
  background: #0e1728;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .42);
}
.et-region-route { display: none; }
.et-region-node {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  min-height: 74px;
  transform: none;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #35435d;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(142, 196, 255, .35), transparent 45%), linear-gradient(135deg, #24415f 0%, #10243b 100%);
  color: #cfe0ff;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .42);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .92), 0 0 2px #000;
}
.et-region-village-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 74px;
  overflow: hidden;
  padding: 4px 2px;
  border: 1px solid #35435d;
  border-radius: 10px;
  background: linear-gradient(135deg, #31516a 0%, #142a40 100%);
  color: #d8e9ff;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .42);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .92), 0 0 2px #000;
}
.et-region-village-node.is-reachable { border-color: #55b7ff; background: linear-gradient(135deg, rgba(35, 122, 177, .95), rgba(12, 44, 79, .98)); box-shadow: inset 0 0 18px rgba(0, 0, 0, .42), 0 0 0 2px rgba(85, 183, 255, .18); }
.et-region-village-node.is-current { border-color: #ffd166; background: linear-gradient(135deg, rgba(158, 112, 34, .98), rgba(74, 45, 16, .98)); box-shadow: inset 0 0 18px rgba(0, 0, 0, .42), 0 0 0 2px rgba(255, 209, 102, .3); }
.et-region-node:nth-child(2) { grid-column: 4; grid-row: 1; }
.et-region-node:nth-child(3) { grid-column: 2; grid-row: 2; }
.et-region-node:nth-child(4) { grid-column: 4; grid-row: 2; }
.et-region-node:nth-child(5) { grid-column: 6; grid-row: 2; }
.et-region-node:nth-child(6) { grid-column: 3; grid-row: 3; }
.et-region-node:nth-child(7) { grid-column: 5; grid-row: 3; }
.et-region-node:nth-child(8) { grid-column: 4; grid-row: 4; }
.et-region-node.is-reachable { border-color: #55b7ff; background: linear-gradient(135deg, rgba(35, 122, 177, .95), rgba(12, 44, 79, .98)); box-shadow: inset 0 0 22px rgba(0, 0, 0, .42), 0 0 0 2px rgba(85, 183, 255, .22); }
.et-region-node.is-current { border-color: #ffd166; background: linear-gradient(135deg, rgba(158, 112, 34, .98), rgba(74, 45, 16, .98)); box-shadow: inset 0 0 22px rgba(0, 0, 0, .42), 0 0 0 2px rgba(255, 209, 102, .35); }
.et-region-node-icon { font-size: 22px; line-height: 1.1; }
.et-region-node-icon img, .et-region-village-node > img { display:block; width:32px; height:32px; margin:0 auto 2px; border:1px solid rgba(255,255,255,.72); border-radius:6px; object-fit:cover; }
.et-village-mark { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; margin:0 2px 0 4px; vertical-align:middle; border:1px solid rgba(255,255,255,.45); border-radius:5px; background:rgba(0,0,0,.25); }
.et-village-mark img { width:20px; height:20px; border-radius:4px; object-fit:cover; }
.et-rank-badge { display:inline-block; width:28px; height:28px; vertical-align:middle; margin-left:5px; border:1px solid rgba(255,209,102,.65); border-radius:6px; background-image:url('/rpg/uploads/rpg_assets/rank-sprite.png'); background-size:400% 200%; background-repeat:no-repeat; box-shadow:0 1px 3px rgba(0,0,0,.35); }
.et-rank-badge-1 { background-position:0 0; }.et-rank-badge-2 { background-position:33.333% 0; }.et-rank-badge-3 { background-position:66.666% 0; }.et-rank-badge-4 { background-position:100% 0; }.et-rank-badge-5 { background-position:0 100%; }.et-rank-badge-6 { background-position:33.333% 100%; }.et-rank-badge-7 { background-position:66.666% 100%; }.et-rank-badge-8 { background-position:100% 100%; }
.et-region-node strong { margin-top: 4px; color: #fff; font-size: 13px; line-height: 1.2; }
.et-region-node small { min-height: 0; margin-top: 3px; color: #e8f2ff; font-size: 10px; font-weight: 800; line-height: 1.2; }
.et-region-village-node strong { margin-top: 1px; color: #fff; font-size: 11px; line-height: 1.2; }
.et-region-village-node small { min-height: 0; margin-top: 3px; color: #e8f2ff; font-size: 9px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.et-region-node em { margin-top: 5px; color: #ffe29a; font-size: 10px; font-style: normal; font-weight: 800; }
.et-region-node.is-reachable em { color: #bce7ff; }
.et-region-village-node em { margin-top: auto; color: #ffe29a; font-size: 9px; font-style: normal; font-weight: 800; }
.et-region-node-go { width: auto; min-height: 24px; margin-top: 5px; padding: 4px 12px; border: 1px solid #9edbff; border-radius: 999px; background: #217bb2; color: #fff; font: inherit; font-size: 10px; font-weight: 900; cursor: pointer; }
.et-exile-btn { display: inline-flex; align-items: center; gap: 5px; }
.et-exile-mark { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; object-fit: cover; }
.et-current-empire { display:flex; align-items:center; gap:9px; margin:0 0 10px; padding:9px 10px; border:1px solid #d8b45a; border-radius:9px; background:linear-gradient(135deg,#fff8dc,#f8e7a8); color:#4d3910; }
.et-current-empire .et-exile-mark { width:32px; height:32px; flex-basis:32px; }
.et-current-empire strong, .et-current-empire small { display:block; }
.et-current-empire small { margin-top:2px; color:#80652a; font-size:11px; }
.et-castle-image { display:block; width:100%; height:92px; margin:-2px 0 9px; border-radius:10px; object-fit:cover; border:1px solid #c9b99a; }
.et-castle-image-register form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.et-castle-image-register input[type=file] { min-width:0; flex:1; font-size:11px; }
.et-realm-naming-required { border-color: #d39b2a; background: linear-gradient(135deg, rgba(255,244,194,.98), rgba(255,252,232,.95)); }
.et-realm-naming-required h3 { color: #6e4b0a; }
.et-siege-action { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px; border:1px solid var(--et-line); border-radius:9px; background:var(--et-bg-soft); }
.et-siege-action small { display:block; margin-top:3px; color:var(--et-muted); font-size:11px; }
.et-pvp-actions { display:flex; gap:5px; }
@media(max-width:768px){
  .et-region-map { min-width: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 3px; }
  .et-region-node, .et-region-village-node { min-height: 70px; padding: 3px 1px; border-radius: 7px; }
  .et-region-node strong, .et-region-village-node strong { font-size: 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .et-region-node small, .et-region-village-node small { font-size: 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .et-region-node em, .et-region-village-node em { font-size: 7px; }
  .et-region-node-go { min-height: 16px; margin-top: 3px; padding: 2px 5px; font-size: 7px; }
}
.et-combat-equipment{margin-top:8px;padding:7px 8px;border-radius:9px;background:rgba(255,255,255,.72);border:1px solid rgba(80,112,140,.18);font-size:10px;line-height:1.45;text-align:left}.et-combat-equipment b{display:block;color:#36566d;font-size:10px}.et-combat-equipment span,.et-combat-equipment small{display:block;color:#566f80;word-break:keep-all}.et-combat-equipment span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.et-combat-equipment small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.et-combat-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:6px;font-size:10px;color:#557080}.et-combat-stats span{padding:4px 5px;border-radius:7px;background:rgba(228,242,250,.86);border:1px solid rgba(80,112,140,.12)}.et-combat-stats b{color:#1e4661;font-size:11px}
/* 사냥터 본문은 밝은 카드 위에서도 텍스트 대비가 유지되도록 한다. */
.et-page-hunt .et-main > .et-card:not(:first-child){color:#263746}
.et-page-hunt .et-main > .et-card:not(:first-child) h2,
.et-page-hunt .et-main > .et-card:not(:first-child) h3,
.et-page-hunt .et-main > .et-card:not(:first-child) strong{color:#19384b}
.et-page-hunt .et-main > .et-card:not(:first-child) .et-muted{color:#526a78!important}
.et-page-hunt .et-home-hunt-controls h3,.et-page-hunt .et-home-hunt-controls label{color:#213d4b!important}
.et-page-hunt .et-home-duel-status{color:#fff}
.et-page-hunt .et-home-combatant strong,.et-page-hunt .et-home-combatant span,
.et-page-hunt .et-home-foe-status strong,.et-page-hunt .et-home-foe-status span{color:#fff}
.et-page-hunt .et-combat-equipment b{color:#244b63}
.et-page-hunt .et-combat-equipment span,.et-page-hunt .et-combat-equipment small{color:#3e5969}
.et-page-hunt .et-combat-stats{color:#3b5d70}
.et-mail-toast{position:fixed;left:16px;bottom:16px;z-index:9999;display:grid;gap:5px;width:min(330px,calc(100vw - 32px));padding:13px 15px;border:1px solid #d6a73b;border-radius:12px;background:linear-gradient(135deg,#fff9df,#f4d98a);color:#4c3710;box-shadow:0 8px 24px rgba(0,0,0,.28);animation:et-mail-toast-in .25s ease-out}.et-mail-toast strong{font-size:14px}.et-mail-toast span{font-size:13px}.et-mail-toast a{justify-self:start;color:#704d00;font-size:12px;font-weight:800;text-decoration:underline}@keyframes et-mail-toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.et-mail-toast{position:fixed!important;left:16px!important;right:auto!important;bottom:16px!important;top:auto!important;transform:none;pointer-events:auto}

/* 일반 페이지의 공통 탭도 홈의 주요 메뉴와 같은 녹색 버튼 레이아웃을 사용한다. */
.et-greennav.et-home-tabs{display:flex;align-items:flex-start;flex-wrap:wrap;gap:4px;margin:0 0 10px;padding:0 0 10px!important;border:0;border-bottom:1px solid rgba(255,255,255,.12);border-radius:0;background:transparent!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;overflow:visible;min-height:0;height:auto;line-height:1.2}
.et-greennav.et-home-tabs a,.et-greennav.et-home-tabs a:hover,.et-greennav.et-home-tabs a.is-active{display:inline-block;flex:0 0 auto;padding:7px 12px;border:1px solid var(--et-green-dark);border-radius:4px;background:linear-gradient(180deg,#4aad58 0%,var(--et-green) 100%);color:#fff;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;box-shadow:0 1px 2px var(--et-shadow)}

/* Global pixel-RPG presentation layer */
body.et-body{background-color:#0b1421!important;background-image:radial-gradient(circle at 15% 15%,#31506a55 0 2px,transparent 3px),radial-gradient(circle at 76% 24%,#e4c66b55 0 1px,transparent 2px),linear-gradient(180deg,#10243b,#07101b)!important;background-size:34px 34px,47px 47px,100% 100%!important;color:#2e261c}
.et-shell{filter:drop-shadow(0 12px 22px #0005)}.et-main>.et-card{border:3px solid #5a4429!important;border-radius:2px!important;background:linear-gradient(135deg,#fff8df,#e9d5a4)!important;box-shadow:inset 0 0 0 2px #fff6d7,inset 0 0 0 5px #b48b4c,0 6px 0 #2c2117,0 13px 25px #0006!important}.et-card h1,.et-card h2,.et-card h3{letter-spacing:.015em}.et-btn,.et-main button,.et-main input[type=submit]{border:2px solid #2a2015!important;border-radius:2px!important;background:linear-gradient(180deg,#d9aa4e 0 45%,#a96d28 46% 100%)!important;color:#fff9df!important;font-weight:900!important;text-shadow:1px 2px #513015!important;box-shadow:inset 0 1px #fff5bb,0 3px 0 #4f301a!important;transition:transform .08s,filter .08s!important}.et-btn:hover,.et-main button:hover{filter:brightness(1.12);transform:translateY(-1px)}.et-btn:active,.et-main button:active{transform:translateY(2px);box-shadow:inset 0 1px #fff5bb,0 1px 0 #4f301a!important}.et-btn-green{background:linear-gradient(180deg,#6fca74 0 45%,#34733e 46% 100%)!important}.et-btn-maroon{background:linear-gradient(180deg,#d9675c 0 45%,#83342e 46% 100%)!important}.et-main input,.et-main select,.et-main textarea{border:2px solid #725630!important;border-radius:2px!important;background:#fff8df!important;box-shadow:inset 0 2px 0 #d8bf87!important}.et-eyebrow{font-family:monospace;letter-spacing:.13em;font-weight:900}.et-greennav a{border-radius:2px!important;box-shadow:0 3px 0 #14381e!important}
.et-greennav.et-home-tabs a:hover{background:linear-gradient(180deg,#55b863 0%,#349044 100%)}
.et-greennav.et-home-tabs a.is-active{border-color:#1f5628;background:linear-gradient(180deg,#2f7a3a 0%,#256830 100%);box-shadow:inset 0 1px 3px rgba(0,0,0,.2)}
.et-greennav.et-home-tabs .et-home-shortcut{order:0}
@media(max-width:600px){.et-greennav.et-home-tabs{flex-wrap:wrap;overflow:visible;min-height:0;height:auto;padding-bottom:6px}.et-greennav.et-home-tabs a{flex:0 0 auto;text-align:center;line-height:1.2;padding:6px 10px;min-height:0;height:auto}}

/* rpg.php 홈의 주요 메뉴와 완전히 같은 공통 탭 */
.et-global-tabs{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px;width:100%;min-height:0;height:auto;padding:0 0 10px;border-bottom:1px solid rgba(255,255,255,.12);margin:0 0 10px;line-height:normal;box-sizing:border-box}
.et-global-tabs a{display:inline-block;box-sizing:border-box;padding:7px 12px;border:1px solid var(--et-green-dark);border-radius:4px;background:linear-gradient(180deg,#4aad58 0%,var(--et-green) 100%);color:#fff;font-size:12px;font-weight:700;line-height:normal;font-weight:700;text-decoration:none;box-shadow:0 1px 2px var(--et-shadow);white-space:nowrap}
.et-global-tabs a:hover{background:linear-gradient(180deg,#55b863 0%,#349044 100%)}
.et-global-tabs a.is-active{border-color:#1f5628;background:linear-gradient(180deg,#2f7a3a 0%,#256830 100%);box-shadow:inset 0 1px 3px rgba(0,0,0,.2)}
.et-global-tabs .et-home-shortcut{order:0}
.et-home-page .et-global-tabs{display:none}
@media(max-width:600px){.et-global-tabs{flex-wrap:wrap;gap:4px;padding-bottom:10px}.et-global-tabs a{padding:7px 12px;line-height:normal;flex:0 0 auto}}
.et-home-tabs .et-home-empire-tab{display:inline-flex;align-items:center;gap:6px}
.et-home-tabs .et-home-empire-tab img{display:block!important;width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;object-fit:cover;border-radius:3px;border:1px solid rgba(255,255,255,.55)}

/* 불투명 픽셀 게임 버튼: 모든 주요 행동 버튼에 공통 적용 */
.et-btn,.et-btn-green,.et-btn-red,.button{opacity:1!important;border-radius:0!important;border:2px solid #172839!important;box-shadow:inset 2px 2px 0 rgba(255,255,255,.35),inset -2px -2px 0 rgba(0,0,0,.38),3px 3px 0 #0b1520!important;background:#315e86!important;color:#fff!important;text-shadow:1px 1px 0 #142231!important;image-rendering:pixelated}
.et-btn-green{background:#3f884d!important;border-color:#174a29!important}.et-btn-red{background:#a34047!important;border-color:#5a1822!important}.et-btn:hover,.button:hover{filter:brightness(1.14);transform:translate(-1px,-1px);box-shadow:inset 2px 2px 0 rgba(255,255,255,.38),inset -2px -2px 0 rgba(0,0,0,.35),4px 4px 0 #0b1520!important}.et-btn:active,.button:active{transform:translate(2px,2px);box-shadow:inset -1px -1px 0 rgba(255,255,255,.25),inset 2px 2px 0 rgba(0,0,0,.4),1px 1px 0 #0b1520!important}
.et-home-tabs .et-info-tab-icon,.et-home-facilities .et-info-tab-icon{display:block;width:20px!important;height:20px!important;min-width:20px;min-height:20px;max-width:20px;max-height:20px;aspect-ratio:1/1;object-fit:contain;flex:0 0 20px!important;margin-right:5px}
.et-home-tabs a:has(.et-info-tab-icon){display:inline-flex!important;align-items:center}.et-home-tabs .et-info-tab-icon{display:inline-block;width:14px!important;height:14px!important;min-width:14px;min-height:14px;max-width:14px;max-height:14px;flex:0 0 14px!important;vertical-align:middle}
.et-home-facilities a{position:relative!important;text-align:center!important;background-color:#355c7d!important;background-image:url('/rpg/assets/rpg-pixel-facility-button.png')!important;background-size:100% 100%!important;background-repeat:no-repeat!important;border-color:#152a41!important;color:#fff!important;text-shadow:1px 1px 0 #102235!important}
.et-home-facilities a:nth-child(1){background-image:url('/rpg/assets/rpg-facility-inn.png')!important}.et-home-facilities a:nth-child(2){background-image:url('/rpg/assets/rpg-facility-smithy.png')!important}.et-home-facilities a:nth-child(3){background-image:url('/rpg/assets/rpg-facility-job.png')!important}.et-home-facilities a:nth-child(4){background-image:url('/rpg/assets/rpg-facility-guild.png')!important}

/* 최종 공통 HUD: 페이지별 콘텐츠 위에 얹는 픽셀 텍스트 RPG 프레임 */
:root{--et-pixel-navy:#10263a;--et-pixel-navy-dark:#081622;--et-pixel-cream:#fff2c9;--et-pixel-gold:#e4bd60;--et-pixel-wood:#624323}
.et-topbar{position:relative;overflow:hidden;padding:12px 15px!important;border:3px solid #6d4a27!important;border-radius:2px!important;background:linear-gradient(180deg,#274c62 0 24%,#183246 25% 100%)!important;box-shadow:inset 0 0 0 2px #9d7742,inset 0 -4px 0 #0b1b28,0 5px 0 #071019!important;color:#edf4dd}
.et-topbar::after{content:"";position:absolute;inset:3px;background:linear-gradient(90deg,transparent 0 9px,#ffffff0d 9px 11px,transparent 11px 100%);background-size:28px 100%;pointer-events:none}
.et-logo{position:relative;z-index:1;color:#fff1ad!important;font-family:var(--et-mono);font-size:25px!important;font-weight:900!important;letter-spacing:.11em!important;text-shadow:2px 2px 0 #6a3d19,4px 4px 0 #08131c}.et-logo::before{content:"◆";margin-right:6px;color:#71d3da;font-size:.55em;vertical-align:middle}.et-logo:hover{color:#fff9d3!important}
.et-topstats{position:relative;z-index:1;gap:5px 7px!important}.et-topstats span{padding:2px 6px;border:1px solid #7291a0;background:#091c2caa;color:#bcd1d4!important;box-shadow:inset 0 1px #ffffff1c;font-family:var(--et-mono);font-size:11px}.et-topstats strong{color:#fff7d6!important}.et-topstats .et-stat-gold strong{color:#ffd66c!important}.et-topstats .et-stat-premium strong{color:#e7b6ff!important}
.et-greennav{position:relative;gap:5px!important;margin:10px 0!important;padding:7px!important;border:2px solid #3d2c1c!important;border-radius:2px!important;background:#101f2ddd!important;box-shadow:inset 0 0 0 2px #496072,0 4px 0 #060d15!important}.et-greennav a,.et-greennav a:hover,.et-greennav a.is-active{position:relative;padding:7px 11px!important;border:2px solid #163b2a!important;border-radius:1px!important;background:linear-gradient(180deg,#65a95a 0 48%,#2b6540 49% 100%)!important;color:#fffbe5!important;text-shadow:1px 2px #123b27!important;box-shadow:inset 1px 1px #bdf19a,inset -1px -2px #173c2a,0 2px 0 #071c12!important}.et-greennav a.is-active{background:linear-gradient(180deg,#e1b85d 0 48%,#946127 49% 100%)!important;border-color:#60421b!important;text-shadow:1px 2px #563613!important}.et-greennav a:hover{filter:brightness(1.12);transform:translateY(-1px)}
.et-sidebar .et-card{border:3px solid #294455!important;border-radius:1px!important;background:linear-gradient(135deg,#183247,#0c1e2d)!important;color:#d8e7df!important;box-shadow:inset 0 0 0 2px #587083,0 5px 0 #07111a,0 12px 20px #0005!important}.et-sidebar .et-card h2,.et-sidebar .et-card h3,.et-sidebar .et-card-title{border-color:#5f8090!important;color:#ffdda0!important;font-family:var(--et-mono);letter-spacing:.06em;text-shadow:1px 2px #07101b}.et-sidebar .et-muted{color:#b2c3c8!important}.et-log,.et-chat{border:2px solid #48687a!important;border-radius:0!important;background:#091722!important;color:#dce9d7!important;box-shadow:inset 0 0 0 2px #142b39!important}.et-log-row,.et-chat-row{border-bottom-color:#46606d66!important}.et-chat-form input{border:2px solid #5f7c8a!important;border-radius:0!important;background:#edf6de!important}.et-chat-form .et-btn{padding:5px 8px!important}
.et-card:not(.et-sidebar .et-card) h2,.et-card:not(.et-sidebar .et-card) h3{border-bottom:2px solid #b58945!important;color:#3e2b17!important;text-shadow:1px 1px #fff1bd}.et-card:not(.et-sidebar .et-card) h2::before,.et-card:not(.et-sidebar .et-card) h3::before{content:"▸";margin-right:6px;color:#9a6227}.et-flash{border:3px solid #6d4a27!important;border-radius:1px!important;box-shadow:inset 0 0 0 2px #fff4c7,0 4px 0 #342414!important;font-weight:900}.et-foot{color:#e8dfc1!important;text-shadow:1px 2px #000}.et-drop-rate{border:2px solid #496477!important;border-radius:1px!important;background:#0b1d2bdd!important;box-shadow:inset 0 0 0 2px #172e40!important}
@media(max-width:768px){.et-shell{padding:6px 7px 80px!important}.et-topbar{align-items:flex-start;padding:10px!important}.et-logo{font-size:21px!important}.et-topstats{width:100%;gap:4px!important}.et-topstats span{font-size:10px;padding:2px 4px}.et-greennav{gap:4px!important;padding:5px!important}.et-greennav a,.et-greennav a:hover,.et-greennav a.is-active{padding:6px 8px!important;font-size:11px}.et-main>.et-card{padding:11px 10px!important}.et-sidebar .et-card{padding:10px!important}.et-log,.et-chat{height:170px;max-height:170px}.et-btn,.et-main button,.et-main input[type=submit]{min-height:38px}.et-layout{gap:8px!important}}

/* 가독성 우선 조정: 장식용 글자 그림자를 완전히 제거하고 상단 UI 색을 통일한다. */
body.et-body,.et-body *{text-shadow:none!important}
.et-topbar{border-color:#315b69!important;background:linear-gradient(180deg,#244a59 0 24%,#183a49 25% 100%)!important;box-shadow:inset 0 0 0 2px #5f8991,inset 0 -4px 0 #102b38,0 5px 0 #07131a!important}
.et-topbar::after{background:linear-gradient(90deg,transparent 0 9px,#ffffff08 9px 11px,transparent 11px 100%)!important;background-size:28px 100%!important}
.et-logo{color:#fff4c6!important}.et-logo::before{color:#91dce0!important}.et-topstats span{border-color:#527987!important;background:#102d3add!important;color:#c5d9da!important}.et-topstats strong{color:#fff9df!important}
.et-greennav{border-color:#315b69!important;background:#183a49!important;box-shadow:inset 0 0 0 2px #5f8991,0 4px 0 #07131a!important}.et-greennav a,.et-greennav a:hover{border-color:#245363!important;background:linear-gradient(180deg,#3f7a82 0 48%,#285963 49% 100%)!important;box-shadow:inset 1px 1px #9fd2cd,inset -1px -2px #1a414c,0 2px 0 #102c36!important}.et-greennav a.is-active{border-color:#7c6025!important;background:linear-gradient(180deg,#d6b45c 0 48%,#a57b30 49% 100%)!important;box-shadow:inset 1px 1px #fff0a6,inset -1px -2px #76541e,0 2px 0 #4c3514!important}
.et-btn,.et-main button,.et-main input[type=submit]{text-shadow:none!important}.et-card:not(.et-sidebar .et-card) h2,.et-card:not(.et-sidebar .et-card) h3,.et-sidebar .et-card h2,.et-sidebar .et-card h3,.et-sidebar .et-card-title,.et-foot{ text-shadow:none!important}

/* 순백색을 걷어낸 저채도 양피지: 수치와 일반 텍스트의 대비를 우선한다. */
.et-main>.et-card{background:linear-gradient(135deg,#e5d2a3,#d3b97f)!important;color:#302416!important;box-shadow:inset 0 0 0 2px #efdfb7,inset 0 0 0 5px #a77b3e,0 6px 0 #2c2117,0 13px 25px #0006!important}
.et-main>.et-card strong,.et-main>.et-card b,.et-main>.et-card .et-value{color:#261b10!important}.et-main>.et-card .et-muted{color:#665139!important}.et-card:not(.et-sidebar .et-card) h2,.et-card:not(.et-sidebar .et-card) h3{color:#352313!important;border-bottom-color:#9b7137!important}
.et-main input,.et-main select,.et-main textarea{background:#efe0b9!important;color:#292015!important;box-shadow:inset 0 2px 0 #c3a46b!important}.et-main input::placeholder,.et-main textarea::placeholder{color:#735e42!important;opacity:1}

/* 홈의 주요 메뉴도 작은 링크 묶음이 아니라 게임 선택 탭으로 표시한다. */
.et-home-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:0!important;padding:0!important;border:0!important}
.et-home-tabs a,.et-home-tabs a:hover{display:flex!important;min-height:42px;align-items:center;justify-content:center;gap:5px;padding:7px 8px!important;border:2px solid #496b74!important;border-radius:2px!important;background:linear-gradient(180deg,#e7d4a3 0 46%,#ceb273 47% 100%)!important;color:#342616!important;font-size:12px!important;font-weight:900!important;text-decoration:none!important;box-shadow:inset 1px 1px #fff0c8,inset -1px -2px #9b7a43,0 2px 0 #72542d!important;white-space:nowrap!important}
.et-home-tabs a:hover{filter:brightness(1.04)!important;transform:translateY(-1px)}
.et-home-tabs a.is-active{border-color:#275867!important;background:linear-gradient(180deg,#4c8990 0 46%,#2b5c66 47% 100%)!important;color:#fff9dd!important;box-shadow:inset 1px 1px #a9d8d2,inset -1px -2px #1e4853,0 2px 0 #173640!important}
.et-home-tabs .et-home-empire-tab{min-width:0!important}.et-home-tabs .et-home-empire-tab img{border:1px solid #73552b!important;border-radius:1px!important}.et-home-tabs a.is-active .et-info-tab-icon{filter:none!important}
@media(max-width:600px){.et-home-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}.et-home-tabs a,.et-home-tabs a:hover{min-height:40px;padding:6px!important;font-size:11px!important}}

.et-home-facility-title{display:block!important;margin:14px 0 9px!important;padding:7px 9px!important;border:2px solid #496b74!important;border-radius:1px!important;background:#173544!important;color:#ffe6a6!important;font-family:var(--et-mono)!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em!important;text-shadow:none!important}

/* 주요 메뉴는 작고 평평한 탭으로: 두 톤 그라데이션을 사용하지 않는다. */
.et-home-tabs{gap:4px!important}.et-home-tabs a,.et-home-tabs a:hover{min-height:31px!important;padding:5px 8px!important;border:1px solid #81704f!important;border-radius:2px!important;background:#d7c28e!important;color:#342616!important;box-shadow:0 1px 0 #8b744c!important;font-size:11px!important}.et-home-tabs a:hover{background:#e3d2a4!important;transform:none!important;filter:none!important}.et-home-tabs a.is-active{border-color:#285966!important;background:#3c7580!important;color:#fff9dd!important;box-shadow:0 1px 0 #1c4851!important}
@media(max-width:600px){.et-home-tabs a,.et-home-tabs a:hover{min-height:30px!important;padding:5px 6px!important;font-size:10px!important}}

/* 모든 페이지의 상단 메뉴 높이를 홈의 주요 메뉴와 맞춘다. */
.et-greennav a,.et-greennav a:hover,.et-greennav a.is-active{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:31px!important;padding:5px 8px!important;line-height:1!important}
@media(max-width:600px){.et-greennav a,.et-greennav a:hover,.et-greennav a.is-active{min-height:30px!important;padding:5px 6px!important}}
