:root {
    color-scheme: dark;
    --page: #100f13;
    --surface: #19171d;
    --surface-hover: #211e26;
    --field: #0d0c10;
    --ink: #eee8df;
    --muted: #afa5ad;
    --line: #403a43;
    --line-strong: #625968;
    --link: #b8d28f;
    --accent: #81516c;
    --accent-hover: #9b6382;
    --accent-ink: #fff3f7;
    --success-bg: #183021;
    --success-line: #588867;
    --danger-bg: #341d1d;
    --danger-line: #9a5555;
    --cooldown-surface: #121117;
    --cooldown-line: #75687c;
    --focus: #f0b95b;
    --meter-health: #b86455;
    --meter-energy: #c89b4a;
    --meter-xp: #82a96a;
    --stat-xp: #c4a4df;
    --stat-hp: #e58f86;
    --stat-energy: #dfbd69;
    --stat-gold: #f1c75b;
    --stat-attack: #e49c86;
    --stat-defense: #85bddd;
    --requirement-met: #9fc58f;
    --requirement-unmet: #e58f86;
    --item-quantity: #f4e68a;
    --pet-fallback: #777b72;
    --rarity-common: #d8d3c5;
    --rarity-uncommon: #9fc58f;
    --rarity-rare: #85bddd;
    --rarity-epic: #c4a4df;
    --rarity-legendary: #dfbd69;
    --rarity-mythic: #e49c86;
}

