/* ==========================================================================
   Pages: markets home, slips, market page + bet slip, circles, weekly, profile
   ========================================================================== */

/* ---------- slip buttons (hard ink shadow, they press) ---------- */
.ybtn, .nbtn {
  --bo: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; overflow: hidden;
  font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #0E0C0A;
  border: 1.5px solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--bo) var(--bo) 0 #0E0C0A; transition: transform .07s, box-shadow .07s;
}
.ybtn { background: var(--lime); color: var(--lime-ink); } .nbtn { background: var(--verm); color: var(--verm-ink); }
.ybtn:hover, .nbtn:hover { --bo: 5px; transform: translate(-2px, -2px); }
.ybtn:active, .nbtn:active { --bo: 0px; transform: translate(3px, 3px); }
.ybtn.sm, .nbtn.sm { height: 28px; width: 50px; font-size: 11px; --bo: 2px; padding: 0; }
.bm { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-1); color: var(--text-2); flex: none; }
.bm:hover { color: var(--text); background: var(--card-2); }
.bm.on { color: var(--verm-deep); }
.paper .bm:hover { background: var(--paper-2); }

/* ---------- a market slip ---------- */
.slips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; grid-auto-flow: dense; align-items: start; }
@media (max-width: 1280px) { .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .slips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .slips { grid-template-columns: minmax(0, 1fr); } }
.slip { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 0; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: 5px 5px 0 var(--shadow-c); cursor: pointer; transition: transform .1s, box-shadow .1s; min-width: 0; }
[data-theme="light"] .slip { box-shadow: 5px 5px 0 var(--shadow-c); }
.slip:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lime-shadow); }
.slip.wide { grid-column: span 2; }
@media (max-width: 1000px) { .slip.wide { grid-column: span 1; } }
.slip.pop { animation: stampIn .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes stampIn { 0% { opacity: 0; transform: translateY(-18px) rotate(-3deg) scale(1.06); box-shadow: 0 0 0 var(--lime); } 100% { opacity: 1; } }
.slip-top { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-mute); }
.sp { flex: 1; }
.slip-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.slip.wide .slip-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start; }
@media (max-width: 1000px) { .slip.wide .slip-body { display: flex; align-items: stretch; } }      /* (the wide slip's two columns become a stack: its children must stretch again, or they size to their content and push the Yes/No buttons off the card) */
.slip-main { display: flex; gap: 12px; align-items: flex-start; }
.slip-q { font-size: 21px; line-height: 1.04; letter-spacing: -.04em; color: var(--paper-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slip.wide .slip-q { font-size: 26px; -webkit-line-clamp: 4; }
.slip-pick { display: flex; flex-direction: column; gap: 12px; }
.odds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.od .lbl { color: var(--paper-mute); display: block; }
.od b { display: block; font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.06em; color: var(--paper-ink); }
.od.n { text-align: right; }
.slip-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.orows { display: flex; flex-direction: column; gap: 9px; }
.orow { display: flex; align-items: center; gap: 8px; }
.orow .nm { flex: 1; min-width: 0; font-weight: 600; color: var(--paper-ink); font-size: 15px; }
.orow .opct { font-weight: 700; width: 48px; text-align: right; font-size: 15px; color: var(--paper-ink); }
.more { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-mute); }
.slip-foot { position: relative; margin: 2px -16px 0; padding: 12px 16px; border-top: 1.5px dashed var(--paper-line); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-mute); display: flex; gap: 12px; align-items: center; min-width: 0; }
.slip-foot b { color: var(--paper-ink); font-weight: 700; }
.slip-foot > * { white-space: nowrap; flex: none; }
.slip-foot .where { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.slip-foot::before, .slip-foot::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: var(--bw) solid #0E0C0A; }
.slip-foot::before { left: -9px; } .slip-foot::after { right: -9px; }
.slip.settled .slip-body { opacity: .5; }
.slip-stamp { position: absolute; right: 18px; top: 46px; font-size: 22px; z-index: 2; background: var(--slip); }

/* ---------- home ---------- */
.home .hero { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 34px; align-items: start; margin-bottom: 18px; }
.headline { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--sh-3); cursor: pointer; background: var(--card); }
@media (max-width: 820px) { .headline { grid-template-columns: minmax(0, 1fr); } }
.headline-slip { padding: 22px 26px 0; display: flex; flex-direction: column; gap: 18px; position: relative; }
.headline-slip h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: .94; letter-spacing: -.05em; color: var(--paper-ink); }
.headline-slip .slip-foot { margin: auto -26px 0; padding: 13px 26px; }
.slip-pick.big .od b { font-size: clamp(32px, 9vw, 56px); }
.slip-pick.big .ybtn, .slip-pick.big .nbtn { height: 48px; font-size: 13px; }
.headline-chart { position: relative; padding: 22px 24px 14px; display: flex; flex-direction: column; border-left: 1.5px dashed var(--paper-line); min-width: 0; }
.headline-chart::before, .headline-chart::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: var(--bw) solid #0E0C0A; z-index: 2; }
.headline-chart::before { top: -10px; } .headline-chart::after { bottom: -10px; }
@media (max-width: 820px) { .headline-chart { border-left: 0; border-top: 1.5px dashed var(--paper-line); } .headline-chart::before, .headline-chart::after { display: none; } }
.hc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hc-big { font-size: 64px; font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.headline-chart svg { height: 230px; width: 100%; overflow: visible; }
.feat-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.dots { display: flex; gap: 8px; flex: 1; }
.dots i { width: 22px; height: 6px; background: var(--line-soft); border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.dots i.on { width: 46px; background: var(--lime); border-color: #0E0C0A; }
[data-theme="light"] .dots i.on { background: var(--text); }
.navpill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: var(--bw) solid var(--line); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; max-width: min(250px, 100%); min-width: 0; color: var(--text-2); transition: .1s; }
.navpill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navpill:hover { color: var(--text); background: var(--card-2); }
@media (max-width: 640px) { .navpill span { display: none; } }

/* the board */
.board { padding: 20px 20px 22px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-1); box-shadow: var(--sh-2); display: flex; flex-direction: column; align-self: stretch; }      /* (stretch: when the featured bet is the taller column the board is as tall as it, instead of ending early) */
.board > .poster-tile:last-child { margin-top: auto; padding-top: 18px; }                   /* ...and the extra room goes above the last tile, not under it */
.board-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.board-head h3 { font-size: 34px; letter-spacing: -.05em; }
.hot-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1.5px dashed var(--line-soft); }
.hot-row:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hot-row .rk { width: 30px; font-family: var(--f-display); font-weight: 800; font-size: 38px; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hot-row .t { flex: 1; min-width: 0; font-weight: 500; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-row .v { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.hot-row .v svg { color: var(--verm); }
.tape { display: block; margin-top: 22px; border: var(--bw) solid #0E0C0A; background: var(--lime); color: var(--lime-ink); box-shadow: 4px 4px 0 var(--lime-shadow); transition: transform .08s, box-shadow .08s; }
.tape::before, .tape::after { content: ''; display: block; height: 11px; background: var(--lime) var(--stripes); }
.tape::before { border-bottom: var(--bw) solid #0E0C0A; } .tape::after { border-top: var(--bw) solid #0E0C0A; }
.tape-main { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.04em; }
.tape-sub { display: block; padding: 2px 16px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tape:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime-shadow); }
.tape:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--lime-shadow); }
.poster-tile { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-right: 8px; }
.poster-tile .poster { width: 74px; height: 92px; flex: none; border: var(--bw) solid #0E0C0A; box-shadow: var(--sh-1); }
.poster-tile b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.04em; }
.poster-tile span { color: var(--text-2); font-size: 14px; line-height: 1.3; display: block; margin-top: 2px; }
.poster-tile:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.all-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 40px 0 14px; gap: 14px; }
.all-head h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; margin-top: 4px; }
.all-icons { display: flex; gap: 6px; position: relative; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; padding: 3px 3px 5px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border: var(--bw) solid var(--line); border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; transition: .1s; }
.chip-row button:hover { color: var(--text); background: var(--card-2); }
.chip-row button.active { background: var(--text); color: var(--inv); border-color: var(--text); }
.pop-menu { position: absolute; right: 0; top: 46px; width: 244px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-2); padding: 8px; z-index: 40; animation: slipIn .14s; }
.pop-menu h6 { margin: 8px 8px 6px; font-family: var(--f-body); font-size: 10.5px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.pop-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 2px; font-weight: 500; font-size: 14px; }
.pop-menu button:hover { background: var(--card-2); } .pop-menu button.on { color: var(--lime); font-weight: 600; }
[data-theme="light"] .pop-menu button.on { color: var(--lime-deep); }

