:root { --bg: #f2fff0; --screen: #eefbea; --panel: rgba(245, 255, 242, 0.96); --ink: #102015; --muted: #526456; --line: #102015; --green: #22b94f; --green-soft: #b7f5c6; --white: #ffffff; --danger: #c42424; --shadow: 8px 8px 0 rgba(16, 32, 21, 0.22); } * { box-sizing: border-box; } html, body { min-height: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; overflow-x: hidden; } button { font: inherit; } h1, h2, p { margin: 0; } #app { width: min(100vw, 1680px); margin: 0 auto; padding: 0 8px 12px; } .game-shell { position: relative; width: 100%; min-height: min(100vh, 920px); border: 4px solid var(--line); border-top: 0; background: var(--screen); overflow: hidden; box-shadow: var(--shadow); } #gameCanvas { display: block; width: 100%; height: min(calc(100vh - 10px), 900px); min-height: 720px; background: var(--screen); touch-action: none; } .hud { position: absolute; z-index: 4; display: grid; gap: 6px; pointer-events: none; } .hud-top-left { top: 10px; left: 10px; grid-template-columns: repeat(5, minmax(86px, auto)); } .hud-top-right { top: 10px; right: 10px; grid-template-columns: repeat(4, minmax(78px, auto)); } .hud-card { min-width: 82px; padding: 7px 9px; border: 3px solid var(--line); background: rgba(255,255,255,.88); box-shadow: 4px 4px 0 rgba(16,32,21,.16); } .hud-card.primary { min-width: 116px; padding: 10px 12px; background: rgba(255,255,255,.96); } .hud-card.primary span { font-size: 9px; } .hud-card.primary strong { font-size: clamp(22px, 2vw, 32px); } .hud-card.time-critical { background: #fff0d1; box-shadow: inset 0 0 0 4px var(--danger), 4px 4px 0 rgba(16,32,21,.16); } .hud-card span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; } .hud-card strong { font-size: clamp(15px, 1.3vw, 22px); line-height: 1; color: var(--ink); } .hud-card.cash strong, .hud-card.profit strong, .cash-positive { color: var(--green) !important; } .cash-negative { color: var(--danger) !important; } .priority-strip { position: absolute; z-index: 5; top: 76px; left: 10px; display: grid; grid-template-columns: minmax(280px, 1.2fr) minmax(170px, .75fr) minmax(130px, .55fr); gap: 8px; max-width: calc(100% - 420px); pointer-events: none; } .priority-strip > div { border: 3px solid var(--line); background: rgba(255,255,255,.94); padding: 8px 10px; font-weight: 900; text-transform: uppercase; box-shadow: 4px 4px 0 rgba(16,32,21,.14); font-size: 12px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .event-brief.active { background: #fff0d1; box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(16,32,21,.14); } .event-brief.next { background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(16,32,21,.14); } .event-brief.locked { background: #edf3ec; color: var(--muted); } .target-brief { color: var(--green); } .speed-brief { color: var(--ink); } .build-panel { position: absolute; z-index: 6; top: 118px; right: 12px; bottom: 12px; width: clamp(278px, 23vw, 360px); min-height: 0; padding: 10px; border: 4px solid var(--line); background: var(--panel); box-shadow: var(--shadow); overflow: auto; } .panel-head { display: grid; gap: 8px; margin-bottom: 10px; } .panel-head h1 { font-size: 15px; letter-spacing: .06em; } .panel-head h1 span { font-size: 9px; color: var(--white); background: var(--green); border: 2px solid var(--line); padding: 1px 6px; } .panel-head p { color: var(--muted); margin-top: 4px; font-size: 9px; line-height: 1.25; } .panel-grid { display: grid; grid-template-columns: 1fr; gap: 10px; } .build-panel h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 7px; } .large-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .history-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; grid-column: 1 / -1; } .tool-button.small { min-height: 40px; padding: 6px; } .tool-button, .primary-button, .sort-button, .facility-action { border: 3px solid var(--line); background: var(--white); color: var(--ink); font-weight: 900; text-transform: uppercase; cursor: pointer; box-shadow: 4px 4px 0 rgba(16,32,21,.18); } .tool-button { min-height: 50px; text-align: left; padding: 8px; } .tool-button strong { display: block; font-size: 12px; } .tool-button span { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); } .tool-button.active { background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(16,32,21,.18); } .tool-button.danger.active { background: #ffdada; box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(16,32,21,.18); } .primary-button { padding: 10px 12px; background: var(--green); color: var(--white); white-space: nowrap; } .primary-button:disabled, .tool-button:disabled, .sort-button:disabled, .facility-action:disabled { opacity: .42; cursor: not-allowed; } .mini-box { border: 3px solid var(--line); background: var(--white); padding: 12px; line-height: 1.45; color: var(--muted); font-size: 11px; } .facility-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .facility-action { padding: 7px 9px; font-size: 9px; } .facility-action.good { background: var(--green-soft); } .facility-action.warn { background: #fff0d1; } .facility-action.danger { background: #ffdada; } .control-dock { position: absolute; z-index: 7; left: 50%; bottom: 12px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 150px); gap: 8px; padding: 7px; border: 3px solid var(--line); background: rgba(255,255,255,.90); } .sort-button { min-height: 46px; font-size: 12px; } .modal { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(16,32,21,.45); } .modal.visible { display: flex; } .modal-card { width: min(860px, 96vw); border: 4px solid var(--line); padding: 24px; background: var(--white); box-shadow: var(--shadow); } .modal-card h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 12px; } .modal-card p { line-height: 1.55; } .modal-card ul { margin: 12px 0 0; padding-left: 22px; line-height: 1.55; color: var(--muted); } .modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; } .route-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; } .route-card { border: 3px solid var(--line); background: #f7fff5; padding: 14px; display: grid; grid-template-columns: 44px 1fr 28px 1fr; align-items: center; gap: 4px 8px; } .route-card .route-icon { grid-row: 1 / span 2; font-size: 30px; text-align: center; } .route-card strong, .route-card em { font-style: normal; font-weight: 900; text-transform: uppercase; } .route-card b { font-size: 24px; color: var(--green); text-align: center; } .route-card small { grid-column: 2 / span 3; color: var(--muted); font-weight: 900; } .result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; } .result-grid div { border: 3px solid var(--line); padding: 10px; background: #f7fff5; } .result-grid strong { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; } .result-grid span { font-size: 16px; font-weight: 900; color: var(--ink); } .game-shell:not(.phase-build) .build-panel { display: none; } .game-shell.phase-running .hud-top-right { display: none; } .game-shell:not(.phase-running) .control-dock { display: none; } @media (max-width: 1180px) { #app { padding: 0; } .game-shell { min-height: 100vh; } #gameCanvas { height: 100vh; } .hud-top-left, .hud-top-right { grid-template-columns: repeat(2, minmax(76px, auto)); } .priority-strip { top: 150px; left: 8px; right: 8px; max-width: none; grid-template-columns: 1fr; } .build-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 42vh; } .large-tools { grid-template-columns: 1fr 1fr; } .control-dock { grid-template-columns: repeat(2, 150px); } .route-cards, .result-grid { grid-template-columns: 1fr; } } .contract-card { border: 3px solid var(--line); background: #f7fff5; padding: 12px; line-height: 1.35; color: var(--ink); font-size: 11px; box-shadow: 4px 4px 0 rgba(16,32,21,.14); } .contract-card.empty { color: var(--muted); background: rgba(255,255,255,.72); } .contract-card.empty strong { display: block; color: var(--ink); margin-bottom: 4px; } .contract-card h3 { margin: 2px 0 7px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; } .contract-card p { margin: 5px 0; } .contract-card.accepted { background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(16,32,21,.14); } .contract-card.declined { background: #f1f1f1; color: var(--muted); } .contract-status { display: inline-block; padding: 2px 7px; border: 2px solid var(--line); background: var(--white); font-size: 9px; font-weight: 900; letter-spacing: .1em; margin-bottom: 4px; } .contract-metrics { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0; } .contract-metrics span { display: block; border: 2px solid rgba(16,32,21,.55); background: rgba(255,255,255,.82); padding: 5px; font-weight: 900; color: var(--ink); } .contract-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .result-section-title { margin: 16px 0 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--green); } .result-section-title:first-child { margin-top: 0; } .muted-title { color: var(--muted); border: 3px solid var(--line); padding: 10px; background: #f7fff5; } .compact-rules .mini-box { padding: 8px; font-size: 9px; } .primary-button:disabled { filter: grayscale(1); background: #c9d2ca; color: #526456; } .formula-box { border: 3px solid var(--line); background: #f7fff5; padding: 10px; margin: 10px 0; line-height: 1.5; color: var(--ink); font-size: 12px; font-weight: 700; } .equipment-menu-lines { border: 3px solid var(--line); background: #ffffff; padding: 10px; margin: 8px 0; color: var(--muted); line-height: 1.45; } .equipment-menu-lines p { margin: 4px 0; } /* v11 compact clicked-equipment bubble */ .modal.equipment-popover { background: transparent; align-items: flex-start; justify-content: flex-start; padding: 0; pointer-events: none; } .modal.equipment-popover .modal-card { position: absolute; left: var(--popover-x, 16px); top: var(--popover-y, 16px); width: min(250px, calc(100vw - 24px)); max-height: min(280px, calc(100vh - 24px)); overflow: auto; padding: 8px; border-width: 3px; pointer-events: auto; box-shadow: 6px 6px 0 rgba(16,32,21,.18); } .modal.equipment-popover .modal-card h2 { font-size: 14px; margin-bottom: 6px; } .modal.equipment-popover .modal-actions { margin-top: 8px; gap: 6px; justify-content: flex-start; } .modal.equipment-popover .modal-actions button { padding: 5px 7px; font-size: 9px; } .equipment-menu-lines.compact { padding: 7px; margin: 6px 0; font-size: 9px; } .formula-box.compact { padding: 7px; margin: 6px 0; font-size: 9px; } /* v15 pre-build card draft */ .card-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 220px)); justify-content: center; align-items: stretch; gap: 10px; margin-top: 14px; } .card-choice { min-height: 132px; border: 3px solid var(--line); background: #f7fff5; color: var(--ink); box-shadow: 5px 5px 0 rgba(16,32,21,.16); padding: 12px; text-align: left; cursor: pointer; font-weight: 900; } .card-choice:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(16,32,21,.18); } .card-choice strong { display: block; font-size: 14px; text-transform: uppercase; line-height: 1.2; } .card-choice span { display: inline-block; margin: 8px 0; padding: 2px 7px; border: 2px solid var(--line); background: var(--white); font-size: 9px; letter-spacing: .1em; } .card-choice small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; } .card-choice.rare { background: #fff0d1; box-shadow: inset 0 0 0 3px #f0a020, 5px 5px 0 rgba(16,32,21,.16); } .card-choice.ultra-rare { background: #ffe6f0; box-shadow: inset 0 0 0 3px #c42424, 5px 5px 0 rgba(16,32,21,.18); } .card-choice.ultra-rare span { background: #c42424; color: #fff; } .muted-card-note { color: var(--muted); font-weight: 700; } .card-targets { display: grid; gap: 8px; margin-top: 14px; } .card-target-button { border: 3px solid var(--line); background: #f7fff5; padding: 10px 12px; text-align: left; cursor: pointer; font-weight: 900; box-shadow: 4px 4px 0 rgba(16,32,21,.14); } .card-target-button:hover { background: var(--green-soft); } /* v19 readability pass */ body { font-size: 16px; } .hud-card span { font-size: 11px; } .hud-card strong { font-size: clamp(18px, 1.5vw, 25px); } .priority-strip > div { font-size: 14px; } .panel-head h1 { font-size: 18px; } .panel-head p { font-size: 11px; } .build-panel h2 { font-size: 13px; } .tool-button strong { font-size: 14px; } .tool-button span { font-size: 11px; } .mini-box, .contract-card { font-size: 12px; } .sort-button { font-size: 14px; } .modal-card h2 { font-size: 29px; } .card-choice strong { font-size: 16px; } .card-choice small { font-size: 13px; } .tool-button.unaffordable, .tool-button.already-built { opacity: .42; filter: grayscale(.7); } .hover-tooltip { position: fixed; z-index: 30; width: min(320px, calc(100vw - 20px)); display: none; border: 3px solid var(--line); background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 6px 6px 0 rgba(16,32,21,.18); padding: 10px; pointer-events: none; line-height: 1.35; } .hover-tooltip.visible { display: block; } .hover-tooltip strong { display: block; font-size: 15px; text-transform: uppercase; margin-bottom: 5px; } .hover-tooltip em { display: block; font-style: normal; color: var(--green); font-weight: 900; margin-bottom: 7px; } .hover-tooltip span { display: block; color: var(--muted); font-size: 12px; } .card-choice.dud { background: #eeeeee; color: #777; filter: grayscale(1); border-style: dashed; box-shadow: 5px 5px 0 rgba(16,32,21,.10); } .card-choice.dud span { background: #f8f8f8; } .card-choice.flung { pointer-events: none; transform: translate(var(--fling-x, 480px), var(--fling-y, -320px)) rotate(var(--fling-r, 68deg)) scale(.68); opacity: 0; transition: transform .34s cubic-bezier(.18,.84,.26,.99), opacity .28s ease-in; } .route-card .route-icon.male, .route-card .route-icon.female, .route-card .route-icon.poop { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--line, #102015); background: var(--white, #fff); line-height: 1; } .route-card .route-icon.male { color: #2477ff; background: #d9ecff; } .route-card .route-icon.female { color: #d62a85; background: #ffe0f0; } .route-card .route-icon.poop { color: #7b4a23; background: #fff0d1; font-size: 24px; } .restart-button { min-width: 160px; } .restart-fallback-note { margin-top: 12px; color: var(--muted, #526456); font-weight: 700; } /* v24.4 hover-only build-button flavor / cashout guidance / compact game-over */ .tool-button .tool-flavor { display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; color: var(--muted); font-size: 8px; line-height: 1.22; text-transform: none; letter-spacing: 0; transition: max-height .12s ease, opacity .12s ease, margin-top .12s ease; } .tool-button:hover .tool-flavor { max-height: 42px; opacity: 1; margin-top: 5px; } .large-tools .tool-button { min-height: 58px; } .large-tools .tool-button:hover { min-height: 78px; } .history-tools .tool-button.small { min-height: 40px; } .primary-button.cashout-emphasis, .tool-button.cashout-emphasis { opacity: 1 !important; filter: none !important; animation: cashoutPulse 0.9s ease-in-out infinite alternate; } .primary-button.cashout-emphasis { box-shadow: inset 0 0 0 4px #fff0d1, 6px 6px 0 rgba(16,32,21,.22); } .tool-button.cashout-emphasis { background: #fff0d1; box-shadow: inset 0 0 0 3px var(--danger), 6px 6px 0 rgba(16,32,21,.20); } @keyframes cashoutPulse { from { transform: translate(0, 0); } to { transform: translate(-1px, -1px); } } .modal.gameover-modal { padding: 12px; } .modal.gameover-modal .modal-card { width: min(640px, 92vw); max-height: min(82vh, 720px); overflow: auto; padding: 16px; } .modal.gameover-modal .modal-card h2 { font-size: 22px; margin-bottom: 8px; } .gameover-reason { font-weight: 900; color: var(--danger); margin-bottom: 8px; } .gameover-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; } .gameover-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; } .modal.gameover-modal .result-grid div { padding: 7px; } .modal.gameover-modal .result-grid strong { font-size: 9px; margin-bottom: 3px; } .modal.gameover-modal .result-grid span { font-size: 12px; } .gameover-details { margin-top: 10px; border: 3px solid var(--line); background: #f7fff5; padding: 8px; } .gameover-details summary { cursor: pointer; font-weight: 900; text-transform: uppercase; } .modal.gameover-modal .formula-box.compact { font-size: 9px; line-height: 1.35; } @media (max-width: 720px) { .gameover-summary, .gameover-breakdown { grid-template-columns: 1fr 1fr; } } /* v27.0 cleanup and stable build-menu tooltip pass */ body { font-size: 18px; } .build-panel { width: clamp(330px, 26vw, 420px); } .panel-head h1 { font-size: 20px; } .panel-head h1 span { font-size: 12px; } .panel-head p { font-size: 13px; line-height: 1.35; } .build-panel h2 { font-size: 14px; } .priority-strip > div { font-size: 15px; } .hud-card span { font-size: 12px; } .hud-card strong { font-size: clamp(20px, 1.7vw, 28px); } .mini-box, .contract-card { font-size: 14px; line-height: 1.45; } .compact-rules .mini-box { font-size: 13px; } .tool-button { position: relative; overflow: visible; min-height: 62px; padding: 10px; } .large-tools .tool-button { min-height: 62px; } .large-tools .tool-button:hover { min-height: 62px; } .tool-button strong { font-size: 15px; line-height: 1.15; } .tool-button span { font-size: 12px; } .tool-button .tool-flavor { display: none; position: absolute; z-index: 60; left: 0; top: calc(100% + 7px); width: min(300px, calc(100vw - 40px)); max-height: none; opacity: 1; overflow: visible; margin: 0; padding: 10px 12px; border: 3px solid var(--line); background: rgba(255,255,255,.98); color: var(--ink); box-shadow: 5px 5px 0 rgba(16,32,21,.18); font-size: 13px; line-height: 1.35; text-transform: none; letter-spacing: 0; pointer-events: none; transition: none; } .tool-button .tool-flavor::before { content: ''; position: absolute; left: 16px; top: -10px; width: 16px; height: 16px; border-left: 3px solid var(--line); border-top: 3px solid var(--line); background: rgba(255,255,255,.98); transform: rotate(45deg); } .tool-button:hover .tool-flavor { display: block; max-height: none; opacity: 1; margin: 0; } .primary-button { font-size: 16px; padding: 13px 16px; } #nextTurnButton { min-height: 56px; font-size: 18px; } @keyframes cashoutPulse { from { box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(16,32,21,.18); filter: brightness(1); } to { box-shadow: inset 0 0 0 5px #fff0d1, 4px 4px 0 rgba(16,32,21,.20); filter: brightness(1.08); } } .card-choices { grid-template-columns: repeat(auto-fill, minmax(230px, 270px)); gap: 14px; } .card-choice { min-height: 164px; padding: 15px; } .card-choice strong { font-size: 18px; } .card-choice span { font-size: 11px; } .card-choice small { font-size: 15px; line-height: 1.4; } .muted-card-note { font-size: 15px; line-height: 1.45; } .modal-card { width: min(980px, 96vw); } .modal-card p, .modal-card li { font-size: 16px; } .modal-actions .reroll-button { order: 99; flex: 1 1 100%; min-height: 64px; margin-top: 8px; font-size: 20px; text-align: center; justify-content: center; background: #fff0d1; box-shadow: inset 0 0 0 4px var(--green), 6px 6px 0 rgba(16,32,21,.20); } .modal-actions .reroll-button:disabled { box-shadow: 4px 4px 0 rgba(16,32,21,.12); } .hover-tooltip strong { font-size: 17px; } .hover-tooltip span { font-size: 14px; } .sort-button { font-size: 16px; min-height: 56px; } .control-dock { grid-template-columns: repeat(4, 172px); } @media (max-width: 1180px) { .build-panel { width: auto; } .control-dock { grid-template-columns: repeat(2, 172px); } }