/* Oh Hell – styles for ohhell-ui.js (view #v-ohhell). The screens reuse the Four Stressed / Wild Stressed classes of
   fourkings.css (fk-hero, fk-choices, fk-panel, fk-banner, fk-finish, fk-podium, fk-bd …); this file adds the cards, the
   seats, the trick and the bidding buttons. Cards are paper with ink under every theme; hearts and diamonds are red.
   Selectors are scoped to .oh. */
.oh{--oh-paper:#fbf7ec;--oh-ink:#141210;--oh-red:#a3221b;--oh-cw:44px}
.oh [hidden]{display:none!important}
.oh .fk-panel{--pc:var(--oh-red)}
.oh-cs{display:block;width:100%;height:100%;overflow:visible}
.oh-cs .f{fill:var(--oh-paper);stroke:var(--oh-ink);stroke-width:1.6}
.oh-cs .rk{font-family:"Playfair Display",serif;font-weight:900;fill:var(--oh-ink);letter-spacing:-.6px}
.oh-cs .sp{fill:var(--oh-ink)}
.oh-cs.red .rk,.oh-cs.red .sp{fill:var(--oh-red)}
.oh-cs.back .bi{fill:none;stroke:var(--oh-red);stroke-width:1.2}
.oh-cs.back .bl{stroke:var(--oh-red);stroke-width:.7;opacity:.45}
.oh-cs.back .bd{fill:var(--oh-paper);stroke:var(--oh-red);stroke-width:1.4}
.oh-pip{display:inline-block;width:12px;height:12px;vertical-align:-1px;fill:var(--oh-ink);flex:0 0 auto}
.oh-pip.red{fill:var(--oh-red)}
.oh-disc{display:inline-grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border:1px solid var(--ink);border-radius:50%;background:var(--paper);font:900 11px/1 "Playfair Display",serif;color:var(--ink)}

/* lobby */
.oh-emb{display:flex;justify-content:center;align-items:flex-end;height:96px;margin-bottom:10px}
.oh-ec{display:block;width:52px;height:73px;margin:0 -8px;filter:drop-shadow(2px 2px 0 rgba(20,18,16,.18))}
.oh-ec.a{transform:rotate(-14deg) translateY(6px)}.oh-ec.b{transform:translateY(-4px);z-index:1}.oh-ec.c{transform:rotate(14deg) translateY(6px)}
.oh .oh-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.oh .oh-choices .fk-choice{padding:30px 6px 30px}
.oh .oh-choices .fk-choice b{font-size:17px}
.oh-chm{position:absolute;display:block;width:16px;height:22px}
.fk-choice .oh-chm.ix{left:8px;top:7px;transform:rotate(-8deg)}.fk-choice .oh-chm.ix2{right:8px;bottom:7px;transform:rotate(8deg)}
.oh .fk-choice.on .oh-cs .f{stroke:var(--paper)}
.oh-pnote{font-size:12.5px;font-style:italic;margin:10px 0 0;line-height:1.5}
.oh .fk-rl.wl>li>.oh-pip{margin:3px 6px 0 2px;width:13px;height:13px}
#ohResume .fk-resume{border-left-color:var(--oh-red)}

/* game: seats (opponents above, you below the table) */
.oh-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:4px 0}
.oh-seats.n1{grid-template-columns:1fr}
.oh-seat{position:relative;display:flex;align-items:center;gap:7px;min-width:0;border:1px solid var(--ink);padding:5px 8px 5px 8px;background:var(--paper)}
.oh-seat.on{box-shadow:inset 6px 0 0 var(--oh-red);background:var(--paper2);padding-left:12px}
.oh-sn{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.oh-sn b{font:700 13px "Libre Baskerville",serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh-sn small{font-size:10.5px;font-style:italic;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh-dl{font-style:normal;font-weight:700;color:var(--oh-red);text-transform:uppercase;letter-spacing:.8px;font-size:9.5px}
.oh-bw{font:700 11px "Libre Baskerville",serif;white-space:nowrap}
.oh-bw i{font-style:normal;margin:0 4px;color:var(--mut)}
.oh-seat.exact .oh-bw{color:#1d6b3a}
.oh-seat.over .oh-bw{color:var(--oh-red)}
.oh-sc{margin-left:auto;font:900 22px/1 "Playfair Display",serif;font-variant-numeric:tabular-nums}

/* the table: trump, hand info, the cards of the trick */
.oh-table{border-top:3px double var(--ink);border-bottom:1px solid var(--ink);padding:6px 0 8px;margin:6px 0;background:radial-gradient(ellipse at 50% 40%,rgba(20,18,16,.035),transparent 70%)}
.oh-info{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;margin-bottom:6px}
.oh-tr{display:inline-flex;align-items:center;gap:6px;font:700 13px "Libre Baskerville",serif}
.oh-meta{display:inline-flex;flex-wrap:wrap;gap:2px 6px;font:700 10px "Libre Baskerville",serif;text-transform:uppercase;letter-spacing:1px;color:var(--mut)}
.oh-meta i{font-style:normal}
.oh-mini{display:inline-block;width:20px;height:28px;flex:0 0 auto;vertical-align:middle}
.oh-trick{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:6px;min-height:92px;padding:4px 2px}
.oh-tc{display:flex;flex-direction:column;align-items:center;gap:3px;animation:ohIn .28s cubic-bezier(.3,1.4,.5,1) both}
@keyframes ohIn{0%{transform:translateY(-10px) scale(.7);opacity:0}}
.oh-card{display:block;width:var(--oh-cw);height:calc(var(--oh-cw)*1.4)}
.oh-tc.win .oh-card .f{stroke:var(--oh-red);stroke-width:3.5}
.oh-trick.held .oh-tc:not(.win){opacity:.55}
.oh-trick.held{cursor:pointer}
.oh-tl .oh-disc{width:17px;height:17px;font-size:10px}
.oh-tc.me .oh-disc{background:var(--ink);color:var(--paper)}
.oh-empty{font-size:13px;font-style:italic;text-align:center;margin:8px 0;align-self:center}

/* your cards */
.oh-me{margin:6px 0 4px}
.oh-me .oh-disc{background:var(--ink);color:var(--paper)}
.oh-hand{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 5px;min-height:76px;padding:8px 0 4px}
.oh-hc{display:block;width:46px;height:64px;padding:0;border:0;background:none;cursor:default;transition:transform .15s ease,opacity .15s ease;touch-action:manipulation}
.oh-hand.input .oh-hc{cursor:pointer}
.oh-hc.legal{transform:translateY(-6px)}
.oh-hc.legal .f{stroke:var(--oh-red);stroke-width:3}
.oh-hc.no{opacity:.45}
html.no-dots .oh-hc.legal{transform:none}html.no-dots .oh-hc.legal .f{stroke:var(--oh-ink);stroke-width:1.6}html.no-dots .oh-hc.no{opacity:1}
.oh-hc:focus-visible{outline:2px dashed var(--ink);outline-offset:3px}

/* side: banner, bidding, last action, buttons */
.oh .fk-banner.oh-bn{--pc:var(--oh-red);margin:6px 0}
.oh-bidbox{border:1px solid var(--ink);border-top:3px double var(--ink);padding:8px 8px 6px;margin:6px 0;background:var(--paper2)}
.oh-bq{margin:0 0 8px;text-align:center;font:italic 700 14px "Playfair Display",serif}
.oh-bids{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px}
.oh-bid{min-height:44px;border:1px solid var(--ink);border-radius:0;background:var(--paper);color:var(--ink);font:900 20px/1 "Playfair Display",serif;cursor:pointer;padding:0}
.oh-bid:hover:not(:disabled){background:var(--ink);color:var(--paper)}
.oh-bid:focus-visible{outline:2px dashed var(--ink);outline-offset:2px}
.oh-bid.hook,.oh-bid:disabled{cursor:not-allowed;opacity:.4;text-decoration:line-through;text-decoration-color:var(--oh-red);text-decoration-thickness:2px}
.oh-hook{font-size:12.5px;font-style:italic;color:var(--oh-red);margin:8px 0 0;text-align:center}
.oh-hook:empty{display:none}
.oh-note{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-height:30px;font-size:13px;font-style:italic;color:var(--mut)}
.oh-nw{display:inline-flex;align-items:center;gap:5px}
.oh .fk-ctl .btn[hidden]{display:none!important}

/* end of a hand, scores, result */
.oh-he-tr{display:flex;align-items:center;justify-content:center;gap:6px;font:700 13px "Libre Baskerville",serif;margin:4px 0}
.oh-res{font:900 34px/1 "Playfair Display",serif;margin:2px 0 4px;color:var(--mut)}
.oh-res.good{color:var(--oh-red)}
.oh-bd th>.oh-disc,.oh-st th .oh-disc{margin-right:6px;vertical-align:middle}
.oh-bd tbody th{white-space:nowrap;text-align:left}
.oh-bd tr.exact td:nth-child(3),.oh-bd tr.exact td:nth-child(2){font-weight:700;color:#1d6b3a}
.oh-bd tr.me th,.oh-bd tr.me td{background:var(--paper2)}
.oh-sw{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.oh-st{font-size:12px;margin:6px 0}
.oh-st td,.oh-st th{text-align:center;padding:4px 5px;white-space:nowrap}
.oh-st td small{display:block;font-size:10px;color:var(--mut)}
.oh-st td b{font-size:13px}
.oh-st td.exact b{color:#1d6b3a}
.oh-st tr.tot td,.oh-st tr.tot th{border-top:2px solid var(--ink)}
.oh-lg{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;font-size:12.5px;margin:0 0 4px}
.oh-lg>span{display:inline-flex;align-items:center;gap:5px}
.oh-avi{display:grid;place-items:center;width:100%;height:100%;border:1px solid var(--ink);border-radius:50%;background:var(--paper)}
.oh-avi .oh-disc{border:0;background:none;font-size:22px;width:auto;height:auto}
.oh-fin .fk-fin-game .oh-mini{width:28px;height:39px}
.oh-opts{font-size:12.5px;color:var(--mut);font-style:italic;text-align:center;margin:4px 0 0}

/* full screen while a game is on (same as the Four Stressed game screen) */
html.oh-full .mast,html.oh-full .dateline,html.oh-full .xpbar,html.oh-full .bnav,html.oh-full .subbar{display:none!important}
html.oh-full .app{max-width:1180px;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;padding-top:calc(4px + env(safe-area-inset-top))!important}
@media (max-width:380px){.oh-hc{width:40px;height:56px}.oh{--oh-cw:40px}}
@media (min-width:600px){.oh{--oh-cw:52px}.oh-hc{width:54px;height:76px}}
@media (min-width:900px){
  .oh{--oh-cw:64px}
  .oh-hc{width:62px;height:87px}
  .oh-trick{min-height:120px}
  .oh-seats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .oh-seats.n1{grid-template-columns:minmax(0,1fr)}.oh-seats.n2{grid-template-columns:repeat(2,minmax(0,1fr))}.oh-seats.n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .oh-emb{height:120px}.oh-ec{width:66px;height:92px}
}
html.a11y-cb .oh{--oh-red:#0072b2}
html.a11y-con .oh-cs .f{fill:#fff;stroke-width:2.4}html.a11y-con .oh-cs .rk,html.a11y-con .oh-cs .sp{fill:#000}html.a11y-con .oh-cs.red .rk,html.a11y-con .oh-cs.red .sp{fill:#8a0000}
html.a11y-big .oh-hc{width:54px;height:76px}
html.a11y-calm .oh *{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){.oh *{animation:none!important;transition:none!important}}
.oh .fk-pod{--pc:var(--ink)}.oh .fk-pod.p1{--pc:var(--oh-red)}
.oh-seat .oh-sn{flex:1 1 auto}.oh-bw{white-space:normal}.oh-bw>span{white-space:nowrap}