/* ---------- a market page ---------- */
.mp { display: grid; grid-template-columns: minmax(0, 1fr) 388px; grid-template-areas: "top aside" "bottom aside"; column-gap: 34px; align-items: start; }
.mp-main { display: contents; }
.mp-top { grid-area: top; min-width: 0; } .mp-bottom { grid-area: bottom; min-width: 0; } .mp > aside { grid-area: aside; align-self: start; }
@media (max-width: 1000px) { .mp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "aside" "bottom"; row-gap: 22px; } .side-sticky { position: static !important; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.mp-head { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; }
.mp-title { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.055em; line-height: .96; }
.sub-meta { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.chart-panel { margin-top: 22px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-1); box-shadow: var(--sh-2); padding: 18px 20px 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 4px; margin-right: 8px; vertical-align: 3px; }
.bigchance { font-size: clamp(54px, 7vw, 92px); font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.bigchance small { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-left: 12px; }
.chart-wrap { position: relative; margin-top: 8px; }
.chart-wrap svg { width: 100%; height: 260px; overflow: visible; }
.chart-tip { position: absolute; pointer-events: none; background: var(--paper); color: var(--paper-ink); border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); padding: 7px 11px; font-family: var(--f-mono); font-size: 12px; box-shadow: 3px 3px 0 var(--shadow-c); transform: translate(-50%, -115%); white-space: nowrap; z-index: 5; }
.chart-tip .muted { color: var(--paper-mute); }
.metaline { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: var(--text-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 8px; padding-top: 12px; border-top: 1.5px dashed var(--line-soft); }
.metaline b { color: var(--text); }
.metaline .ranges { margin-left: auto; display: flex; gap: 4px; }
.ranges button { padding: 5px 10px; border: var(--bw) solid transparent; border-radius: var(--r-1); font-family: var(--f-mono); font-weight: 500; font-size: 12px; color: var(--text-3); }
.ranges button:hover { color: var(--text); border-color: var(--line-soft); }
.ranges button.active { color: var(--inv); background: var(--text); }
.otable { margin-top: 22px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-1); box-shadow: var(--sh-1); }
.orow-big { display: grid; grid-template-columns: minmax(0, 1fr) 100px 150px 150px; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1.5px dashed var(--line-soft); cursor: pointer; }
.orow-big:last-child { border-bottom: 0; }
.orow-big:hover { background: var(--card-2); }
.orow-big.sel { background: var(--card-2); box-shadow: inset 4px 0 0 var(--lime); }
.orow-big .nm { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.035em; }
.orow-big .big { font-size: 28px; font-weight: 700; text-align: right; letter-spacing: -.05em; }
.buybtn { --bo: 3px; height: 40px; padding: 0 8px; white-space: nowrap; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--bo) var(--bo) 0 #0E0C0A; color: #0E0C0A; font-family: var(--f-mono); transition: transform .07s, box-shadow .07s; }
.buybtn.y { background: var(--lime); } .buybtn.n { background: var(--verm); }
.buybtn:hover { --bo: 5px; transform: translate(-2px, -2px); } .buybtn:active { --bo: 0px; transform: translate(3px, 3px); }
@media (max-width: 640px) { .orow-big { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr) minmax(0, 1fr); padding: 12px 10px; gap: 8px; } .buybtn { font-size: 11px; } .orow-big .nm { font-size: 17px; } }
.rules-h { margin: 34px 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -.045em; }
.rules { white-space: pre-wrap; color: var(--text-2); max-width: 70ch; }

