
:root {
    --pr-bg: #10130f;
    --pr-bg-dark: #070907;
    --pr-panel: #1a1f18;
    --pr-panel-light: #252c22;
    --pr-panel-hover: #303828;

    --pr-border: #46503d;
    --pr-border-bright: #9a7d3b;

    --pr-text: #e8dfc8;
    --pr-muted: #a99f87;
    --pr-dim: #706957;

    --pr-gold: #c79a3f;
    --pr-gold-light: #e5bd63;

    --pr-red: #a94a3c;
    --pr-green: #6f9458;
    --pr-blue: #5d8794;

    --pr-shadow: rgba(0, 0, 0, 0.6);
}

/* Base */

body {
    background:
        radial-gradient(circle at top, #26301f 0%, #11150f 45%, #060706 100%);
    color: var(--pr-text);
    font-family: "Trebuchet MS", Arial, sans-serif;
}

a {
    color: var(--pr-gold-light);
}

a:hover,
a:focus {
    color: #ffe08c;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    color: var(--pr-gold-light);
    font-family: Georgia, serif;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 0.4px;
}

p,
li,
td,
th,
label,
legend {
    color: var(--pr-text);
}

/* Grid / Containers */

.grid-container,
.grid-x,
.cell,
.row,
.columns,
.column {
    color: var(--pr-text);
}

/* Top Bar / Navigation */

.top-bar,
.top-bar ul,
.title-bar {
    background: linear-gradient(180deg, #252c20, #11150f);
    color: var(--pr-text);
    border-bottom: 1px solid var(--pr-border-bright);
}

.top-bar-title {
    color: var(--pr-gold-light);
    font-family: Georgia, serif;
    font-weight: bold;
}

.menu {
    background: transparent;
}

.menu a {
    color: var(--pr-muted);
}

.menu a:hover,
.menu a:focus,
.menu .is-active > a {
    background: #303828;
    color: var(--pr-gold-light);
}

/* Cards / Callouts */

.card,
.callout,
.reveal,
.dropdown-pane,
.off-canvas {
    background: linear-gradient(180deg, var(--pr-panel-light), var(--pr-panel));
    border: 1px solid var(--pr-border);
    color: var(--pr-text);
    box-shadow: 0 6px 18px var(--pr-shadow);
}

.card-divider {
    background: linear-gradient(180deg, #333b2b, #20261c);
    border-bottom: 1px solid var(--pr-border-bright);
    color: var(--pr-gold-light);
    font-weight: bold;
}

.card-section {
    color: var(--pr-text);
}

/* Buttons */

.button,
button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(180deg, #c79a3f, #755827);
    border: 1px solid #e7c36c;
    color: #18140b;
    font-weight: bold;
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 3px 8px var(--pr-shadow);
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(180deg, #e0b44f, #8b682d);
    color: #080805;
}

.button.secondary {
    background: linear-gradient(180deg, #414b39, #252c22);
    border-color: var(--pr-border);
    color: var(--pr-text);
}

.button.success {
    background: linear-gradient(180deg, #789b5b, #415f34);
    border-color: #9ac279;
    color: #f3ffe8;
}

.button.alert {
    background: linear-gradient(180deg, #a94a3c, #5e221d);
    border-color: #c86558;
    color: #ffe5de;
}

.button.warning {
    background: linear-gradient(180deg, #ba8136, #70491f);
    border-color: #dda25b;
    color: #1b1208;
}

.button.disabled,
.button[disabled] {
    background: #34382f;
    border-color: #4a4f43;
    color: #777;
    opacity: 0.65;
}

/* Forms */

label {
    color: var(--pr-muted);
    font-weight: bold;
}

input,
textarea,
select {
    background-color: #0d110c;
    border: 1px solid var(--pr-border);
    color: var(--pr-text);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

input:focus,
textarea:focus,
select:focus {
    background-color: #151b13;
    border-color: var(--pr-gold-light);
    color: var(--pr-text);
    box-shadow: 0 0 0 2px rgba(199,154,63,0.25);
}

input::placeholder,
textarea::placeholder {
    color: var(--pr-dim);
}

/* Tables */

table {
    background: var(--pr-panel);
    border: 1px solid var(--pr-border);
    color: var(--pr-text);
}

thead,
tfoot {
    background: linear-gradient(180deg, #333b2b, #22281e);
    color: var(--pr-gold-light);
}

thead th,
tfoot th {
    color: var(--pr-gold-light);
}

tbody {
    background: var(--pr-panel);
}

tbody tr {
    border-bottom: 1px solid #343b2f;
}

tbody tr:nth-child(even) {
    background: #151a13;
}

tbody tr:hover {
    background: var(--pr-panel-hover);
}

td,
th {
    color: var(--pr-text);
}

/* Labels / Badges */

.label,
.badge {
    background: #394234;
    border: 1px solid var(--pr-border);
    color: var(--pr-text);
}

.label.primary,
.badge.primary {
    background: var(--pr-blue);
}

.label.success,
.badge.success {
    background: var(--pr-green);
}

.label.alert,
.badge.alert {
    background: var(--pr-red);
}

.label.warning,
.badge.warning {
    background: #9b6d30;
    color: #fff0c4;
}

/* Progress */

.progress {
    background: #0b0d0a;
    border: 1px solid var(--pr-border);
}

.progress-meter {
    background: linear-gradient(90deg, #806129, var(--pr-gold-light));
}

.progress-meter-text {
    color: #100d07;
    font-weight: bold;
}

/* Pagination */

.pagination a,
.pagination button {
    background: #1b2118;
    color: var(--pr-muted);
    border: 1px solid var(--pr-border);
}

.pagination a:hover,
.pagination button:hover,
.pagination .current {
    background: var(--pr-gold);
    color: #161108;
}

/* Accordion / Tabs */

.accordion,
.tabs {
    background: var(--pr-panel);
    border: 1px solid var(--pr-border);
}

.accordion-title,
.tabs-title > a {
    background: #20271d;
    color: var(--pr-muted);
    border-bottom: 1px solid var(--pr-border);
}

.accordion-title:hover,
.accordion-title:focus,
.tabs-title > a:hover,
.tabs-title > a:focus,
.tabs-title.is-active > a {
    background: #303828;
    color: var(--pr-gold-light);
}

.accordion-content,
.tabs-content,
.tabs-panel {
    background: var(--pr-panel);
    border-color: var(--pr-border);
    color: var(--pr-text);
}

/* Breadcrumbs */

.breadcrumbs a {
    color: var(--pr-gold-light);
}

.breadcrumbs li {
    color: var(--pr-muted);
}

.breadcrumbs li:not(:last-child)::after {
    color: var(--pr-border-bright);
}

/* Orbit / Slider */

.orbit,
.orbit-container {
    background: var(--pr-bg-dark);
}

.orbit-caption {
    background: rgba(10, 12, 9, 0.85);
    color: var(--pr-text);
}

.slider {
    background: #0b0d0a;
}

.slider-fill {
    background: var(--pr-gold);
}

.slider-handle {
    background: var(--pr-gold-light);
    border: 1px solid #fff0b0;
}

/* Switches */

.switch-paddle {
    background: #33382f;
    border: 1px solid var(--pr-border);
}

.switch input:checked ~ .switch-paddle {
    background: var(--pr-gold);
}

/* Close Button */

.close-button {
    color: var(--pr-muted);
}

.close-button:hover {
    color: var(--pr-gold-light);
}

/* Tooltips */

.tooltip {
    background: #0e110c;
    border: 1px solid var(--pr-border-bright);
    color: var(--pr-text);
}

/* Helpful Game-Specific Extras */

.stat-box,
.resource-box,
.inventory-box,
.expedition-box {
    background: linear-gradient(180deg, #20261c, #121610);
    border: 1px solid var(--pr-border);
    border-left: 4px solid var(--pr-gold);
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--pr-text);
    box-shadow: 0 5px 15px var(--pr-shadow);
}

.alert-box,
.error-box {
    background: #291614;
    border: 1px solid #8d4037;
    color: #f1c5bd;
    padding: 0.75rem;
}

.success-box {
    background: #172415;
    border: 1px solid #638c50;
    color: #cce9bc;
    padding: 0.75rem;
}

.muted,
.help-text {
    color: var(--pr-muted);
}