Files
AWCharacterCreator/frontend/src/styles.css
T
Claude 4c0d7906cd Add explanation tooltips for derived values
Hover/focus/tap tooltips show how attributes, derived stats, skill target
numbers and limits, capacity, carry weight and point pools are calculated.
Used in the wizard pages, the side sheet and the summary.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HJhXuLD2Z6hv3Wqeq9UL9K
2026-10-20 20:40:08 +00:00

172 lines
13 KiB
CSS

:root {
--bg: #12150f; --panel: #1b2017; --panel2: #232a1e; --line: #343d2c;
--text: #e6e9de; --muted: #9aa58c; --noxium: #8fd14f; --diesium: #e0a43a; --danger: #e5604d;
--radius: 8px;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
--bg: #f3f4ee; --panel: #ffffff; --panel2: #eaede1; --line: #cfd5c0; --text: #1c2117; --muted: #5d6a50;
--noxium: #3d7d12; --diesium: #a5680a; --danger: #b8341f;
}
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
h1, h2, h3, h4 { line-height: 1.2; font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif; letter-spacing: .02em; }
h1 { font-size: 1.8rem; margin: .2em 0 .6em; } h2 { font-size: 1.35rem; margin-top: 0; }
h3 { font-size: 1.05rem; color: var(--diesium); margin: 1.2em 0 .4em; } h4 { margin: 1em 0 .3em; color: var(--noxium); }
a { color: var(--noxium); }
code { background: var(--panel2); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.top { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand-mark { width: 16px; height: 16px; background: linear-gradient(135deg, var(--noxium) 50%, var(--diesium) 50%); border-radius: 3px; transform: rotate(45deg); }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.top nav a { padding: .4rem .8rem; border-radius: var(--radius); text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); background: var(--panel2); }
.top nav a.active { color: var(--bg); background: var(--noxium); font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
button { font: inherit; cursor: pointer; border: 1px solid var(--noxium); background: var(--noxium); color: #12150f; padding: .5rem 1rem; border-radius: var(--radius); font-weight: 600; }
button:hover:not(:disabled) { filter: brightness(1.1); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.ghost:hover:not(:disabled) { border-color: var(--noxium); }
button.danger { color: var(--danger); }
:focus-visible { outline: 2px solid var(--diesium); outline-offset: 2px; }
input, textarea, select { font: inherit; width: 100%; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; }
input.inline { width: 5rem; display: inline-block; margin-left: .4rem; }
label { display: block; margin: .8rem 0; font-size: .9rem; color: var(--muted); }
label > input, label > textarea, label > select { margin-top: .25rem; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
button.card.choice { display: flex; flex-direction: column; gap: .3rem; text-align: left; font-weight: 400; color: var(--text); background: var(--panel); border-color: var(--line); }
button.card.choice.on { border-color: var(--noxium); box-shadow: inset 0 0 0 1px var(--noxium); background: var(--panel2); }
.badge { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--diesium); border: 1px solid var(--diesium); border-radius: 4px; padding: 0 .35em; vertical-align: middle; white-space: nowrap; }
.placeholder-text { color: var(--muted); }
.steps { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0 0 1rem; overflow-x: auto; }
.steps button { background: var(--panel); border-color: var(--line); color: var(--muted); display: flex; align-items: center; gap: .5rem; font-weight: 500; white-space: nowrap; padding: .4rem .7rem; }
.steps .n { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; }
.steps button.done { color: var(--noxium); } .steps button.on { background: var(--noxium); color: #12150f; border-color: var(--noxium); }
.creator-body { display: grid; grid-template-columns: 1fr 240px; gap: 1rem; align-items: start; }
.live { position: sticky; top: 4.5rem; } .live h4 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; } td, th { padding: .3rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.tablewrap { overflow-x: auto; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { background: var(--panel); color: var(--text); border-color: var(--line); font-weight: 400; padding: .25rem .7rem; border-radius: 999px; }
.chip.on { background: var(--noxium); color: #12150f; border-color: var(--noxium); font-weight: 600; }
.pool { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--noxium); border-radius: var(--radius); margin: .4rem 0 1rem; }
.pool.over { border-color: var(--danger); color: var(--danger); }
.attrs, .skills { display: grid; gap: .5rem; }
.attr, .skill { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.skill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; }
.skill.locked { opacity: .75; }
.skills { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper button { padding: .25rem .6rem; min-width: 2.2rem; background: var(--panel2); color: var(--text); border-color: var(--line); }
.stepper .val { min-width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.1rem; }
.stepper .mod { min-width: 4rem; text-align: right; color: var(--diesium); font-size: .9rem; }
.nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.actions { display: flex; gap: .5rem; } .actions.wrap { flex-wrap: wrap; margin-top: 1rem; }
.warn { color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius); padding: .5rem 1rem .5rem 2rem; }
p.warn { padding: .5rem 1rem; }
.toast { position: sticky; bottom: 1rem; background: var(--panel2); border: 1px solid var(--diesium); padding: .5rem 1rem; border-radius: var(--radius); }
.sheet-name { font-size: 1.6rem; color: var(--text); margin: 0; }
.sheet-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.rules { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.rules aside { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 6rem); overflow: auto; }
.rules aside ul { list-style: none; padding: 0; margin: .8rem 0; }
.rules aside a { display: block; padding: .3rem .5rem; text-decoration: none; color: var(--text); border-left: 2px solid var(--line); }
.rules aside a:hover { border-color: var(--noxium); } .rules aside a.dim { opacity: .35; }
.rules section { margin-bottom: 2.5rem; scroll-margin-top: 5rem; }
.rules ul { padding-left: 1.2rem; }
.narrow { max-width: 760px; }
.charlist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 800px) {
.creator-body { grid-template-columns: 1fr; } .live { position: static; order: -1; }
.rules { grid-template-columns: 1fr; } .rules aside { position: static; max-height: none; }
.grid2, .sheet-cols { grid-template-columns: 1fr; }
}
@media print { .top, .nav, .steps, .live, .actions { display: none; } body { background: #fff; color: #000; } }
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: .4rem 0; padding: .4rem .8rem; }
details summary { cursor: pointer; font-weight: 600; }
.extras { display: grid; gap: .4rem; margin-top: .6rem; }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .3rem 0; border-top: 1px solid var(--line); }
.resets { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
button.unlock { background: transparent; color: var(--diesium); border-color: var(--diesium); }
button.small-btn { padding: .15rem .5rem; font-size: .75rem; font-weight: 500; min-width: 0; }
.pools { display: flex; gap: .6rem; flex-wrap: wrap; }
.pips { display: flex; align-items: center; gap: .1rem; margin-top: .15rem; }
button.pip { background: transparent; border: none; color: var(--muted); padding: 0 .2rem; font-size: 1.05rem; line-height: 1; min-width: 0; font-weight: 400; }
button.pip.on { color: var(--noxium); }
button.pip.from-prof { color: var(--diesium); opacity: 1; cursor: default; }
.presetbox { margin-bottom: 1rem; }
.tunables { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1rem; }
.presetchip { margin: 0 0 .5rem; }
button.linklike { background: none; border: none; color: var(--noxium); padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; }
.presets-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.presetlist { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.presetlist button.card.choice { width: 100%; }
@media (max-width: 800px) { .presets-layout { grid-template-columns: 1fr; } }
.creator-body { grid-template-columns: minmax(0, 1fr) 460px; }
.creator-body.wide { grid-template-columns: 1fr; }
.sheetpanel { max-height: calc(100vh - 6rem); overflow: auto; font-size: .9rem; }
.sheetpanel h3.sheet-name { font-size: 1.15rem; }
.sheetpanel h4 { margin: .8em 0 .2em; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.sheetpanel td { padding: .12rem .3rem; border-bottom: 1px solid var(--line); }
.sheetpanel td:nth-child(2) { text-align: right; white-space: nowrap; }
.applybar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .4rem .5rem; margin: .3rem 0 .5rem; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--line); }
.applybar.pending { border-color: var(--diesium); }
.applybar button { padding: .2rem .7rem; font-size: .85rem; }
.d-added td { color: var(--noxium); font-weight: 600; }
.d-changed td:nth-child(2) { color: var(--diesium); font-weight: 600; }
.d-removed td { color: var(--danger); text-decoration: line-through; }
.was { color: var(--muted); font-weight: 400; }
@media (max-width: 800px) { .creator-body { grid-template-columns: 1fr; } .sheetpanel { position: static; max-height: none; order: 1; } }
.rowdesc { font-size: .8rem; color: var(--muted); font-weight: 400; line-height: 1.3; text-decoration: none; }
.d-removed .rowdesc { text-decoration: line-through; }
.d-added .rowdesc { color: var(--muted); }
ul.desclist { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .35rem; }
main { max-width: 1280px; }
@media (max-width: 1100px) { .creator-body { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 800px) { .creator-body { grid-template-columns: 1fr; } }
tr.dim td { opacity: .55; }
.skillcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2rem; }
.skillgroup h5 { margin: .8em 0 .2em; color: var(--diesium); font-size: .9rem; }
.loginbox { margin-top: 3rem; }
.loginbox form button[type="submit"] { margin-top: .5rem; }
.sharepanel { margin-top: .8rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.sharepanel form input { flex: 1; }
.chip button.linklike { color: inherit; text-decoration: none; margin-left: .2rem; }
.top nav a.navchar { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.tile { display: flex; flex-direction: column; gap: .3rem; }
.card.tile.on { border-color: var(--noxium); box-shadow: inset 0 0 0 1px var(--noxium); background: var(--panel2); }
.tilestepper { margin-top: auto; padding-top: .4rem; justify-content: flex-end; }
.tipped { border-bottom: 1px dotted var(--muted); cursor: help; }
.tipwrap { cursor: help; }
.tipicon { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: .3rem; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: .7rem; font-style: italic; font-weight: 700; vertical-align: middle; }
.tipwrap:hover .tipicon, .tipwrap:focus .tipicon { color: var(--noxium); border-color: var(--noxium); }
.tippop { position: fixed; z-index: 1000; max-width: 340px; padding: .55rem .75rem; background: var(--panel2); color: var(--text); border: 1px solid var(--diesium); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.35); font-size: .85rem; line-height: 1.4; pointer-events: none; }
.tippop div + div { margin-top: .35rem; }