/* the bet slip */
/* .side-sticky: pinned under the header only while it fits (layout.css, layout.js) */
.trade { position: relative; padding: 20px 20px 18px; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: 7px 7px 0 var(--lime-shadow); }
.slip-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--paper-mute); }
.trade-head { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 16px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--paper-line); position: relative; }
.trade-head::before, .trade-head::after { content: ''; position: absolute; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: var(--bw) solid #0E0C0A; }
.trade-head::before { left: -29px; } .trade-head::after { right: -29px; }
.trade-head .q { font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.04; letter-spacing: -.035em; }
.trade-head .s { margin-top: 6px; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.trade-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.trade-tabs button { flex: 1; height: 34px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-mute); border: var(--bw) solid var(--paper-line); border-radius: var(--r-1); }
.trade-tabs button.active { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.opt-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
.opt { --bo: 0px; height: 54px; padding: 0 8px; font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: -.01em; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); background: transparent; color: var(--paper-ink); box-shadow: var(--bo) var(--bo) 0 #0E0C0A; transition: transform .07s, box-shadow .07s, background .1s; overflow: hidden; }
.opt:hover { background: var(--paper-2); }
.opt.sel { --bo: 4px; transform: translate(-2px, -2px); }
.opt.y.sel { background: var(--lime); } .opt.n.sel { background: var(--verm); }
.amt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.amt label { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--paper-mute); }
.amt-input { display: flex; align-items: baseline; justify-content: flex-end; flex: 1; font-family: var(--f-mono); font-weight: 700; letter-spacing: -.05em; color: var(--paper-line); min-width: 0; font-size: 42px; }
.amt-input input { background: transparent; border: 0; outline: 0; text-align: right; font: inherit; letter-spacing: inherit; color: var(--paper-ink); width: 100%; min-width: 0; }
.amt-input input::placeholder { color: var(--paper-line); }
.amt-input.has { color: var(--paper-ink); }
.quick { display: flex; gap: 6px; justify-content: flex-end; margin: 8px 0 16px; flex-wrap: wrap; }
.quick button { padding: 5px 9px; border: var(--bw) solid var(--paper-line); border-radius: var(--r-1); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: var(--paper-mute); }
.quick button:hover { border-color: var(--paper-ink); color: var(--paper-ink); }
.summary { margin: 4px 0 16px; padding-top: 14px; border-top: 1.5px dashed var(--paper-line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.summary:empty { display: none; }
.summary .r { display: flex; align-items: baseline; gap: 8px; color: var(--paper-mute); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.summary .r i { flex: 1; border-bottom: 2px dotted var(--paper-line); transform: translateY(-3px); }
.summary .r b { color: var(--paper-ink); font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.summary .r.win { align-items: flex-end; margin-top: 4px; color: var(--paper-ink); font-weight: 700; }
.summary .r.win b { font-size: 28px; letter-spacing: -.05em; }
.summary.cf { margin-top: 12px; padding-top: 14px; } .summary.cf .r { font-size: 12px; } .summary.cf .r b em { font-style: normal; font-size: 12px; margin-left: 4px; }
.summary .r .up { color: var(--lime-deep); } .summary .r .down { color: var(--verm-deep); }
.cf-odds { margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--paper-line); } .cf-odds .lbl { display: block; margin-bottom: 6px; }
.cf-odds div { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--paper-mute); } .cf-odds div span b { color: var(--paper-ink); font-family: var(--f-mono); }
.summary .r.win em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--lime-deep); font-weight: 700; margin-left: 6px; }
.trade .balance-line { text-align: center; margin-top: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-mute); }
.posbox { margin-top: 18px; border-top: 1.5px dashed var(--paper-line); padding-top: 12px; }
.posbox h4 { margin: 0 0 8px; font-family: var(--f-body); font-weight: 600; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--paper-mute); }
.posbox .p { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; }
.related { margin-top: 26px; }
.related h4 { margin: 0 0 6px; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); }
.rel-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--line-soft); }
.rel-row:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rel-row .thumb .sticker { width: 38px; height: 38px; }
.rel-row .t { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-row .p { text-align: right; font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -.05em; }
.rel-row .p small { display: block; font-family: var(--f-body); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.manage { margin-top: 24px; padding: 18px; background: var(--card); border: var(--bw) dashed var(--line); border-radius: var(--r-1); }
.manage b { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }

/* ---------- circles ---------- */
.ccard { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-1); box-shadow: var(--sh-1); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.ccard:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--lime-shadow); }
.ccard h3 { font-size: 24px; letter-spacing: -.04em; }
.ccard p { color: var(--text-2); font-size: 14px; min-height: 20px; }
.ccard .cmark { box-shadow: var(--sh-1); }
.circle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; }
.code-box { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; background: var(--paper); color: var(--paper-ink); border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: 3px 3px 0 var(--lime-shadow); font-family: var(--f-mono); font-weight: 700; font-size: 21px; letter-spacing: .3em; }
.code-box .icon-btn { color: var(--paper-ink); letter-spacing: 0; }
.standing { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1.5px dashed var(--line-soft); }
.standing:last-child { border-bottom: 0; }
.standing .grow { min-width: 0; } .standing .grow .tag { white-space: nowrap; }
.standing.last { background: rgba(255, 75, 43, .12); box-shadow: inset 4px 0 0 var(--verm); }
.standing .rk { width: 26px; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.05em; color: var(--text-3); }

