:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2933; background: #f4f6f8; }
* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { --game-background: url("/static/images/background-1.webp"); --mission-background: var(--game-background); margin: 0; min-height: 100%; height: 100dvh; touch-action: none; background-color: #1f2933; background-image: linear-gradient(rgb(16 42 67 / 48%), rgb(16 42 67 / 48%)), var(--game-background); background-position: center; background-attachment: fixed; background-size: cover; background-repeat: no-repeat; }
.shell { width: min(100% - 2rem, 920px); height: 100dvh; max-height: 100dvh; overflow: hidden; margin: 0 auto; padding: 2rem 0 4rem; }
.narrow { max-width: 560px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 .25rem; color: #52606d; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; }
h1, h2 { margin-top: 0; color: #102a43; }
h1 { margin-bottom: .5rem; }
h2 { font-size: 1.1rem; }
.lead { color: #52606d; margin-bottom: 2rem; }
.shell > h1, .shell > .lead, .shell > .eyebrow { color: white; text-shadow: 0 2px 8px rgb(0 0 0 / 45%); }
.card { background: transparent; border: 1px solid rgb(217 226 236 / 42%); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 4px 18px rgb(16 42 67 / 8%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
form { display: grid; gap: .65rem; }
label { font-weight: 650; color: #334e68; }
input, select { width: 100%; min-height: 2.8rem; border: 1px solid #9fb3c8; border-radius: 9px; padding: .6rem .75rem; font: inherit; background: white; }
select[multiple] { min-height: 7rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin: .75rem 0 1rem; }
.choice-card { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 9rem; min-height: 5rem; border: 2px solid rgb(188 204 220 / 56%); border-radius: 12px; padding: .85rem; background: transparent; color: #102a43; text-align: left; }
.choice-card span { color: #52606d; font-size: .9rem; font-weight: 500; }
.choice-card.selected { border-color: #1f7a8c; background: transparent; box-shadow: 0 0 0 2px rgb(31 122 140 / 18%); }
#missions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem 0; align-items: start; }
.mission-option { display: flex; width: 100%; flex-direction: column; align-items: center; gap: .2rem; text-align: center; }
.mission-label { min-height: 1.25rem; color: rgb(255 255 255 / 92%); font-size: .95rem; font-weight: 750; letter-spacing: .02em; text-shadow: 0 2px 6px rgb(0 0 0 / 70%); }
.mission-failures { min-height: 1.1rem; color: rgb(255 255 255 / 78%); font-size: .75rem; font-weight: 650; text-shadow: 0 2px 6px rgb(0 0 0 / 70%); }
.mission-card { position: relative; width: min(8.5rem, 100%); min-width: 0; height: auto; aspect-ratio: 1; min-height: 0; margin: .25rem auto 0; align-items: center; justify-content: center; padding: .75rem; border: 1px solid rgb(255 255 255 / 34%); border-radius: 50%; background: transparent; color: white; text-align: center; touch-action: none; -webkit-user-select: none; user-select: none; box-shadow: inset 0 1px 2px rgb(255 255 255 / 28%), 0 8px 20px rgb(0 0 0 / 20%); backdrop-filter: blur(1px) saturate(125%); -webkit-backdrop-filter: blur(1px) saturate(125%); }
.mission-card strong { color: white; font-size: 2.8rem; line-height: 1; text-shadow: 0 2px 5px rgb(0 0 0 / 75%); }
.mission-card span { color: rgb(255 255 255 / 78%); font-size: .7rem; font-weight: 650; text-shadow: 0 2px 5px rgb(0 0 0 / 70%); }
.mission-result-icon { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; pointer-events: none; }
.mission-card.succeeded .mission-result-icon { transform: scale(1.23); }
.mission-card.failed .mission-result-icon { transform: scale(1.22); }
.choice-card:disabled { cursor: default; opacity: 1; }
.mission-card.current { border-color: rgb(255 255 255 / 70%); box-shadow: inset 0 1px 2px rgb(255 255 255 / 35%), 0 0 0 3px rgb(255 255 255 / 18%), 0 8px 20px rgb(0 0 0 / 22%); }
.mission-card.succeeded, .mission-card.failed { padding: 0; border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.history-card { border: 1px solid rgb(217 226 236 / 46%); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; background: transparent; backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.history-card.approved { border-left: 5px solid #2f855a; }
.history-card.rejected { border-left: 5px solid #c53030; }
.history-card summary { cursor: pointer; font-weight: 700; color: #102a43; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; border: 1px solid rgb(255 239 199 / 48%); border-radius: 9px; padding: .65rem 1rem; background-color: #9a693d; background-image: linear-gradient(rgb(73 38 15 / 28%), rgb(54 27 10 / 38%)), url("/static/images/button-texture-brown.webp?v=20260802-1"); background-position: center; background-size: cover; color: white; box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 3px 8px rgb(0 0 0 / 24%); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; margin: .35rem .35rem .35rem 0; }
button:hover:not(.choice-card), .button:hover { background-color: #790d0d; filter: brightness(1.16); }
.secondary { background-color: #9a693d; background-image: linear-gradient(rgb(73 38 15 / 28%), rgb(54 27 10 / 38%)), url("/static/images/button-texture-brown.webp?v=20260802-1"); color: white; }
.small { min-height: 2rem; padding: .35rem .65rem; font-size: .9rem; }
.error { color: #b42318; min-height: 1.25rem; }
.notice { border-radius: 9px; background: transparent; color: #155e75; padding: .75rem 1rem; margin-bottom: 1rem; }
.secret { background: transparent; border-radius: 9px; padding: .75rem; }
.code-badge { border-radius: 10px; background: #102a43; color: white; font-size: 1.4rem; font-weight: 800; letter-spacing: .14em; padding: .7rem 1rem; }
.board-qr { text-align: center; }
.board-qr img { display: inline-block; width: min(100%, 210px); height: auto; vertical-align: middle; }
.board-qr #join-url { display: inline-block; max-width: 12rem; margin: 0 0 0 1rem; vertical-align: middle; font-size: 1.15rem; font-weight: 750; color: #102a43; }
.board-qr .join-code { display: inline-block; margin-left: .4rem; }
ul { padding-left: 1.2rem; }
li { margin: .35rem 0; }
[hidden] { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; overflow: hidden; place-items: center; padding: 1rem; touch-action: none; background: rgb(16 42 67 / 42%); }
.modal { position: relative; width: min(900px, 100%); max-width: 100%; max-height: min(calc(100dvh - 2rem), 760px); overflow: hidden; margin: 0; box-shadow: 0 18px 60px rgb(16 42 67 / 30%); }
#proposal-modal .modal { height: min(82dvh, 760px); min-height: 0; padding-top: 5.25rem; padding-bottom: 7rem; }
.proposal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; padding: .75rem; border-radius: 10px; background: transparent; }
.proposal-summary p { margin: 0; }
.vote-progress { position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin: 0; }
.vote-progress-circles { display: flex; align-items: center; gap: .55rem; }
.vote-progress-circle { display: inline-flex; width: 3.25rem; height: 3.25rem; align-items: center; justify-content: center; border: 2px solid rgb(255 255 255 / 58%); border-radius: 50%; color: #d7dbe3; font-size: 1.35rem; font-weight: 800; line-height: 1; text-shadow: 0 2px 3px rgb(0 0 0 / 88%); background: transparent; }
.vote-progress-circle.pending { border-color: rgb(255 255 255 / 78%); color: #d7dbe3; }
.vote-progress-circle.approved { border-color: #48bb78; color: #9ae6b4 !important; font-size: 1.7rem; }
.vote-progress-circle.rejected { border-color: #fc8181; color: #feb2b2 !important; font-size: 1.7rem; }
.vote-progress-circle.last { border-color: #c53030; }
.vote-progress-circle.pending { border-color: transparent; text-shadow: none; }
.vote-progress-active-icon { display: block; width: calc(100% + 4px); height: calc(100% + 4px); margin: -2px; border-radius: 50%; object-fit: contain; pointer-events: none; transform: scale(1.32); }
.modal-back-choice { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-weight: 650; color: #334e68; }
.modal-back-choice input { width: auto; min-height: auto; }
.lobby-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.lobby-actions p { margin: .35rem; }
.lobby-order-editor { width: min(32rem, 100%); margin: 0 auto .75rem; padding: .85rem; border: 1px solid rgb(255 255 255 / 28%); border-radius: 10px; background: rgb(0 0 0 / 22%); }
.lobby-order-editor h3 { margin: 0 0 .25rem; }
.lobby-order-editor p { margin: 0 0 .55rem; font-size: .82rem; }
.lobby-order-editor ol { display: grid; gap: .35rem; margin: 0 0 .7rem; padding-left: 1.6rem; text-align: left; }
.lobby-order-editor li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lobby-order-controls { display: inline-flex; gap: .25rem; }
.lobby-order-controls button { min-width: 2rem; min-height: 2rem; margin: 0; padding: .2rem .45rem; }
.lobby-status-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.lobby-status-columns h3 { margin: 0 0 .5rem; color: #102a43; font-size: 1rem; }
.lobby-status-columns ul { margin-top: 0; }
.players-card {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  margin: 0;
  padding: .5rem 1rem;
  background: rgb(3 12 20 / 52%);
  border: 0;
  border-bottom: 1px solid #9fb3c8;
  box-shadow: 0 3px 14px rgb(16 42 67 / 12%);
}
.players-bar { max-width: 920px; margin: 0 auto; padding: 0; border: 0; background: transparent; }
.players-bar ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; margin: 0; padding: 0; }
.players-count { margin-bottom: .25rem; color: rgb(255 255 255 / 86%); font-size: .78rem; font-weight: 750; text-align: center; }
.players-bar li { flex: 1 1 0; min-width: max-content; list-style: none; margin: 0; text-align: center; }
.shell.has-fixed-players { padding-top: 7rem; }
.connection-dot { display: inline-block; width: .65rem; height: .65rem; margin-left: .45rem; border-radius: 50%; background: #c53030; vertical-align: middle; }
.connection-dot.connected { background: #2f855a; }
.connection-status { margin-left: .25rem; font-size: .72rem; opacity: .82; }
.modal-close-button { position: absolute; top: 1rem; left: 1rem; z-index: 2; width: 2.5rem; min-height: 2.5rem; margin: 0; padding: 0; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; background: rgb(197 48 48 / 82%); color: #d7dbe3 !important; font-size: 1.7rem; line-height: 1; text-shadow: 0 2px 3px rgb(0 0 0 / 88%); }
.modal-close-button:hover { background: rgb(155 44 44 / 92%); }
.player-action-modal-backdrop { background: rgb(0 0 0 / 70%); }
.player-action-modal { width: min(32rem, 100%); padding: clamp(1.25rem, 5vw, 2.5rem); border: 1px solid rgb(255 255 255 / 44%); text-align: center; }
.player-action-modal h2 { margin: 0 0 .75rem; color: #fff; }
.player-action-modal p { margin: 0 auto 1.5rem; color: rgb(255 255 255 / 84%); }
.player-action-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.player-action-options button { min-height: 3.25rem; margin: 0; }
.player-action-options .vote-choice { border-color: rgb(255 255 255 / 48%); background-position: center; background-size: cover; }
.player-action-options .vote-choice.approve, .player-page #actions button.vote-approve { background-color: #287a45; background-image: linear-gradient(rgb(20 110 55 / 48%), rgb(9 63 32 / 58%)), url("/static/images/button-texture-green.webp"); }
.player-action-options .vote-choice.reject, .player-page #actions button.vote-reject { background-color: #8f2222; background-image: linear-gradient(rgb(110 20 20 / 48%), rgb(63 9 9 / 58%)), url("/static/images/button-texture-red.webp"); }
.player-action-options .vote-choice.selected, .player-action-options .mission-choice.selected { box-shadow: 0 0 0 3px rgb(255 255 255 / 72%), inset 0 1px 0 rgb(255 255 255 / 24%), 0 4px 12px rgb(0 0 0 / 32%); }
.player-action-options .player-action-confirm { grid-column: 1 / -1; background-color: #9a693d; }
.player-action-options .player-action-confirm:disabled { border-color: rgb(255 255 255 / 22%); background-color: rgb(90 100 110 / 78%); background-image: linear-gradient(rgb(35 40 45 / 48%), rgb(20 24 28 / 58%)), url("/static/images/button-texture-gray.webp"); background-position: center; background-size: cover; color: rgb(255 255 255 / 62%); box-shadow: none; cursor: not-allowed; }
.player-action-options button.mission-success, .player-page #actions button.mission-success { border-color: #48bb78; background-color: #287a45; background-image: linear-gradient(rgb(20 110 55 / 48%), rgb(9 63 32 / 58%)), url("/static/images/button-texture-green.webp"); color: #fff; }
.player-action-options button.mission-fail, .player-page #actions button.mission-fail { border-color: #fc8181; background-color: #8f2222; background-image: linear-gradient(rgb(110 20 20 / 48%), rgb(63 9 9 / 58%)), url("/static/images/button-texture-red.webp"); color: #fff; box-shadow: 0 0 0 2px rgb(252 129 129 / 24%); }
@media (max-width: 450px) { .player-action-options { grid-template-columns: 1fr; } }
.player-page .player-private-card .secret { display: none; }
.player-role-button { position: fixed; left: 50%; bottom: max(.7rem, env(safe-area-inset-bottom)); z-index: 1200; min-width: 10rem; margin: 0; transform: translateX(-50%); }
.player-role-modal-backdrop { background: rgb(0 0 0 / 70%); }
.player-role-modal { width: min(48rem, 100%); max-height: min(calc(100dvh - 1rem), 820px); padding: clamp(.8rem, 1.8vw, 1.35rem); text-align: center; }
.player-role-modal h2 { margin: 0 0 .25rem; color: #fff; font-size: clamp(1.25rem, 2.1vw, 1.8rem); }
.player-role-modal > p { min-height: 0; margin: 0 auto .45rem; color: rgb(255 255 255 / 82%); font-size: clamp(.72rem, 1.1vw, .95rem); }
.role-faction { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .4rem auto 0; padding: .45rem; border: 2px solid; border-radius: 9px; text-align: left; }
.role-faction h3 { flex: 0 0 100%; margin: 0; font-size: clamp(.85rem, 1.3vw, 1.1rem); text-align: center; }
.role-faction.good { border-color: rgb(99 179 237 / 78%); background: rgb(16 74 125 / 76%); }
.role-faction.good h3 { color: #bee3f8; }
.role-faction.evil { border-color: rgb(252 129 129 / 78%); background: rgb(127 29 29 / 78%); }
.role-faction.evil h3 { color: #fed7d7; }
.role-own { display: grid; width: fit-content; max-width: 100%; grid-template-columns: minmax(0, 1fr); gap: .35rem; margin: .35rem auto 0; padding: .45rem; border: 1px solid rgb(255 255 255 / 38%); border-radius: 9px; background: rgb(0 0 0 / 62%); }
.role-own h3 { margin: 0; color: #fff; font-size: clamp(.85rem, 1.3vw, 1.1rem); text-align: center; }
.role-own.good { border-color: rgb(99 179 237 / 78%); background: rgb(16 74 125 / 76%); }
.role-own.evil { border-color: rgb(252 129 129 / 78%); background: rgb(127 29 29 / 78%); }
.role-possible-merlin { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .4rem auto 0; padding: .45rem; border: 1px solid rgb(255 255 255 / 28%); border-radius: 9px; background: rgb(24 29 35 / 72%); }
.role-possible-merlin h3 { flex: 0 0 100%; max-width: 30rem; margin: 0; color: rgb(255 255 255 / 88%); font-size: clamp(.68rem, 1vw, .88rem); line-height: 1.2; text-align: center; }
.role-own .role-info-card { width: auto; margin: 0 auto; background: transparent; }
.role-info-card { display: flex; width: clamp(6rem, 10vw, 9rem); min-width: 0; flex-direction: column; align-items: center; gap: clamp(.25rem, .5vw, .45rem); padding: .15rem; border: 0; border-radius: 0; background: transparent; text-align: center; }
.role-info-card > div:last-child { display: grid; gap: .1rem; }
.role-info-card strong { font-size: clamp(.72rem, 1.15vw, 1rem); }
.role-info-card span { font-size: clamp(.64rem, .95vw, .85rem); color: rgb(255 255 255 / 76%); overflow-wrap: anywhere; }
.role-image { display: block; width: clamp(3rem, 6vw, 5.5rem); height: clamp(3.75rem, 7.5vw, 6.8rem); border: 1px solid rgb(255 255 255 / 42%); border-radius: 6px; object-fit: cover; }
.role-image-placeholder { display: grid; width: clamp(3rem, 6vw, 5.5rem); height: clamp(3.75rem, 7.5vw, 6.8rem); place-items: center; border: 1px dashed rgb(255 255 255 / 56%); border-radius: 6px; color: rgb(255 255 255 / 72%); font-size: clamp(.58rem, .8vw, .75rem); text-align: center; }
.session-mini-card { position: fixed; left: max(.55rem, env(safe-area-inset-left)); bottom: max(.55rem, env(safe-area-inset-bottom)); z-index: 1200; display: flex; width: 4.2rem; min-height: 0; flex-direction: column; align-items: center; gap: .18rem; margin: 0; padding: .3rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 8px; background: rgb(16 42 67 / 88%); color: #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 34%); touch-action: manipulation; }
.session-mini-card:hover { border-color: #f6d365; }
.session-mini-card.confirmed { border-color: #f6d365; box-shadow: 0 0 0 2px rgb(246 211 101 / 32%), 0 3px 10px rgb(0 0 0 / 34%); }
.session-mini-card img { display: block; width: 2.5rem; height: 2.5rem; border-radius: 3px; background: #fff; }
.session-mini-card span { max-width: 100%; overflow: hidden; font-size: .65rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.reset-zoom-button { position: fixed; }
.session-qr-modal-backdrop { z-index: 1150; background: rgb(0 0 0 / 72%); }
.session-qr-modal { display: grid; width: min(22rem, calc(100% - 2rem)); justify-items: center; gap: .75rem; padding: 1.25rem; text-align: center; }
.session-qr-modal h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.session-qr-modal img { display: block; width: min(16rem, 80vw); height: auto; border: .4rem solid #fff; border-radius: 8px; background: #fff; }
.session-qr-modal .code-badge { margin: 0; font-size: 1.35rem; }
.proposal-open-button { display: block; margin: .75rem auto; }
.proposal-submit-button { display: flex; margin: 1rem auto .35rem; }
.selection-count { margin: 1rem 0 .75rem; font-size: 1.15rem; font-weight: 750; text-align: center; }
.modal.card { background-color: #1f2933; background-image: linear-gradient(rgb(3 12 20 / 62%), rgb(3 12 20 / 62%)), url("/static/images/background-3.webp"); background-position: center; background-size: cover; border-color: rgb(255 255 255 / 38%); }
.result-modal { text-align: center; }
.result-modal.good { border-color: #2f855a; }
.result-modal.good h2, .result-modal.good #game-result-message { color: #276749; }
.result-modal.evil { border-color: #c53030; }
.result-modal.evil h2, .result-modal.evil #game-result-message { color: #9b2c2c; }
.result-modal #game-result-reason { margin: 1rem 0 1.25rem; color: #52606d; }
.modal .choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.modal .player-card { min-width: 0; width: 100%; min-height: 8.5rem; padding: .65rem .35rem; align-items: center; justify-content: center; border-color: rgb(255 255 255 / 34%); background: rgb(3 12 20 / 52%); text-align: center; overflow-wrap: anywhere; }
.board-page #proposal-modal .modal .player-card:not(.selected) { background-color: rgb(90 100 110 / 78%); background-image: linear-gradient(rgb(35 40 45 / 48%), rgb(20 24 28 / 58%)), url("/static/images/button-texture-gray.webp"); background-position: center; background-size: cover; }
.modal .player-card.selected { border-color: #e6b875; background-color: #9a693d; background-image: linear-gradient(rgb(73 38 15 / 24%), rgb(54 27 10 / 34%)), url("/static/images/button-texture-brown.webp?v=20260802-1"); background-position: center; background-size: cover; box-shadow: 0 0 0 3px rgb(196 137 74 / 35%); }
.eyebrow { display: none; }
.player-page .topbar, .player-page #connection { display: none !important; }
.player-private-card #player-title { margin: 0 0 1.5rem; text-align: center; font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: .08em; text-transform: uppercase; }
.board-page, .player-page, .board-page .modal-backdrop, .board-page .modal { overflow: hidden; touch-action: none; }
.player-page .card, .player-page form, .player-page #private, .player-page #public, .player-page #actions, .player-page #action-error { text-align: center; }
.player-page label { text-align: center; }
.player-page #private ul, .player-page #public ul { padding-left: 0; list-style-position: inside; }
.player-page #actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.player-page #actions button { margin: .35rem; }
.player-page .card, .board-page .card { border-color: transparent; }
.player-page input, .player-page select { border-color: transparent; }
.board-page .history-card, .board-page .choice-card:not(.mission-card) { border-color: transparent; }
.board-page .modal .vote-card.voted:not(.approve):not(.reject) { background: rgb(3 12 20 / 72%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 4px 12px rgb(0 0 0 / 24%); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.board-page .vote-card:not(.voted) { border-color: rgb(255 255 255 / 22%); background-color: rgb(90 100 110 / 78%); background-image: linear-gradient(rgb(35 40 45 / 48%), rgb(20 24 28 / 58%)), url("/static/images/button-texture-gray.webp"); background-position: center; background-size: cover; }
.board-page .vote-card.approve { border-color: #48bb78; background-color: rgb(39 103 73 / 78%); background-image: linear-gradient(rgb(20 110 55 / 48%), rgb(9 63 32 / 58%)), url("/static/images/button-texture-green.webp"); background-position: center; background-size: cover; box-shadow: 0 0 0 2px rgb(72 187 120 / 24%); }
.board-page .vote-card.reject { border-color: #fc8181; background-color: rgb(155 44 44 / 78%); background-image: linear-gradient(rgb(110 20 20 / 48%), rgb(63 9 9 / 58%)), url("/static/images/button-texture-red.webp"); background-position: center; background-size: cover; box-shadow: 0 0 0 2px rgb(252 129 129 / 24%); }
.board-page .vote-card.voted:not(.approve):not(.reject) { border-color: rgb(255 239 199 / 62%); background-color: #9a693d; background-image: linear-gradient(rgb(73 38 15 / 28%), rgb(54 27 10 / 38%)), url("/static/images/button-texture-brown.webp?v=20260802-1"); background-position: center; background-size: cover; }
.vote-result-title, .vote-result-summary { text-align: center; }
.vote-result-summary { margin: .5rem 0 1rem; font-size: 1.2rem; font-weight: 800; }
.vote-result-actions { display: flex; justify-content: center; margin-top: 1.25rem; }
.vote-result-continue-button { min-width: 10rem; }
.mission-progress-title, .mission-result-title { margin-bottom: .5rem; text-align: center; }
.mission-choice-count { margin: .75rem 0; font-size: 1.2rem; font-weight: 800; text-align: center; }
.mission-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .65rem; margin: .75rem auto; }
.mission-member-card { display: flex; min-height: 7.5rem; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; padding: .75rem .5rem; border: 2px solid rgb(255 255 255 / 30%); border-radius: 12px; background: rgb(3 12 20 / 52%); text-align: center; overflow-wrap: anywhere; }
.mission-member-card span { font-size: .88rem; font-weight: 700; }
.mission-member-card.acted { border-color: #48bb78; background: rgb(39 103 73 / 78%); box-shadow: 0 0 0 2px rgb(72 187 120 / 24%); }
.mission-member-card.acted { background-image: linear-gradient(rgb(73 38 15 / 28%), rgb(54 27 10 / 38%)), url("/static/images/button-texture-brown.webp?v=20260802-1"); background-position: center; background-size: cover; }
.mission-member-card.waiting { border-color: rgb(255 255 255 / 22%); background-color: rgb(90 100 110 / 78%); background-image: linear-gradient(rgb(35 40 45 / 48%), rgb(20 24 28 / 58%)), url("/static/images/button-texture-gray.webp"); background-position: center; background-size: cover; opacity: .86; }
.mission-privacy-note { margin: .5rem auto 1rem; text-align: center; }
.mission-result-deck { display: flex; width: min(100%, 52rem); flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.45rem, 1.8vw, 1rem); margin: 1.25rem auto; }
.mission-result-card { display: grid; width: clamp(5.5rem, 15vw, 8.5rem); aspect-ratio: 7 / 10; flex: 0 0 auto; place-items: center; overflow: hidden; border: 2px solid rgb(255 255 255 / 46%); border-radius: 12px; background-color: #172636; box-shadow: 0 8px 20px rgb(0 0 0 / 34%); }
.mission-result-card.success { border-color: #48bb78; box-shadow: 0 0 0 2px rgb(72 187 120 / 30%), 0 8px 20px rgb(0 0 0 / 34%); }
.mission-result-card.fail { border-color: #fc8181; box-shadow: 0 0 0 2px rgb(252 129 129 / 30%), 0 8px 20px rgb(0 0 0 / 34%); }
.mission-result-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mission-result-deck.hidden-cards .mission-result-card { background-image: radial-gradient(circle at center, rgb(126 173 205 / 38%) 0 8%, transparent 9%), repeating-radial-gradient(circle at center, #243b53 0 9px, #102a43 10px 18px); box-shadow: inset 0 0 0 5px rgb(215 219 227 / 14%), 0 8px 20px rgb(0 0 0 / 34%); }
.mission-result-deck.hidden-cards .mission-result-card > span:first-child { font-family: Georgia, serif; font-size: 3rem; font-weight: 800; opacity: .8; }
.mission-result-summary { margin: .75rem 0; font-size: 1.35rem; font-weight: 850; text-align: center; }
.mission-result-summary.succeeded { color: #9ae6b4 !important; }
.mission-result-summary.failed { color: #feb2b2 !important; }
.mission-result-actions { display: flex; justify-content: center; margin-top: 1rem; }
.mission-result-button { min-width: 11rem; }
.player-role-modal { background-image: linear-gradient(rgb(3 12 20 / 62%), rgb(3 12 20 / 62%)), url("/static/images/background-role.webp"); background-position: center; background-size: cover; }
.player-action-modal, .board-page #proposal-modal .modal { background-image: linear-gradient(rgb(3 12 20 / 62%), rgb(3 12 20 / 62%)), var(--mission-background); background-position: center; background-size: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.board-page .players-card { border-bottom-color: transparent; }
.board-page .modal .player-card.selected { border-color: #1f7a8c; }
body, body * { color: #d7dbe3 !important; text-shadow: 0 2px 3px rgb(0 0 0 / 88%); }
input, textarea, select { color: #111827 !important; text-shadow: none !important; }
input::placeholder, textarea::placeholder { color: #4b5563 !important; opacity: 1; text-shadow: none !important; }
@media (max-width: 600px) { .shell { width: min(100% - 1rem, 920px); padding-top: 1rem; } .topbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .proposal-summary { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .board-qr #join-url { display: block; margin: .75rem auto 0; } }
@media (max-width: 600px) { .board-qr #join-url.code-badge { margin: .75rem auto 0; } }
@media (max-width: 600px) { .board-qr .join-code { margin-left: 0; } }
@media (max-width: 600px) { .lobby-status-columns { grid-template-columns: 1fr; } }
@media (max-width: 700px) { #missions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 450px) { #missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { #proposal-modal .modal { padding-top: 1.25rem; padding-bottom: 1.25rem; } .vote-progress { position: static; align-items: center; margin: 1rem 0 1rem; } .vote-progress-circles { flex-wrap: wrap; justify-content: center; } }
