:root { --bg: #14161d; --side: #1a1d26; --panel: #212532; --panel-2: #292e3d; --line: #353b4d; --text: #e7e9f0; --muted: #98a1b4; --gold: #e0b04a; --xp: #4fa3e0; --good: #5cbf6a; --bad: #e2645c; --warn: #e3a043; --favour: #b98ce8; --radius: 10px; color-scheme: dark; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; overscroll-behavior-x: none; } body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } button, input, textarea, select { font: inherit; color: inherit; } button { cursor: pointer; touch-action: manipulation; } a { color: var(--xp); } #app { display: flex; min-height: 100vh; } /* --- sidebar ---------------------------------------------------------- */ #side { width: 260px; flex: none; background: var(--side); border-right: 1px solid var(--line); height: 100vh; position: sticky; top: 0; overflow-y: auto; padding-bottom: 24px; } .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; font-weight: 700; font-size: 19px; letter-spacing: .02em; } .brand img { width: 28px; height: 28px; } .brand small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); background: var(--gold); border-radius: 4px; padding: 1px 6px; } .me { margin: 0 12px 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); } .me .who { font-weight: 600; } .me .cls { color: var(--muted); font-size: 13px; } .purse { display: flex; gap: 14px; margin-top: 6px; font-size: 14px; } .gold { color: var(--gold); } .favour { color: var(--favour); } .navhead { padding: 14px 18px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 18px; border: 0; background: none; text-align: left; border-left: 3px solid transparent; } .nav:hover { background: var(--panel); } .nav.on { background: var(--panel-2); border-left-color: var(--gold); } .nav .ic { width: 22px; text-align: center; font-size: 17px; } .nav .label { flex: 1; } .nav .meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; } .nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); } .nav .alert { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); } .devbar { margin: 18px 12px 0; padding: 10px 12px; border: 1px dashed var(--warn); border-radius: var(--radius); font-size: 13px; color: var(--muted); } .devbar b { color: var(--warn); } .devbar form { display: flex; gap: 6px; margin: 6px 0; } .devbar input { width: 100%; } .devbar .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } /* --- top bar ---------------------------------------------------------- */ #body { flex: 1; min-width: 0; display: flex; flex-direction: column; } #top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 24px; min-height: 56px; background: rgba(20, 22, 29, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); } #top h1 { font-size: 18px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .menu-btn { display: none; background: none; border: 0; font-size: 22px; padding: 0 4px; } .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; white-space: nowrap; } .chip.threat { border-color: rgba(226, 100, 92, .5); } .chip .mini { width: 70px; } main { padding: 24px; max-width: 1200px; width: 100%; } .loading { color: var(--muted); } /* --- panels ----------------------------------------------------------- */ .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; } .panel > h2, .section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; } .section-title { margin: 26px 0 12px; } .muted { color: var(--muted); } .small { font-size: 13px; } .grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); } .grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); } .cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; } .stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 18px; } .stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; } .stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .stat .v { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; } .stat .v small { font-size: 13px; color: var(--muted); font-weight: 400; } .stat .note { font-size: 12.5px; color: var(--muted); margin-top: 2px; } .stat .bad, .note .bad { color: var(--bad); } .note .warn { color: var(--warn); } .bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--good); border-radius: 99px; width: 0; } .bar.xp > span { background: var(--xp); } .bar.gold > span { background: var(--gold); } .bar.thick { height: 12px; } .btn { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 14px; } .btn:hover:not(:disabled) { border-color: var(--muted); } .btn:disabled { opacity: .45; cursor: not-allowed; } .btn.primary { background: #2f6b3a; border-color: #3f8a4c; } .btn.danger { background: #6b2f2f; border-color: #8a3f3f; } .btn.gold { background: #6b5320; border-color: #8f6f2a; } .btn.sm { padding: 3px 9px; font-size: 13px; } .btns { display: flex; flex-wrap: wrap; gap: 6px; } input[type=text], input[type=number], textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; } textarea { width: 100%; resize: vertical; min-height: 60px; } .tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); } .tag.good { color: var(--good); border-color: rgba(92, 191, 106, .4); } .tag.bad { color: var(--bad); border-color: rgba(226, 100, 92, .4); } .tag.warn { color: var(--warn); border-color: rgba(227, 160, 67, .4); } .tag.gold { color: var(--gold); border-color: rgba(224, 176, 74, .4); } /* --- skill page ------------------------------------------------------- */ .skill-head { display: flex; gap: 16px; align-items: center; } .skill-head .big { font-size: 42px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--panel-2); border-radius: 14px; flex: none; } .skill-head .info { flex: 1; min-width: 0; } .skill-head h2 { margin: 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--text); } .skill-head .lv { font-variant-numeric: tabular-nums; color: var(--muted); margin: 2px 0 8px; } .action { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; } .action.active { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; } .action.locked { opacity: .55; } .action .top { display: flex; gap: 12px; align-items: center; } .action .ico { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--panel-2); border-radius: 10px; flex: none; } .action .name { font-weight: 650; } .action .sub { font-size: 13px; color: var(--muted); } .io { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; } .io .arrow { color: var(--muted); } .item-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); } .item-chip.short { color: var(--bad); } .action .why { font-size: 13px; color: var(--warn); } .grid-head { grid-column: 1 / -1; margin: 10px 0 -4px; } .tool-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .gear { display: flex; flex-direction: column; gap: 6px; } .gear-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); } .hp-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; } .bar.hp > span { background: var(--bad); } .warn { color: var(--warn); } select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; margin-left: 6px; } .action .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; } /* --- bank ------------------------------------------------------------- */ .bank-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; } .slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); } .slot { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; font-size: 30px; padding: 0; } .slot.empty { background: transparent; border-style: dashed; cursor: default; } .slot.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; } .slot .qty { position: absolute; left: 6px; top: 4px; font-size: 12px; font-weight: 700; } .slot .qty.full { color: var(--warn); } .slot .nm { font-size: 10.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; } .item-panel h3 { margin: 0; font-size: 18px; } .item-panel .ico { font-size: 40px; } .item-panel .row { margin-top: 12px; } .item-panel .row .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; } /* --- city ------------------------------------------------------------- */ .building .lv { font-variant-numeric: tabular-nums; } .building.damaged { border-color: rgba(226, 100, 92, .6); } .cost { display: flex; flex-wrap: wrap; gap: 6px; } .fund { display: flex; flex-direction: column; gap: 6px; } .fund-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .cost .item-chip .have { color: var(--muted); } .banner { display: flex; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); } .banner.bad { border-color: rgba(226, 100, 92, .6); background: rgba(226, 100, 92, .08); } .banner .grow { flex: 1; } .stock { display: flex; flex-wrap: wrap; gap: 6px; } .threat-card { border-color: rgba(226, 100, 92, .5); } .threat-card .headline { font-size: 18px; font-weight: 650; margin: 2px 0 6px; } .pips { display: inline-flex; gap: 4px; vertical-align: middle; } .pips i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); } .pips i.on { background: var(--xp); } .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; } .kv .k { color: var(--muted); } .vs { display: flex; gap: 12px; align-items: center; margin: 12px 0 4px; } .vs .side { flex: 1; text-align: center; padding: 10px; border-radius: 8px; background: var(--panel-2); } .vs .side b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; } .req { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 10px; } .req .bar { grid-column: 2 / 4; } table.parts { width: 100%; border-collapse: collapse; font-size: 14px; } table.parts td { padding: 4px 0; border-bottom: 1px solid var(--line); } table.parts td:last-child { text-align: right; font-variant-numeric: tabular-nums; } .report { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-bottom: 14px; } .report.win { border-left-color: var(--good); } .report.loss { border-left-color: var(--bad); } .report p { margin: 2px 0; font-size: 14px; } /* --- board, ledger, roster ------------------------------------------- */ .msgs { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; margin-bottom: 12px; } .msg .who { font-weight: 600; } .msg .when { color: var(--muted); font-size: 12px; margin-left: 6px; } .msg .text { white-space: pre-wrap; overflow-wrap: anywhere; } .ledger { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; } .ledger li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .ledger .when { color: var(--muted); font-size: 12px; display: block; } .person .top { display: flex; gap: 12px; align-items: center; } .person .ico { font-size: 30px; } .levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; font-size: 13px; margin-top: 12px; } .levels .lvl { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid var(--line); } .levels .lvl .ico { width: 18px; text-align: center; flex: none; font-size: 14px; line-height: 1; } .levels .lvl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .levels .lvl b { font-variant-numeric: tabular-nums; font-weight: 650; } .levels .lvl.low { color: var(--muted); } .levels .lvl.low b { font-weight: 400; } /* --- character sheet -------------------------------------------------- */ .sheet-head { display: flex; gap: 16px; align-items: center; } .sheet-head .big { font-size: 44px; width: 72px; height: 72px; display: grid; place-items: center; background: var(--panel-2); border-radius: 16px; flex: none; } .sheet-head h2 { margin: 0; font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--text); } .grow { flex: 1; min-width: 0; } .sheet-gear { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); } .sheet-slot { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 64px; } .sheet-slot.empty { background: transparent; border-style: dashed; } .sheet-slot .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; } .sheet-item { display: flex; align-items: center; gap: 8px; } .sheet-item .ico { font-size: 24px; } .sheet-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .sheet-skills { display: flex; flex-direction: column; gap: 4px; } .sheet-skill { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; border: 0; background: none; text-align: left; width: 100%; } button.sheet-skill:hover { background: var(--panel-2); } .sheet-skill .ico { font-size: 20px; width: 26px; text-align: center; } .sheet-skill .row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .sheet-skill .row1 b { flex: 1; font-weight: 600; } .sheet-skill .marks { font-size: 14px; } .sheet-skill .lv { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 22px; text-align: right; } .sheet-skill .grow { display: flex; flex-direction: column; } .sheet-skill .bar { display: block; height: 5px; } .favour { color: var(--favour); } /* --- register --------------------------------------------------------- */ .welcome { max-width: 760px; } .welcome h2 { font-size: 26px; margin: 0 0 6px; } .classes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin: 16px 0; } .class-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; } .class-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; } .class-card .ico { font-size: 32px; } .class-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); } /* --- toasts and modal ------------------------------------------------- */ #toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; max-width: calc(100vw - 32px); gap: 8px; z-index: 30; } .toast { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: rise .2s ease-out; } .toast.bad { border-color: var(--bad); } .toast.good { border-color: var(--good); } .toast.level { border-color: var(--gold); } @keyframes rise { from { transform: translateY(8px); opacity: 0; } } #modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; } #modal[hidden] { display: none; } .modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; max-width: 460px; width: 100%; max-height: 85vh; overflow-y: auto; } .modal-box h2 { margin: 0 0 10px; } .modal-box ul { padding-left: 18px; } /* --- small screens ---------------------------------------------------- */ #scrim { display: none; } @media (max-width: 900px) { /* A drawer pinned to the screen edges (not 100vh, which iOS sizes for the largest viewport) that keeps its scrolling to itself. */ #side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 20; width: min(280px, 85vw); transform: translateX(-100%); transition: transform .2s; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: env(safe-area-inset-top); padding-bottom: calc(24px + env(safe-area-inset-bottom)); } #app.open #side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .5); } #app.open #scrim, #app.dragging #scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .5); } html.menu-open, html.menu-open body { overflow: hidden; } .menu-btn { display: block; } #top { padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); flex-wrap: wrap; gap: 8px; } #top h1 { flex: 1 1 auto; } main { padding: 16px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); } .cols, .bank-wrap { grid-template-columns: 1fr; } .chip { max-width: 100%; } .chip.act .label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; } html.menu-open #toasts { display: none; } .stats { grid-template-columns: repeat(2, 1fr); } .skill-head { flex-wrap: wrap; } .skill-head .info { flex-basis: 60%; } .slots { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); } /* iOS zooms into any input under 16px when it's focused. */ input[type=text], input[type=number], textarea, select { font-size: 16px; } } @media (pointer: coarse) { .nav { padding: 11px 18px; } .btn.sm { padding: 6px 11px; } } .linkish { background: none; border: 0; padding: 0; color: var(--xp); text-decoration: underline; font: inherit; } .favour-option { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); } .favour-option:first-of-type { border-top: 0; } .favour-option .ico { font-size: 24px; width: 30px; text-align: center; } .favour-option .grow { display: flex; flex-direction: column; } .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } .tab { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; } .tab.on { background: var(--gold); border-color: var(--gold); color: var(--bg); } .tab.dim:not(.on) { opacity: .5; } .makes { color: var(--muted); } .prayers { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; } .prayer { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); } .prayer .ico { font-size: 22px; width: 28px; text-align: center; } .prayer .grow { display: flex; flex-direction: column; } .prayer.on { border-color: var(--favour); box-shadow: 0 0 0 1px var(--favour) inset; background: rgba(185, 140, 232, .12); } .prayer.locked { opacity: .45; cursor: not-allowed; } .prayer-points { font-size: 15px; } .site-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .site-head .btns { margin-left: auto; } .happenings { display: flex; flex-direction: column; gap: 8px; } .happening { display: flex; align-items: flex-start; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); } .happening.bad { border-color: rgba(226, 100, 92, .4); } .happening .ico { font-size: 22px; width: 28px; text-align: center; flex: none; } .happening .grow { display: flex; flex-direction: column; gap: 4px; } .happening > .btn, .happening > .small { align-self: center; } .skill-happenings { flex-direction: column; align-items: flex-start; gap: 4px; }