:root {
  --now-ink: #191715;
  --now-card: #26221f;
  --now-cream: #f5ebdd;
  --now-tan: #dea66e;
  --now-edge: #55483b;
}
:where(.homeTools, .augmentBoard, .guideFold, .uploadPage, .seatStrip, .allIn, #rosterSheet, .feedback-form) :focus-visible {
  outline: 2px solid var(--now-tan);
  outline-offset: 2px;
}
.hero .modes {
  display: inline-grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: min(100%, 304px);
}
.hero .modes a { justify-content: center; white-space: nowrap; }
.homeTools .homeToolsGrid {
  grid-template-columns: minmax(0,1.15fr) repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 10px;
  padding: clamp(14px,2vw,24px);
}
.toolHeading { grid-column: 1/-1; margin: 0 0 3px; font-size: 18px; }
.homeTools .homeTool {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--now-edge);
  border-radius: 8px;
  background: var(--now-card);
}
.homeTools .homeTool:hover { border-color: var(--now-tan); }
.homeTools .recruit {
  background: linear-gradient(130deg,#443326,#2e2720);
  border-color: #856349;
}
.recruit img { width: 42px; height: 42px; object-fit: contain; margin-bottom: 7px; }
.recruit b { margin-top: 8px; font-size: 12px; color: #f4c491; }
.augmentSplit {
  display: grid;
  grid-template-columns: minmax(176px,23%) minmax(0,1fr);
  gap: 12px; margin: 12px 16px 0;
}
.champPicker {
  display: flex; flex-direction: column; gap: 3px;
  align-self: start; max-height: 420px; overflow: auto; padding: 4px;
  scrollbar-color: #79624e var(--now-ink);
}
.champPicker button, .auglist > button, .copyCmd {
  font: inherit; cursor: pointer; color: var(--now-cream); background: var(--now-card);
  border: 1px solid var(--now-edge); border-radius: 6px;
}
.champPicker button {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px;
  text-align: left; white-space: nowrap; font-size: 14px;
}
.champPicker button[aria-pressed=true] { background: #503a29; border-color: var(--now-tan); }
.champPicker img, .pickHeading img { border-radius: 5px; }
.augmentBoard .auglist { min-width: 0; padding: 0 0 10px; }
.auglist > button { padding: 8px 12px; }
.pickHeading { display: flex; gap: 10px; align-items: center; padding: 5px 0 12px; }
.pickHeading h3 { margin: 0; font-size: 19px; }
.pickHeading span:last-child { margin-left: auto; color: var(--sub); font-size: 13px; }
.auglist table { width: 100%; table-layout: fixed; }
.auglist :is(th,td) { text-align: right; padding: 9px 6px; }
.auglist :is(th,td):first-child { width: 40%; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.auglist td small { display: block; font-size: 11px; color: var(--sub); }
.uploadPage fieldset .dropzone {
  position: relative; display: grid; gap: 6px; place-content: center; text-align: center;
  min-height: 108px; padding: 14px; box-sizing: border-box; overflow-wrap: anywhere;
  border: 1px dashed #a88462; border-radius: 9px; background: #2d2620; cursor: pointer;
}
.uploadPage .dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dropzone small { color: #d2bda5; }
.uploadPage fieldset .dropzone:is(:focus-within,.dragging) { outline: 2px solid var(--now-tan); background: #443425; }
#fileCheck { font-size: 14px; line-height: 1.6; }
#fileCheck:empty { display: none; }
#fileCheck[data-state=error] { color: #ffb5a7; }
#fileCheck[data-state=ok] { color: #b6dabe; }
#fileCheck[data-state=notice] { color: #f4c491; }
.guideFold { grid-column: 1/-1; align-self: start; border: 1px solid var(--now-edge); border-radius: 10px; background: var(--now-card); scroll-margin-top: 12px; }
.guideFold > summary { padding: 16px 20px; font-size: 18px; font-weight: bold; cursor: pointer; color: var(--now-cream); }
.guideFold > summary::marker { color: var(--now-tan); }
.guideFold[open] > summary { border-bottom: 1px solid var(--now-edge); }
.guideCards .guideFold > section { border: 0; border-radius: 0 0 10px 10px; }
.copyCmd { font-size: 12px; padding: 3px 7px; margin-inline: 4px; color: #ffd3aa; }
.seatStrip {
  position: sticky; top: 0; z-index: 6; display: flex; justify-content: center; gap: clamp(14px,6vw,70px);
  padding: 7px 12px; border-bottom: 1px solid var(--now-edge); background: #211e1bfa; color: var(--now-cream);
}
.seatStrip div { min-width: 0; }
.seatStrip small, .seatStrip b { display: block; }
.seatStrip small { color: #cdbdac; font-size: 11px; }
.seatStrip b { font-size: 16px; }
.seatPlayer { display: flex; align-items: center; gap: 7px; }
#seatNick { overflow-wrap: anywhere; }
#seatCrest .rankCrest { width: 32px; height: 32px; object-fit: contain; }
.allIn {
  margin: auto; width: min(370px,calc(100% - 28px)); padding: 24px; box-sizing: border-box;
  background: var(--now-card); color: var(--now-cream); border: 1px solid #9e7856; border-radius: 12px;
}
.allIn h2 { font-size: 22px; }
.allIn p { margin: 12px 0 20px; color: #e3d1bd; overflow-wrap: anywhere; }
.allIn button { padding: 9px 14px; border-radius: 6px; border: 1px solid var(--now-edge); background: var(--now-ink); color: var(--now-cream); cursor: pointer; font: inherit; }
.allIn .confirmBid { background: var(--now-tan); color: #261b12; font-weight: bold; margin-left: 6px; }
.allIn::backdrop, #rosterSheet::backdrop { background: #100d0ac4; }
.playfield .hud { border-color: #80664e; background: #211c17ed; color: #f6dbbd; }
.machineFoot #portalNotice { color: #f5baff; }
#rosterSheet { position: fixed; inset: auto 0 0; margin: 0; padding: 0; width: 100%; max-width: none; max-height: 88dvh; border: 0; border-radius: 18px 18px 0 0; background: var(--now-card); color: var(--now-cream); }
#rosterSheet .console { position: static; width: 100%; max-height: 88dvh; padding-bottom: max(18px,env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
#message-count { display: block; text-align: right; color: #d4b89a; font-size: 12px; }
@media (min-width: 761px) {
  .homeTools .recruit { grid-row: 2/span 2; }
  .homeTools .homeTool:last-child { grid-column: 2/4; }
}
@media (max-width: 760px) {
  .homeTools .homeToolsGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .augmentSplit { grid-template-columns: minmax(0,1fr); margin-inline: 10px; }
  .champPicker { flex-direction: row; max-height: none; overflow-x: auto; }
  .champPicker button { flex-shrink: 0; }
  .auglist :is(th,td) { padding: 7px 3px; font-size: 12px; }
  .auglist :is(th,td):first-child { width: 36%; }
  .toolHeading { font-size: 16px; }
}
@media (max-width: 480px) {
  .homeTools .homeToolsGrid { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .homeTools .homeTool { padding: 9px 12px; }
  .homeTools .recruit { padding-right: 62px; }
  .recruit img { position: absolute; right: 12px; top: 12px; }
  .seatStrip { justify-content: space-between; }
}

/* Tier sheets and controls share the warm ink and sand colors of the NOW mark. */
.tierToolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
.tierToolbar > span, .gradeEmpty, .gradeKey span, .tierFold summary span { color:#c5b7a6; font-size:12px; }
.viewSwitch { display:inline-flex; gap:2px; padding:3px; background:#171513; border:1px solid #53483e; border-radius:8px; }
.viewSwitch button { min-height:32px; padding:4px 16px; background:transparent; color:#d3c5b6; border:0; border-radius:5px; cursor:pointer; font:inherit; font-size:14px; }
.viewSwitch button[aria-pressed=true] { background:#ecd0ad; color:#241d17; }
.gradeRow { display:grid; grid-template-columns:116px minmax(0,1fr); border-bottom:1px solid #453c34; }
.gradeKey { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:10px 16px; gap:2px; background:#27221d; }
.gradeKey strong { font-size:26px; font-weight:600; color:var(--grade-color); line-height:1.05; }
.gradeMembers { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:8px 12px; }
.gradeMembers .tierEntry { display:flex; gap:8px; align-items:center; padding:4px; text-align:left; color:var(--now-cream); background:transparent; border:0; border-radius:4px; cursor:pointer; font:inherit; }
.tierEntry b, .tierEntry small { display:block; }
.tierEntry b { font-size:14px; }
.tierEntry small { margin-top:2px; color:#c9bdaa; font-size:12px; }
.gradeMembers .tierEntry:hover, #tierRanks tbody tr:hover, .scroll tbody tr:focus-within { background:#332c25; }
.tierFold { background:#211e1b; }
.tierBoard .tierFold > summary { cursor:pointer; padding:12px 16px; color:var(--now-cream); }
.tierFold summary span { margin-left:8px; }
.tierBoard .tierFold p { padding:0 16px 16px; margin:0; color:#d0c2b3; font-size:14px; line-height:1.65; }
#tierRanks table { width:100%; }
#tierRanks th, #tierRanks td { padding:8px 12px; }
#tierRanks th[scope=row] { background:transparent; text-align:left; }
#tierRanks .namebtn { text-align:left; }
#tierRanks :is(td,th):not(:nth-child(2)) { text-align:center; }
:where(.tierBoard, .auglist, .herostats, .scroll, .seatStrip) { font-variant-numeric:tabular-nums; }
.augmentBoard .auglist meter { display:block; margin:4px 0 4px auto; width:min(60px,95%); height:4px; border:0; background:#463d34; border-radius:2px; }
.auglist meter::-webkit-meter-bar { height:4px; border:0; background:#463d34; }
.auglist meter::-webkit-meter-optimum-value { background:#dbab78; }
.auglist meter::-moz-meter-bar { background:#dbab78; }
.homeTools .homeTool, .homeTools .recruit { background:#26221e; }
.homeTools .recruit { background:#352b21; }
.homeTools .homeTool:hover { background:#392f26; }
.guideFold[open] > summary { color:#f5c99e; }
.copyCmd { min-height:28px; }
:where(button:not(:disabled),summary,a):focus-visible { outline:2px solid #f1b981; outline-offset:2px; }
:where(.barUpload,.guideButton,.copyCmd,.viewSwitch button,.tierEntry,.feedback-form button,#sendReplay,.machineBar button):active:not(:disabled) { transform:translateY(1px); }
:where(.guideButton,.barUpload,#sendReplay,.feedback-form button[type=submit],#redeem) { border-radius:6px; }
.auctionUi :is(.btn,.jbtn,#bidBtn,.rbtn,.quick-btn) { border-radius:6px; box-shadow:none; }
.auctionUi :is(.jbtn,.b-bid):enabled { background:#ecc69d; color:#261b13; border:1px solid #d4a378; }
.auctionUi :is(.jbtn,.b-bid):enabled:hover { background:#ffe0be; }
.auctionUi button:disabled, .feedback-form fieldset:disabled button, .uploadPage fieldset:disabled button { cursor:not-allowed; }
.empty button { margin:8px auto 0; display:block; background:#342b23; color:#f2d6b6; padding:8px 12px; font:inherit; border:1px solid #665441; border-radius:5px; cursor:pointer; }
@media(max-width:600px){
  .tierBoard .panelhead { flex-wrap:wrap; gap:4px 8px; }
  .tierBoard .panelhead h2 { font-size:17px; }
  .gradeRow { grid-template-columns:88px minmax(0,1fr); }
  .gradeKey { padding:8px; }
  .gradeKey span { font-size:11px; }
  .gradeMembers { padding:6px; }
  .tierEntry .portrait { flex:none; }
  #tierRanks th, #tierRanks td { padding:8px 4px; font-size:12px; }
  #tierRanks .namebtn { gap:4px; font-size:12px; }
  .tierToolbar { padding:8px; }
  .viewSwitch button { min-height:40px; }
  .copyCmd { min-height:36px; }
}
@media(prefers-reduced-motion:reduce){
  :is(.homeTool,.tierEntry,.viewSwitch button,.guideButton,.barUpload,.copyCmd) { transition:none; transform:none!important; }
}
.quickFilter { display:block; padding:8px 12px; }
.quickFilter input { width:100%; box-sizing:border-box; padding:8px 12px; background:#191715; border:1px solid #665747; color:#f5ebdd; border-radius:6px; font:inherit; font-size:14px; }
#quickGrid .gridpick[hidden] { display:none; }
#tierRanks .tierbadge { display:inline-grid; place-items:center; min-width:24px; min-height:22px; border-radius:4px; }
.gradeKey span { white-space:nowrap; }
