/* A brighter, fixed comic-paper backdrop frames the game as the page scrolls. */
:root { background: #76c6dc; }
body::before {
  -webkit-mask: none;
  mask: none;
  background:
    radial-gradient(circle, #176d8b55 1.2px, transparent 1.8px) 0 0 / 10px 10px,
    repeating-conic-gradient(from -8deg at 50% 22%, #fff6c344 0deg 7deg, transparent 7deg 20deg),
    radial-gradient(ellipse at 50% 15%, #b9eced 0%, transparent 58%),
    linear-gradient(145deg, #80d8e2, #56acd1);
}

/* Brighter comic-book inks and halftones tie the house and conversation together. */
.comic-cover-top > .wordmark::before {
  background:
    radial-gradient(circle, #bb8d22 1.1px, transparent 1.7px) 0 0 / 10px 10px,
    repeating-conic-gradient(from -7deg at 36% 48%, #ffe98a 0deg 3deg, transparent 3deg 20deg),
    #f5cc36;
}
.comic-cover-accent::before {
  background:
    radial-gradient(circle, #247993 1.1px, transparent 1.6px) 0 0 / 10px 10px,
    linear-gradient(155deg, transparent 0 27%, #a7e1e7 27% 31%, transparent 31% 68%, #a7e1e7 68% 72%, transparent 72%),
    #65bdd0;
}
.comic-phase-label { background: #ffe46a; }
.comic-day-badge { background: #ffe047; }
#house-wall::after {
  background:
    radial-gradient(circle, #478f90 1.1px, transparent 1.7px) 0 0 / 11px 11px,
    #a5d8c9;
}

/* Inked comic tabs make each conversation distinct without crowding the rail. */
.chat-channels {
  gap: 6px;
  padding: 10px 9px;
  background: #9fcbd6;
}
.chat-channel {
  min-height: 35px;
  padding: 6px 7px;
  border: 2px solid #202020;
  border-radius: 3px 7px 7px 3px;
  background: #fff5cf;
  box-shadow: 2px 2px 0 #202020;
  color: #202020;
  font: 400 15px/1.05 'Browood', 'Spotlight Bangers', Impact, sans-serif;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.chat-channel-label { min-width: 0; overflow-wrap: anywhere; }
.chat-channel:hover { background: #d9eff0; }
.chat-channel.is-active,
.chat-channel.is-active:hover {
  border-color: #202020;
  background: #ffe047;
  box-shadow: 2px 2px 0 #202020;
  color: #202020;
}
.chat-section,
.chat-section:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 11px 0 2px;
  padding: 9px 0 0;
  border-top: 2px solid #527f88;
  color: #23444a;
  font: 900 italic 11px/1.1 BarlowCondensed, Arial, sans-serif;
  letter-spacing: .5px;
}
.chat-section h3 { margin: 0; }
.chat-alliance-list, .chat-private-list { grid-column: 1 / -1; gap: 6px; }
.chat-alliance-add {
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #202020;
  background: #ffe047;
  box-shadow: 2px 2px 0 #202020;
  font-size: 18px;
}
.chat-alliance-add:hover { background: #fff08a; }
.chat-channel .chat-unread {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 2px solid #202020;
  border-radius: 999px;
  background: #e63b47;
  box-shadow: 1px 1px 0 #202020;
  color: #fff;
  font: 900 11px/1 BarlowCondensed, Arial, sans-serif;
  text-align: center;
}
@media (max-width: 760px) {
  .chat-channels { padding: 8px 5px; }
  .chat-channel { min-height: 34px; padding: 5px 4px; font-size: 13px; }
  .chat-section, .chat-section:first-child { font-size: 10px; letter-spacing: .3px; }
  .chat-channel .chat-unread { min-width: 20px; height: 20px; padding: 0 3px; font-size: 10px; }
}
.chat-head {
  background: #f6c940 repeating-linear-gradient(135deg, transparent 0 15px, #ffffff25 15px 20px);
}
.chat-head h2 { letter-spacing: .3px; }
.chat-head span { color: #46391a; }
.chat-messages { background: #fff9df; }
.chat-avatar { background: #ffe047; box-shadow: 2px 2px 0 #222; }
#chat-form { background: #c9e8e6; }
#chat-send { background: #ffe047; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; }
#chat-send:not(:disabled):hover { background: #fff078; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #222; }
#chat-send:not(:disabled):active { transform: translate(2px, 2px); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  #chat-send { transition: none; }
}

/* House updates and player decisions get the same inked comic treatment. */
.game-side-content .eviction-results,
.game-side-content .care-recap,
.game-side-content #game-console {
  min-width: 0;
  padding: 13px;
  border: 3px solid #202020;
  background: #fff9df;
  box-shadow: 4px 4px 0 #202020;
  color: #202020;
}
.game-side-content .eviction-results,
.game-side-content .care-recap { margin-bottom: 16px; }
.eviction-results-header {
  align-items: center;
  margin: -13px -13px 12px;
  padding: 10px 11px;
  border-bottom: 3px solid #202020;
  background: #65bdd0 repeating-linear-gradient(135deg, transparent 0 15px, #ffffff35 15px 20px);
}
.eviction-results h2 { font-size: 19px; }
.eviction-results-day {
  padding: 4px 6px;
  border: 2px solid #202020;
  background: #ffe047;
  color: #202020;
}
.eviction-results-label { color: #31535b; }
.eviction-results-list li { border-color: #c9b77f; }
.eviction-results-evicted { color: #a62c32; }
.care-recap-heading {
  margin: -13px -13px 0;
  padding: 10px 11px;
  border: 0;
  border-bottom: 3px solid #202020;
  background: #f6c940 repeating-linear-gradient(135deg, transparent 0 15px, #ffffff35 15px 20px);
  box-shadow: none;
}
.care-recap-content { padding: 12px 0 0; }
#game-console .decision-section { border-top: 2px solid #d3b857; }
#game-console .decision-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#game-console .decision-section h3::before { background: #ef6657; }
#game-console .competition-entry h3::before { background: #65bdd0; }
#game-console .decision-section[data-decision="evict"] h3::before { background: #ffe047; }
#game-console .option:not(.nomination-option) { border-width: 2px; background: #fffdf1; }
#game-console .option:not(.nomination-option):hover,
#game-console .option:not(.nomination-option).selected { background: #a5dfe4; }
#game-console .nomination-option { background: #ffe59a; }
#game-console .nomination-option:hover { background: #ffe047; }
#game-console .nomination-option.selected,
#game-console .nomination-option.selected:hover { background: #8ed5df; }
#game-console .primary-button { background: #ffe047; }

/* A compact comic-book callout keeps the recap beside the game. */
.hoh-results-card[hidden] { display: none !important; }
.hoh-results-card { margin: 0 0 16px; padding: 15px; border: 3px solid #202020; background: #a5dfe4; box-shadow: 4px 4px 0 #202020; color: #202020; }
.hoh-results-kicker { display: block; font: 700 11px/1.2 BarlowCondensed, Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.hoh-results-card h2 { margin: 5px 0; font: 400 24px/1 'Spotlight Bangers', Impact, sans-serif; }
.hoh-results-card p { margin: 0 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.hoh-results-card button { padding: 9px 14px; border: 2px solid #202020; background: #ffe047; color: #202020; box-shadow: 3px 3px 0 #202020; cursor: pointer; font: 400 19px/1 'Spotlight Bangers', Impact, sans-serif; }
.hoh-results-card button:hover { background: #fff096; }
.hoh-results-card button:focus-visible, .hoh-results-dialog button:focus-visible { outline: 3px solid #a32955; outline-offset: 3px; }
.hoh-results-dialog { box-sizing: border-box; width: min(590px, calc(100% - 32px)); max-height: min(700px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 3px solid #202020; background: #fff9df; color: #202020; box-shadow: 6px 6px 0 #202020; }
.hoh-results-dialog::backdrop { background: #18252ab3; }
.hoh-results-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 3px solid #202020; background: repeating-linear-gradient(-45deg, #ffe047, #ffe047 13px, #ffeb79 13px, #ffeb79 17px); }
.hoh-results-dialog-header h2 { margin: 4px 0; font: 400 32px/1 'Spotlight Bangers', Impact, sans-serif; }
.hoh-results-dialog-header p { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.hoh-results-dialog-header button { flex: none; width: 36px; height: 36px; border: 2px solid #202020; background: #fff9df; color: #202020; cursor: pointer; font: 700 25px/1 Arial, sans-serif; }
.hoh-results-content { padding: 16px 20px 22px; }
.hoh-results-care[hidden] { display: none !important; }
.hoh-results-card .hoh-results-care { margin: 0 0 12px; font-weight: 700; }
.hoh-results-cohoh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; padding: 10px; border: 2px solid #202020; background: #a5dfe4; }
.hoh-results-cohoh span { font: 700 12px/1.2 BarlowCondensed, Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
.hoh-results-cohoh strong { font-size: 14px; overflow-wrap: anywhere; }
.hoh-results-table { width: 100%; border-collapse: collapse; text-align: left; }
.hoh-results-table th { padding: 8px; border-bottom: 2px solid #202020; color: #31535b; font: 700 12px/1.2 BarlowCondensed, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.hoh-results-table td { padding: 10px 8px; border-bottom: 1px solid #d8c992; font-size: 14px; vertical-align: top; overflow-wrap: anywhere; }
.hoh-results-table td:first-child { font-weight: 700; }
.hoh-results-winner { display: inline-block; margin-left: 5px; padding: 2px 5px; background: #ffe047; font: 700 10px/1.2 BarlowCondensed, Arial, sans-serif; text-transform: uppercase; }
@media (max-width: 480px) { .hoh-results-dialog-header { padding: 16px; } .hoh-results-content { padding: 12px; } .hoh-results-table th, .hoh-results-table td { padding: 8px 5px; } }
