/* Player tools (09.11.2026): big numbers, one column on a phone, nothing to scroll sideways. */
.t-h1 { font-size: clamp(30px, 5vw, 52px); }
/* Numbers in a plain sans with lining, equal-width digits: the site's serif has old-style figures where 0 reads as o. */
.tool { --num: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.tool input[type=number], .t-out b, .t-sum b, .t-n, .t-verdict, .t-ai-left b { font-family: var(--num) !important; font-variant-numeric: lining-nums tabular-nums; }
.t-top { padding-bottom: 8px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 12px; margin-top: 18px; font-family: var(--body); }
.tool input[type=number] { width: 100%; min-width: 0; font: 700 22px/1.2 var(--body); color: var(--ink); background: #120c08; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; -moz-appearance: textfield; }
.tool input[type=number]::-webkit-inner-spin-button, .tool input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tool input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.t-lbl { display: block; font: 700 13px/1.4 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.t-seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-seg .t-lbl { width: 100%; margin: 0; }
.t-seg button, .t-btn { display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--display); font-variant-numeric: lining-nums; color: var(--ink); background: #120c08; border: 1px solid var(--line); border-radius: 999px; padding: 2px 18px 0; cursor: pointer; min-height: 44px; }
.t-seg button[aria-pressed=true], .t-btn { background: linear-gradient(#f6c45e, var(--ember)); color: #2b1405; border-color: transparent; }
.t-rows { display: grid; gap: 8px; }
.t-row { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.t-n { font: 900 22px var(--display); color: var(--gold); text-align: center; }
.t-out { display: flex; flex-direction: column; line-height: 1.1; opacity: .45; }
.t-row.on .t-out { opacity: 1; }
.t-out b { font: 700 24px var(--body); color: var(--gold2); }
.t-out small, .t-sum small { font-size: 13px; color: var(--muted); }
.pos { color: var(--green) !important; } .neg { color: #ff8a6b !important; }
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.t-pair label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.t-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.t-sum > div { background: #120c08; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.t-sum b { font: 700 26px/1.15 var(--body); color: var(--gold2); }
.t-copy { display: flex; gap: 10px; align-items: center; }
.t-copy output { flex: 1; min-width: 0; font: 18px/1.4 ui-monospace, Consolas, monospace; background: #120c08; border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.t-copy .ghost { cursor: pointer; min-height: 44px; }
.t-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; }
.t-reset { background: none; border: 0; color: var(--gold); font: 700 14px var(--display); text-decoration: underline; cursor: pointer; padding: 8px 0; }
.t-time { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--muted); }
.t-verdict { font: 700 26px/1.25 var(--display); margin: 14px 0 4px; min-height: 8px; }
.t-how li { font-size: 18px; margin-bottom: 8px; }
.t-about { border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .t-row { grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .t-out b { font-size: 20px; } .tool input[type=number] { font-size: 20px; padding: 9px 8px; }
  .t-pair { grid-template-columns: 1fr; }
  .t-copy { flex-direction: column; align-items: stretch; }
  .t-verdict { font-size: 22px; }
}

/* Kingshot list (09.11.2026): one line per kind, days / hours / minutes as the game shows them in its Overview window. */
.t-hint { margin: -2px 0 10px; }
.t-list { display: grid; gap: 8px; }
.t-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 10px; align-items: center; background: #120c08; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.t-line.on { border-color: rgba(246, 196, 94, .45); }
.t-tname { font: 700 16px/1.2 var(--display); color: var(--gold2); }
.t-dhm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.t-dhm label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.t-dhm input[type=number] { font-size: 19px; padding: 8px 6px; text-align: right; background: #1c140d; }
.t-sum.one { grid-template-columns: 1fr; }
.t-seg button { padding: 2px 16px 0; }
.t-btn { padding: 2px 22px 0; }
.t-btn:disabled { opacity: .6; cursor: progress; }
.t-reset { min-height: 44px; display: inline-flex; align-items: center; }
/* Screenshot reader */
.t-ai { border: 1px dashed rgba(246, 196, 94, .5); border-radius: 14px; padding: 14px; margin-bottom: 6px; background: rgba(246, 196, 94, .05); }
.t-ai.drop { background: rgba(246, 196, 94, .14); }
.t-ai-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.t-ai-head > b { font: 700 19px var(--display); color: var(--gold2); }
.t-ai-left { font-size: 14px; color: var(--muted); }
.t-ai-left b { color: var(--gold2); }
.t-ai-lead { margin: 6px 0 12px; }
.t-ai-paste { margin: 8px 0 0; }
.t-ai-cf:not(:empty) { margin-top: 10px; }
.t-ai-status { margin: 10px 0 0; font-weight: 700; min-height: 0; }
.t-ai-status:empty { display: none; }
.t-ai-status.busy::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: t-spin .8s linear infinite; }
@keyframes t-spin { to { transform: rotate(360deg); } }
.t-ai-note { margin: 10px 0 0; }
/* Crownforge banner under the calculator */
.t-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; margin-top: 16px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(246, 196, 94, .4); background: #120c08; color: var(--ink); text-decoration: none; }
.t-promo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; }
.t-promo-in { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; justify-content: center; }
.t-promo-in small { font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t-promo-in b { font: 700 21px/1.2 var(--display); color: var(--gold2); }
.t-promo-cta { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; min-height: 40px; padding: 2px 18px 0; border-radius: 999px; font: 700 15px/1 var(--display); background: linear-gradient(#f6c45e, var(--ember)); color: #2b1405; }
.t-promo:hover .t-promo-cta { filter: brightness(1.08); }
.t-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 16px 0 0; padding: 10px 12px 10px 16px; border-radius: 12px; border: 1px solid rgba(246, 196, 94, .35); background: rgba(246, 196, 94, .06); }
.t-next span { font: 700 15px/1.3 var(--display); color: var(--gold2); }
.t-next a { display: inline-flex; align-items: center; min-height: 40px; padding: 2px 18px 0; border-radius: 999px; font: 700 15px/1 var(--display); background: linear-gradient(#f6c45e, var(--ember)); color: #2b1405; text-decoration: none; }
.t-next a:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .t-line { grid-template-columns: 1fr; gap: 6px; }
  .t-dhm input[type=number] { font-size: 18px; }
  .t-promo { grid-template-columns: 1fr; }
  .t-promo img { aspect-ratio: 16 / 7; }
}
/* Multiplier buttons hold numbers: plain lining digits, optically centred. */
.t-seg button[data-mult] { font: 700 18px/1 var(--num, system-ui); padding: 0 18px; }
/* Item counter (10.11.2026, Rise of Kingdoms / Whiteout Survival): count items per size, the total goes into one line. */
.t-items { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; background: rgba(246, 196, 94, .04); }
.t-items > summary { cursor: pointer; font: 700 19px var(--display); color: var(--gold2); min-height: 32px; display: flex; align-items: center; }
.t-items > .fine { margin: 6px 0 4px; }
.t-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.t-igrid label { display: flex; flex-direction: column; gap: 4px; font: 700 14px var(--num, system-ui); color: var(--muted); }
.t-igrid input[type=number] { font-size: 19px; padding: 8px 8px; text-align: right; }
.t-iuse { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.t-iuse b { font: 700 22px var(--num, system-ui); color: var(--gold2); }
.t-line.flash { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246, 196, 94, .35); transition: box-shadow .3s; }
@media (max-width: 560px) { .t-igrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .t-iuse .t-btn { width: 100%; } }
/* Crownforge Defender calculators (20.11.2026): DPS and upgrade cost. */
.t-best { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.t-best li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.t-best li:first-child { border-color: var(--gold); background: rgba(246, 196, 94, .08); }
.t-best b { font: 700 18px var(--num, system-ui); color: var(--gold2); }
.t-neg { color: var(--ember, #e0613a); }
.dps .t-line input[type=number], .upc .t-line input[type=number], .drop .t-line input[type=number], .xp .t-line input[type=number] { text-align: right; }
/* Troop calculators (19.11.2026): result lines light up when they hold a number. */
.t-rline .t-out { flex-direction: row; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.t-rline.on .t-out { opacity: 1; }
.t-tr .t-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 560px) { .t-tr .t-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
