:root {
  --ink: #e9e5dc;
  --muted: #99968f;
  --bg: #090b0c;
  --panel: #111415;
  --panel-2: #171a1b;
  --line: rgba(255,255,255,.1);
  --gold: #d9a62e;
  --gold-soft: #f0c85c;
  --red: #b84032;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(217,166,46,.1), transparent 27rem),
    linear-gradient(180deg, #0b0d0e 0%, #080a0b 100%);
  font-family: "IBM Plex Sans TC", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
a { color: inherit; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; width: 36rem; height: 36rem; right: -10rem; top: 3rem;
  border: 1px solid rgba(217,166,46,.14); transform: rotate(45deg);
  box-shadow: 0 0 0 4rem rgba(217,166,46,.018), 0 0 0 9rem rgba(217,166,46,.012);
}
.hero::after {
  content: "DROP"; position: absolute; right: -1rem; bottom: -4.5rem;
  font: 900 clamp(8rem, 20vw, 18rem)/1 "Noto Serif TC", serif;
  color: rgba(255,255,255,.018); letter-spacing: -.08em;
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); color: var(--gold-soft); font: 900 17px "Noto Serif TC", serif; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.source-link { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.source-link:hover { color: var(--gold-soft); }
.source-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero-content { position: relative; z-index: 1; padding: 90px 0 82px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold-soft); font-size: 12px; letter-spacing: .22em; }
.eyebrow span { width: 48px; height: 1px; background: var(--gold); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 850px; margin: 25px 0; font: 900 clamp(3rem, 7.5vw, 6rem)/1.08 "Noto Serif TC", serif; letter-spacing: -.055em; }
h1 em { color: var(--gold-soft); font-style: normal; }
.hero-content > p { max-width: 620px; color: #b6b2aa; line-height: 1.8; font-size: 17px; }
.stats { display: flex; gap: 1px; width: fit-content; margin-top: 44px; background: var(--line); border: 1px solid var(--line); }
.stats div { min-width: 145px; padding: 18px 24px; background: rgba(10,12,13,.9); }
.stats strong { display: block; color: var(--gold-soft); font: 700 27px "Noto Serif TC", serif; }
.stats span { color: var(--muted); font-size: 12px; letter-spacing: .12em; }

main { padding-block: 46px 88px; }
.control-panel { padding: 20px; background: linear-gradient(135deg, rgba(25,28,29,.98), rgba(14,17,18,.98)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-box { height: 58px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; padding: 0 18px; background: #090b0c; border: 1px solid rgba(217,166,46,.28); }
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,166,46,.08); }
.search-box svg { width: 21px; fill: none; stroke: var(--gold-soft); stroke-width: 1.6; }
.search-box input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 16px; }
.search-box input::placeholder { color: #666963; }
kbd { padding: 4px 7px; color: #777a74; background: #151819; border: 1px solid var(--line); border-radius: 3px; font-size: 11px; }
.filters { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(200px, .7fr) auto; gap: 12px; margin-top: 14px; }
.filters label { position: relative; }
.filters label span { position: absolute; left: 13px; top: 8px; color: #73766f; font-size: 10px; letter-spacing: .12em; z-index: 1; }
.filters select { width: 100%; height: 56px; padding: 18px 36px 4px 13px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 0; outline: none; }
.filters button { padding: 0 25px; color: #bbb8b0; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.filters button:hover { color: var(--ink); border-color: #777; }

.results-head { display: flex; align-items: end; justify-content: space-between; margin: 56px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.results-head > div { display: flex; align-items: baseline; gap: 15px; }
.section-no { color: var(--gold); font: 700 12px "Noto Serif TC", serif; }
.results-head h2 { margin: 0; font: 700 25px "Noto Serif TC", serif; }
.results-head p { margin: 0; color: var(--muted); font-size: 13px; }

.results { display: grid; gap: 8px; }
.drop-row { display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(180px, .8fr) minmax(260px, 1.2fr) 95px; align-items: center; min-height: 78px; padding: 13px 18px; background: rgba(19,22,23,.82); border: 1px solid rgba(255,255,255,.065); transition: .2s ease; animation: rise .35s both; }
.drop-row:hover { transform: translateX(4px); background: #181b1c; border-color: rgba(217,166,46,.3); }
.drop-row .item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--gold-soft); font-weight: 700; }
.coin-value { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; color: #0b0d0e; background: var(--gold-soft); border: 1px solid #f5d77c; font-size: 11px; line-height: 1; letter-spacing: .03em; white-space: nowrap; box-shadow: 0 0 18px rgba(217,166,46,.12); }
.drop-row .monster { color: #dedad1; }
.drop-row .area { color: var(--muted); font-size: 13px; line-height: 1.6; }
.drop-row .rate { justify-self: end; color: #fff; font: 700 16px "Noto Serif TC", serif; }
.drop-row .rate.high { color: var(--gold-soft); }
.drop-row .rate.none { color: #666; }
.label { display: none; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }
.empty-state span { display: block; color: var(--ink); font: 700 20px "Noto Serif TC", serif; }
.empty-state p { margin: 8px 0 0; }
.notice { display: grid; grid-template-columns: 42px 1fr; gap: 16px; margin-top: 42px; padding: 24px; background: rgba(184,64,50,.07); border: 1px solid rgba(184,64,50,.28); }
.notice-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #e48879; border: 1px solid var(--red); font-weight: 700; }
.notice h2 { margin-bottom: 8px; font: 700 16px "Noto Serif TC", serif; }
.notice p { margin: 0; color: #a7a39c; font-size: 13px; line-height: 1.8; }
footer { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); color: #656861; font-size: 11px; letter-spacing: .15em; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }

@media (max-width: 820px) {
  .hero-content { padding: 64px 0 62px; }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 15px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1 / -1; height: 44px; }
  .drop-row { grid-template-columns: 1fr 110px; gap: 8px 18px; }
  .drop-row .monster, .drop-row .area { grid-column: 1; }
  .drop-row .rate { grid-column: 2; grid-row: 1 / 4; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { height: 64px; }
  .brand { font-size: 14px; }
  .source-link { font-size: 0; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-content > p { font-size: 15px; }
  .stats strong { font-size: 22px; }
  .stats span { font-size: 10px; }
  main { padding-top: 24px; }
  .control-panel { padding: 12px; }
  .search-box { height: 54px; }
  kbd { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters button { grid-column: auto; }
  .results-head { margin-top: 40px; }
  .drop-row { grid-template-columns: 1fr auto; padding: 16px; }
  .drop-row .item { padding-right: 8px; }
  .drop-row .item { align-items: flex-start; flex-direction: column; gap: 7px; }
  .drop-row .area { font-size: 12px; }
  footer { gap: 12px; flex-direction: column; }
}
