: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(6, minmax(82px, 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, .hud-card.combo 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); } .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 .tool-icon { width: 24px; height: 24px; image-rendering: pixelated; float: left; margin: 0 8px 4px 0; object-fit: contain; } .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; } /* Debug UI is intentionally kept for active balancing builds. Do not remove during cleanup/audit passes unless explicitly requested. */ .debug-panel { position: absolute; z-index: 9; left: 10px; bottom: 10px; width: min(410px, calc(100% - 20px)); border: 3px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 4px 4px 0 rgba(16,32,21,.16); font-weight: 900; } .debug-panel summary { cursor: pointer; padding: 5px 8px; color: var(--danger); font-size: 14px; line-height: 1.1; } .debug-body { display: grid; grid-template-columns: 1fr 92px; gap: 6px; padding: 7px; border-top: 3px solid var(--line); font-size: 12px; line-height: 1.15; } .debug-body label, .debug-body button, .debug-body select, .debug-body input { min-width: 0; font: inherit; } .debug-check, .debug-card, .debug-target, .debug-event, .debug-readout { grid-column: 1 / -1; } .debug-row { display: grid; grid-template-columns: 1fr 92px; gap: 6px; grid-column: 1 / -1; } .debug-day { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 4px; } .debug-body button { border: 2px solid var(--line); background: var(--white); cursor: pointer; font-weight: 900; padding: 5px 6px; line-height: 1.05; } .debug-body input[type="number"], .debug-body select { width: 100%; border: 2px solid var(--line); background: var(--white); padding: 4px 5px; min-height: 29px; } .debug-target select:disabled { opacity: .55; } .debug-readout { border: 2px solid var(--line); background: #f7fff5; color: var(--muted); padding: 5px; line-height: 1.25; max-height: 64px; overflow: auto; } .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; } } .event-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); } .event-card.empty { color: var(--muted); background: rgba(255,255,255,.72); } .event-card.empty strong { display: block; color: var(--ink); margin-bottom: 4px; } .event-card h3 { margin: 2px 0 7px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; } .event-card p { margin: 5px 0; } .event-card.accepted { background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(16,32,21,.14); } .event-card.declined { background: #f1f1f1; color: var(--muted); } .event-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; } .event-metrics { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0; } .event-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); } .event-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-fit, 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-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0; } .card-tags span { margin: 0; padding: 2px 5px; font-size: 8px; line-height: 1.1; letter-spacing: .04em; } .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, .event-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 em.warning { color: var(--danger); } .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; } .settlement-net { border: 3px solid var(--line); background: #f7fff5; padding: 10px 12px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 900; text-transform: uppercase; } .settlement-net strong { font-size: 24px; } .settlement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .settlement-grid div { padding: 8px; } .settlement-grid span { display: block; font-size: 14px; } .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, .event-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-fit, 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); } } /* v27.1 expansion/readability pass */ body { font-size: 20px; } .panel-head h1 { font-size: 22px; } .panel-head h1 span { font-size: 13px; } .panel-head p { font-size: 14px; line-height: 1.35; } .build-panel h2 { font-size: 15px; } .priority-strip > div { font-size: 16px; } .hud-card span { font-size: 13px; } .hud-card strong { font-size: clamp(22px, 1.8vw, 30px); } .mini-box, .event-card { font-size: 15px; line-height: 1.5; } .compact-rules .mini-box { font-size: 14px; } .tool-button strong { font-size: 16px; line-height: 1.15; } .tool-button span { font-size: 13px; line-height: 1.2; } .tool-button .tool-flavor { left: auto; right: 0; width: min(320px, calc(100vw - 40px)); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; } .tool-button .tool-flavor::before { left: auto; right: 18px; } .tool-button.unaffordable .tool-flavor, .tool-button.unaffordable:hover .tool-flavor, .tool-button:disabled .tool-flavor, .tool-button:disabled:hover .tool-flavor { display: none; } .facility-action { font-size: 12px; } .primary-button { font-size: 17px; } #nextTurnButton { font-size: 19px; } .card-choice strong { font-size: 19px; } .card-choice span { font-size: 12px; } .card-choice small { font-size: 16px; line-height: 1.45; } .muted-card-note { font-size: 16px; } .modal-card p, .modal-card li { font-size: 17px; } .modal.equipment-popover .modal-card h2 { font-size: 16px; } .modal.equipment-popover .modal-actions button { font-size: 11px; } .equipment-menu-lines.compact, .formula-box.compact { font-size: 11px; } .hover-tooltip strong { font-size: 18px; } /* Keep construction flavor text readable as a hover bubble. */ .large-tools .tool-button { min-height: 62px; position: relative; overflow: visible; } .large-tools .tool-button:hover { min-height: 62px; } .large-tools .tool-button .tool-flavor { display: none; position: absolute; z-index: 90; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: min(320px, 34vw); 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; pointer-events: none; overflow-wrap: anywhere; } .large-tools .tool-button:hover .tool-flavor { display: block; } .large-tools .tool-button .tool-flavor::before { content: ''; position: absolute; right: -10px; top: calc(50% - 8px); width: 16px; height: 16px; border-right: 3px solid var(--line); border-top: 3px solid var(--line); background: rgba(255,255,255,.98); transform: rotate(45deg); } .hover-tooltip span { font-size: 15px; } .sort-button { font-size: 17px; } /* v27.3 offscreen scanner monitor / expansion UI pass */ .scanner-monitor { position: absolute; z-index: 8; left: 12px; bottom: 92px; display: none; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; width: min(560px, calc(100% - 24px)); pointer-events: auto; } .scanner-monitor.visible { display: grid; } .scanner-monitor-card { border: 3px solid var(--line); background: rgba(255,255,255,.95); box-shadow: 5px 5px 0 rgba(16,32,21,.18); padding: 9px; font-weight: 900; } .scanner-monitor-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; text-transform: uppercase; } .scanner-monitor-card header strong { font-size: 20px; color: var(--green); } .scanner-monitor-card header span { font-size: 12px; color: var(--muted); } .scanner-mini-map { display: grid; grid-template-columns: 42px 1fr 82px; align-items: center; gap: 6px; margin-bottom: 8px; } .scanner-mini-map > span, .scanner-mini-map > b { border: 2px solid var(--line); background: #f7fff5; padding: 7px 6px; text-align: center; font-size: 13px; min-height: 36px; } .scanner-current { display: block; color: var(--ink); } .scanner-current.male { color: #2477ff; } .scanner-current.female { color: #d62a85; } .scanner-current.poop { color: #7b4a23; } .scanner-current.empty { color: var(--muted); } .scanner-mini-grid { display: grid; grid-template-columns: repeat(5, 27px); gap: 3px; justify-content: center; align-items: center; padding: 6px; margin: 0 0 8px; border: 2px solid var(--line); background: #f6f1df; } .scanner-mini-grid .mini-cell { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(22,38,25,.28); background: #fffdfa; color: var(--muted); font-size: 11px; font-weight: 900; line-height: 1; } .scanner-mini-grid .mini-cell.belt { background: #e7f7e4; color: var(--green-dark); } .scanner-mini-grid .mini-cell.input { background: #fff3bf; color: var(--ink); font-size: 9px; } .scanner-mini-grid .mini-cell.scanner { background: var(--green); color: #fff; border-color: var(--line); font-size: 16px; } .scanner-mini-grid .mini-cell.scanner.male { background: #2477ff; } .scanner-mini-grid .mini-cell.scanner.female { background: #d62a85; } .scanner-mini-grid .mini-cell.scanner.poop { background: #7b4a23; } .scanner-mini-grid .mini-cell.scanner-other { background: #b7f5c6; color: var(--ink); } .scanner-mini-grid .mini-cell.egg { background: #fff7c4; color: #7a5a00; } .scanner-mini-grid .mini-cell.port { background: #dbe7ff; color: #27427d; } .scanner-mini-grid .mini-cell.blocked { background: #d7cfc1; color: #6d4d35; } .scanner-monitor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } .scanner-monitor-actions button { border: 3px solid var(--line); background: var(--green-soft); color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 900; min-height: 44px; box-shadow: 3px 3px 0 rgba(16,32,21,.18); } .scanner-monitor-actions button:disabled { background: #edf3ec; color: var(--muted); opacity: .62; cursor: not-allowed; } @media (max-width: 1180px) { .scanner-monitor { bottom: 132px; width: min(520px, calc(100% - 16px)); left: 8px; } } /* ------------------------------------------------------------------ DARK FACTORY VISUAL PASS - Facility sprites are now loaded from assets/dark_factory/. - Debug UI is intentionally retained for balancing builds. Do not remove. ------------------------------------------------------------------ */ :root { --bg: #0b0c0f; --screen: #111318; --panel: rgba(24, 27, 34, 0.96); --panel-2: #20242b; --panel-3: #2a303a; --ink: #e6edf2; --muted: #8f9bab; --line: #050609; --green: #7bd84f; --green-soft: #273c24; --white: #e6edf2; --danger: #e34a36; --warn: #ffb827; --cyan: #4aa3ff; --orange: #c86a2b; --shadow: 6px 6px 0 rgba(0, 0, 0, 0.62); } html, body { background: #050609; color: var(--ink); } body { background: linear-gradient(90deg, rgba(255,184,39,.035) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(rgba(255,184,39,.028) 1px, transparent 1px) 0 0 / 32px 32px, #050609; } #app { width: min(100vw, 1720px); padding: 0; } .game-shell { min-height: 100vh; border: 0; background: var(--screen); box-shadow: inset 0 0 0 4px #050609, inset 0 0 0 8px #303744; } #gameCanvas { height: 100vh; min-height: 720px; background: var(--screen); image-rendering: pixelated; image-rendering: crisp-edges; } .hud { gap: 4px; } .hud-top-left { top: 8px; left: 8px; right: 420px; grid-template-columns: 1.25fr repeat(5, minmax(92px, .65fr)); } .hud-top-right { top: 8px; right: 8px; grid-template-columns: repeat(4, minmax(74px, auto)); } .hud-card { min-width: 74px; padding: 7px 9px; border: 3px solid var(--line); background: linear-gradient(#242a33, #171a20); box-shadow: 4px 4px 0 rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,184,39,.10); color: var(--ink); } .hud-card span { color: var(--warn); font-size: 9px; letter-spacing: .12em; } .hud-card strong { color: var(--ink); text-shadow: 2px 2px 0 #050609; } .hud-card.cash strong, .hud-card.profit strong, .hud-card.combo strong, .cash-positive { color: var(--green) !important; } .hud-card.time-critical { background: #3a1f1f; box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(0,0,0,.7); } .priority-strip { top: 74px; left: 10px; width: clamp(250px, 21vw, 330px); max-width: none; grid-template-columns: 1fr; gap: 6px; } .priority-strip > div { border: 3px solid var(--line); background: linear-gradient(#222832, #15181e); color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.66), inset 0 0 0 2px rgba(255,184,39,.12); } .event-brief.active { background: #38251a; box-shadow: inset 0 0 0 3px var(--orange), 4px 4px 0 rgba(0,0,0,.66); } .event-brief.next { background: #1c2c20; box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(0,0,0,.66); } .event-brief.locked { background: #181b20; color: var(--muted); } .speed-brief { color: var(--cyan); } .build-panel { top: 82px; right: 8px; bottom: 8px; width: clamp(320px, 24vw, 410px); padding: 9px; border: 4px solid var(--line); background: linear-gradient(#222832, #14171d); box-shadow: 6px 6px 0 rgba(0,0,0,.72), inset 0 0 0 3px rgba(255,184,39,.10); scrollbar-color: var(--warn) #111318; } .panel-head { display: grid; grid-template-columns: 1fr 126px; align-items: stretch; gap: 8px; margin-bottom: 8px; } .panel-head h1 { color: var(--warn); text-shadow: 2px 2px 0 #050609; font-size: 17px; } .panel-head h1 span { color: #050609; background: var(--warn); border-color: var(--line); } .panel-head p { color: var(--muted); } .panel-grid { display: grid; grid-template-columns: 1fr; gap: 8px; } .build-panel h2, .result-section-title { color: var(--warn); } .large-tools { grid-template-columns: 1fr 1fr; gap: 6px; } .tool-button, .primary-button, .sort-button, .facility-action { border: 3px solid var(--line); background: linear-gradient(#2a303a, #171a20); color: var(--ink); box-shadow: 4px 4px 0 rgba(0,0,0,.70), inset 0 0 0 2px rgba(255,184,39,.08); text-shadow: 1px 1px 0 #050609; } .tool-button { min-height: 48px; padding: 8px; } .tool-button strong { color: var(--ink); } .tool-button span { color: var(--muted); } .tool-button.active { background: linear-gradient(#33311d, #1e2117); box-shadow: inset 0 0 0 3px var(--warn), 4px 4px 0 rgba(0,0,0,.70); } .tool-button.danger.active { background: linear-gradient(#4b1f1c, #241014); box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(0,0,0,.70); } .primary-button { background: linear-gradient(#8b2d23, #4b1714); color: #fff3d2; } .primary-button:not(:disabled) { box-shadow: inset 0 0 0 3px #ffb827, 5px 5px 0 rgba(0,0,0,.72); } .primary-button:disabled, .tool-button:disabled, .sort-button:disabled, .facility-action:disabled { opacity: .42; filter: grayscale(1); } .mini-box, .event-card, .formula-box, .equipment-menu-lines, .route-card, .result-grid div, .muted-title { border: 3px solid var(--line); background: #15181e; color: var(--muted); box-shadow: inset 0 0 0 2px rgba(255,184,39,.08); } .event-card h3, .event-card strong, .event-metrics span { color: var(--ink); } .event-card.accepted { background: #1c2c20; box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(0,0,0,.66); } .event-card.empty { background: #15181e; color: var(--muted); } .event-metrics span { border-color: #3d4654; background: #20242b; } .event-status { background: #2a303a; color: var(--warn); border-color: var(--line); } .control-dock { left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); grid-template-columns: repeat(4, minmax(135px, 160px)); gap: 6px; padding: 6px; border: 4px solid var(--line); background: rgba(13,15,19,.96); box-shadow: 5px 5px 0 rgba(0,0,0,.72), inset 0 0 0 2px rgba(255,184,39,.10); } .sort-button { min-height: 44px; font-size: 12px; } .scanner-monitor { position: absolute; z-index: 5; left: 10px; top: 198px; width: clamp(250px, 21vw, 330px); } .scanner-monitor-card { border: 3px solid var(--line) !important; background: linear-gradient(#222832, #15181e) !important; color: var(--ink) !important; box-shadow: 4px 4px 0 rgba(0,0,0,.66), inset 0 0 0 2px rgba(255,184,39,.10) !important; } .scanner-monitor-card strong { color: var(--warn); } .debug-panel { left: auto; right: 12px; bottom: 10px; width: min(420px, calc(100% - 24px)); border-color: var(--line); background: rgba(16,18,23,.97); box-shadow: 5px 5px 0 rgba(0,0,0,.72), inset 0 0 0 2px rgba(227,74,54,.18); color: var(--ink); } .debug-panel summary { color: var(--danger); } .debug-body { border-top-color: var(--line); } .debug-body button, .debug-body input[type="number"], .debug-body select, .debug-readout { border-color: var(--line); background: #20242b; color: var(--ink); } .debug-readout { color: var(--muted); } .modal { background: rgba(3,4,6,.72); } .modal-card { border-color: var(--line); background: linear-gradient(#242a33, #15181e); color: var(--ink); box-shadow: 8px 8px 0 rgba(0,0,0,.72), inset 0 0 0 3px rgba(255,184,39,.12); } .modal-card h2 { color: var(--warn); text-shadow: 2px 2px 0 #050609; } .modal-card ul, .modal-card p { color: var(--muted); } .hover-tooltip { border-color: var(--line) !important; background: rgba(20,23,29,.98) !important; color: var(--ink) !important; box-shadow: 5px 5px 0 rgba(0,0,0,.72) !important; } ::-webkit-scrollbar { width: 14px; height: 14px; } ::-webkit-scrollbar-track { background: #111318; } ::-webkit-scrollbar-thumb { background: #333b48; border: 3px solid #111318; } ::-webkit-scrollbar-thumb:hover { background: #ffb827; } @media (max-width: 1180px) { .hud-top-left { right: 8px; grid-template-columns: repeat(3, minmax(80px, 1fr)); } .hud-top-right { top: 132px; left: 8px; right: auto; grid-template-columns: repeat(2, minmax(82px, auto)); } .priority-strip { top: 226px; } .scanner-monitor { top: 348px; } .build-panel { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 46vh; } .control-dock { grid-template-columns: repeat(2, 150px); } } /* v27.16: compact collapsed debug panel + icon card layout */ .debug-panel:not([open]) { width: 104px !important; min-width: 0; overflow: hidden; } .debug-panel:not([open]) summary { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .debug-panel[open] { width: min(420px, calc(100% - 24px)); } .card-choice { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 150px; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.20)), #20242b; border-color: var(--line); } .card-choice::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,184,39,.18); pointer-events: none; } .card-icon { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid var(--line); background: #15181e; box-shadow: inset 0 0 0 2px rgba(255,184,39,.10), 3px 3px 0 rgba(0,0,0,.35); image-rendering: pixelated; } .card-icon img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; } .card-icon.glyph { color: var(--warn, #ffb827); font-size: 24px; font-weight: 900; text-align: center; line-height: 1; } .card-copy { position: relative; z-index: 1; min-width: 0; } .card-choice strong { color: var(--warn, #ffb827); text-shadow: 1px 1px 0 #050609; } .card-choice small { color: var(--muted); } .card-tags span { background: #15181e; color: var(--white); border-color: var(--line); } .card-choice.common { background: linear-gradient(145deg, #262c35, #171a20); } .card-choice.rare { background: linear-gradient(145deg, #3b3020, #191b20); box-shadow: inset 0 0 0 3px #f0a020, 5px 5px 0 rgba(0,0,0,.50); } .card-choice.ultra-rare { background: linear-gradient(145deg, #401d2a, #171a20); box-shadow: inset 0 0 0 3px #c42424, 5px 5px 0 rgba(0,0,0,.55); } .card-choice.dud { background: linear-gradient(145deg, #2b2b2b, #191919); color: #878787; } .card-choice.dud .card-tags span { background: #222; color: #aaa; } @media (max-width: 1180px) { .debug-panel:not([open]) { width: 92px !important; right: 8px; bottom: 8px; } } /* v27.18 inherited cache-proof identity and final UI overrides */ .build-stamp { position: absolute; z-index: 12; right: 14px; top: 76px; padding: 5px 9px; border: 2px solid #ffb827; background: rgba(14, 17, 22, .94); color: #80e067; box-shadow: 3px 3px 0 rgba(0,0,0,.7); font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; pointer-events: none; } .debug-panel:not([open]) { width: 58px !important; max-width: 58px !important; height: 30px; min-height: 0; } .debug-panel:not([open]) summary { box-sizing: border-box; width: 58px; height: 27px; padding: 5px 7px; text-align: center; overflow: hidden; text-overflow: clip; } .debug-panel[open] { width: min(390px, calc(100% - 24px)) !important; height: auto; } .card-choice { border-width: 3px; box-shadow: 4px 4px 0 rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,184,39,.14); } .card-choice:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 rgba(0,0,0,.65), inset 0 0 0 2px rgba(128,224,103,.24); } .card-icon img { image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.7)); } #gameCanvas { image-rendering: pixelated; } /* v27.18: status relocation, consistent industrial controls, card watermarks */ .hud-top-left { grid-template-columns: repeat(5, minmax(82px, auto)); } .left-bottom-status { position: absolute; z-index: 6; left: 10px; bottom: 10px; width: min(310px, calc(100% - 20px)); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; pointer-events: none; } .left-bottom-status > div { min-width: 0; border: 3px solid var(--line); background: rgba(22, 26, 32, .95); color: var(--ink); padding: 8px 10px; box-shadow: 4px 4px 0 rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,184,39,.10); font-size: 12px; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: .025em; overflow: hidden; text-overflow: ellipsis; } .left-bottom-status .event-brief { grid-column: 1 / -1; white-space: normal; min-height: 39px; } .left-bottom-status .event-brief.active { background: #35221c; box-shadow: inset 0 0 0 3px var(--danger), 4px 4px 0 rgba(0,0,0,.68); } .left-bottom-status .event-brief.next { background: #22301f; box-shadow: inset 0 0 0 3px var(--green), 4px 4px 0 rgba(0,0,0,.68); } .left-bottom-status .event-brief.locked { background: #1c2027; color: var(--muted); } .left-bottom-status .speed-brief { color: #d9e2e8; } .left-bottom-status .combo-brief { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .left-bottom-status .combo-brief span { color: var(--muted); font-size: 10px; } .left-bottom-status .combo-brief strong { color: var(--green); font-size: 22px; line-height: 1; } /* Remove the remaining bright green/white control styling from modal actions. */ .modal-actions button, .facility-action, .card-target-button { border: 3px solid #07080a; background: linear-gradient(#353d48, #1b1f25); color: #e6edf2; box-shadow: inset 0 0 0 1px rgba(255,184,39,.14), 4px 4px 0 rgba(0,0,0,.68); } .modal-actions button:hover:not(:disabled), .facility-action:hover:not(:disabled), .card-target-button:hover:not(:disabled) { background: linear-gradient(#424b58, #242930); color: #fff0c9; box-shadow: inset 0 0 0 2px rgba(255,184,39,.42), 4px 4px 0 rgba(0,0,0,.72); } .facility-action.warn, .modal-actions .reroll-button { background: linear-gradient(#554221, #2b2419); color: #ffd36a; box-shadow: inset 0 0 0 3px #b97810, 5px 5px 0 rgba(0,0,0,.72); } .modal-actions .reroll-button:hover:not(:disabled) { background: linear-gradient(#6b5227, #342919); color: #fff0bd; box-shadow: inset 0 0 0 3px #ffb827, 5px 5px 0 rgba(0,0,0,.76); } .facility-action.good { background: linear-gradient(#29422a, #19271a); color: #a9ed91; } .facility-action.danger { background: linear-gradient(#57251f, #2d1715); color: #ffb1a3; } .modal-actions button:disabled, .facility-action:disabled, .card-target-button:disabled { opacity: .42; filter: grayscale(.85); box-shadow: 3px 3px 0 rgba(0,0,0,.45); } /* Keep the translucent watermark, but also show a readable foreground icon badge. */ .card-badge-icon { position: absolute; z-index: 4; left: 14px; top: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid rgba(7,8,10,.95); background: rgba(16,19,25,.88); box-shadow: inset 0 0 0 1px rgba(255,184,39,.18), 3px 3px 0 rgba(0,0,0,.48); image-rendering: pixelated; } .card-badge-icon img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.7)); } .card-badge-icon.glyph { color: #ffcf68; font-size: 22px; line-height: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.55); } /* Icons are now translucent background art rather than separate foreground badges. */ .card-choice { display: block; min-height: 170px; padding: 16px; isolation: isolate; } .card-choice::before { z-index: 1; } .card-copy { position: relative; z-index: 3; padding-right: 6px; padding-left: 54px; } .card-icon { position: absolute; z-index: 0; right: -9px; bottom: -12px; width: 124px; height: 124px; border: 0; background: transparent; box-shadow: none; opacity: .14; transform: rotate(-7deg); pointer-events: none; overflow: visible; } .card-icon img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.12) contrast(1.2) drop-shadow(3px 3px 0 rgba(0,0,0,.55)); } .card-icon.glyph { display: grid; place-items: center; color: #f0b437; font-size: 88px; line-height: 1; text-shadow: 4px 4px 0 rgba(0,0,0,.55); } .card-choice.rare .card-icon { opacity: .16; } .card-choice.ultra-rare .card-icon { opacity: .17; } .card-choice.dud .card-icon { opacity: .08; filter: grayscale(1); } /* Construction tool asset icons. */ .large-tools .tool-button .tool-icon { width: 28px; height: 28px; image-rendering: pixelated; object-fit: contain; float: left; margin: 0 8px 4px 0; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.55)); } .large-tools .tool-button strong, .large-tools .tool-button .tool-price { overflow: hidden; } @media (max-width: 1180px) { .hud-top-left { grid-template-columns: repeat(3, minmax(80px, 1fr)); } .left-bottom-status { width: 290px; left: 8px; bottom: 8px; } } @media (max-width: 760px) { .left-bottom-status { width: min(270px, calc(100% - 16px)); grid-template-columns: 1fr; } .left-bottom-status .event-brief { grid-column: auto; } } /* v27.19: compact Next Day fee label and deduplicated side panel */ .panel-head { grid-template-columns: minmax(0, 1fr) minmax(112px, 126px); } .primary-button#nextTurnButton { min-width: 0; max-width: 126px; padding: 8px 7px; white-space: normal; overflow: hidden; line-height: 1.08; display: grid; place-content: center; gap: 4px; text-align: center; } #nextTurnButton .next-day-main { display: block; font-size: 15px; letter-spacing: .035em; } #nextTurnButton .next-day-fee { display: block; max-width: 100%; color: #ffd36a; font-size: 9px; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; }