:root {
  --monopoly-red: #da291c;
  --monopoly-yellow: #ffc72c;
  --monopoly-blue: #0a5eb0;
  --cream: #f6ecd4;
  --ink: #111111;
  --green: #1c7a3e;
  --border-thick: 4px;
  --border-thin: 2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  background-image: radial-gradient(circle, rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
}

h1, h2, h3, .display {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.5em;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--monopoly-red);
  border-bottom: var(--border-thick) solid var(--ink);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-header .brand {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  color: var(--monopoly-yellow);
  text-transform: uppercase;
  font-size: 1.6rem;
  text-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 16px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-header nav a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------- ribbon */

.ribbon-banner {
  position: relative;
  display: inline-block;
  background: var(--monopoly-yellow);
  border: var(--border-thin) solid var(--ink);
  color: var(--ink);
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  padding: 8px 22px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 10px 0;
}

/* ------------------------------------------------------------------ btns */

.btn {
  display: inline-block;
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border-thin) solid var(--ink);
  border-radius: 0;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.05s ease;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-red {
  background: var(--monopoly-red);
  color: #fff;
}

.btn-yellow {
  background: var(--monopoly-yellow);
}

.btn-blue {
  background: var(--monopoly-blue);
  color: #fff;
}

/* ---------------------------------------------------------------- panels */

.panel {
  background: #fff;
  border: var(--border-thick) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  margin-bottom: 24px;
}

.note-box {
  background: var(--monopoly-yellow);
  border: var(--border-thin) dashed var(--ink);
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ form */

form.game-form label {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 14px 0 4px;
}

form.game-form input[type="text"],
form.game-form input[type="password"],
form.game-form select,
form.game-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: var(--border-thin) solid var(--ink);
  font-size: 1rem;
  background: var(--cream);
}

form.game-form .helptext,
form.game-form .errorlist {
  font-size: 0.8rem;
}

form.game-form .errorlist {
  color: var(--monopoly-red);
  font-weight: bold;
  list-style: none;
  padding: 0;
  margin: 4px 0;
}

/* ------------------------------------------------------------ ticket card */

.ticket-card {
  background: #fff;
  border: var(--border-thick) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px;
  position: relative;
  max-width: 380px;
}

.ticket-card .perforation {
  border-top: var(--border-thin) dashed var(--ink);
  margin: 14px 0;
  text-align: center;
  position: relative;
  top: -12px;
}

.ticket-card .perforation span {
  background: #fff;
  padding: 0 8px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  top: -8px;
}

.ticket-card .stamp-number {
  position: absolute;
  top: 10px;
  right: 10px;
  border: var(--border-thin) solid var(--ink);
  padding: 2px 8px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 0.75rem;
  transform: rotate(4deg);
  background: var(--monopoly-yellow);
}

.ticket-card .avatar-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.ticket-card .alias {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 6px 0 2px;
}

.ticket-card .role-title {
  font-weight: bold;
  color: var(--monopoly-blue);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.ticket-card .pledge {
  font-style: italic;
  margin-top: 8px;
}

/* house color themes, matching classic Monopoly board color groups */
.theme-brown { --house-color: #955436; }
.theme-lightblue { --house-color: #aae0fa; }
.theme-pink { --house-color: #d93a96; }
.theme-orange { --house-color: #f7941d; }
.theme-red { --house-color: var(--monopoly-red); }
.theme-yellow { --house-color: var(--monopoly-yellow); }
.theme-green { --house-color: var(--green); }
.theme-blue { --house-color: var(--monopoly-blue); }

.house-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: var(--border-thin) solid var(--ink);
  background: var(--house-color);
  vertical-align: middle;
  margin-right: 6px;
}

.ticket-card.house-themed {
  border-top: 14px solid var(--house-color);
}

/* ---------------------------------------------------------------- board */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.board-cell {
  border: var(--border-thick) solid var(--ink);
  background: #fff;
  padding: 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.board-cell.player-cell {
  text-decoration: none;
  color: var(--ink);
}

.board-cell.player-cell:hover {
  background: var(--cream);
}

.board-cell .cell-kicker {
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.board-cell.card-animal { background: #e9f6ec; }
.board-cell.card-announcement { background: #fff2d9; }

.card-emoji {
  font-size: 1.8rem;
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border: var(--border-thin) solid var(--monopoly-yellow);
  font-weight: bold;
  display: none;
  z-index: 50;
}

.toast.show {
  display: block;
}

.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
