/* FS25DB look: the game's own evening fields. Dark: the deep green-black of its menus. Light: straw paper.
   The accent is the green of the game's buttons, headings in Bitter like the signs on its farms.
   Paths are relative to this file, so the section works on the hub and on its own domain. */
[data-theme="dark"] body[data-game="farming-simulator-25"] {
  --bg: #0f1410; --bg-2: #131a14; --panel: #172019; --panel-2: #1d281f; --line: #27352a; --line-2: #344636;
  --ink: #e8eee4; --ink-soft: #c9d3c3; --muted: #93a28f; --head: rgba(12, 17, 13, .96);
  --frame: #6f8f3a; --shade: rgba(9, 13, 10, .72);
}
[data-theme="light"] body[data-game="farming-simulator-25"] {
  --bg: #f3efe2; --bg-2: #ebe5d3; --panel: #fdfbf4; --panel-2: #f6f1e3; --line: #ddd5bf; --line-2: #c9bfa3;
  --ink: #1f2619; --ink-soft: #39422f; --muted: #646c58; --head: rgba(20, 28, 18, .97);
  --frame: #7d9a45; --shade: rgba(24, 30, 18, .62);
}
body[data-game="farming-simulator-25"] .top { border-bottom: 2px solid #7fae2e; }
body[data-game="farming-simulator-25"] .menu [aria-current] { border-bottom-color: #9cc84a; }
body[data-game="farming-simulator-25"] .hero-art { background-color: #0f1410; }
body[data-game="farming-simulator-25"] .picker { background: rgba(16, 22, 17, .9); border-color: #344636; }
body[data-game="farming-simulator-25"] .picker-list img { border-color: #6f8f3a; background: #121a13; border-radius: 10px; }
body[data-game="farming-simulator-25"] .picker-list a:hover img { border-color: #b7dc6a; }
body[data-game="farming-simulator-25"] .icon-tile img, body[data-game="farming-simulator-25"] .frame { background: radial-gradient(circle at 50% 40%, #2a3a2c, #121a13); }

.note { color: var(--muted); font-size: .92em; }
.src { color: var(--muted); font-size: .88em; margin-top: 26px; }
.muted { color: var(--muted); }
.n small, td small { color: var(--muted); }

/* an icon of the game before a name in tables and lists */
a.ic, span.ic { display: inline-flex; align-items: center; gap: 8px; }
a.ic img, span.ic img { flex: none; object-fit: contain; }
a.ft, span.ft { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: bottom; }
a.ft img, span.ft img { width: 22px; height: 22px; object-fit: contain; }
.ftlist { line-height: 2; }
.ftlist a.ft { margin-right: 10px; }
span.ic > span { line-height: 1.25; }

/* Easy / Normal / Hard: the same switch on every page with prices (fs25.js swaps .eco values) */
.eco-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 14px; }
.eco-switch button { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 12px; cursor: pointer; }
.eco-switch button.on { background: #4f7a19; border-color: #7fae2e; color: #fff; }
.eco-switch .muted { font-size: 13.5px; flex-basis: 100%; }

/* price through the year: one bar per month, the best one in the accent */
.mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 170px; max-width: 760px; margin: 12px 0 6px; padding: 10px 10px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.mbar { position: relative; height: calc(var(--h) * 0.82 + 18px); background: linear-gradient(180deg, #8cb24c, #56792a); border-radius: 4px 4px 0 0; min-height: 22px; }
.mbar.top { background: linear-gradient(180deg, #e6c45a, #b18a26); }
.mbar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }
.mbars { margin-bottom: 30px; }
.spark { display: inline-flex; gap: 1px; align-items: end; height: 22px; width: 72px; }
.spark i { flex: 1; height: var(--h); background: #6f9a35; border-radius: 1px; }
.spark i.top { background: #e0bb4f; }

/* crop calendar */
table.calendar td.cal { text-align: center; font-size: 12.5px; font-weight: 700; min-width: 34px; }
table.calendar td.sow { background: rgba(126, 174, 46, .32); }
table.calendar td.hv { background: rgba(224, 182, 63, .34); }
table.calendar td.sow.hv { background: linear-gradient(135deg, rgba(126, 174, 46, .36) 50%, rgba(224, 182, 63, .38) 50%); }
table.calendar th { text-align: center; }

/* calculators */
.calc { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.calc p { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.calc label { display: inline-flex; gap: 8px; align-items: center; }
.calc input[type=number], .calc select { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; }
.calc input[type=number] { width: 7em; }
.calc fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 4px 12px 8px; min-width: 0; }
.calc select { max-width: 100%; }
.calc legend { color: var(--ink-soft); padding: 0 6px; }
.calc-out { max-width: 760px; margin: 0 0 22px; font-size: 1.05em; }
.calc-out:empty { display: none; }
.calc-out table { width: 100%; }
.calc-out .big { font: 700 1.6em/1.2 var(--display); color: var(--ac); margin: 4px 0 8px; }

/* pictures from the shop and the animal dealer */
.shot img, .shopimg { width: 200px; height: auto; max-width: 40vw; background: radial-gradient(circle at 50% 45%, #2a3a2c, transparent 70%); border-radius: 10px; }
[data-theme="light"] .shot img, [data-theme="light"] .shopimg { background: radial-gradient(circle at 50% 45%, #e8e1cb, transparent 70%); }
.ehead { align-items: flex-start; flex-wrap: wrap; }
.ehead .facts { flex: 1 1 380px; margin-top: 0; }
img.logo { height: 28px; width: auto; vertical-align: middle; background: #fff; border-radius: 4px; padding: 2px 6px; }
img.logo.big { height: 56px; }
.icons img[src*="/brands/"] { background: #fff; border-color: var(--line-2); }

/* the map: the game's own overview with our marks; drag to move, +/- or the wheel to zoom (fs25-map.js) */
.mapbox { margin: 12px 0 20px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; font-size: 14.5px; }
.map-tools button { font: 700 18px/1 var(--body); width: 34px; height: 34px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }
.map-tools label { display: inline-flex; gap: 6px; align-items: center; }
.map-view { position: relative; overflow: hidden; height: min(78vh, 900px); background: #0b100c; border: 1px solid var(--line); border-radius: 10px; touch-action: none; cursor: grab; }
.mapbox.small .map-view { height: min(70vh, 720px); }
.map-view.drag { cursor: grabbing; }
.map-inner { position: absolute; left: 0; top: 0; width: 900px; height: 900px; transform-origin: 0 0; }
.map-inner > img { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fld polygon { fill: rgba(156, 200, 74, .16); stroke: rgba(214, 240, 160, .85); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fld text { fill: #fff; font: 700 20px var(--body); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, .8); stroke-width: 4px; }
.mk { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); transform: scale(var(--k, 1)); }
.mk-sell { background: #e0b63f; }
.mk-production { background: #d0663a; }
.mk-buy { background: #4aa3df; }
.mk-fuel { background: #8b8b8b; }
.mk-animals { background: #a77bd1; }
.mk-other { background: #63b3a6; }
.mk-coll { background: #f05d8e; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.mk.num { width: 22px; height: 22px; margin: -11px 0 0 -11px; font: 700 11px/18px var(--body); color: #fff; text-align: center; text-decoration: none; }
.mk:hover { transform: scale(calc(var(--k, 1) * 1.4)); text-decoration: none; z-index: 2; }
.map-view [data-l].off { display: none; }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); vertical-align: -1px; }
tr:target { outline: 2px solid var(--ac); outline-offset: -2px; }
@media (max-width: 720px) {
  .mbars { height: 130px; gap: 2px; padding: 8px 4px 0; }
  .mbar span { font-size: 10px; }
  .map-view { height: 70vh; }
}

/* the shop's category icon before a heading; pictures of an animal by age; the construction menu's items */
h2.cath { display: flex; align-items: center; gap: 10px; }
.caticon { width: 36px; height: 36px; object-fit: contain; }
td.ages img { width: 40px; height: 40px; object-fit: contain; margin-right: 4px; vertical-align: middle; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px 10px; margin: 8px 0 22px; }
.shopgrid figure { margin: 0; text-align: center; }
.shopgrid img { width: 120px; height: 120px; object-fit: contain; }
.shopgrid figcaption { font-size: 14px; line-height: 1.3; }

/* My farm: one line at the top of every page that opens to the choices (src/fs25.js keeps them in the browser) */
details.farmbar { margin: 0 0 16px; padding: 7px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
details.farmbar summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
details.farmbar summary::-webkit-details-marker { display: none; }
details.farmbar summary b { font-family: var(--display); color: var(--ac); }
details.farmbar .farm-change { color: var(--ac); text-decoration: underline; font-size: 13.5px; }
details.farmbar[open] .farm-change { display: none; }
form#farm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
form#farm label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
form#farm select { width: auto; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; }

/* the answer on the first screen of a crop or product page */
.answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 18px; align-items: start; margin: 0 0 22px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; }
.answer-form { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 6px; }
.answer-form label { display: inline-flex; gap: 8px; align-items: center; }
form.answer-form input[type=number] { width: 7.5em; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; }
.answer-out p { margin: 6px 0; }
.answer-out .big { font: 700 2em/1.15 var(--display); color: var(--ac); margin: 4px 0; }
.answer .minimaps { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
body.one-map .answer .minimaps { grid-template-columns: 1fr; }
.minimap { margin: 0; }
.minimap-in { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.minimap-in img { display: block; width: 100%; height: auto; }
.minimap .mk { width: 10px; height: 10px; margin: -5px 0 0 -5px; transform: none; }
.minimap .mk.best { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: #fff; border-color: #e0b63f; box-shadow: 0 0 0 3px rgba(224, 182, 63, .7); z-index: 2; }
.minimap figcaption { font-size: 13px; text-align: center; margin-top: 3px; }
.herd-top { grid-template-columns: 200px minmax(0, 1fr); }
.herd-top .shot { margin: 0; }
.herd-ask h2 { margin-top: 0; }
.herd-top .calc { border: 0; padding: 0; background: none; margin: 6px 0; }
@media (max-width: 720px) {
  .answer, .herd-top { grid-template-columns: 1fr; }
  .answer .minimaps { grid-column: 1; grid-row: auto; }
  details.farmbar { font-size: 13.5px; }
  .herd-top .shot img { width: 120px; }
}

/* the map: the game's own pins, a legend with counts, and the panel beside it */
.map-tools { gap: 8px 12px; }
.map-find { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; min-width: 220px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 14.5px; }
.map-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-legend img { width: 22px; height: 22px; }
.map-legend small { color: var(--muted); }
.lg-field { display: inline-block; width: 18px; height: 14px; background: rgba(156, 200, 74, .3); border: 2px solid rgba(214, 240, 160, .9); border-radius: 2px; vertical-align: -2px; }
.lg-coll { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #f05d8e; border: 2px solid #fff; color: #fff; font: 700 10px/16px var(--body); text-align: center; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.map-panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; max-height: min(78vh, 900px); overflow: auto; font-size: 15px; }
.map-panel h3 { margin: 4px 0 8px; font-size: 1.25em; }
.map-panel p { margin: 6px 0; }
.place-photo { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }
.panel-kind { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.panel-list { list-style: none; padding: 0; margin: 4px 0 8px; }
.panel-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.panel-list li span { margin-left: auto; font-variant-numeric: tabular-nums; }
.panel-list img { width: 20px; height: 20px; object-fit: contain; }
.pin { position: absolute; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -100%) scale(var(--k, 1)); transform-origin: 50% 100%; }
.pin img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.pin:hover, .pin.sel { transform: translate(-50%, -100%) scale(calc(var(--k, 1) * 1.35)); z-index: 3; }
.map-svg .fld polygon { pointer-events: visiblePainted; cursor: pointer; }
.map-svg .fld:hover polygon, .map-svg .fld.sel polygon { fill: rgba(224, 182, 63, .35); stroke: #ffe08a; }
.mk-coll { cursor: pointer; }
.mk-coll.sel { box-shadow: 0 0 0 3px #ffe08a; }
.mk.found { opacity: .35; }
.pin-sm { width: 22px; height: 22px; vertical-align: -4px; }
h2 .pin-sm { width: 30px; height: 30px; vertical-align: -6px; }
@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-panel { max-height: none; }
  .map-find { min-width: 0; flex: 1 1 160px; }
}
button.mk { padding: 0; cursor: pointer; }

/* best crops: what to plant now; a recipe's page: its calculator beside the small map; the productions filter */
.answer.one { grid-template-columns: 1fr; }
.answer.one h2 { margin-top: 0; }
.prod-top { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); }
.prod-top h2 { margin-top: 0; }
.prod-top .calc { border: 0; padding: 0; background: none; margin: 6px 0; }
.prod-top .minimaps { display: grid; grid-template-columns: 1fr; gap: 8px; }
details.have { margin: 0 0 14px; }
details.have summary { cursor: pointer; color: var(--ink-soft); margin-bottom: 6px; }
.have-list { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 220px; overflow: auto; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.have-list label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.have-list img { width: 22px; height: 22px; object-fit: contain; }
@media (max-width: 720px) { .prod-top { grid-template-columns: 1fr; } }

/* home: this month on your farm */
.farm-month { display: grid; grid-template-columns: 1fr; gap: 0; }
.sell-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sell-cols h3 { margin: 4px 0 6px; font-size: 1.05em; }
.panel-list small { color: var(--muted); margin-left: 6px; }
@media (max-width: 720px) { .sell-cols { grid-template-columns: 1fr; } }

/* the month of My farm in the calendar; growing months; price arrows; copy buttons; machine filters */
table.calendar td.grow { background: rgba(126, 174, 46, .13); }
table.calendar .now { outline: 2px solid var(--ac); outline-offset: -2px; }
table.calendar th.now { color: var(--ac); }
td small.up { color: #8fd14f; }
td small.down { color: #e07a5f; }
button.copy { margin-left: 8px; font: inherit; font-size: 12.5px; color: var(--ac); background: none; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 7px; cursor: pointer; }
.pullpick select, .hpfilter input { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
.hpfilter input { width: 6em; }
.find-input { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; width: min(360px, 100%); }

/* the game's own menu tab icons before the menu labels, in the text colour of the theme */
.tabicon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; filter: brightness(0) invert(.9); }
[data-theme="light"] .menu .tabicon { filter: brightness(0) invert(.9); }
.dd-top .tabicon, .menu > a .tabicon { opacity: .9; }
@media (max-width: 720px) { .tabicon { margin-right: 4px; } }

/* the price screen: product list on the left, buyers and the year's curve on the right, as in the game */
.pricescreen { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; margin: 0 0 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; min-height: 460px; }
.ps-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; max-height: 620px; }
.ps-find { margin: 10px; font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; }
.ps-list ul { list-style: none; margin: 0; padding: 0 0 8px; overflow: auto; }
.ps-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 12px; font: inherit; font-size: 14.5px; color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer; }
.ps-list button:hover { background: var(--panel-2); }
.ps-list button.on { background: #4f7a19; color: #fff; }
.ps-list img { width: 24px; height: 24px; object-fit: contain; }
.ps-main { padding: 12px 18px; }
.ps-main h2 { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ps-icon { width: 36px; height: 36px; object-fit: contain; }
.ps-chart { width: 100%; max-width: 640px; height: auto; color: #9cc84a; }
.ps-chart circle { fill: #9cc84a; }
.ps-chart circle.best { fill: #e0b63f; }
.ps-chart circle.now { fill: #fff; stroke: #9cc84a; stroke-width: 3; }
.ps-chart text { fill: var(--muted); font: 12px var(--body); }
.ps-chart text.now { fill: var(--ink); font-weight: 700; }
.ps-chart .lab { font-size: 11px; }
@media (max-width: 760px) {
  .pricescreen { grid-template-columns: 1fr; }
  .ps-list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
}
