/* style.css - Inkwitch Redesign Style Sheet */

/* Global Colors & Design Tokens */
:root {
  --color-ink: #2c2825;          /* Charcoal Ink instead of harsh black */
  --color-paper: #fffcf8;        /* Off-white paper background */
  --color-desk: #ede6d9;         /* Muted desk color under the notebook */
  --color-primary: #3d608e;      /* Primary Ink Blue */
  --color-primary-light: #d8e6f5;/* Light Ink Blue background */
  --color-secondary: #894d59;    /* Dusty Rose for accents / shop items */
  --color-secondary-light: #ffd9df;
  --color-success: #3a6836;      /* Forest Green for checks/wins */
  --color-success-light: #e2f5df;
  --color-warning: #b78a2a;      /* Antique Gold */
  --color-warning-light: #fef4db;
  --color-error: #ba1a1a;        /* Crimson */
  --color-error-light: #ffdad6;
  --color-card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--color-ink);
  background-color: var(--color-desk);
  height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden; /* Force everything to stay within viewport */
}

.paper-texture {
  background-image: 
    radial-gradient(#cabfad 1px, transparent 1px),
    url("https://www.transparenttextures.com/patterns/natural-paper.png");
  background-size: 30px 30px, auto;
}

/* Wobbly Border Utilities */
.wobbly-border {
  border: 2px solid var(--color-ink);
  border-radius: 255px 25px 225px 25px/25px 225px 25px 255px;
  position: relative;
  background-color: var(--color-paper);
}

.wobbly-border-sm {
  border: 2px solid var(--color-ink);
  border-radius: 120px 12px 100px 12px/12px 100px 12px 120px;
}

/* Card Drop Offset Shadows (Tactile Stationery Style) */
.shadow-offset {
  box-shadow: 5px 5px 0px 0px var(--color-ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Top Horizontal Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background-color: var(--color-paper);
  border-radius: 200px 15px 200px 15px/15px 200px 15px 200px;
  height: 60px;
  flex-shrink: 0;
}

.status-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 28px;
  color: var(--color-primary);
}

.handwritten-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.status-bar-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.status-item-horizontal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 12px;
  background-color: #ffffff;
  border: 1px dashed rgba(44, 40, 37, 0.3);
  border-radius: 6px;
}

.status-item-horizontal .icon {
  font-size: 18px;
}

/* Layout Grid styling - distributed horizontally and viewport constrained */
.workbench-panels {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 20px;
  flex-grow: 1;
  height: calc(100vh - 108px); /* Remaining viewport height */
  min-height: 0; /* Let grid items shrink properly */
}

/* Right Column Wrapper */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}

/* Panel Containers */
.ledger-panel, .canvas-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden; /* Prevent panels from growing beyond the layout height */
}

.shop-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* Rotating panels for organic sketch look */
.transform-left {
  transform: rotate(-0.5deg);
}

.transform-right {
  transform: rotate(0.5deg);
}

/* Typography styles */
.handwritten-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  border-bottom: 2px dashed rgba(44, 40, 37, 0.2);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.panel-header .header-icon {
  font-size: 28px;
  color: var(--color-primary);
}

.tagline {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* List of visitors (Left Panel) */
.visitors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
  max-height: 48%; /* Leave room for card details below */
}

.visitor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.visitor-item:hover {
  transform: scale(1.02) rotate(1deg);
  background-color: var(--color-primary-light);
}

.visitor-item.active {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  box-shadow: 3px 3px 0px 0px var(--color-ink);
}

.visitor-item.completed {
  background-color: #eae6db;
  border-color: rgba(44, 40, 37, 0.2);
  opacity: 0.8;
}

.visitor-item.completed:hover {
  background-color: #dfdacd;
}

.visitor-item.completed.active {
  background-color: var(--color-primary-light);
  opacity: 1;
}

.visitor-item.completed .visitor-name {
  text-decoration: line-through;
  color: #777;
}

.visitor-item.completed .visitor-req-object {
  color: #888;
}

.visitor-item.completed .visitor-reward {
  color: var(--color-success);
  font-weight: 800;
}

