Files
mountycrawl/css/style.css
T
percoandClaude Fable 5 6039497e72 1.6.0 : parchemins standards + page « Trésors du Hall »
- js/scrolls.js : les 7 parchemins standards de Mountypedia (X 1-5),
  effets via le système d'effets magiques, un seul jet de D3 par parchemin
- Effets de zone (rayon 3 cases) : Rune Explosive (dégâts aux monstres),
  Yeu'Ki'Pic (VUE des monstres réduite, statut à durée)
- TOUR ±X*30 min converti en ±X PA par tour (PA min. 1)
- Drops : coffres (12 %), butin de monstres (25 %), pinceau éditeur,
  validation serveur du kind « scroll »
- js/treasures.js : page encyclopédie des 25 potions et 7 parchemins
  (niveau X, durée, formules), boutons accueil + en jeu

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 23:35:41 +02:00

523 lines
12 KiB
CSS

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: #1a140e;
color: #e8d9b0;
font-family: Georgia, "Times New Roman", serif;
min-height: 100vh;
padding-bottom: 1.75rem;
}
.app-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 5px 12px;
text-align: center;
font-size: 0.72em;
color: #6a5a40;
background: rgba(26, 20, 14, 0.92);
border-top: 1px solid #3a3020;
z-index: 200;
}
.screen { min-height: 100vh; }
.hidden { display: none !important; }
/* ---------- Écrans création / fin ---------- */
#screen-create, #screen-end, #screen-community {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.create-box {
max-width: 760px;
background: #2a2014;
border: 3px solid #6b5430;
border-radius: 10px;
padding: 30px;
text-align: center;
}
.create-box h1 { color: #8fbf5a; font-size: 2.2em; }
.subtitle { color: #b89c6a; font-style: italic; margin: 6px 0 14px; }
.lore { margin: 10px 0 20px; line-height: 1.5; color: #d8c79a; }
#troll-name {
width: 60%;
padding: 10px;
font-size: 1.1em;
background: #1a140e;
border: 2px solid #6b5430;
border-radius: 6px;
color: #e8d9b0;
text-align: center;
margin-bottom: 18px;
}
#race-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
margin-bottom: 20px;
text-align: left;
}
.race-card {
background: #1f1810;
border: 2px solid #4a3a20;
border-radius: 8px;
padding: 12px;
cursor: pointer;
transition: border-color .15s, background .15s;
}
.race-card:hover { border-color: #8fbf5a; }
.race-card.selected { border-color: #8fbf5a; background: #28341c; }
.race-card h4 { color: #8fbf5a; margin-bottom: 4px; }
.race-card .race-desc { font-size: .85em; color: #c9b685; line-height: 1.35; }
.race-card .race-stats { font-size: .78em; color: #8a7a55; margin-top: 6px; font-family: monospace; }
.big-btn {
background: #4a6b2a;
color: #f0e6c0;
border: 2px solid #8fbf5a;
border-radius: 8px;
padding: 12px 26px;
font-size: 1.15em;
font-family: inherit;
cursor: pointer;
}
.big-btn:hover { background: #5d8535; }
/* ---------- Écran de jeu ---------- */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
background: #2a2014;
border-bottom: 2px solid #6b5430;
}
header h1 { font-size: 1.3em; color: #8fbf5a; }
#depth-label { font-size: 1.1em; color: #d8a040; font-weight: bold; }
#layout {
display: flex;
gap: 10px;
padding: 10px;
align-items: flex-start;
}
#panel-left, #panel-right {
width: 230px;
flex-shrink: 0;
background: #2a2014;
border: 2px solid #6b5430;
border-radius: 8px;
padding: 10px;
font-size: .9em;
}
#panel-left h2 { color: #8fbf5a; font-size: 1.05em; margin-bottom: 8px; }
#panel-left h3, #panel-right h3 {
color: #d8a040;
font-size: .95em;
margin: 12px 0 6px;
border-bottom: 1px solid #4a3a20;
}
.panel-tabs {
display: flex;
gap: 4px;
margin: 8px 0 10px;
border-bottom: 1px solid #4a3a20;
padding-bottom: 6px;
}
.panel-tab {
flex: 1;
padding: 5px 4px;
font-size: 0.78em;
font-family: inherit;
background: #1f1810;
border: 1px solid #4a3a20;
border-radius: 5px 5px 0 0;
color: #a89568;
cursor: pointer;
}
.panel-tab:hover { color: #e8d9b0; border-color: #6b5430; }
.panel-tab.active {
background: #28341c;
border-color: #8fbf5a;
color: #8fbf5a;
font-weight: bold;
}
.fx-badge {
display: inline-block;
min-width: 1.1em;
padding: 0 4px;
margin-left: 2px;
border-radius: 8px;
background: #8fbf5a;
color: #1a140e;
font-size: 0.85em;
font-weight: bold;
}
.fx-badge.hidden { display: none; }
#stats div { display: flex; justify-content: space-between; padding: 2px 0; }
#stats .stat-val { font-family: monospace; color: #f0e6c0; }
#stats .stat-hint { color: #8a7a55; font-size: 0.82em; font-family: Georgia, serif; }
#effects-panel { margin-top: 4px; }
.fx-empty { color: #8a7a55; font-style: italic; font-size: 0.88em; line-height: 1.4; }
.fx-total {
background: #1f1810;
border: 1px solid #4a3a20;
border-radius: 6px;
padding: 8px;
margin-bottom: 10px;
}
.fx-total-title { color: #d8a040; font-size: 0.85em; margin-bottom: 6px; font-weight: bold; }
.fx-total .fx-mod { margin: 0 6px 4px 0; }
.fx-card {
background: #1f1810;
border: 1px solid #4a3a20;
border-radius: 6px;
padding: 8px;
margin-bottom: 8px;
}
.fx-card-buff { border-color: #5d8535; }
.fx-card-debuff { border-color: #a04848; }
.fx-card-head {
display: flex;
justify-content: space-between;
gap: 6px;
color: #e8d9b0;
font-size: 0.88em;
margin-bottom: 4px;
}
.fx-turns { color: #8a7a55; font-size: 0.9em; white-space: nowrap; }
.fx-card-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.fx-mod {
display: inline-block;
font-size: 0.78em;
font-family: monospace;
padding: 2px 5px;
border-radius: 4px;
background: #2a2014;
color: #c9b685;
}
.fx-card-buff .fx-mod { color: #8fbf5a; }
.fx-card-debuff .fx-mod { color: #d88080; }
.hp-bar-wrap { background: #3a2a1a; border-radius: 4px; height: 14px; margin: 6px 0; overflow: hidden; }
.hp-bar { background: #b03030; height: 100%; transition: width .2s; }
.hp-bar.high { background: #5d8535; }
.hp-bar.mid { background: #d8a040; }
#improve button, #inventory button, #actions button {
display: block;
width: 100%;
margin: 4px 0;
padding: 6px 8px;
background: #1f1810;
border: 1px solid #6b5430;
border-radius: 5px;
color: #e8d9b0;
font-family: inherit;
font-size: .92em;
cursor: pointer;
text-align: left;
}
#improve button:hover:not(:disabled),
#inventory button:hover:not(:disabled),
#actions button:hover:not(:disabled) { border-color: #8fbf5a; background: #28341c; }
#improve button:disabled, #inventory button:disabled, #actions button:disabled {
opacity: .4; cursor: default;
}
#panel-center { flex-grow: 1; text-align: center; }
#map {
background: #0d0a06;
border: 2px solid #6b5430;
border-radius: 6px;
image-rendering: pixelated;
max-width: 100%;
}
#pa-bar { margin: 8px 0; font-size: 1.3em; letter-spacing: 4px; }
#actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
#actions button { width: auto; display: inline-block; }
.help p { font-size: .8em; color: #a89568; margin: 3px 0; }
/* ---------- Menu & communauté ---------- */
.menu-row { margin-top: 14px; display: flex; gap: 10px; justify-content: center; }
.menu-btn {
background: #1f1810;
color: #d8c79a;
border: 2px solid #6b5430;
border-radius: 8px;
padding: 8px 16px;
font-family: inherit;
font-size: .95em;
cursor: pointer;
}
.menu-btn:hover { border-color: #8fbf5a; }
#level-list { margin: 16px 0; text-align: left; max-height: 50vh; overflow-y: auto; }
.level-row {
display: block;
width: 100%;
margin: 6px 0;
padding: 10px 12px;
background: #1f1810;
border: 2px solid #4a3a20;
border-radius: 8px;
color: #e8d9b0;
font-family: inherit;
font-size: .95em;
text-align: left;
cursor: pointer;
}
.level-row:hover { border-color: #8fbf5a; background: #28341c; }
/* ---------- Éditeur ---------- */
#ed-layout {
display: flex;
gap: 10px;
padding: 10px;
align-items: flex-start;
}
#ed-palette {
width: 250px;
flex-shrink: 0;
background: #2a2014;
border: 2px solid #6b5430;
border-radius: 8px;
padding: 10px;
font-size: .9em;
max-height: 80vh;
overflow-y: auto;
}
#ed-palette h3 {
color: #d8a040;
font-size: .95em;
margin: 10px 0 6px;
border-bottom: 1px solid #4a3a20;
}
#ed-palette button, #ed-palette select {
display: block;
width: 100%;
margin: 3px 0;
padding: 6px 8px;
background: #1f1810;
border: 1px solid #6b5430;
border-radius: 5px;
color: #e8d9b0;
font-family: inherit;
font-size: .92em;
cursor: pointer;
text-align: left;
}
#ed-palette button:hover { border-color: #8fbf5a; }
#ed-palette button.selected { border-color: #8fbf5a; background: #28341c; }
#ed-main { flex-grow: 1; text-align: center; }
#ed-map { cursor: crosshair; }
#ed-meta { margin: 10px 0; display: flex; gap: 10px; justify-content: center; }
#ed-meta input {
padding: 8px 10px;
font-size: 1em;
background: #1a140e;
border: 2px solid #6b5430;
border-radius: 6px;
color: #e8d9b0;
width: 40%;
}
#ed-actions { display: flex; gap: 10px; justify-content: center; }
#ed-status { margin: 10px 0; min-height: 1.2em; font-size: .95em; }
.ed-warn { color: #e06060; }
.ed-ok { color: #8fbf5a; }
.ed-note { font-size: .8em; color: #a89568; }
/* ---------- Règles des talents ---------- */
.header-right { display: flex; align-items: center; gap: 12px; }
#rules-body {
max-width: 1100px;
margin: 0 auto;
padding: 10px 16px 40px;
}
.rules-race {
color: #8fbf5a;
border-bottom: 2px solid #4a3a20;
margin: 24px 0 12px;
font-size: 1.4em;
}
.rules-pair {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
gap: 14px;
}
.rules-fiche {
background: #2a2014;
border: 2px solid #6b5430;
border-radius: 8px;
padding: 14px;
font-size: .92em;
}
.rules-fiche-title {
color: #d8a040;
font-weight: bold;
font-size: 1.1em;
text-align: center;
border-bottom: 1px solid #4a3a20;
padding-bottom: 6px;
margin-bottom: 8px;
}
.rules-fiche table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.rules-fiche td { padding: 2px 6px; vertical-align: top; }
.rules-fiche td:first-child { color: #a89568; width: 45%; }
.rules-section {
color: #8fbf5a;
font-weight: bold;
margin: 10px 0 4px;
letter-spacing: 1px;
}
.rules-text { color: #d8c79a; line-height: 1.5; }
.rules-flavor { font-style: italic; color: #b9a878; }
.rules-myinfo {
background: #1f2a14;
border: 2px solid #5d8535;
border-radius: 8px;
padding: 10px;
margin-bottom: 12px;
}
.rules-myinfo-title {
color: #8fbf5a;
font-weight: bold;
text-align: center;
border-bottom: 1px solid #41551f;
padding-bottom: 4px;
margin-bottom: 6px;
}
.rules-myinfo table { width: 100%; }
.rules-myinfo td { padding: 2px 6px; }
.rules-myinfo td:first-child { color: #a89568; width: 45%; }
#ed-help { max-width: 600px; margin: 0 auto; }
#equipment div, #inventory .empty { font-size: .88em; padding: 2px 0; color: #c9b685; }
#bottom-row {
display: flex;
gap: 10px;
margin: 0 10px 10px;
align-items: stretch;
}
#log {
flex: 1 1 55%;
background: #14100a;
border: 2px solid #4a3a20;
border-radius: 8px;
padding: 8px 12px;
height: 190px;
overflow-y: auto;
font-size: .85em;
font-family: monospace;
line-height: 1.45;
}
#combat-detail {
flex: 1 1 45%;
background: #14100a;
border: 2px solid #4a3a20;
border-radius: 8px;
padding: 8px 12px;
height: 190px;
overflow-y: auto;
font-size: .85em;
line-height: 1.5;
}
#combat-detail .cd-header {
color: #d8a040;
font-weight: bold;
border-bottom: 1px solid #4a3a20;
margin-bottom: 6px;
position: sticky;
top: 0;
background: #14100a;
}
#combat-detail .cd-empty { color: #6a5c40; font-style: italic; }
.cd-block {
border-bottom: 1px dashed #3a2f1c;
padding: 6px 0;
color: #cbb98c;
}
.cd-block .cd-title { color: #8fbf5a; font-weight: bold; }
.cd-val { color: #e0b070; font-weight: bold; }
.cd-good { color: #8fbf5a; font-weight: bold; }
.cd-bad { color: #e06060; font-weight: bold; }
#log .l-combat { color: #e0b070; }
#log .l-bad { color: #e06060; }
#log .l-good { color: #8fbf5a; }
#log .l-info { color: #9a8a65; }
/* ---------- Trésors du Hall (potions & parchemins) ---------- */
#treasures-body {
max-width: 1100px;
margin: 0 auto;
padding: 10px 16px 40px;
}
.tz-intro, .tz-note {
color: #b9a878;
line-height: 1.5;
font-size: .92em;
}
.tz-intro a { color: #d8a040; }
.tz-note { font-style: italic; margin-top: 18px; }
.tz-section {
color: #8fbf5a;
border-bottom: 2px solid #4a3a20;
margin: 24px 0 12px;
font-size: 1.3em;
}
.tz-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 12px;
}
.tz-card {
background: #2a2014;
border: 2px solid #6b5430;
border-left: 6px solid var(--tz-color, #6b5430);
border-radius: 8px;
padding: 10px 12px;
font-size: .92em;
}
.tz-name { color: #d8a040; font-weight: bold; }
.tz-meta { color: #a89568; font-size: .88em; margin: 4px 0 8px; }
.tz-meta b { color: #d8c79a; }
.tz-fx-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tz-fx {
background: #1f1810;
border: 1px solid #4a3a20;
border-radius: 4px;
padding: 2px 7px;
color: #d8c79a;
font-size: .9em;
}
.tz-good { color: #8fbf5a; }
.tz-bad { color: #d88080; }