/* Approved cream, evergreen and bright-green idle-game redesign. */
@font-face { font-family: 'Anton'; src: url('../assets/fonts/anton-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --paper:#f7f3df; --card:#fffbea; --ink:#08372d; --ink-2:#40584c; --ink-3:#657167; --line:#999b80; --line-2:#d7d2b8; --font-display:'Anton','Arial Narrow','Baloo 2',sans-serif; --green:#22ae09; --lime:#a2ee38; --gold:#f9cd57; --scrim:#05291dcc; --radius:7px; --radius-dialog:16px; }
body.tycoon { background:linear-gradient(90deg,#7b92700a 1px,transparent 1px),linear-gradient(#7b92700a 1px,transparent 1px),var(--paper); background-size:28px 28px; color:var(--ink); }
body.tycoon h1,body.tycoon h2,body.tycoon h3,body.tycoon .btn { font-weight:400; }
body.tycoon .btn { border:2px solid #727b5e; border-radius:6px; background:#fff8dc; box-shadow:inset 0 1px #fff,0 2px 0 #283b2540; color:#16372b; font:400 18px/1.2 var(--font-display); min-height:42px; padding:9px 15px; }
body.tycoon .btn.primary { color:white; background:linear-gradient(#40d214,#10a500); border-color:#18551d; box-shadow:inset 0 0 0 2px #b5f46a,0 2px 0 #163e29; text-shadow:0 1px 1px #234e1c; }
body.tycoon .btn.primary:hover { background:linear-gradient(#65e32d,#21b00a); }
body.tycoon .btn.brick { color:#43320d; background:linear-gradient(#ffe587,#f4bf3d); border-color:#ad7f27; box-shadow:inset 0 0 0 2px #fff0b5,0 2px 0 #9c7527; text-shadow:none; }
body.tycoon .btn:disabled { background:#b0b1a5; color:#f7f7ec; border-color:#7f8576; box-shadow:inset 0 0 0 2px #d8d9cc; text-shadow:none; cursor:not-allowed; }
body.tycoon .btn.ghost { background:transparent; box-shadow:none; border-color:transparent; color:var(--ink); }
body.tycoon .rail { width:192px; padding:16px 10px; border-right:4px double #e2c468; background:radial-gradient(ellipse at 50% 0,#26533f,transparent 65%),#073328; gap:0; }
.rail-brand { width:100%; border:0; padding:0; background:transparent; cursor:pointer; }
body.tycoon .rail-brand .wordmark { display:flex; flex-direction:column; align-items:center; transform:rotate(-5deg); max-width:none; padding:0 0 12px; }
body.tycoon .wordmark span { display:block; font:400 41px/.98 var(--font-display); letter-spacing:.3px; -webkit-text-stroke:5px #062b20; paint-order:stroke fill; filter:drop-shadow(2px 4px 0 #031c14); margin:0; }
body.tycoon .wordmark .wordmark-max,body.tycoon .wordmark .wordmark-sub { color:#fff5d8; }
body.tycoon .wordmark .wordmark-math { color:#e9cb4f; font-size:49px; }
body.tycoon .wordmark::after { content:none; }
body.tycoon .rail-player { background:none; border:0; box-shadow:none; padding:7px 0 12px; display:flex; align-items:center; justify-content:center; gap:8px; color:#fff8dd; }
body.tycoon .rail-player-name strong { font:400 17px var(--font-display); color:#fff4d1; text-shadow:none; }
body.tycoon .rail-player-name span { font-size:9px; color:#bccdbb; }
.fixed-player { width:var(--player-size,64px); height:var(--player-size,64px); flex-shrink:0; }
.fixed-player>span { display:block; width:100%; height:100%; }
.player-art { display:block; width:100%; height:100%; }
.player-art>img { display:block; width:100%; height:100%; object-fit:contain; }
.player-portrait { overflow:hidden; border:2px solid #d6b74e; border-radius:50%; background:#dfdfb8; }
.player-portrait>img { object-fit:cover; object-position:50% 0; transform:scale(2.8); transform-origin:50% 6%; }
body.tycoon .rail-label { display:none; }
body.tycoon .rail-tabs { gap:5px; }
body.tycoon .rail-tabs button { min-height:43px; border:1px solid #4b735b44; border-radius:5px; box-shadow:none; background:transparent; padding:9px 9px; font:400 17px/1.3 var(--font-display); text-transform:uppercase; }
body.tycoon .rail-tabs button:hover { background:#ffffff10; }
body.tycoon .rail-tabs button[aria-selected=true] { color:#fff8d7; background:linear-gradient(#4dc516,#1d9b03); border-color:#9fdc55; box-shadow:inset 0 0 0 2px #b3ed6a,1px 3px 0 #021e14; text-shadow:0 1px 1px #0b4920; }
body.tycoon .rail-tabs button .icon { color:#fff0b4; width:23px; height:23px; }
body.tycoon .rail-tabs .key { display:none; }
body.tycoon .course-directory { font-size:10px; margin:6px 0; }
body.tycoon .rail-courses button { font:600 10px var(--font); min-height:30px; }
body.tycoon .rail-bottom { margin-top:10px; padding-top:12px; border-top:1px solid #d8b54c; }
body.tycoon .rail-bottom .btn { background:linear-gradient(#ffe47a,#ecb535); color:#163a25; border-color:#84681d; box-shadow:inset 0 0 0 2px #fff2a2,0 3px #031e16; min-height:62px; font-size:25px; }
body.tycoon .rail-bottom .btn:disabled { opacity:.65; }
.rail-title-link { margin:12px 0 0; width:100%; border:0; color:#e7d48f; background:transparent; font:400 15px var(--font-display); cursor:pointer; }
body.tycoon .rail-site { margin-top:8px; }
body.tycoon .shell { margin-left:192px; }
body.tycoon .header { position:relative; display:block; padding:0; min-height:0; top:0; border-bottom:3px double #7d896a; background:linear-gradient(#fff8e5dd,#fff8e5d9),url('../assets/art/tycoon/title-campus-v1.webp') center 62%/cover; }
body.tycoon .empire-topline { padding:5px 20px; min-height:28px; border:0; font-size:9px; letter-spacing:1px; }
body.tycoon .empire-topline h1 { font:600 9px var(--font); }
body.tycoon .empire-topline .icon-btn { min-height:24px; width:24px; height:24px; padding:0; }
body.tycoon .wallet-board { margin:0; padding:0 24px 10px; display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:10px; align-items:center; }
body.tycoon .wallet-main { border:0; border-radius:0; background:none; box-shadow:none; padding:0; display:block; text-align:center; }
body.tycoon .wallet-icon,body.tycoon .wallet-label,body.tycoon .wallet-motto { display:none; }
body.tycoon .cash { margin:0; color:#a4ea36; -webkit-text-stroke:3px #092e17; paint-order:stroke fill; font:400 clamp(48px,5.6vw,92px)/1.15 var(--font-display); letter-spacing:1px; text-shadow:2px 3px #062a1d; overflow-wrap:anywhere; }
body.tycoon .wallet-side { display:flex; flex-direction:column; gap:8px; padding:0; margin:0; }
body.tycoon .cash-rate { color:#12512d; font:400 24px var(--font-display); }
body.tycoon .income-stat { padding:0; border:0; }
body.tycoon .credit-stat { display:flex; gap:10px; padding:8px 12px; border:2px solid #77622c; border-radius:7px; background:linear-gradient(#ffe99b,#ffe2a0); box-shadow:inset 0 0 0 3px #fff5ca; }
body.tycoon .credit-stat .icon { color:#9d7018; width:32px; height:32px; }
body.tycoon .credits-pill { font:400 20px/1.1 var(--font-display); }
body.tycoon .empire-status { padding:6px 20px; background:#f4efd99e; border:0; gap:15px; font-size:10px; min-height:30px; }
.question-mode-badge { border:1px solid #74885b; background:#f8f4dd; padding:3px 7px; border-radius:4px; font:400 11px var(--font-display); }
body.tycoon .columns { display:grid; grid-template-columns:minmax(0,1fr) 222px; align-items:start; gap:8px; }
body.tycoon .main { padding:15px 8px 35px 18px; grid-column:1; grid-row:1; width:auto; }
body.tycoon[data-tab=business] .main { display:block; }
body.tycoon:not([data-tab=business]) .main { display:none; }
body.tycoon .campus-guide,body.tycoon[data-tab=business] .campus-guide { display:flex; flex-direction:column; grid-column:2; grid-row:1; position:sticky; top:15px; padding:10px 12px 20px 0; width:auto; margin:0; background:none; border:0; box-shadow:none; }
body.tycoon[data-tab=business] .panel { display:none; }
body.tycoon:not([data-tab=business]) .panel { display:block; grid-column:1; grid-row:1; position:static; width:auto; min-width:0; max-height:none; padding:18px 10px 40px 20px; overflow:visible; background:none; border:0; transform:none; }
body.tycoon:not([data-tab=business]) .panel-inner { padding:0; background:none; border:0; box-shadow:none; }
body.tycoon .panel h2 { font-size:30px; text-transform:uppercase; padding-bottom:4px; border-bottom:2px solid #a0a78a; }
body.tycoon .panel-sub { margin:6px 0 18px; font-size:12px; }
body.tycoon .panel-sheet-handle { display:none; }
body.tycoon .empire-toolbar { min-height:50px; padding:7px 10px; margin-bottom:10px; background:#fff8e5; border:2px solid #5e735c; border-radius:5px; gap:9px; }
body.tycoon .toolbar-label { font:400 22px/1.1 var(--font-display); letter-spacing:0; }
body.tycoon .buy-selector { margin-left:auto; }
body.tycoon .buy-selector button { background:#f7f0d5; border-color:#8b9878; color:#133b28; font:400 16px var(--font-display); }
body.tycoon .buy-selector button[aria-pressed=true] { background:linear-gradient(#58d21a,#21ac05); color:#fff; box-shadow:inset 0 0 0 1px #bfee61; }
body.tycoon .buy-selector button:disabled { color:#68715f; background:#e2e0d3; }
body.tycoon .manager-shortcut { display:none; }
body.tycoon .business-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.tycoon .biz { grid-template-columns:70px minmax(0,1fr) 102px; grid-template-rows:auto 40px 24px; gap:5px 7px; padding:8px; min-height:127px; background:#fffae8; border:2px solid #a3a58b; border-radius:6px; box-shadow:inset 0 0 0 2px #fffef4,0 2px 0 #b2b29b; }
.business-list .biz:nth-child(-n+5) { grid-column:1; }
.business-list .biz:nth-child(n+6):nth-child(-n+10) { grid-column:2; }
.business-list .biz:nth-child(1),.business-list .biz:nth-child(6) { grid-row:1; }
.business-list .biz:nth-child(2),.business-list .biz:nth-child(7) { grid-row:2; }
.business-list .biz:nth-child(3),.business-list .biz:nth-child(8) { grid-row:3; }
.business-list .biz:nth-child(4),.business-list .biz:nth-child(9) { grid-row:4; }
.business-list .biz:nth-child(5),.business-list .biz:nth-child(10) { grid-row:5; }
.business-list .biz:nth-child(11) { grid-column:1 / -1; grid-row:6; }
body.tycoon .biz-art { position:relative; width:70px; height:95px; background:none; padding:0; }
body.tycoon .biz-art img { width:68px; max-width:68px; max-height:68px; border:2px solid #3b5c3f; background:#d8ebdd; border-radius:50%; object-fit:cover; }
body.tycoon .owned-badge { bottom:-4px; padding:2px 4px; left:7px; right:7px; border:1px solid #7c895e; border-radius:4px; box-shadow:none; background:#efedcc; color:#173c28; }
body.tycoon .owned { font:400 17px var(--font-display); }
body.tycoon .owned-badge small { font-size:6px; letter-spacing:.7px; }
body.tycoon .biz-head { min-height:33px; gap:4px; }
body.tycoon .biz-name { display:block; text-transform:uppercase; font:400 19px/1.15 var(--font-display); color:#10362b; }
body.tycoon .biz-course { font:400 10px/1.5 var(--font); color:#334c3e; }
body.tycoon .biz-mult { font-size:9px; background:#ebeccd; padding:2px 4px; max-width:55px; }
body.tycoon .biz-click,body.tycoon .biz-click:disabled,body.tycoon .biz-click:hover { border:2px solid #375d26; background:#acd488; color:#fff; border-radius:4px; height:40px; min-height:40px; box-shadow:inset 0 0 0 1px #d6f7b1; }
body.tycoon .biz-click .bar>i { background:linear-gradient(#9deb31,#29c00b); box-shadow:inset 0 2px 0 #d3f78d; }
body.tycoon .biz-pay { color:white; text-shadow:1px 1px 0 #19491f,-1px -1px 0 #19491f; font:400 22px/1 var(--font-display); }
body.tycoon .run-label { font-size:8px; color:#0b3f24; }
body.tycoon .biz-actions .btn { min-height:40px; height:40px; font-size:17px; padding:3px; }
body.tycoon .biz-actions .btn.brick { font-size:12px; }
body.tycoon .biz-actions .btn .sub { font:600 10px var(--font); }
body.tycoon .biz-footer { gap:5px; min-height:24px; }
body.tycoon .biz-portrait button { font-size:9px; height:24px; min-height:24px; }
body.tycoon .cycle-time,body.tycoon .nextgate { font-size:8px; }
body.tycoon .manager-face { display:block; width:24px; height:24px; }
body.tycoon .biz.is-gated { border-color:#bc9338; background:#fff4d1; }
body.tycoon .biz.is-locked-business { background:#eeecdf; }
body.tycoon .biz-unlock { grid-column:2 / 4; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0; background:none; }
body.tycoon .biz-unlock .btn { min-width:115px; min-height:42px; font-size:16px; }
body.tycoon .unlock-message { font-size:10px; max-width:110px; }
body.tycoon .empire-footer { margin-top:15px; font-size:9px; gap:15px; }
body.tycoon .mentor-speech { background:#fffcdf; border:2px solid #243d29; border-radius:45% 45% 45% 8%; padding:13px 10px; margin:0 0 5px 15px; font:400 23px/1.2 var(--font-display); text-align:center; color:#183a2b; box-shadow:none; }
body.tycoon .mentor-actor { height:335px; max-height:none; margin:0; width:100%; position:relative; }
body.tycoon .mentor-actor .player-art { height:100%; }
body.tycoon .mentor-name { text-align:center; font:400 17px var(--font-display); margin:5px 0 12px; }
.mentor-milestone { border:2px solid #7e6730; box-shadow:inset 0 0 0 3px #fff0ad; border-radius:10px; background:linear-gradient(#fff1b7,#fff8df); text-align:center; padding:12px; display:flex; flex-direction:column; gap:6px; }
.mentor-milestone .section-label { color:#7c5922; font:400 16px var(--font-display); }
.mentor-milestone>strong { font-size:15px; }
.mentor-milestone p { font-size:11px; line-height:1.5; margin:0; }
.mentor-milestone .milestone-reward { font:400 28px var(--font-display); color:#135527; }
.mentor-milestone .btn { width:100%; font-size:18px; padding:8px 5px; }
.mentor-switch { border:0; background:none; color:#405a45; text-decoration:underline; cursor:pointer; font-size:11px; padding:12px 5px; }
.is-cheering { animation:host-cheer .6s ease; }
@keyframes host-cheer { 50% { transform:translateY(-9px) rotate(-2deg); } }
.manager-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.manager-card { display:grid; grid-template-columns:38% minmax(0,1fr); min-height:244px; background:#fff9e4; border:2px solid #a0a489; border-radius:6px; padding:8px; overflow:hidden; }
.manager-figure { min-width:0; min-height:210px; align-self:stretch; background:radial-gradient(ellipse,#eee8be,transparent 70%); }
.manager-figure .tycoon-character { width:100%; height:100%; max-height:250px; }
.manager-info { display:flex; flex-direction:column; gap:7px; padding:8px 0 6px 7px; min-width:0; }
.manager-info h3 { font:400 22px/1.12 var(--font-display); text-transform:uppercase; margin:0; }
.manager-course { margin:0; font-size:10px; color:#4b624d; }
.manager-business { display:flex; align-items:center; gap:6px; font-size:11px; }
.manager-business img { width:32px; height:32px; object-fit:contain; }
.manager-bio { font-size:10px; line-height:1.5; margin:0; }
.manager-status { font-size:10px; color:#386129; }
.manager-info .btn { margin-top:auto; min-width:0; font-size:16px; padding:8px 4px; }
.filters .btn[aria-pressed=true] { background:#26ad09; color:white; border-color:#276326; }
.achievement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:28px; }
.achievement-card { background:#edeadb; border:1px solid #a6a98d; border-radius:6px; padding:15px; }
.achievement-card.is-earned { background:#fff2ba; border-color:#b08b32; }
.achievement-card h3 { font-size:19px; margin:8px 0 5px; }
.achievement-card p { font-size:11px; margin:0 0 10px; }
.achievement-status { color:#4b6245; font-size:10px; font-weight:700; }
.achievement-medal .icon { width:28px; height:28px; color:#8a927a; }
.is-earned .achievement-medal .icon { fill:#edbf43; stroke:#725b21; }
body.tycoon .dialog { background:#fff8e4; border:3px solid #5c613c; border-radius:14px; box-shadow:inset 0 0 0 4px #f8da70,0 15px 80px #05271d55; padding:24px; }
body.tycoon #modal .dialog { width:min(1050px,94vw); max-width:1050px; max-height:92dvh; overflow:auto; }
body.tycoon #modal .dialog-head { background:linear-gradient(#fff0ac,#ffdc68); border:2px solid #847332; border-radius:7px; padding:14px 45px 14px 15px; margin-bottom:18px; }
body.tycoon #modal .dialog-head b { font:400 32px/1.2 var(--font-display); }
body.tycoon #modal .dialog-head .portrait { display:none; }
body.tycoon #modal .dialog-head .tag { font-size:10px; margin-left:auto; }
.challenge-layout { display:grid; grid-template-columns:180px minmax(0,1fr); gap:22px; }
.challenge-layout:not(:has(.challenge-mentor)) { grid-template-columns:1fr; }
.challenge-mentor { display:flex; flex-direction:column; justify-content:center; align-items:center; border-right:1px solid #cec69e; padding-right:18px; text-align:center; }
.challenge-mentor>div { width:100%; }
.challenge-mentor .tycoon-character { width:100%; height:285px; }
.challenge-mentor strong { font:400 19px var(--font-display); margin-top:10px; }
.challenge-mentor>span { font-size:10px; }
.challenge-content { min-width:0; }
.challenge-intro { font:400 23px var(--font-display); margin:0 0 15px; }
body.tycoon .challenge-question .prompt { border:1px solid #d3c798; border-radius:6px; padding:20px; background:#fffdf1; font-size:17px; overflow-x:auto; }
body.tycoon .challenge-question input[type=text] { border:2px solid #718267; border-radius:5px; background:#fffdf3; min-height:48px; font-size:18px; }
.math-keypad { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.math-keypad button { border:1px solid #5e7054; border-radius:5px; min-width:44px; min-height:40px; background:#fff6d7; color:#123724; font:700 20px Georgia,serif; cursor:pointer; }
.challenge-reward { border:2px solid #ab8732; border-radius:6px; padding:10px; background:linear-gradient(#ffe990,#ffd257); font:400 21px/1.3 var(--font-display); text-align:center; margin-top:14px; }
body.tycoon .format-help { font-size:11px; padding:6px 0; color:#475b44; }
.format-help summary { cursor:pointer; }
body.tycoon .dialog-actions { gap:8px; margin-top:16px; flex-wrap:wrap; }
body.tycoon .dialog-actions .btn { font-size:16px; padding:9px 12px; }
body.tycoon .dialog-actions .btn.primary { order:3; margin-left:auto; }
body.tycoon .dialog-actions .attempts { width:100%; order:4; font-size:10px; }
body.tycoon .max-portrait .player-art { width:90px; height:90px; }

body.tycoon .empire-home { font:inherit; color:inherit; border:0; background:transparent; padding:4px 0; cursor:pointer; letter-spacing:inherit; }
