/* Roman Catacombs: scorecard and play online. Matches the Journeys for Paul online game's look. */
.rc { max-width: 1000px; margin: 0 auto; }
.rc [hidden] { display: none !important; }
.rc-logo { height: 40px; width: auto; max-width: 100%; }

/* setup */
.choice-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem; border: 2px solid #dee2e6; border-radius: .5rem; cursor: pointer; background: #fff; }
.choice:hover { border-color: #adb5bd; }
.choice:has(input:checked) { border-color: #0d6efd; background: #f1f7ff; }
.choice:has(input:focus-visible) { outline: 3px solid #86b7fe; }
.choice small { display: block; color: #5c636a; margin-top: .15rem; }
.choice.is-soon { opacity: .6; cursor: default; background: #f1f3f5; }

/* sticky score bar */
.rc-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .6rem 1rem; margin: 0 0 .75rem;
          background: #212529; color: #fff; border-radius: 0 0 .6rem .6rem; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.rc-bar-main { display: flex; align-items: baseline; gap: .5rem; }
.rc-bar .lbl { font-weight: 600; }
.rc-bar .num { font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3rem; }
.rc-bar-sub { color: #ced4da; font-size: .9rem; flex: 1 1 8rem; }
.rc-bar-actions { display: flex; gap: .4rem; }

/* tabs */
.rc-tabs { display: flex; gap: .4rem; margin-bottom: .8rem; }
.rc-tabs button { flex: 1; padding: .55rem .5rem; border: 2px solid #212529; border-radius: .5rem; background: #fff; font-weight: 700; color: #212529; }
.rc-tabs button[aria-selected=true] { background: #212529; color: #fff; }
.rc-tabs button:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }

/* the three flipped cards (solo) */
.tray { background: #fff; border-radius: .6rem; padding: .8rem; margin-bottom: .9rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tray h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.tray .hint { color: #5c636a; font-size: .9rem; margin: 0 0 .6rem; }
.tray-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: 520px; }
.tcard { position: relative; padding: 0; border: 3px solid transparent; border-radius: 12px; background: none; }
.tcard img { width: 100%; height: auto; display: block; }
.tcard.sel { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.3); }
.tcard.dim { opacity: .45; }
.tcard .tag { position: absolute; left: 4px; right: 4px; bottom: 4px; background: rgba(33,37,41,.88); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .3rem; border-radius: 6px; text-align: center; }
.tray-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.deck-back { max-width: 130px; }
.deck-back img { width: 100%; height: auto; display: block; }

/* shelves */
.shelf { background: #fff; border-left: 8px solid var(--c); border-radius: .5rem; padding: .6rem .75rem .75rem; margin-bottom: .7rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .45rem; }
.shelf h2 { font-size: 1.05rem; margin: 0; color: var(--ci); flex: 1 1 auto; }
.shelf .pts { border: 2px solid var(--c); background: #fff; color: var(--ci); border-radius: 2rem; padding: .1rem .7rem; font-weight: 800; font-size: .9rem; }
.shelf .pts.done { background: var(--c); color: #fff; }
.shelf .taken { font-size: .82rem; color: #5c636a; display: flex; align-items: center; gap: .3rem; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.slot { min-height: 3.2rem; border: 2px dashed var(--c); border-radius: .6rem; background: #fff; color: #6c757d; font-weight: 600; padding: .2rem .35rem; line-height: 1.15; font-size: .95rem; overflow-wrap: anywhere; }
.slot.has { border-style: solid; background: var(--c); color: #fff; }
.slot.target { border-style: solid; background: #fff6d6; color: #212529; box-shadow: 0 0 0 3px #f0c36a; animation: pulse 1.2s ease-in-out infinite; }
.slot:disabled { cursor: default; }
.slot:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(240,195,106,.35); } }
@media (prefers-reduced-motion: reduce) { .slot.target { animation: none; } }

/* books checklist */
.bk-cat { background: #fff; border-left: 8px solid var(--c); border-radius: .5rem; padding: .6rem .75rem; margin-bottom: .7rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.bk-cat h2 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--ci); }
.bk-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.bk { border: 2px solid var(--c); border-radius: 2rem; background: #fff; color: var(--ci); font-weight: 600; padding: .3rem .8rem; min-height: 2.4rem; font-size: .93rem; }
.bk.on { background: var(--c); color: #fff; }
.bk.off { border-color: #ced4da; color: #8a9097; background: #f6f7f8; }
.bk:disabled { cursor: default; }
.bk:focus-visible { outline: 3px solid #86b7fe; outline-offset: 2px; }

/* dialogs */
.rc-dialog { border: 0; border-radius: .8rem; padding: 1.1rem 1.2rem; max-width: min(94vw, 460px); width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.rc-dialog::backdrop { background: rgba(15,15,20,.6); }
.pick-list { display: grid; gap: .4rem; max-height: 50vh; overflow: auto; margin-bottom: .8rem; }
.pick-list button { text-align: left; padding: .55rem .8rem; border: 2px solid #212529; border-radius: .5rem; background: #fff; font-weight: 600; min-height: 2.6rem; }
.pick-list button.cur { background: #212529; color: #fff; }
.pick-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.final-table { width: 100%; border-collapse: collapse; margin: .5rem 0 .8rem; }
.final-table td { padding: .25rem 0; border-bottom: 1px solid #e9ecef; }
.final-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.final-total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.rules h3 { margin-top: 1rem; }

.rc-dialog { max-height: 92vh; overflow: auto; }
.share-box { margin: .4rem 0 .8rem; padding-top: .7rem; border-top: 1px solid #e9ecef; }
.share-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.share-preview { width: 100%; height: auto; display: block; border-radius: .5rem; border: 1px solid #dee2e6; margin-bottom: .4rem; }

/* computer opponents */
.rivals h2 { font-size: 1.05rem; }
.rivals h3 { font-size: .95rem; margin: .8rem 0 .3rem; }
.rank { list-style: none; padding: 0; margin: .3rem 0 .5rem; }
.rank li { display: flex; align-items: baseline; gap: .6rem; padding: .3rem .4rem; border-radius: .4rem; }
.rank li.you { background: #fff6d6; font-weight: 700; }
.rank .pos { width: 1.4rem; color: #5c636a; }
.rank .nm { flex: 1; }
.rank small { color: #5c636a; font-weight: 400; }
.rank .sl { color: #5c636a; font-variant-numeric: tabular-nums; }
.rank b { min-width: 2.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.rival { margin: .2rem 0; }
.rival summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: .25rem 0; }
.rl { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem; padding: .15rem 0; border-left: 5px solid var(--c); padding-left: .5rem; margin: .2rem 0; font-size: .85rem; }
.rl .rc { font-weight: 700; min-width: 8.5rem; }
.rb { background: #f1f3f5; border-radius: 1rem; padding: .05rem .5rem; }
.rb.empty { color: #8a9097; }
.log { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: #343a40; }
.log li { padding: .1rem 0; }

/* same room, own phones */
.table-code { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .1rem 0 .6rem; }
.table-code b { font-size: 1.25rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; background: #fff6d6; border: 2px solid #f0c36a; border-radius: .5rem; padding: .05rem .5rem; }
.round-fix { margin-top: .7rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