* { box-sizing: border-box; }
::selection { color: var(--page); background: var(--link); }
html { min-height: 100%; }
/* The only Bootstrap features this project used were these responsive grid rules. */
.row { --grid-x: 1.5rem; --grid-y: 0; display: flex; flex-wrap: wrap; margin: calc(-1 * var(--grid-y)) calc(-.5 * var(--grid-x)) 0; }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; margin-top: var(--grid-y); padding-right: calc(.5 * var(--grid-x)); padding-left: calc(.5 * var(--grid-x)); }
.g-2 { --grid-x: .5rem; --grid-y: .5rem; }
.g-3 { --grid-x: 1rem; --grid-y: 1rem; }
.col-12 { flex: 0 0 auto; width: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 1rem;
    color: var(--ink);
    background: var(--page);
    font: 15px/1.42 Arial, Helvetica, sans-serif;
}
.layout {
    min-height: calc(100vh - 2rem);
    min-height: calc(100dvh - 2rem);
    width: min(100%, 72rem);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    background: var(--field);
}
main { flex: 1 0 auto; min-width: 0; width: 100%; padding: .65rem .8rem 1rem; }
header, footer { flex: 0 0 auto; }
footer { margin-top: auto; padding: .55rem .7rem .65rem; border-top: 1px solid var(--line); color: var(--muted); background: transparent; }
a { color: var(--link); text-decoration: underline; }
a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline double; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.2; margin: .7rem 0 .35rem; }
.header-title { margin: 0; font: bold 1.5rem/1.1 Georgia, "Times New Roman", serif; letter-spacing: .02em; text-transform: lowercase; }
.header-title a { color: inherit; text-decoration: none; }
.header-title a:hover { color: var(--link); text-decoration: none; }
h2 { font: bold 1.28rem/1.2 Georgia, "Times New Roman", serif; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; }
p, ul, ol, dl { margin: .4rem 0 .75rem; }
.masthead { border-bottom: 1px solid var(--line-strong); padding: .5rem .7rem; background: var(--surface); }
.header-content { width: 100%; }
.masthead-row { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.masthead p { color: var(--muted); margin: .15rem 0; }
.account-tools { text-align: right; }
.account-tools form { display: inline; margin-left: .5rem; }
.game-nav { display: flex; flex-wrap: wrap; gap: .15rem .8rem; align-items: baseline; margin-top: .45rem; }
.nav-row { display: flex; flex-wrap: wrap; gap: .15rem .8rem; align-items: baseline; list-style: none; margin: 0; padding: 0; }
.nav-row li { margin: 0; }
.masthead nav a, .game-nav a { padding: .08rem .12rem; text-decoration: none; }
.game-nav a:hover, .game-nav a:focus-visible { color: var(--ink); background: var(--surface-hover); text-decoration: none; }
.game-nav a[aria-current="page"] { border-bottom: 2px solid var(--link); text-decoration: none; }
.game-menu { position: relative; }
.game-menu.has-current > .game-menu-trigger { color: var(--ink); border-bottom: 2px solid var(--link); font-weight: 700; text-decoration: none; }
.game-menu-list {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 50%;
    right: auto;
    display: none;
    min-width: 9rem;
    margin: 0;
    padding: .35rem .5rem;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    list-style: none;
    transform: translateX(-50%);
}
.game-menu:hover > .game-menu-list,
.game-menu:focus-within > .game-menu-list { display: flex; }
.camp-activities { display: flex; flex-wrap: wrap; gap: .2rem .55rem; align-items: baseline; margin: .65rem 0; padding: .35rem 0; border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
.camp-activities ul { display: flex; flex-wrap: wrap; gap: .2rem .7rem; margin: 0; padding: 0; list-style: none; }
.camp-activities li { margin: 0; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .65rem; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer li + li::before { content: "·"; margin-right: .65rem; color: var(--line-strong); }
.site-footer a { color: var(--muted); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); }
form { margin: .2rem 0; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: .2rem; align-items: center; margin-left: .25rem; }
.inline-form label { display: inline; margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: end; margin: .4rem 0; }
.filter-bar label { margin: 0; }
.field-action { display: flex; min-width: 0; gap: .3rem; align-items: stretch; }
.field-action input { min-width: 0; flex: 1 1 auto; }
.field-action button { flex: 0 0 auto; }
.check-label { display: block; font-weight: 400; }
.check-label input { min-height: 0; vertical-align: middle; }
label { display: block; font-weight: 700; margin-top: .3rem; }
input, select, button { max-width: 100%; font: inherit; font-size: .9rem; }
input, select { padding: .18rem .3rem; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); background: var(--field); }
button, .btn {
    display: inline-block;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: .15rem .38rem;
    color: var(--ink);
    background: var(--surface);
    text-decoration: none;
    cursor: pointer;
}
button:hover, .btn:hover, button:focus-visible, .btn:focus-visible { background: var(--surface-hover); }
button:disabled { cursor: not-allowed; opacity: .55; }
.primary-action { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.primary-action:hover, .primary-action:focus-visible { background: var(--accent-hover); }
.fight-action {
    padding: .1rem .38rem;
    border-color: var(--link);
    color: var(--link);
    background: transparent;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}
.fight-action .stat-energy { color: var(--stat-energy); font-weight: 400; }
.fight-action:hover, .fight-action:focus-visible { color: var(--ink); border-color: var(--ink); background: var(--surface-hover); }
.fight-action:disabled { border-color: var(--line); color: var(--muted); background: transparent; }
.combat-vitals { display: grid; gap: .25rem; margin: .45rem 0; }
.combat-vitals p { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; margin: 0; }
.enemy-intent { margin: .5rem 0; padding: .35rem .5rem; border-left: 3px solid var(--line-strong); background: var(--surface); }
.enemy-intent.is-dangerous { border-color: var(--danger-line); background: var(--danger-bg); }
.boss-plan { margin: .35rem 0; padding-bottom: .3rem; border-bottom: 1px dotted var(--line); color: var(--muted); }
.combat-last-result { margin: .45rem 0; }
.combat-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; margin: .55rem 0 .8rem; }
.combat-action { min-width: 0; margin: 0; }
.combat-action button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 5.25rem;
    padding: .4rem .5rem;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    text-align: left;
    background: transparent;
}
.combat-action button:hover,
.combat-action button:focus-visible { background: transparent; }
.combat-action-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .5rem; padding-right: 1.5rem; }
.combat-action-name { color: var(--ink); }
.combat-action-description { color: var(--muted); font-size: .86rem; line-height: 1.25; }
.combat-action-state { margin-top: auto; color: var(--link); font-size: .82rem; font-weight: 700; }
.combat-action.is-cooling button,
.combat-action.is-spent button { border-color: var(--cooldown-line); color: var(--muted); background: transparent; opacity: 1; }
.combat-action.is-cooling .combat-action-state,
.combat-action.is-spent .combat-action-state { color: var(--muted); }
.cooldown-number { position: absolute; top: .25rem; right: .45rem; color: var(--ink); font: bold 1.3rem/1 Georgia, "Times New Roman", serif; }
.cooldown-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: .18rem; margin-top: .08rem; }
.cooldown-segment { display: block; height: .22rem; border: 1px solid var(--cooldown-line); background: transparent; }
.cooldown-segment.is-remaining { background: var(--cooldown-line); }
.combat-log { margin-top: .75rem; border-top: 1px solid var(--line); }
.combat-log ol { padding-left: 1.45rem; }
.combat-log li { margin: .2rem 0; }
.panel { border: 0; border-top: 1px solid var(--line); background: transparent; padding: .45rem 0 0; margin: .7rem 0; }
.panel-title { margin: 0 0 .35rem; padding: 0; border: 0; }
.panel-title span { color: var(--muted); font-size: .82em; font-weight: 400; }
.entry-list > .entry, .game-list > .game-row { padding: .42rem .2rem; border-bottom: 1px dotted var(--line); min-width: 0; }
.entry-list > .entry:last-child, .game-list > .game-row:last-child { border-bottom: 0; }
.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .55rem;
    margin: .45rem 0 .8rem;
}
.catalog-card {
    display: flex;
    min-width: 0;
    padding: .5rem;
    flex-direction: column;
    border: 1px solid var(--line);
    background: transparent;
}
.lore-heading {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: .35rem .65rem;
    align-items: start;
}
.lore-heading > strong { min-width: 0; overflow-wrap: anywhere; }
.lore-price { flex: 0 0 auto; color: var(--stat-gold); font-variant-numeric: tabular-nums; }
.lore-price.is-unaffordable { color: var(--muted); text-decoration: line-through; }
.lore-requirement, .lore-cost, .lore-stats { margin: .16rem 0 0; }
.lore-requirement { font-size: .86rem; font-weight: 700; }
.lore-requirement.is-ready, .tip-line.is-ready { color: var(--requirement-met); }
.lore-requirement.is-missing, .tip-line.is-missing, .lore-missing { color: var(--requirement-unmet); }
.lore-rule { width: 100%; margin: .35rem 0; border: 0; border-top: 1px dotted var(--line); }
.lore-rewards { display: grid; gap: .16rem; }
.lore-item { display: flex; flex-wrap: wrap; gap: .12rem .35rem; align-items: baseline; }
.lore-item-name { color: var(--ink); overflow-wrap: anywhere; }
.lore-quantity { color: var(--item-quantity); font-weight: 700; font-variant-numeric: tabular-nums; }
.lore-cost, .lore-stats { color: var(--muted); }
.lore-missing { display: block; margin-top: .2rem; }
.tool-runes { margin-top: .35rem; padding-top: .3rem; border-top: 1px dotted var(--line); color: var(--muted); }
.tool-rune-slot { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; margin-top: .2rem; }
.tool-rune-slot form { display: inline; margin: 0; }
.catalog-card > .row-actions { margin-top: auto; padding-top: 0; border-top: 0; }
.catalog-card.is-actionable:hover, .catalog-card.is-actionable:focus-within { border-color: var(--line-strong); background: transparent; }
.entry.is-actionable:hover, .entry.is-actionable:focus-within,
.game-row.is-actionable:hover, .game-row.is-actionable:focus-within,
.recommendation.is-actionable:hover, .recommendation.is-actionable:focus-within { background: var(--surface-hover); }
.flavor { color: var(--muted); }
.entry-main, .row-main { min-width: 0; }
.entry-stats, .row-meta { color: var(--muted); }
.row-meta { margin-top: .08rem; }
.entry-actions, .row-actions { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; margin-top: .25rem; }
.row-actions form { margin: 0; }
.entry a:hover, .entry a:focus-visible { background: var(--surface-hover); }
.actions { display: flex; flex-wrap: wrap; gap: .2rem .35rem; align-items: start; }
.container-actions { display: inline-flex; flex-wrap: wrap; gap: .2rem; align-items: start; }
.container-actions form { margin: 0; }
.chase-line { display: block; margin-top: .22rem; color: var(--muted); }
.source-line { display: block; margin-top: .16rem; color: var(--muted); }
.tooltip-host { position: relative; }
.hover-tip { display: block; margin-top: .2rem; color: var(--muted); }
.tip-title, .tip-line { display: block; }
.tip-title { margin-bottom: .15rem; color: var(--ink); }
.tip-source { margin-top: .2rem; color: var(--link); }
.rare-receipt { border-left-color: var(--focus); background: var(--field); }
.rare-receipt > strong { color: var(--focus); }
.rarity-label { font-weight: 700; white-space: nowrap; }
.rarity-label--common { color: var(--rarity-common); }
.rarity-label--uncommon { color: var(--rarity-uncommon); }
.rarity-label--rare { color: var(--rarity-rare); }
.rarity-label--epic { color: var(--rarity-epic); }
.rarity-label--legendary { color: var(--rarity-legendary); }
.rarity-label--mythic { color: var(--rarity-mythic); }
.rarity-label--unknown { color: var(--muted); }
.notice, .recommendation { border: 0; border-left: 3px solid var(--accent); background: var(--surface); padding: .45rem .6rem; margin: .65rem 0; }
.next-action { display: flex; flex-wrap: wrap; gap: .25rem .55rem; align-items: center; }
.notice.success { border-color: var(--success-line); background: var(--success-bg); }
.notice.danger { border-color: var(--danger-line); background: var(--danger-bg); }
.notice ul { margin-bottom: 0; }
.stat-list { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .6rem; }
.stat-list dt { font-weight: 700; }
.stat-list dd { margin: 0; min-width: 0; }
.status-line { display: flex; flex-wrap: wrap; gap: .15rem .65rem; margin: .2rem 0; }
.stat-xp { color: var(--stat-xp); }
.stat-hp { color: var(--stat-hp); }
.stat-energy { color: var(--stat-energy); }
.stat-gold { color: var(--stat-gold); }
.stat-attack { color: var(--stat-attack); }
.stat-defense { color: var(--stat-defense); }
.status-actions { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; margin-top: .55rem; }
.status-actions form { margin: 0; }
.active-encounter { color: var(--accent-ink); font-weight: 700; }
.game-sidebar, [class*="col-"] { min-width: 0; }
.character-pane { border-top-color: var(--line-strong); }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: transparent; }
caption { text-align: left; font-weight: 700; padding: .4rem 0; }
th, td { border: 0; border-bottom: 1px solid var(--line); padding: .35rem .3rem; text-align: left; }
th { border-bottom-color: var(--line-strong); }
meter { width: 100%; max-width: 12rem; vertical-align: middle; accent-color: var(--meter-xp); }
.meter-health { accent-color: var(--meter-health); }
.meter-energy { accent-color: var(--meter-energy); }
.meter-xp { accent-color: var(--meter-xp); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; display: inline-block; margin-bottom: .5rem; }
.phrase-example, code, td, th, .entry, button { overflow-wrap: anywhere; }
.generated-phrase { display: block; padding: .5rem; border: 1px dashed var(--success-line); background: var(--field); user-select: all; }
.pet-card { border-left: 4px solid var(--pet-primary, var(--pet-fallback)); }
.pet-swatch { display: inline-block; width: 1.2rem; height: 1.2rem; vertical-align: middle; border: 1px solid var(--line-strong); background: var(--swatch); }
.text-muted, small { color: var(--muted); }
.text-end { text-align: right; }
.subnav, .subnav ul { display: flex; flex-wrap: wrap; gap: .25rem .9rem; list-style: none; margin: .55rem 0; padding: 0; }
.subnav ul { margin: 0; }
.subnav li { margin: 0; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .35rem .75rem; }
.record-grid p { margin: .2rem 0; }
.mastery-line { padding: .25rem 0; border-bottom: 1px dotted var(--line); }
.road-ahead { padding: .35rem 0; border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
.location-road { list-style: none; margin: .75rem 0; padding: 0; }
.location-row { border-top: 1px solid var(--line); padding: .4rem 0 .55rem; }
.location-row h3 { margin-top: 0; }
.location-row p { margin: .2rem 0 .45rem; }
.location-row.is-locked { color: var(--muted); }
.location-state { font-size: .94em; }
.chase-inline { color: var(--muted); }
.auth-page { width: min(100%, 34rem); margin: .25rem auto 1rem; }
.auth-page input { width: 100%; }
.side-road { border-top: 1px solid var(--line-strong); margin-top: 1rem; padding-top: .35rem; }
.home-page { width: min(100%, 48rem); margin: 0 auto; }
.home-welcome { padding: 1rem 0 .55rem; }
.home-welcome h2 { margin-top: 0; font-size: 1.55rem; }
.home-lede { max-width: 40rem; color: var(--ink); font-size: 1.08rem; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: center; }
.home-section { padding: .35rem 0 .55rem; border-top: 1px dotted var(--line); }
.home-section h3 { margin-top: .2rem; }
.home-closing { color: var(--muted); }
.public-facts { color: var(--muted); font-variant-numeric: tabular-nums; }
.country-label { display: inline-flex; gap: .3rem; align-items: center; vertical-align: middle; }
.country-flag { display: inline-block; width: 24px; height: 18px; border: 1px solid var(--line); object-fit: cover; }

@media (min-width: 576px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .combat-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .combat-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (hover: none), (pointer: coarse) {
    .game-menu-list { display: none; }
}

@media (hover: hover) and (pointer: fine) {
    .tooltip-host > .hover-tip {
        position: absolute;
        z-index: 10;
        top: calc(100% - .15rem);
        left: 50%;
        display: none;
        width: max-content;
        max-width: min(22rem, calc(100vw - 2.5rem));
        margin: 0;
        padding: .3rem .45rem;
        border: 1px solid var(--line-strong);
        outline: 1px solid var(--page);
        color: var(--ink);
        background: var(--surface);
        font-size: .82rem;
        line-height: 1.3;
        white-space: normal;
        pointer-events: none;
        transform: translateX(-50%);
    }
    .tooltip-host:hover > .hover-tip,
    .tooltip-host:focus-within > .hover-tip { display: block; }
}

@media (max-width: 575px) {
    body { padding: .45rem; }
    .layout { min-height: calc(100vh - .9rem); min-height: calc(100dvh - .9rem); }
    body { font-size: 16px; }
    button, .btn, input, select { min-height: 40px; font-size: 1rem; }
    .masthead-row { align-items: stretch; }
    .account-tools { text-align: left; }
    .stat-list { grid-template-columns: 1fr; }
    .nav-row { gap: .3rem .7rem; }
    .site-footer li + li::before { margin-right: .45rem; }
}