.visitor-item.locked {
  background-color: #ede6d9;
  border: 2px dashed rgba(44, 40, 37, 0.4);
  cursor: not-allowed;
  opacity: 0.6;
}

.visitor-item.locked:hover {
  transform: none !important;
  background-color: #ede6d9;
  box-shadow: none !important;
}

.visitor-item.locked .visitor-name {
  color: #888;
  font-style: italic;
  font-weight: 500;
}

.visitor-item.locked .visitor-req-object {
  color: #999;
}


.visitor-avatar {
  width: 38px;
  height: 38px;
  background-color: #ede6d9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.visitor-info {
  flex-grow: 1;
  min-width: 0; /* Allows ellipsis/truncation of child text */
}

.visitor-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-req-object {
  font-size: 12px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-reward {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-warning);
  flex-shrink: 0;
}

/* Selected Visitor Card (Center Panel) */
.visitor-request-card {
  padding: 12px 16px;
  background-color: #fffde6; /* Sticky note yellow */
  transform: rotate(-0.5deg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  max-height: 48%;
  overflow-y: auto; /* Internal scrolling if properties lists get long */
}

.card-loader {
  font-style: italic;
  color: #666;
  text-align: center;
  padding: 6px;
  font-size: 13px;
}

.request-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dotted rgba(44, 40, 37, 0.3);
  padding-bottom: 4px;
}

.request-visitor {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--color-secondary);
}

.request-gold {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-warning);
}

.request-flavor {
  font-size: 13px;
  font-style: italic;
  color: #555;
  line-height: 1.3;
}

.request-target {
  font-size: 14px;
  font-weight: 600;
}

.request-properties-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}

.request-properties-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.property-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
}

.bullet-star {
  color: var(--color-primary);
  font-size: 14px;
  margin-top: 1px;
}

.property-predicate {
  font-size: 11px;
  color: #666;
  font-style: italic;
}

/* Drawing Workbench Section */
.drawing-area {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  justify-content: center;
  min-height: 0;
}

/* Mana Indicator */
.mana-container {
  width: 100%;
  max-width: 384px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.mana-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.mana-meta .label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.mana-meta .value {
  font-family: monospace;
  font-weight: bold;
}

.mana-bar-outer {
  height: 12px;
  background-color: #ffffff;
  overflow: hidden;
  padding: 1px;
}

.mana-bar-inner {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 6px;
  transition: width 0.1s ease-out;
}

/* Scribble Texture for Mana Fill */
@keyframes scribble {
  0% { transform: skewX(-3deg) translateY(0); }
  50% { transform: skewX(3deg) translateY(0.5px); }
  100% { transform: skewX(-3deg) translateY(0); }
}

.scribble-fill {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.15) 2px, transparent 2px, transparent 4px);
  animation: scribble 0.3s infinite ease-in-out;
}

.mana-bouncing {
  width: 30% !important;
  animation: scribble 0.3s infinite ease-in-out, mana-ping-pong 1.5s infinite ease-in-out !important;
}

@keyframes mana-ping-pong {
  0% { margin-left: 0%; }
  50% { margin-left: 70%; }
  100% { margin-left: 0%; }
}

/* HTML5 Canvas styles */
.canvas-wrapper {
  background-color: #ffffff;
  display: inline-block;
  padding: 2px;
  flex-shrink: 1;
  min-height: 0;
}

#paint-canvas {
  display: block;
  background-color: #ffffff;
  touch-action: none;
  cursor: crosshair;
  max-height: 100%;
  max-width: 100%;
}

.canvas-wrapper.wobbly-border-sm {
  border-radius: 8px;
}

/* Action Buttons */
.workbench-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 384px;
  flex-shrink: 0;
}

.btn-sketch {
  flex-grow: 1;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border: 2px solid var(--color-ink);
  background-color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 3px 3px 0px 0px var(--color-ink);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* Wobbly shape definitions for buttons */
.btn-sketch {
  border-radius: 80px 10px 90px 10px/10px 90px 10px 80px;
}

.btn-sketch:hover {
  transform: translate(-1px, -1px) rotate(-0.5deg);
  box-shadow: 4px 4px 0px 0px var(--color-ink);
}

.btn-sketch:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--color-ink);
}

