/* IMPOSSIBLE REALMS - the guide site (docs/web/guide1). One dark look, the game's own navy and gold; phone first. */
:root { color-scheme: dark; --bg: #0b0f1f; --panel: #131a33; --panel2: #1a2344; --line: #2c3a6e; --gold: #f4c542; --gold2: #b8891f; --ink: #e9ecf8; --mute: #9aa4c7; --ok: #4ade80; --bad: #f87171; --c1: #9aa4c7; --c2: #60a5fa; --c3: #c084fc; --c4: #fbbf24; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(1200px 600px at 50% -200px, #1b2550 0, transparent 70%) no-repeat; color: var(--ink); font: 400 15px/1.55 Kanit, system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: #8ab4ff; text-decoration: none; } a:hover { text-decoration: underline; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 16px; background: rgba(11, 15, 31, .94); border-bottom: 2px solid var(--gold2); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; white-space: nowrap; } .brand:hover { text-decoration: none; } .brand img { height: 34px; width: auto; display: block; }
.top nav { display: flex; gap: 4px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; } .top nav::-webkit-scrollbar { display: none; }
.top nav a { padding: 6px 12px; border-radius: 8px; color: var(--ink); white-space: nowrap; font-weight: 500; } .top nav a:hover { background: var(--panel2); text-decoration: none; } .top nav a.on { background: var(--panel2); color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.acts { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.lang { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--mute); white-space: nowrap; }
.play { padding: 6px 14px; border-radius: 9px; background: linear-gradient(#ffd75e, #e0a51c); color: #2a1c00; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 0 #8a6410; } .play:hover { text-decoration: none; filter: brightness(1.06); }
.play.big { display: inline-block; padding: 12px 28px; font-size: 18px; border-radius: 12px; }
main { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
h1 { margin: 6px 0 4px; font-size: clamp(24px, 5vw, 34px); color: var(--gold); line-height: 1.2; } h2 { margin: 22px 0 8px; font-size: 19px; color: #ffe08a; } h3 { margin: 0 0 4px; font-size: 16px; color: #ffe08a; }
.lead { margin: 0 0 14px; color: var(--mute); max-width: 70ch; } .note { color: var(--mute); font-size: 13.5px; margin: 8px 0; } small { color: var(--mute); font-weight: 400; } .sm { font-size: 13.5px; color: var(--mute); margin: 4px 0 0; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 6px; }
.tools input[type=search], .tools select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font: inherit; min-width: 0; } .tools input[type=search] { flex: 1 1 180px; } .tools label { color: var(--mute); white-space: nowrap; } .cnt { color: var(--mute); font-size: 13.5px; margin-left: auto; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; } .list th { position: sticky; top: 0; text-align: left; padding: 9px 10px; background: var(--panel2); color: var(--mute); font-weight: 500; white-space: nowrap; }
.list td { padding: 7px 10px; border-top: 1px solid #222c57; vertical-align: middle; } .list tbody tr:hover { background: #18214a; } .list tr:target { outline: 2px solid var(--gold); outline-offset: -2px; background: #23306a; }
.list td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .list td.pic { width: 52px; padding: 4px 6px; } .list td.src { min-width: 190px; font-size: 13.5px; } .list td.drops { min-width: 220px; }
table.mini { width: auto; min-width: 260px; } .mini td { padding: 4px 14px; }
.spr { display: inline-block; background-repeat: no-repeat; background-position: 0 0; image-rendering: pixelated; vertical-align: middle; flex: none; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: baseline; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.chip { display: inline-block; padding: 0 7px; margin: 1px 4px 1px 0; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-size: 12.5px; white-space: nowrap; } .chip.ok { color: var(--ok); border-color: #1f6b3f; } .chip.bad { color: var(--bad); border-color: #7a2b2b; } .chip.boss { color: #1a1200; background: var(--gold); border-color: var(--gold); font-weight: 600; } .chip.tier { color: #f5d0fe; border-color: #7e3fa3; }
.dr { display: inline-block; padding: 0 7px; margin: 2px 4px 2px 0; border-radius: 6px; border-left: 3px solid var(--c1); background: #0f1530; font-size: 13px; white-space: nowrap; } .dr a { color: inherit; } .dr.c1 { border-color: var(--c1); } .dr.c2 { border-color: var(--c2); color: #bfdbfe; } .dr.c3 { border-color: var(--c3); color: #e9d5ff; } .dr.c4 { border-color: var(--c4); color: #fde68a; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; } .card:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(244, 197, 66, .35); } .card h2 { margin: 0 0 6px; } .card p { margin: 5px 0; }
.job { display: flex; gap: 12px; align-items: flex-start; } .job p { margin: 2px 0; } .job.adv { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); } .next { margin-left: 8px; }
.hero { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0 18px; } .quick { display: flex; flex-wrap: wrap; gap: 8px; } .quick a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; } .steps li { counter-increment: s; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 58px; } .steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #2a1c00; font-weight: 700; display: grid; place-items: center; } .steps h2 { margin: 2px 0 4px; }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: var(--panel2); text-align: center; font: 600 13px/1.6 ui-monospace, Consolas, monospace; } .keys { line-height: 2.1; }
.none { color: var(--mute); padding: 14px; text-align: center; }
footer { border-top: 1px solid var(--line); color: var(--mute); text-align: center; padding: 16px; font-size: 13px; }
/* the long lists as cards on a phone (the header row goes; a cell that has a label says it) */
@media (max-width: 640px) {
  table.cards, table.cards tbody { display: block; } table.cards thead { display: none; }
  table.cards tr { display: flex; flex-wrap: wrap; gap: 3px 14px; position: relative; padding: 10px 10px 10px 68px; min-height: 66px; border-top: 1px solid #222c57; } table.cards tr[hidden] { display: none; } table.cards tbody tr:first-child { border-top: 0; }
  table.cards.nopic tr { padding-left: 12px; min-height: 0; }
  table.cards td { display: block; flex: 1 1 100%; padding: 0; border: 0; min-width: 0 !important; text-align: left !important; white-space: normal !important; } table.cards td.n { flex: 0 0 auto; color: var(--mute); } table.cards td:empty { display: none; }
  table.cards td.pic { position: absolute; left: 8px; top: 10px; width: 52px; flex: none; }
  table.cards td[data-l]::before { content: attr(data-l) ' '; color: var(--mute); font-size: 12.5px; }
}
@media (max-width: 640px) { .brand span { display: none; } .top { padding: 6px 10px; } .acts { order: 2; } .top nav { order: 3; flex-basis: 100%; } main { padding: 12px 10px 32px; } .list th, .list td { padding: 6px 8px; } }
.stack { display: grid; gap: 14px; } .stack .card h3 { margin-top: 14px; } p.quick { display: flex; flex-wrap: wrap; gap: 8px; } p.quick a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.top nav a.home { color: var(--gold); border: 1px solid var(--line); }