/* ---------- weekly ---------- */
.wk { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
/* (.wk becomes one column at 1000px with every other two-column page: layout.css. Its columns are minmax(0, ...): a wide row, like the standings' tags, must squeeze and never stretch the page) */
.hotseat { position: relative; overflow: hidden; padding: 24px; background: var(--verm); color: var(--verm-ink); border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--sh-2); --text: var(--verm-ink); --text-2: var(--verm-ink); }
.hotseat::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: var(--halftone); opacity: .55; pointer-events: none; }
.hotseat > * { position: relative; }
.hotseat .lbl { color: var(--verm-ink); }
.hotseat .who { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.hotseat .who b { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -.05em; line-height: .95; }
.hotseat .who .val { font-family: var(--f-mono); font-weight: 700; font-size: 14px; margin-top: 6px; }
.hotseat .pun { margin-top: 18px; padding: 14px 16px; background: #0E0C0A; color: #F2EADB; border-radius: var(--r-1); font-weight: 500; }
.hotseat .pun b { color: var(--lime); }
.hotseat .sticker { position: absolute; right: 18px; top: 16px; box-shadow: var(--sh-1); }
.hotseat.safe { background: var(--lime); color: var(--lime-ink); --text: var(--lime-ink); --text-2: var(--lime-ink); }
.hotseat.safe .lbl { color: var(--lime-ink); }
.pun-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--sh-1); overflow: hidden; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.pun-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--lime-shadow); }
.pun-item .bar { position: absolute; inset: 0 auto 0 0; background: var(--paper-2); z-index: 0; transition: width .5s cubic-bezier(.3, .9, .3, 1); }
.pun-item > * { position: relative; z-index: 1; }
.pun-item.voted { background: var(--lime); } .pun-item.voted .bar { background: #A9D11B; }
.votebtn { width: 30px; height: 30px; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); display: grid; place-items: center; color: transparent; flex: none; background: var(--slip); transition: .1s; }
.pun-item.voted .votebtn { background: #0E0C0A; color: var(--lime); }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.award { position: relative; padding: 16px; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); box-shadow: var(--sh-2); animation: stampIn .45s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.award:nth-child(3n+1) { transform: rotate(-.7deg); } .award:nth-child(3n+2) { transform: rotate(.5deg); }
.award .sticker { box-shadow: 3px 3px 0 #0E0C0A; border-radius: var(--r-1); }
.award h5 { margin: 14px 0 3px; font-size: 24px; letter-spacing: -.045em; }
.award p { margin: 0 0 12px; font-size: 13px; color: var(--paper-mute); line-height: 1.35; min-height: 36px; }
.award .win { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; padding-top: 12px; border-top: 1.5px dashed var(--paper-line); }
.award .val { font-family: var(--f-mono); font-size: 12px; color: var(--paper-mute); font-weight: 500; margin-top: 4px; letter-spacing: .02em; text-transform: uppercase; }
.award.gold { background: var(--lime); } .award.gold p, .award.gold .val { color: #2E3A06; }
.award.fire { background: var(--verm); --text-2: var(--verm-ink); } .award.fire p, .award.fire .val { color: var(--verm-ink); }
.award.fire .win { border-top-color: #0E0C0A66; }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 28px; }
.profile-head h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.055em; }

/* propose form: the tear line above the buttons */
.cform-foot { position: relative; justify-content: flex-end; margin-top: 28px; padding-top: 22px; border-top: 1.5px dashed var(--paper-line); }
.cform-foot::before, .cform-foot::after { content: ''; position: absolute; top: -9.5px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1.5px solid #0E0C0A; }
.cform-foot::before { left: -34px; } .cform-foot::after { right: -34px; }

/* ---------- public bets, who's in, portfolio spread ---------- */
.where-ico { display: inline-flex; vertical-align: -2px; } .where-ico svg.ph { width: 13px; height: 13px; }
.crumb-site { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .crumb-site svg.ph { width: 14px; height: 14px; }
.chip-row button svg.ph { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

.whosin-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.whosin-sum b { color: var(--text); }
.whosin td { vertical-align: middle; }
.whosin .tag { white-space: nowrap; }

.spread { padding: 22px 24px 20px; }
.spread-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spread-head h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; margin-top: 4px; }
.spread-line { margin: 14px 0 16px; color: var(--text-2); font-size: 15px; } .spread-line b { color: var(--text); font-family: var(--f-mono); letter-spacing: -.02em; }
.spread-bar { display: flex; height: 46px; border: var(--bw) solid var(--ink); background: var(--ink); gap: 2px; box-shadow: var(--sh-1); }
.spread-bar i, .spread-row .sw { background-color: var(--fill); background-size: 8px 8px; }
.spread-bar i { min-width: 6px; transition: flex-grow .3s; }
.p-dots { background-image: var(--halftone); } .p-stripes { background-image: var(--stripes); background-size: 14px 14px !important; } .p-checker { background-image: var(--checker); background-size: 24px 24px !important; }
.spread-legend { margin-top: 14px; display: grid; }
.spread-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 84px 56px; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1.5px dashed var(--line-soft); font-size: 14px; }
.spread-row:first-child { border-top: 0; }
.spread-row .sw { width: 16px; height: 16px; border: var(--bw) solid var(--ink); }
.spread-row .nm { font-weight: 600; }
.spread-row .inv { color: var(--text-3); font-size: 12px; letter-spacing: .02em; }
.spread-row .val { text-align: right; } .spread-row .share { text-align: right; color: var(--text-2); }
.spread-row.link { cursor: pointer; } .spread-row.link:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .spread-row { grid-template-columns: 16px minmax(0, 1fr) 76px 48px; } .spread-row .inv { display: none; } .spread { padding: 18px 16px; } }

/* ---------- the weekly: your week, rewards, rules ---------- */
.yw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.yw-stats .stat { border: var(--bw) solid var(--line); border-radius: var(--r-1); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yw-stats .stat small { color: var(--text-3); font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.yw-stats .stat b { font-size: 26px; letter-spacing: -.04em; line-height: 1.05; }
/* the weekly minimum: two progress bars and one sentence */
.req { margin-top: 14px; padding: 14px 16px; border: var(--bw) solid var(--line); border-radius: var(--r-1); display: grid; gap: 10px; }
.req.warn { border-color: var(--verm); background: color-mix(in srgb, var(--verm) 9%, transparent); }
.req.ok { border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); }
.req-row { display: grid; gap: 5px; } .req-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; } .req-top b { font-size: 14px; }
.req-bar { height: 10px; background: var(--bg-3, rgba(255,255,255,.07)); border: 1.5px solid var(--line-soft); border-radius: 2px; overflow: hidden; }
.req-bar i { display: block; height: 100%; background: var(--verm); }
.req-row.done .req-bar i { background: var(--lime); }
.req p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.hs-risk { margin-top: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tag.warnish { background: transparent; border-color: #F2C230; color: #F2C230; }
.yw-stats .stat small:last-child:not(:first-child) { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; line-height: 1.3; }
.rules { margin: 12px 0 0; padding: 0 0 0 18px; display: grid; gap: 9px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.rules b { color: var(--text); }
.standing.me { background: color-mix(in srgb, var(--lime) 10%, transparent); }
.standing .tag { margin-left: 8px; vertical-align: middle; } .rw-note { font-size: 11px; margin-left: 8px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .yw-stats { grid-template-columns: minmax(0, 1fr); } .yw-stats .stat { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; } .yw-stats .stat small:first-child { flex: 1 0 100%; } }

/* ---------- statement ---------- */
.acct-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.acct { display: flex; flex-direction: column; gap: 6px; } .acct b { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; line-height: 1; } .acct p { margin: 4px 0 0; font-size: 13.5px; }
.st-tbl td { vertical-align: top; } .id-col { white-space: nowrap; }
@media (max-width: 640px) { .acct-cards { grid-template-columns: minmax(0, 1fr); } .id-col { display: none; } .st-tbl th:nth-child(3), .st-tbl td:nth-child(3) { display: none; } }

/* ---------- the store ---------- */
.yl { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.yl-who { display: flex; gap: 16px; align-items: center; } .yl-who b { font-size: 22px; display: block; letter-spacing: -.03em; } .yl-who a { font-size: 13px; }
.yl-bal { display: flex; flex-direction: column; gap: 2px; text-align: right; max-width: 380px; min-width: 0; } .yl-bal b { font-size: clamp(24px, 8.5vw, 34px); letter-spacing: -.05em; line-height: 1.05; overflow-wrap: anywhere; } .yl-bal small { font-size: 12.5px; line-height: 1.4; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; }
.prod { display: flex; gap: 14px; padding: 14px; border: var(--bw) solid var(--line); border-radius: var(--r-1); background: var(--bg-2); min-width: 0; }
.prod.owned { border-color: var(--line-soft); } .prod.on { border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime-shadow); } .prod.locked { opacity: .82; }
.prod-art { flex: none; width: 96px; height: 96px; display: grid; place-items: center; border: var(--bw) dashed var(--line-soft); border-radius: var(--r-1); background: var(--bg); overflow: hidden; }
.prod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; } .prod-top b { font-size: 16px; letter-spacing: -.02em; }
.prod-body p { margin: 0; font-size: 13px; line-height: 1.35; flex: 1; }
.prod-req { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--verm); line-height: 1.3; } .prod-req.ok { color: var(--text-3); } .prod-req span { line-height: 0; transform: translateY(2px); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; flex-wrap: wrap; } .prod-price { font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.pa-badge { line-height: 0; } .pa-none { color: var(--text-3); font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.pa-title { max-width: 100%; font: 700 11.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border: var(--bw) solid var(--text-2); border-radius: 2px; text-align: center; line-height: 1.25; overflow-wrap: anywhere; }
.pa-banner { display: block; width: 84px; height: 54px; border: var(--bw) solid #0E0C0A; border-radius: var(--r-1); }
.pa-accent { display: flex; flex-direction: column; align-items: center; gap: 6px; } .pa-accent i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: var(--bw) solid #0E0C0A; display: block; } .pa-accent em { font: 600 10.5px var(--f-mono); color: var(--text-3); font-style: normal; }
.pa-font { font-size: 44px; font-weight: 700; line-height: 1; }
.buy-art { display: grid; place-items: center; height: 120px; border: var(--bw) dashed var(--paper-line); border-radius: var(--r-1); margin: 4px 0 14px; }
.buy-lines { display: grid; gap: 6px; margin: 0 0 12px; } .buy-lines > div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px dashed var(--paper-line); padding-bottom: 5px; } .buy-lines span { color: var(--paper-mute); font-size: 13.5px; }
.buy-lines .after b { font-size: 20px; }
@media (max-width: 640px) { .prods { grid-template-columns: minmax(0, 1fr); } .yl-bal { text-align: left; } .prod-art { width: 84px; height: 84px; } }

/* ---------- the exchange ---------- */
.tag.sim { background: transparent; border-color: var(--line); color: var(--text-3); letter-spacing: .1em; font-size: 10px; vertical-align: middle; margin-left: 4px; }
.ex-bal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .ex-bal b { font-size: 30px; letter-spacing: -.05em; line-height: 1; }
.ex-tbl tbody tr { cursor: pointer; } .ex-tbl tbody tr:hover { background: var(--bg-3, rgba(255,255,255,.03)); } .ex-tbl .sym { display: inline-block; min-width: 4.5ch; color: var(--text); }
.ex-tbl td { vertical-align: middle; } .ex-tbl td.r { white-space: nowrap; }   /* a price must never break across two lines */ .spark { display: block; }
.tick-up b { animation: tickup .6s; } .tick-down b { animation: tickdown .6s; }
@keyframes tickup { from { color: var(--pos); } } @keyframes tickdown { from { color: var(--neg); } }
.ex-price { text-align: right; display: flex; flex-direction: column; gap: 2px; } .ex-price b { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.05em; line-height: 1; } .ex-price span { font-size: 14px; }
.ex-grid > * { min-width: 0; } .ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ex-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ex-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; } .ex-stats > div { display: flex; flex-direction: column; gap: 2px; } .ex-stats b { font-size: 16px; }
.sc-wrap { position: relative; } .sc-wrap svg { display: block; max-width: 100%; height: auto; } .sc-read { position: absolute; left: 6px; top: -2px; font: 500 11.5px var(--f-mono); color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; pointer-events: none; z-index: 1; } .sc-read b { color: var(--text); } .sc-read em { color: var(--text-3); }
.sc-empty { padding: 60px 0; text-align: center; color: var(--text-3); font-family: var(--f-mono); }
.tk-top { margin-bottom: 12px; } .seg2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--bw) solid var(--line); border-radius: var(--r-1); overflow: hidden; } .seg2 button { height: 40px; font: 700 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); } .seg2 .on.y { background: var(--lime); color: #10140A; } .seg2 .on.n { background: var(--verm); color: #fff; }
.tk-lines { display: grid; gap: 7px; margin: 12px 0 4px; } .tk-lines > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1.5px dashed var(--line-soft); padding-bottom: 5px; } .tk-lines span { color: var(--text-2); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; margin-top: 12px; font-size: 14px; } .kv span { color: var(--text-2); } .kv b { text-align: right; }
.notice { padding: 9px 12px; border: var(--bw) solid var(--line); border-radius: var(--r-1); margin: 0 0 14px; font-size: 14px; background: color-mix(in srgb, #F2C230 12%, transparent); } .notice.bad { border-color: var(--verm); background: color-mix(in srgb, var(--verm) 12%, transparent); }
@media (max-width: 640px) { .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-price { text-align: left; } .ex-bal { align-items: flex-start; } }

/* ---------- editing a bet: the Edited tag, the exit window, the history ---------- */
.tag.edited { cursor: pointer; background: transparent; color: var(--text-2); border-color: var(--text-3); } .tag.edited:hover { color: var(--text); border-color: var(--text); }
.tag.edited svg { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px; }
.linkish { color: var(--text-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; } .linkish:hover { color: var(--text); }
.exit-banner { margin-top: 14px; padding: 14px 16px; border: var(--bw) solid var(--lime); border-radius: var(--r-1); background: color-mix(in srgb, var(--lime) 9%, transparent); display: grid; gap: 10px; }
.exit-banner p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); } .exit-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.vh-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; max-height: calc(var(--view-h) * .56); overflow: auto; }
.vh { padding: 12px 14px; border: var(--bw) solid var(--paper-line); border-radius: var(--r-1); display: grid; gap: 7px; } .vh.material { border-color: var(--verm); }
.vh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .vh-top .muted { font-size: 12.5px; margin-left: auto; }
.vh-by { display: flex; align-items: center; gap: 7px; font-size: 14px; } .vh-by .avatar { border-radius: 50%; }
.vh-why { margin: 0; font-size: 14px; } .vh-ch { display: grid; gap: 4px; font-size: 14px; } .vh-ch .lbl { margin-bottom: 2px; }
.vh-ch .from { color: var(--paper-mute); text-decoration: line-through; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; } .vh-ch .to { font-weight: 600; overflow-wrap: anywhere; } .vh-ch .from + .ph { display: none; }
.pv { display: grid; gap: 12px; } .pv-head { display: flex; align-items: center; gap: 12px; } .pv-notes { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
label.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; } label.check input { accent-color: var(--lime); }

/* ---------- the portfolio page ---------- */
.pfo-tiles { margin-top: 6px; }
.pfo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
.pfo-card { padding: 22px 24px 20px; }
.pfo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pfo-head h2 { font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.04em; margin-top: 4px; }
.pfo-total { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.05em; line-height: 1; }
.pfo-none { opacity: .35; }
.pfo-legend { margin-top: 14px; display: grid; }
.pfo-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 52px; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1.5px dashed var(--line-soft); font-size: 14px; }
.pfo-row:first-child { border-top: 0; }
.pfo-row .sw { width: 16px; height: 16px; border: var(--bw) solid var(--ink); background-color: var(--fill); background-size: 8px 8px; }
.pfo-what { display: flex; flex-direction: column; min-width: 0; } .pfo-what small { color: var(--text-3); font-size: 12px; line-height: 1.3; }
.pfo-share { text-align: right; color: var(--text-2); }
.pfo-links { margin: 14px 0 0; font-size: 13px; color: var(--text-3); } .pfo-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pfo-stats { margin-top: 4px; }
@media (max-width: 1000px) { .pfo-card { padding: 18px 16px 16px; } }

.pfo-tbl td.q { max-width: 340px; }
/* on a phone each row becomes a small card: name and worth on the first line, the details under it */
@media (max-width: 640px) {
  .pfo-tbl thead { display: none; }
  .pfo-tbl, .pfo-tbl tbody { display: block; }
  .pfo-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1.5px dashed var(--line-soft); align-items: baseline; }
  .pfo-tbl tr:last-child { border-bottom: 0; }
  .pfo-tbl td { padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .pfo-tbl td.r { text-align: right; }
  .pfo-tbl td.q { max-width: none; grid-column: 1 / -1; }
  .pfo-tbl.sh td.c { grid-column: 1; grid-row: 1; } .pfo-tbl.sh td.w { grid-column: 2; grid-row: 1; font-weight: 600; }
  .pfo-tbl.sh td.n { grid-column: 1; grid-row: 2; text-align: left; color: var(--text-3); } .pfo-tbl.sh td.n::after { content: ' shares'; }
  .pfo-tbl.sh td.g { grid-column: 2; grid-row: 2; }
  .pfo-tbl.pl td.t { grid-column: 1; grid-row: 2; }
  .pfo-tbl.pl td.w { grid-column: 2; grid-row: 2; } .pfo-tbl.pl td.w::before { content: 'worth '; color: var(--text-3); font-weight: 400; }
  .pfo-tbl.pl td.g { grid-column: 1 / -1; grid-row: 3; text-align: left; } .pfo-tbl.pl td.g::before { content: 'gain / loss '; color: var(--text-3); }
}

/* ---------- the admin panel (views/admin.js): numbers about the casino and the site; no wide tables, so it reads on a phone ---------- */
.ad .pos { color: var(--pos); } .ad .neg { color: var(--neg); }
.ad-note { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.ad-stats { margin-bottom: 14px; }
.ad-sec { margin-top: 28px; }
.ad-h { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; margin: 0 0 12px; }
.ad-h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.ad-games { padding: 4px 16px; }
.ad-game { padding: 14px 0; border-bottom: 1.5px dashed var(--line-soft); }
.ad-game:last-child { border-bottom: 0; }
.ad-gh { display: flex; align-items: center; gap: 10px; }
.ad-rank { width: 22px; flex: none; text-align: right; }
.ad-bar { height: 8px; margin-top: 8px; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 2px; overflow: hidden; }
.ad-bar i { display: block; height: 100%; background: var(--lime); }
.ad-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px 14px; margin: 10px 0 0; }
.ad-metrics dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ad-metrics dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.ad-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; }
.ad-day { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.ad-day i { display: block; width: 100%; background: var(--lime); border-radius: 2px 2px 0 0; }
.ad-day small { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); }
.ad-n { font-size: 10px; color: var(--text-2); }
.ad-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; }
.ad-wday { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; min-width: 0; }
.ad-wday i { display: block; width: 100%; background: var(--lime); border-radius: 2px 2px 0 0; }
.ad-wday.top i { background: var(--verm); }
.ad-wday.top .ad-n { color: var(--text); font-weight: 700; }
.ad-wday small { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.ad-wday.top small { color: var(--text); font-weight: 700; }
.ad-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ad-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.ad-filters label { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); min-width: 0; }
.ad-filters select { max-width: 100%; }
.ad-round { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 16px; }
.ad-r1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.ad-when { margin-left: auto; font-size: 12px; }
.ad-r2 { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; }
.ad-more { text-align: center; margin-top: 14px; }
.ad-group { margin-bottom: 12px; }
.ad-gt { padding: 12px 16px 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ad-person { padding: 10px 16px; }
.ad-sub { font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.ad .tag.neg { color: var(--neg); border-color: var(--neg); }
.ad-warn { padding: 14px 16px; margin-bottom: 12px; border-color: var(--neg); }

/* ---------- admin panel: sections, the player directory and a player's admin profile ---------- */
.ad-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line-soft); }
.ad-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font: 600 14px var(--f-body); color: var(--text-2); background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-1); cursor: pointer; }
.ad-tab:hover { color: var(--text); }
.ad-tab.active { color: var(--lime-ink); background: var(--lime); border-color: var(--ink); box-shadow: var(--sh-1); }
.ad-badge { min-width: 20px; padding: 1px 6px; font: 700 11px var(--f-mono); text-align: center; color: var(--paper-ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 99px; }
.ad-tab.active .ad-badge { background: var(--paper); }
.ad-upd { align-self: center; font-size: 12px; }
.ad-attn { padding: 12px 16px; gap: 12px; }
.ad-attn.warn { background: color-mix(in srgb, var(--verm) 10%, transparent); }
.ad-online { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 6px; font-size: 14px; color: inherit; text-decoration: none; background: var(--card); border: var(--bw) solid var(--line); border-radius: 99px; }
.ad-chip b { overflow-wrap: anywhere; } .ad-chip small { font-size: 12px; overflow-wrap: anywhere; }
.ad-psearch { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 12px; }
.ad-psearch .field { flex: 1 1 320px; margin: 0; max-width: 520px; }
.ad-sel { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ad-fchips { margin-bottom: 14px; flex-wrap: wrap; }
.ad-n2 { margin-left: 6px; font: 600 11px var(--f-mono); opacity: .7; }
.ad-prow { padding: 8px 12px 8px 4px; gap: 10px; }
.ad-pmain { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; padding: 4px 4px 4px 12px; color: inherit; text-decoration: none; }
.ad-pmain:hover .ad-pname b { text-decoration: underline; }
.ad-pname { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 2px; }
.ad-pname b { overflow-wrap: anywhere; }
.ad-pline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.ad-pnum { display: flex; flex-direction: column; align-items: flex-end; flex: none; min-width: 96px; text-align: right; }
.ad-pnum small { font-size: 12px; }
.ad-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.ad .tag.warn { color: var(--paper-ink); background: var(--yellow, #F8D74A); border-color: var(--ink); }
.adp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.adp-who { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 320px; }
.adp-name { margin: 0; overflow-wrap: anywhere; }
.adp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.adp-line { margin: 0; font-size: 14px; }
.adp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.adp-state { padding: 16px; }
.adp-sus { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adp-note-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adp-funds { padding: 16px; } .adp-funds-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; } .adp-funds-row .field { flex: 0 1 200px; min-width: 0; } .adp-funds-row .btn { min-height: 44px; }
@media (max-width: 480px) { .adp-funds-row .field, .adp-funds-row .btn { flex: 1 1 100%; } }
.adp-note { align-items: flex-start; padding: 12px 16px; gap: 12px; }
@media (max-width: 640px) {
  .ad-pmain { flex-wrap: wrap; }
  .ad-pnum { align-items: flex-start; text-align: left; min-width: 0; flex: 1 1 40%; }
  .ad-pname { flex-basis: calc(100% - 60px); }
  .ad-tab { padding: 8px 12px; }
}
.ad-signin { flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; }
.ad-si-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1 1 auto; min-width: 0; }
.ad-si-when { flex: none; margin-left: auto; font-size: 12px; }
.ad-si-shared { flex: 1 1 100%; margin: 0; }
.adp-email { margin: 0 0 4px; overflow-wrap: anywhere; font-size: 15px; }
.ad-chip.away { opacity: .8; border-style: dashed; }
.ad-chip .tag { font-size: 10px; }

/* ---- the admin panel's Announcements tab: the form, a preview of the moving-bar pill, and the list of what was posted ---- */
.ad-annform { display: flex; flex-direction: column; gap: 16px; padding: 18px; max-width: 760px; }
.ad-annform .field { margin-bottom: 0; }
.ad-annform textarea { resize: vertical; min-height: 84px; }
.ad-lbl { font: 600 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ad-custom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .ad-custom .input { width: auto; min-width: 0; flex: 1 1 120px; max-width: 200px; }
.ad-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.4; } .ad-check input { margin-top: 3px; flex: none; accent-color: var(--lime); } .ad-check span { min-width: 0; overflow-wrap: anywhere; }
.ad-annprev { padding: 12px; background: var(--bg-2); border: 1.5px dashed var(--line-soft); border-radius: var(--r-1); overflow-x: hidden; }
.ad-annprev .tk-ann { white-space: normal; border-radius: 16px; align-items: flex-start; max-width: 100%; } .ad-annprev .tk-ann-text { overflow-wrap: anywhere; padding-top: 2px; } .ad-annprev .tk { white-space: normal; }
.ad-anlist { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.ad-ann { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-left: 6px solid var(--line-soft); }
.ad-ann.live { border-left-color: var(--verm); } .ad-ann.ended { opacity: .72; }
.ad-ann-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; }
.ad-ann-state { padding: 2px 10px; border-radius: 99px; background: var(--card-2); color: var(--text-2); font: 700 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.ad-ann.live .ad-ann-state { background: var(--verm); color: var(--verm-ink); }
.ad-ann-text { margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-ann-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
@media (max-width: 640px) { .ad-annform { padding: 14px; } }

/* the admin panel's Suggestions tab (js/views/admin.js) */
.ad-sglist { display: grid; gap: 12px; margin-top: 12px; }
.ad-sg { padding: 16px 18px; min-width: 0; }
.ad-sg.liked { border-color: var(--lime); }
.ad-sg.archived { opacity: .7; }
.ad-sg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ad-sg-top .tag { margin-left: auto; }
.ad-sg-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.ad-sg-earned { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.ad-sg-earn { font: 700 13px var(--f-mono); color: var(--text-2); overflow-wrap: anywhere; } .ad-sg-earn.more { color: var(--lime); } [data-theme="light"] .ad-sg-earn.more { color: var(--lime-deep); }
.ad-sg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-sg-reward { margin-top: 12px; } .ad-sg-reward > summary { display: inline-flex; cursor: pointer; list-style: none; } .ad-sg-reward > summary::-webkit-details-marker { display: none; }
