@import url('https://fonts.googleapis.com/css2?family=Maple+Mono:wght@400;700&display=swap');

:root { --accent: #e03d28; --muted: #888; }

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

body {
  font-family: 'Maple Mono', 'Courier New', monospace;
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 1.6;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
}

h1 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
h2 { font-size: 12px; font-weight: 700; border-bottom: 1px solid #000;
  padding-bottom: 3px; margin: 24px 0 12px; }
.sub { color: var(--muted); font-size: 12px; margin-bottom: 20px; }

.back-link { display: inline-block; font-size: 11px; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid #bbb; margin-bottom: 14px; }
.back-link:hover { border-bottom-color: #000; color: #000; }
body.jimmy .back-link { border-bottom-color: #444; }
body.jimmy .back-link:hover { border-bottom-color: #ddd; color: #ddd; }

section { margin-bottom: 24px; }

button {
  font-family: inherit;
  font-size: 13px;
  background: #444;
  color: #fff;
  border: none;
  padding: 7px 20px;
  cursor: pointer;
  border-radius: 6px;
}
button:hover:not(:disabled) { background: #222; }
button:disabled { opacity: 0.45; cursor: default; }

input[type="text"] {
  font-family: inherit;
  font-size: 13px;
  border: 1px solid #bbb;
  padding: 6px 9px;
  width: 100%;
  background: #fff;
  color: #000;
  border-radius: 0;
}
input[type="text"]:focus { outline: 1px solid #000; border-color: #000; }

.sep { height: 1px; background: #ddd; margin: 24px 0; }

.top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.user-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.user-chip img { width: 20px; height: 20px; border-radius: 50%; }

#outfitBox {
  border: 1px solid #ddd;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
#outfitBox img { max-width: 100%; max-height: 320px; image-rendering: pixelated; }
#outfitMeta { font-size: 11px; color: var(--muted); margin-top: 8px; }

.guess-form { display: flex; gap: 8px; margin-bottom: 4px; }
.guess-input-wrap { position: relative; flex: 1; }
.guess-input-wrap input { width: 100%; }

.suggest-box {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #bbb;
  max-height: 220px;
  overflow-y: auto;
}
.suggest-box.open { display: block; }
.suggest-item { padding: 6px 9px; font-size: 13px; cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: #eee; }
body.jimmy .suggest-box { background: #1c1c1c; border-color: #444; }
body.jimmy .suggest-item:hover, body.jimmy .suggest-item.active { background: #333; }

.status-msg { font-size: 12px; margin: 6px 0 14px; }
.status-msg.win { color: #080; }
.status-msg.lose { color: #c00; }
body.jimmy .status-msg.win { color: #6abf6a; }
body.jimmy .status-msg.lose { color: #e87070; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; border-bottom: 1px solid #000; padding: 5px 7px; font-size: 11px; }
td { border-bottom: 1px solid #eee; padding: 6px 7px; }
tr:last-child td { border-bottom: none; }

.cell { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.cell.green { background: #e3f6e3; color: #080; }
.cell.yellow { background: #fdf3d0; color: #8a6d00; }
.cell.red { background: #fbe3e0; color: #c00; }
body.jimmy .cell.green { background: #163016; color: #6abf6a; }
body.jimmy .cell.yellow { background: #332b0a; color: #e0c15a; }
body.jimmy .cell.red { background: #331515; color: #e87070; }
.arrow { font-size: 10px; }

.dim { color: var(--muted); font-size: 11px; }

/* jimmy mode (dark) */
body.jimmy { --accent: #e87070; --muted: #666; background: #111; color: #ddd; }
body.jimmy h2 { border-bottom-color: #555; }
body.jimmy .sep { background: #2a2a2a; }
body.jimmy input[type="text"] { background: #1c1c1c; color: #ddd; border-color: #444; }
body.jimmy input[type="text"]:focus { outline-color: #aaa; border-color: #aaa; }
body.jimmy button { background: #444; color: #ddd; }
body.jimmy button:hover:not(:disabled) { background: #666; }
body.jimmy #outfitBox { border-color: #333; }
body.jimmy th { border-bottom-color: #555; }
body.jimmy td { border-bottom-color: #2a2a2a; }
body.jimmy #jimmyToggle { color: var(--accent); }
