/* Online play: menu, lobby, the strip above the game, High Scores, the score on the album. Same hand-drawn look as style.css. */
#screen-online, #screen-board { overflow: auto; padding: 1rem; display: grid; justify-items: center; align-content: start; }
.panel.online { width: min(52rem, 100%); display: flex; flex-direction: column; gap: .8rem; }
.panel.online .sub { color: #555; font-size: 1.05rem; margin: 0; }
.panel.online input[type="text"] { font: inherit; font-size: 1.15rem; padding: .2rem .6rem; border: 0; border-bottom: var(--line) solid var(--ink); background: none; width: 12rem; outline: none; min-width: 0; }
.panel.online input:focus { border-bottom-color: var(--blue); }
.on-err { color: var(--red); min-height: 1.2em; margin: 0; font-size: 1.05rem; }
.muted { color: #666; }
.on-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.on-choice { border: var(--line) solid var(--ink); border-radius: var(--wob); padding: .7rem .9rem .9rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.on-choice p { margin: 0; color: #555; }
#on-code { width: 6.5rem !important; font-size: 1.6rem !important; letter-spacing: .25em; text-align: center; }
.on-code { font-family: "Grace", cursive; color: var(--blue); letter-spacing: .12em; font-size: 2.4rem; }
.on-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.on-seat { border: var(--line) solid var(--ink); border-radius: var(--wob); padding: .5rem .4rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; min-width: 0; }
.on-seat.mine { background: var(--blue-wash); border-color: var(--blue); box-shadow: 0 0 0 .12rem var(--blue); }
.on-seat.town { border-style: dashed; }
.on-seat > img { height: 7rem; max-width: 100%; object-fit: contain; }
.on-seat.town > img { opacity: .55; }
.on-seat b { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.25rem; font-weight: 400; line-height: 1.05; overflow-wrap: anywhere; }
.on-seat small { color: #555; font-size: .9rem; }
.on-status { font-size: .9rem; }
.on-arch { display: flex; gap: .15rem; flex-wrap: wrap; justify-content: center; }
.on-arch button { width: 2.3rem; height: 2.3rem; border: .09rem solid var(--wash-2); border-radius: 50%; padding: .1rem; background: #fff; }
.on-arch button img { width: 100%; height: 100%; object-fit: contain; }
.on-arch button.on { border-color: var(--blue); box-shadow: 0 0 0 .12rem var(--blue); }
@media (max-width: 640px) {
  .on-choices { grid-template-columns: 1fr; }
  .on-seats { grid-template-columns: repeat(2, 1fr); }
  .on-seat > img { height: 5rem; }
}

/* strip above the game */
#online-bar { display: flex; align-items: center; gap: .4rem .7rem; flex-wrap: wrap; font-size: .98rem; min-height: 1.9rem; }
#online-bar[hidden] { display: none; }
.on-room { font-family: "Grace", cursive; text-transform: uppercase; letter-spacing: .05em; }
.on-wait { color: var(--blue); font-weight: 600; }
.on-warn { color: var(--red); }
#online-bar .btn.small:last-child { margin-left: auto; }
.on-plist { display: flex; flex-direction: column; gap: .45rem; }
.on-prow { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "img name net" "img st btn"; align-items: center; gap: .1rem .6rem; border-bottom: .06rem dashed var(--wash-2); padding-bottom: .4rem; }
.on-prow img { grid-area: img; width: 2.6rem; height: 2.6rem; object-fit: contain; }
.on-prow b { grid-area: name; overflow-wrap: anywhere; }
.on-prow > span:nth-of-type(1) { grid-area: net; }
.on-prow > span:nth-of-type(2) { grid-area: st; }
.on-prow .btn { grid-area: btn; }

/* toast */
#on-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 1rem); background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: var(--wob); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 2rem); }
#on-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* High Scores */
.on-board { display: flex; flex-direction: column; gap: .5rem; }
.on-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.on-table th { text-align: left; font-weight: 400; color: #555; border-bottom: var(--line) solid var(--ink); padding: .25rem .4rem; }
.on-table td { padding: .3rem .4rem; border-bottom: .06rem dashed var(--wash-2); overflow-wrap: anywhere; }
.on-table td.num { font-weight: 700; }
.on-table tr.mine td { background: var(--blue-wash); }
.on-best { font-weight: 600; color: var(--blue); margin: 0; }
#board-tabs { align-self: flex-start; flex-wrap: wrap; }
@media (max-width: 640px) { .on-table th:nth-child(5), .on-table td:nth-child(5) { display: none; } .on-table { font-size: .95rem; } }

/* score on the album */
.on-score { border: var(--line) solid var(--ink); border-radius: var(--wob); padding: .7rem 1rem .9rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.on-score-head { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; }
.on-score-head span:first-child { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.3rem; }
.on-score-head b { font-size: 2.6rem; color: var(--blue); line-height: 1; }
.on-rank { font-size: 1.15rem; font-weight: 600; }
.on-parts { list-style: none; margin: 0; padding: 0; width: min(30rem, 100%); }
.on-parts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: .06rem dashed var(--wash-2); padding: .15rem 0; }
.on-parts li.neg b { color: var(--red); }
.on-arch button:disabled { opacity: .3; cursor: not-allowed; }
