* {
	box-sizing: border-box;
}
.ml-2 {
	margin-left: 8px;
}
body {
	font-family: monospace;
	background: #1a1a2e;
	color: #eee;
	padding: 0;
	margin: 0;
	min-height: 100vh;
}
h1 {
	text-align: center;
	color: #e94560;
}
.game-container {
	max-width: 100%;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 0;
}
.game-board-fullscreen {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.game-sse-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.player-card {
	border: 1px solid #444;
	padding: 15px;
	margin: 10px 0;
	background: #16213e;
	border-radius: 8px;
}
.player-card.current {
	border-color: #e94560;
	border-width: 2px;
	box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}
.player-card.active-input {
	border-color: #f1c40f;
	border-width: 3px;
	box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
	animation: activeInputPulse 1.5s ease-in-out infinite;
}
@keyframes activeInputPulse {
	0%, 100% { box-shadow: 0 0 15px rgba(241, 196, 15, 0.5); }
	50% { box-shadow: 0 0 25px rgba(241, 196, 15, 0.8); }
}
.player-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.stack {
	display: inline-flex;
	align-items: stretch;
	gap: 5px;
}
.farm {
	margin: 0;
	padding: 10px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}
.farm-morning {
	background: linear-gradient(135deg, #1a3a5c 0%, #2d5a7b 100%);
	border: 1px solid #3498db;
}
.farm-afternoon {
	background: linear-gradient(135deg, #4a3728 0%, #6b4423 100%);
	border: 1px solid #e67e22;
}
.farm-night {
	background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
	border: 1px solid #9b59b6;
}
.farm-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #444;
}
.farm-title {
	font-size: 1.4em;
	font-weight: bold;
}
.farm-hp {
	font-size: 1.2em;
	color: #e94560;
	font-weight: bold;
}
.farm-label {
	color: #888;
	margin-bottom: 5px;
}
.farm-empty {
	color: #666;
	font-style: italic;
	font-size: 1.1em;
}
.hand {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 15px 0;
	justify-content: center;
}
.hand-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px;
	background: #533483;
	border-radius: 8px;
}
.hand-idx {
	font-size: 1.2em;
	color: #fff;
	font-weight: bold;
	margin-bottom: 8px;
}
.farm-item {
	display: inline-block;
	position: relative;
	width: 150px;
	height: 250px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.one-time-use::after {
	content: "*";
	color: #e94560;
	font-size: 2em;
	font-weight: bold;
	position: absolute;
	top: -10px;
	right: -10px;
}
.zombie-card {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #2c3e50;
	padding: 15px;
	margin: 10px 0;
	border-radius: 8px;
	border-left: 4px solid #9b59b6;
}
.zombie-img {
	width: 250px;
	height: 250px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.zombie-info {
	flex: 1;
}
.zombie-traits {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}
/* Trait colors - used by .trait-badge */
.trait-invisible { background: #9b59b6; color: white; }
.trait-flying { background: #3498db; color: white; }
.trait-climbing { background: #f1c40f; color: #000; }
.trait-bulletproof { background: #2980b9; color: white; }
.trait-fireproof { background: #e74c3c; color: white; }
.trait-timid { background: #2ecc71; color: #000; }
.trait-exploding { background: #e67e22; color: white; }
.event-card {
	background: #2c3e50;
	padding: 15px;
	margin: 10px 0;
	border-radius: 8px;
	border-left: 4px solid #e74c3c;
}
.input-prompt {
	background: #16213e;
	border: 2px solid #e94560;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	text-align: center;
}
.input-prompt strong {
	display: block;
	margin-bottom: 15px;
	font-size: 1.1em;
}
.choice-btn {
	background: #e94560;
	color: white;
	border: none;
	padding: 12px 24px;
	margin: 5px;
	cursor: pointer;
	font-family: monospace;
	font-size: 1.1em;
	border-radius: 6px;
	transition: background 0.2s;
}
.choice-btn:hover {
	background: #ff6b6b;
}
.stats {
	color: #888;
	margin-bottom: 15px;
	text-align: center;
}
.turn-indicator {
	font-size: 1.4em;
	margin: 15px 0;
	text-align: center;
}
.morning { color: #3498db; }
.afternoon { color: #e67e22; }
.night { color: #9b59b6; }
.public-cards {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 15px 0;
	padding: 10px;
	background: #0f3460;
	border-radius: 8px;
}
hr {
	border: none;
	border-top: 1px solid #333;
	margin: 20px 0;
}
.lobby-form {
	text-align: center;
	margin: 20px 0;
}
.lobby-form input {
	padding: 12px 15px;
	font-size: 1em;
	font-family: monospace;
	background: #0f3460;
	border: 1px solid #444;
	border-radius: 6px;
	color: #eee;
	margin-right: 10px;
}
.lobby-form button {
	padding: 12px 25px;
	font-size: 1em;
	font-family: monospace;
	background: #e94560;
	border: none;
	border-radius: 6px;
	color: white;
	cursor: pointer;
}
.lobby-form button:hover {
	background: #ff6b6b;
}
.player-list {
	margin: 20px 0;
	text-align: center;
}
.player-list h3 {
	color: #e94560;
}
.player-list-item {
	padding: 8px 0;
	font-size: 1.1em;
}
.night-cards {
	margin: 10px 0;
}
.night-cards-count {
	color: #9b59b6;
	font-weight: bold;
}
/* Night phase layout: cards on left, input on right */
.night-input-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 15px;
}
.night-cards-section {
	flex-shrink: 0;
}
.input-section {
	flex: 1;
}
.input-section .input-prompt {
	margin: 0;
}
/* Farm stacks - cards match hand card size (20vh to fit inside 22vh hand area) */
.stacks-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.stack {
	display: flex;
	gap: 5px;
	background: #533483;
	border-radius: 8px;
	padding: 5px;
	height: calc(20vh - 10px);
	min-height: 100px;
}
button.stack {
	display: flex;
	gap: 5px;
	background: #533483;
	border-radius: 8px;
	padding: 5px;
	height: calc(20vh - 10px);
	min-height: 100px;
	border: none;
	cursor: pointer;
}
.farm-card {
	height: 100%;
	aspect-ratio: 3 / 5;
}
button.farm-card {
	height: 100%;
	aspect-ratio: 3 / 5;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}
.farm-card .farm-item-scaled {
	width: 100%;
	height: 100%;
}
.stack-form, .hand-form, .action-form {
	display: inline-block;
	margin: 0;
	padding: 0;
}
.item-form {
	display: contents;
}
.clickable {
	cursor: pointer;
	transition: box-shadow 0.2s ease;
	box-shadow: 0 0 0 3px #e94560, 0 0 10px #e94560;
	animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 3px #e94560, 0 0 10px #e94560; }
	50% { box-shadow: 0 0 0 3px #e94560, 0 0 20px #e94560; }
}

button.stack {
	background: #0f3460;
	border: none;
	padding: 15px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
button.hand-item {
	background: #533483;
	border: none;
	padding: 10px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.farm-item-btn {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

/* Action buttons */
.input-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}
.input-message {
	margin-bottom: 10px;
}
.action-btn {
	padding: 15px 30px;
	font-size: 1.2em;
	font-family: monospace;
	font-weight: bold;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
}
.action-btn:hover {
	transform: scale(1.05);
}
.action-skip {
	background: #7f8c8d;
	color: white;
}
.action-skip:hover {
	background: #95a5a6;
}
.action-yes {
	background: #27ae60;
	color: white;
}
.action-yes:hover {
	background: #2ecc71;
}
.action-no {
	background: #c0392b;
	color: white;
}
.action-no:hover {
	background: #e74c3c;
}
.action-confirm {
	background: #3498db;
	color: white;
}
.action-confirm:hover {
	background: #5dade2;
}
.action-damage {
	background: #8e44ad;
	color: white;
}
.action-damage:hover {
	background: #9b59b6;
}
.action-new {
	background: #16a085;
	color: white;
}
.action-new:hover {
	background: #1abc9c;
}
.action-draw {
	background: #2980b9;
	color: white;
}
.action-draw:hover {
	background: #3498db;
}
.action-public {
	background: #d35400;
	color: white;
}
.action-public:hover {
	background: #e67e22;
}
/* Main game area - fills remaining space below top bar */
.main-game-area {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #1a1a2e;
}
/* Player tabs */
.farm-tabs {
	display: flex;
	gap: 4px;
	padding: 4px 10px;
	background: #0f0f1a;
	border-bottom: 1px solid #333;
	overflow-x: auto;
	flex-shrink: 0;
}
.farm-tab {
	padding: 8px 16px;
	background: #1a1a2e;
	border: 2px solid #333;
	border-radius: 8px 8px 0 0;
	color: #888;
	cursor: pointer;
	font-family: monospace;
	font-size: 1.2em;
	transition: all 0.2s ease;
	white-space: nowrap;
}
.farm-tab:hover {
	background: #252540;
	color: #fff;
}
.farm-tab.active {
	background: #16213e;
	border-color: var(--player-color, #533483);
	border-bottom-color: #16213e;
	color: #fff;
}
.farm-tab.current-player {
	animation: tabPulse 1.5s ease-in-out infinite;
}
@keyframes tabPulse {
	0%, 100% { box-shadow: 0 0 5px rgba(233, 69, 96, 0.3); }
	50% { box-shadow: 0 0 15px rgba(233, 69, 96, 0.6); }
}
.tab-hp {
	color: #e94560;
	font-size: 1em;
	margin-left: 10px;
}
.tab-you {
	color: #2ecc71;
	font-size: 1em;
	margin-left: 8px;
}
.farm-tab.info-tab {
	background: #0f3460;
	border-color: #3498db;
	color: #3498db;
}
.farm-tab.info-tab:hover {
	background: #1a4a7a;
	color: #fff;
}
.farm-tab.info-tab.active {
	background: #16213e;
	border-color: #3498db;
	color: #fff;
}
.tab-turn-indicator {
	color: #e94560;
	margin-left: 6px;
	animation: turnPulse 1s ease-in-out infinite;
}
@keyframes turnPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
.farm-tab.current-turn {
	border-color: #e94560;
	box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}
/* Tab wrapper for positioning disconnected label */
.farm-tab-wrapper {
	position: relative;
	display: inline-block;
}
/* Disconnected player tab styling */
.farm-tab.disconnected {
	background: transparent;
	border: 2px dashed #fff;
	color: #fff;
}
.farm-tab.disconnected:hover {
	background: rgba(255, 255, 255, 0.1);
}
.farm-tab.disconnected.active {
	background: rgba(255, 255, 255, 0.05);
	border-color: #fff;
	border-style: dashed;
}
.farm-tab.disconnected .tab-hp,
.farm-tab.disconnected .tab-you,
.farm-tab.disconnected .tab-turn-indicator {
	color: #fff;
	opacity: 0.7;
}
/* Disconnected label above tab - does not affect layout */
.disconnected-label {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.6em;
	color: #fff;
	opacity: 0.8;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	pointer-events: none;
	font-weight: normal;
}
/* Turn indicator bar */
.turn-bar {
	background: #0a0a15;
	padding: 6px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border-bottom: 1px solid #333;
	flex-shrink: 0;
}
.turn-bar-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.turn-bar-text {
	font-size: 1.1em;
	color: #888;
}
.turn-bar-text.your-turn {
	color: #2ecc71;
	font-weight: bold;
	animation: yourTurnPulse 1.5s ease-in-out infinite;
}
.turn-bar-phase {
	font-size: 1.1em;
	color: #888;
}
.turn-bar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.turn-bar-message {
	color: #aaa;
	font-size: 0.95em;
	font-style: italic;
}
.turn-bar-left {
	display: inline-flex;
	align-items: center;
	gap: 0;
}
/* Night card in turn bar */
.turn-bar-night-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.turn-bar-zombie-card {
	display: flex;
	align-items: center;
	gap: 15px;
	background: #2c3e50;
	padding: 12px 20px;
	border-radius: 8px;
	border-left: 4px solid #9b59b6;
}
.turn-bar-zombie-img {
	width: 80px;
	height: 80px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.turn-bar-zombie-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.turn-bar-zombie-info strong {
	color: #fff;
	font-size: 1.4em;
}
.turn-bar-zombie-traits {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.turn-bar-event-card {
	background: #2c3e50;
	padding: 12px 20px;
	border-radius: 8px;
	border-left: 4px solid #e74c3c;
}
.turn-bar-event-card strong {
	color: #e74c3c;
	font-size: 1.3em;
}
.turn-bar-event-desc {
	color: #aaa;
	font-size: 0.95em;
	font-style: italic;
	margin-top: 4px;
}
.turn-bar-night-count {
	color: white;
	font-size: 1.1em;
	font-weight: normal;
	font-style: italic;
	text-align: center;
}
.turn-bar-actions .action-btn {
	padding: 8px 16px;
	font-size: 0.9em;
}
@keyframes yourTurnPulse {
	0%, 100% { text-shadow: 0 0 5px rgba(46, 204, 113, 0.5); }
	50% { text-shadow: 0 0 15px rgba(46, 204, 113, 0.8); }
}
/* Farm viewer area - takes remaining space in game-content */
.farm-viewer {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 10px 15px;
	min-width: 0; /* Allow flex shrink */
}
.farm-panel {
	display: none !important;
	height: 100%;
}
.farm-panel.active {
	display: flex !important;
	flex-direction: column;
}
/* Info panel styling */
.info-panel-content {
	padding: 20px;
}
.info-panel-content h2 {
	color: #3498db;
	margin: 0 0 20px 0;
	text-align: center;
}
.info-panel-content h3 {
	color: #888;
	margin: 0 0 10px 0;
	font-size: 1em;
	text-transform: uppercase;
}
.info-section {
	margin-bottom: 25px;
	padding: 15px;
	background: #16213e;
	border-radius: 8px;
}
.info-public-cards {
	display: flex;
	justify-content: center;
	gap: 10px;
}
.info-public-card {
	background: #533483;
	border-radius: 6px;
	padding: 5px;
	height: calc(20vh - 10px);
	min-height: 100px;
}
.info-public-card .farm-item-scaled {
	height: 100%;
	aspect-ratio: 3 / 5;
}
.info-stats {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.info-stat {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	background: #0f3460;
	border-radius: 4px;
}
.info-stat-label {
	color: #888;
}
.info-stat-value {
	color: #fff;
	font-weight: bold;
}
.info-phase {
	display: flex;
	justify-content: center;
	gap: 15px;
	font-size: 1.2em;
}
/* Info panel sub-tabs */

/* Info table styling */
.info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}
.info-table th,
.info-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #333;
}
.info-table th {
	background: #0f3460;
	color: #3498db;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.85em;
}
.info-table td {
	background: #16213e;
}
.info-table tr:hover td {
	background: #1a2a4e;
}
/* Night cards list */
.info-night-cards-list {
	max-height: 150px;
	overflow-y: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px;
	background: #0f3460;
	border-radius: 4px;
}
.info-night-card-name {
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.9em;
}
.info-night-card-name.zombie {
	background: #9b59b6;
	color: white;
}
.info-night-card-name.event {
	background: #e74c3c;
	color: white;
}
.info-empty {
	color: #666;
	font-style: italic;
}
/* How To Play styling */
.how-to-play {
	line-height: 1.6;
}
.scroll-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #888;
	margin-bottom: 15px;
	animation: bounce 2s infinite;
}
.scroll-chevron {
	font-size: 1.5em;
}
.scroll-text {
	font-size: 0.8em;
	letter-spacing: 2px;
	font-weight: bold;
}
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(5px); }
	60% { transform: translateY(3px); }
}
.how-to-play h3 {
	color: #3498db;
	margin-top: 20px;
	margin-bottom: 10px;
	border-bottom: 1px solid #333;
	padding-bottom: 5px;
}
.how-to-play h3:first-child {
	margin-top: 0;
}
.how-to-play p {
	margin: 10px 0;
	color: #ccc;
}
.how-to-play ol {
	margin: 10px 0;
	padding-left: 25px;
	color: #aaa;
}
.how-to-play li {
	margin: 5px 0;
}
/* Defense list - mobile-friendly card layout */
.defense-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.defense-item {
	background: #16213e;
	border-radius: 8px;
	padding: 12px;
	border-left: 3px solid #3498db;
}
.defense-header {
	font-weight: bold;
	color: #fff;
	font-size: 1.1em;
	margin-bottom: 8px;
}
.defense-cards {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.defense-card-small {
	width: 50px;
	height: 83px;
	background: #533483;
	border-radius: 4px;
	padding: 3px;
	position: relative;
}
.defense-card-small .farm-item-scaled {
	width: 100%;
	height: 100%;
}
.defense-card-small.one-time-use::after {
	content: "*";
	color: #e94560;
	font-size: 1em;
	font-weight: bold;
	position: absolute;
	top: -2px;
	right: 2px;
}
.defense-counters {
	color: #aaa;
	font-size: 0.9em;
}
.trait-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: bold;
	margin: 1px;
}
.info-note {
	color: #888;
	font-size: 0.9em;
	font-style: italic;
}
/* Hand area with CSS grid */
.hand-area {
	padding: 0;
	background: #0a0a15;
	border-top: 2px solid #533483;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
}
.hand-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 6px;
	background: #16213e;
	border: none;
	border-bottom: 1px solid #333;
	color: #888;
	cursor: pointer;
	font-family: monospace;
	font-size: 0.85em;
}
.hand-toggle:hover {
	background: #1a2a4e;
	color: #fff;
}
.hand-toggle-icon {
	font-size: 0.8em;
}
.hand-content {
	padding: 8px 10px;
	height: 20vh;
	min-height: 120px;
	transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}
.hand-area.collapsed .hand-content {
	height: 0;
	min-height: 0;
	padding: 0 15px;
	overflow: hidden;
	opacity: 0;
}
.hand-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	max-width: 800px;
	margin: 0 auto;
	height: 100%;
}
.hand-grid-cell {
	display: flex;
	justify-content: center;
	align-items: stretch;
}
.hand-grid-cell.empty {
	background: rgba(255, 255, 255, 0.02);
	border: 1px dashed #333;
	border-radius: 8px;
}
.hand-grid-item {
	display: flex;
	align-items: stretch;
	padding: 5px;
	background: #533483;
	border-radius: 8px;
	transition: all 0.2s ease;
	width: 100%;
}
.hand-grid-form {
	display: contents;
}
button.hand-grid-item {
	border: none;
	cursor: pointer;
}
/* Scaled card images for hand */
.farm-item-scaled {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.farm-item-scaled.one-time-use::after {
	content: "*";
	color: #e94560;
	font-size: 1.2em;
	font-weight: bold;
	position: absolute;
	top: -2px;
	right: -2px;
}
/* Grey out hand when viewing other player's farm */
.hand-area.viewing-other .hand-grid-item {
	opacity: 0.4;
	filter: grayscale(70%);
	cursor: pointer;
}
.hand-area.viewing-other .hand-grid-item.clickable {
	cursor: pointer;
}
.hand-area.viewing-other .hand-grid-item.clickable::after {
	display: none;
}

/* Inline hand count in player header */
.hand-count-inline {
	margin-left: auto;
	background: #2c3e50;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.85em;
	color: #888;
}
/* You label for viewer's player card */
.you-label {
	color: #2ecc71;
	font-size: 0.9em;
	margin-left: 5px;
}
/* Viewer's player card styling */
.player-card.viewer {
	border-color: #2ecc71;
	border-width: 2px;
}
/* Game content area - horizontal split between farm viewer and input window */
.game-content {
	flex: 1;
	display: flex;
	gap: 0;
}
/* Night cards row - simplified without input section */
.night-cards-row {
	margin-bottom: 15px;
}
/* Input Window - dedicated input area on the right */
.input-window {
	width: 320px;
	min-width: 280px;
	background: #0a0a15;
	border-left: 2px solid #333;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}
.input-window.active {
	border-left-color: #e94560;
	box-shadow: -5px 0 20px rgba(233, 69, 96, 0.2);
}
.input-window-waiting {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.input-window-waiting-text {
	color: #666;
	font-style: italic;
	text-align: center;
}
.input-window-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	overflow: hidden;
}
.input-window-message {
	font-size: 1.1em;
	font-weight: bold;
	color: #e94560;
	margin-bottom: 20px;
	text-align: center;
	line-height: 1.4;
}
.input-window-actions {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}
.input-window-hint {
	color: #888;
	font-size: 0.9em;
	text-align: center;
	margin-bottom: 10px;
}
.input-window-card-preview {
	display: flex;
	justify-content: center;
	margin: 15px 0;
	padding: 15px;
	background: #16213e;
	border-radius: 8px;
}
/* Draw options in input window */
.input-window-draw-options {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
	align-items: center;
}
.input-window-draw-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 15px;
	background: #16213e;
	border-radius: 8px;
	width: 100%;
}
.input-window-draw-label {
	color: #888;
	font-size: 1em;
}
.input-window-draw-cards {
	display: flex;
	gap: 10px;
	justify-content: center;
}
.draw-card {
	background: #533483;
	border-radius: 6px;
	padding: 5px;
	height: calc(20vh - 10px);
	min-height: 100px;
}
.draw-card .farm-item-scaled {
	height: 100%;
	aspect-ratio: 3 / 5;
}
	.input-window-draw-cards .farm-item {
		width: 70px;
		height: 115px;
	}
	.zombie-img {
		width: 80px;
		height: 80px;
	}
/* Shield options */
.input-window-shield-options {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}
.input-window-shield-options .action-btn {
	width: 100%;
}
/* Desktop - minimum 14px font size */
@media (min-width: 769px) {
	body {
		font-size: 14px;
	}
	.turn-bar-text,
	.turn-bar-phase,
	.turn-bar-message,
	.turn-bar-night-count {
		font-size: 1.1em;
	}
	.farm-tab {
		font-size: 1.5em;
	}
	.tab-hp,
	.tab-you {
		font-size: 1em;
	}
	.farm-label,
	.farm-empty {
		font-size: 1.1em;
	}

	.info-table {
		font-size: 1em;
	}
	.info-table th {
		font-size: 0.9em;
	}
	.info-night-card-name {
		font-size: 0.95em;
	}
	.info-note,
	.info-empty {
		font-size: 0.95em;
	}
	.how-to-play {
		font-size: 1em;
	}
	.trait-badge {
		font-size: 0.9em;
	}

	.hand-toggle {
		font-size: 0.9em;
	}
	.hand-count-inline {
		font-size: 0.9em;
	}
	.input-window-hint {
		font-size: 0.95em;
	}
	.input-window-draw-label {
		font-size: 0.95em;
	}
	.action-btn {
		font-size: 1.2em;
	}
	.choice-btn {
		font-size: 1.1em;
	}
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
	body {
		font-size: 14px;
	}
	.farm-tab {
		padding: 8px 12px;
		font-size: 1.1em;
	}
	.tab-hp, .tab-you {
		font-size: 0.9em;
	}
	.farm-title {
		font-size: 1.2em;
	}
	.farm-hp {
		font-size: 1em;
	}
	.zombie-img {
		width: 130px;
		height: 130px;
	}
	.turn-bar {
		padding: 6px 10px;
		flex-direction: column;
		gap: 6px;
	}
	.turn-bar-text, .turn-bar-phase {
		font-size: 1em;
	}
	.turn-bar-message {
		font-size: 1em;
		text-align: center;
	}
	.action-btn {
		padding: 10px 20px;
		font-size: 1em;
	}
	.hand-content {
		height: 18vh;
		min-height: 120px;
	}
	/* Input window responsive */
	.input-window {
		width: 250px;
		min-width: 220px;
	}
	.input-window-content {
		padding: 15px;
	}
	.input-window-message {
		font-size: 1em;
	}

	.input-window-draw-label {
		font-size: 1em;
	}
	.hand-toggle {
		font-size: 1em;
	}
}
@media (max-width: 480px) {
	.farm-tabs {
		padding: 4px 8px;
		gap: 2px;
	}
	.farm-tab {
		padding: 6px 10px;
		font-size: 1em;
	}
	.tab-hp {
		display: none;
	}
	.tab-you {
		font-size: 0.85em;
	}
	.farm-title {
		font-size: 1em;
	}
	.farm-hp {
		font-size: 1em;
	}
	.zombie-img {
		width: 80px;
		height: 80px;
	}
	.zombie-card {
		padding: 10px;
		gap: 10px;
	}

	.hand-content {
		height: 15vh;
		min-height: 100px;
		padding: 8px;
	}
	.hand-grid {
		gap: 5px;
	}
	.hand-grid-item {
		padding: 3px;
	}
	.farm-viewer {
		padding: 10px;
	}
	/* Input window - stack below farm on very small screens */
	.game-content {
		flex-direction: column;
	}
	.input-window {
		width: 100%;
		min-width: 100%;
		border-left: none;
		border-top: 2px solid #333;
		max-height: 40vh;
	}
	.input-window.active {
		border-top-color: #e94560;
		box-shadow: 0 -5px 20px rgba(233, 69, 96, 0.2);
	}
	.input-window-content {
		padding: 10px;
		overflow-y: auto;
	}
	.input-window-message {
		font-size: 1em;
		margin-bottom: 10px;
	}
	.input-window-draw-options {
		flex-direction: column;
		gap: 10px;
	}
	.input-window-draw-option {
		padding: 10px;
	}

	.input-window-draw-label {
		font-size: 1em;
	}
	.action-btn {
		padding: 10px 16px;
		font-size: 1em;
	}
}