/* Disabled (e.g. Reset on a completed guest): grayed out and fully inert —
   pointer-events:none kills both clicks and the hover transform. */
.btn-sketch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: 1px 1px 0px 0px var(--color-ink);
}

.btn-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
}

.btn-primary:hover {
  background-color: #c5dcfa;
}

.btn-secondary {
  color: #555;
}

.btn-danger {
  background-color: var(--color-error-light);
  color: var(--color-error);
}

.btn-danger:hover {
  background-color: #ffc2bb;
}

.btn-warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.btn-warning:hover {
  background-color: #fcebbb;
}

/* Right Panel: Shop, Controls & Outcomes */

/* Shop Upgrades Shelf */
.shop-upgrades {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.upgrade-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-shop {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border-radius: 120px 10px 100px 10px/10px 100px 10px 120px;
}

.shop-item-desc {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-item-desc .icon {
  font-size: 20px;
}

.label-group {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: bold;
  font-size: 13px;
}

.item-benefit {
  font-size: 10px;
  color: #666;
  font-style: italic;
}

.btn-shop .price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-warning);
  background-color: #ffffff;
  padding: 2px 6px;
  border: 1px solid var(--color-ink);
  border-radius: 4px;
}

/* Control actions bottom */
.control-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* Outcome Panel (Right Panel bottom) */
.outcome-panel {
  padding: 12px;
  background-color: var(--color-paper);
  transform: rotate(-0.5deg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100px;
}

.outcome-content {
  font-size: 13px;
  line-height: 1.3;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.outcome-success {
  background-color: var(--color-success-light);
  border: 1.5px solid var(--color-success);
  border-radius: 6px;
  padding: 8px;
}

.outcome-success h3 {
  color: var(--color-success);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  margin-bottom: 2px;
}

.outcome-fail {
  background-color: var(--color-error-light);
  border: 1.5px solid var(--color-error);
  border-radius: 6px;
  padding: 8px;
}

.outcome-fail h3 {
  color: var(--color-error);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  margin-bottom: 2px;
}

.outcome-message {
  font-style: italic;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.breakdown-list {
  list-style: none;
  padding-left: 2px;
  margin-top: 4px;
  border-top: 1px dashed rgba(44, 40, 37, 0.2);
  padding-top: 4px;
  font-size: 11px;
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.breakdown-list li.total {
  font-weight: bold;
  font-size: 12px;
  border-top: 1px dotted rgba(44, 40, 37, 0.4);
  padding-top: 2px;
  margin-top: 2px;
  color: var(--color-ink);
}

.empty-state {
  text-align: center;
  color: #777;
  font-style: italic;
  font-size: 12px;
  margin-top: 12px;
}

/* Decorative Doodles */
.decorative-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  color: var(--color-ink);
}

.doodle-left {
  bottom: 8px;
  right: 8px;
  transform: rotate(15deg);
}

.doodle-right {
  bottom: 8px;
  left: 8px;
  transform: rotate(-15deg);
}

.doodle-left .material-symbols-outlined,
.doodle-right .material-symbols-outlined {
  font-size: 48px;
}

/* Custom ruled sheets */
.paper-sheet {
  background-image: linear-gradient(rgba(44, 40, 37, 0.08) 1px, transparent 1px);
  background-size: 100% 20px;
  line-height: 20px;
}

/* Responsive Scaling for smaller heights / widths */
@media (max-width: 1000px) {
  body {
    height: auto;
    overflow: auto;
  }
  .workbench-panels {
    grid-template-columns: 1fr;
    height: auto;
  }
  .status-bar {
    border-radius: 12px;
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .status-bar-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .ledger-panel, .canvas-panel {
    transform: none !important;
    height: auto;
    min-height: auto;
  }
  .right-column {
    height: auto;
    overflow: auto;
  }
}

/* Delivery Outcome Box inside Request Card details */
.delivery-outcome-box {
  margin-top: 10px;
  padding: 12px;
  border: 2px dashed var(--color-ink);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  background-color: #ffffff;
  box-shadow: 2px 2px 0px 0px rgba(0,0,0,0.15);
}

.delivery-outcome-box.success {
  border-color: var(--color-success);
  background-color: var(--color-success-light);
}

.delivery-outcome-box.success h4 {
  color: var(--color-success);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.delivery-outcome-box.fail {
  border-color: var(--color-error);
  background-color: var(--color-error-light);
}

.delivery-outcome-box.fail h4 {
  color: var(--color-error);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.delivery-outcome-box .outcome-desc {
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
}

.delivery-outcome-box .breakdown-rows {
  list-style: none;
  border-top: 1px dotted rgba(44, 40, 37, 0.2);
  padding-top: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.delivery-outcome-box .breakdown-rows li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.delivery-outcome-box .breakdown-rows li.total {
  font-weight: bold;
  font-size: 13px;
  border-top: 1px dotted var(--color-ink);
  padding-top: 4px;
  margin-top: 4px;
  color: var(--color-ink);
}

/* Button & Top Bar layout helpers */
.btn-block {
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0 !important;
}

.btn-sm {
  padding: 6px 10px !important;
  font-size: 11px !important;
  box-shadow: 2px 2px 0px 0px var(--color-ink) !important;
}

.btn-sm:active {
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0px 0px var(--color-ink) !important;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

/* Instruction Modal overlay/card styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 40, 37, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  display: none !important;
  pointer-events: none;
}

.modal-content {
  background-color: var(--color-paper);
  padding: 24px;
  max-width: 520px;
  width: 90%;
  position: relative;
  border-radius: 15px 15px 15px 15px/15px 15px 15px 15px;
  animation: modal-enter 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-enter {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(44, 40, 37, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.modal-header .handwritten-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-ink);
  line-height: 1;
  padding: 0 4px;
}

.btn-close:hover {
  color: var(--color-secondary);
}

.modal-body {
  font-size: 14px;
  line-height: 1.5;
}

.modal-body p {
  margin-bottom: 8px;
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
}

.modal-body li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.modal-body li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  color: var(--color-primary);
  font-size: 12px;
}

/* End Day Button Refinement */
#btn-end-day {
  width: calc(100% - 32px);
  margin: 8px 16px 4px 16px;
  padding: 10px 20px;
  flex-grow: 0 !important;
  flex-shrink: 0;
}

/* Stat Label & New Run Button Styling refinements */
.stat-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

#btn-new-game {
  font-size: 13px !important;
  padding: 6px 12px !important;
}

/* Ledger Panel Divider */
.ledger-divider {
  border: none;
  border-top: 2px dashed rgba(44, 40, 37, 0.25);
  margin: 4px 0;
  flex-shrink: 0;
}

/* Logs styling */
.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px dotted rgba(44, 40, 37, 0.15);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.85);
}

.log-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.log-text {
  flex-grow: 1;
}

/* Custom log type highlight styles */
.log-day-start {
  font-weight: 700;
  border-bottom: 1.5px solid rgba(44, 40, 37, 0.3);
  background: var(--color-warning-light);
}

.log-new-customer {
  border-left: 3px solid var(--color-secondary);
}

.log-shop {
  border-left: 3px solid #6b5b95;
}

.log-shop-error {
  border-left: 3px solid var(--color-error);
  color: var(--color-error);
}

.log-delivery-success {
  border-left: 3px solid var(--color-success);
  background: var(--color-success-light);
}

.log-delivery-fail {
  border-left: 3px solid var(--color-error);
  background: var(--color-error-light);
}

.log-rent-paid {
  border-left: 3px solid #feb236;
}

.log-rent-failed {
  border-left: 3px solid var(--color-error);
  font-weight: bold;
}

.log-debt-paid {
  border-left: 3px solid var(--color-success);
  font-weight: bold;
}

.log-game-won {
  background: var(--color-success-light);
  border: 2px dashed var(--color-success);
  font-weight: bold;
  font-size: 14px;
  padding: 10px;
}

.log-game-lost {
  background: var(--color-error-light);
  border: 2px dashed var(--color-error);
  font-weight: bold;
  font-size: 14px;
  padding: 10px;
}

.log-appraising, .log-advancing {
  font-style: italic;
  color: #777;
  border-left: 3px dashed var(--color-ink);
  background: rgba(255, 255, 255, 0.25);
}

