/* Schismata online: account and saved-game screens, and the account badge. */

.ol-panel .ol-body { margin-top: 12px; }
.ol-note { padding: 14px 16px; background: #15171a; border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 3px; color: var(--text2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ol-small { color: var(--dim); font-size: 12.5px; }
.ol-flash { min-height: 0; margin: 8px 0 0; font-size: 13px; color: var(--text2); }
.ol-flash:empty { display: none; }
.ol-flash.ok { color: var(--good); }
.ol-flash.err { color: #ff8a7a; padding: 8px 10px; background: rgba(60,14,10,0.55); border-left: 3px solid var(--bad); border-radius: 2px; }
.ol-label { display: block; margin: 14px 0 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.ol-input { font: inherit; font-size: 15px; color: var(--text); background: #101113; border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 2px; padding: 7px 9px; flex: 1; min-width: 160px; }
.ol-input:focus { outline: none; box-shadow: 0 0 0 1px var(--warm2); }

/* login */
.ol-login { display: grid; gap: 10px; max-width: 380px; margin: 18px auto 6px; }
.ol-provider { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; border-radius: 4px; cursor: pointer; transition: filter 0.1s, transform 0.06s; }
.ol-provider:hover:not(:disabled) { filter: brightness(1.06); }
.ol-provider:active:not(:disabled) { transform: translateY(1px); }
.ol-provider:disabled { opacity: 0.6; cursor: default; }
.ol-provider .mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 800; font-size: 15px; }
.ol-provider.google { background: #ffffff; color: #1f1f1f; border: 1px solid #dadce0; }
.ol-provider.google .mark { color: #fff; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.ol-provider.discord { background: #5865f2; color: #ffffff; border: 1px solid #4752c4; }
.ol-provider.discord .mark { background: #ffffff; color: #5865f2; }
.ol-login .ol-small { text-align: center; margin-top: 4px; }

/* profile and record */
.ol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ol-card { background: #15171a; border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 3px; padding: 4px 14px 14px; }
.ol-card h3 { margin-top: 12px; }
.ol-who { display: flex; gap: 12px; align-items: center; }
.ol-name { font-size: 19px; font-weight: 700; color: var(--text); }
.ol-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 14px; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.6); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.ol-nations { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-nation { padding: 4px; background: #101113; border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 3px; cursor: pointer; line-height: 0; }
.ol-nation:hover { box-shadow: 0 0 0 1px var(--edge); }
.ol-nation.on { box-shadow: 0 0 0 2px var(--warm); background: #2a2416; }
.ol-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-bottom: 10px; }
.ol-big b { display: block; font-size: 22px; color: var(--warm); font-variant-numeric: tabular-nums; }
.ol-big span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.ol-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ol-table th { text-align: right; color: var(--dim); font-weight: 400; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 6px; }
.ol-table td { padding: 4px 6px; border-top: 1px solid #23262a; text-align: right; font-variant-numeric: tabular-nums; }
.ol-table td:first-child { text-align: left; color: var(--text2); }
.ol-history { display: grid; gap: 4px; }
.ol-match { display: grid; grid-template-columns: 64px 22px 1fr auto; gap: 8px; align-items: center; padding: 5px 8px; background: #101113; border-left: 3px solid var(--edge2); border-radius: 2px; font-size: 13px; }
.ol-match.win { border-left-color: var(--good); } .ol-match.loss, .ol-match.quit { border-left-color: var(--bad); } .ol-match.draw { border-left-color: var(--mid); }
.ol-match .res { font-weight: 700; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; }
.ol-match.win .res { color: var(--good); } .ol-match.loss .res, .ol-match.quit .res { color: #ff8a7a; } .ol-match.draw .res { color: var(--mid); }
.ol-match .what { display: flex; flex-direction: column; min-width: 0; }
.ol-match .what b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ol-match .what small, .ol-match .when { color: var(--dim); font-size: 11.5px; }

/* saved games */
.ol-tabs { display: flex; gap: 4px; margin-top: 10px; border-bottom: 1px solid var(--edge2); }
.ol-tab { padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); background: transparent; border: 1px solid transparent; border-bottom: none; border-radius: 3px 3px 0 0; cursor: pointer; margin-bottom: -1px; }
.ol-tab:hover { color: var(--text); }
.ol-tab.on { color: var(--warm); background: #1a1c20; border-color: var(--edge2); }
.ol-new .row { flex-wrap: nowrap; }
.ol-listhead { margin-top: 6px; }
.ol-listhead h3 { margin-bottom: 6px; }
.ol-slots { display: grid; gap: 5px; }
.ol-slot { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; background: #15171a; border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 3px; }
.ol-slot .info { display: flex; flex-direction: column; min-width: 0; }
.ol-slot .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-slot .info small, .ol-slot .when { color: var(--dim); font-size: 12px; }
.ol-slot .acts { display: flex; gap: 6px; }

/* yes / no question inside a panel */
.ol-confirm { position: sticky; bottom: -22px; margin: 14px -26px -22px; padding: 12px 26px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: linear-gradient(180deg, #2a2418, #1d1a12); border-top: 1px solid var(--warm2); box-shadow: 0 -10px 24px rgba(0,0,0,0.45); animation: screenin 0.15s ease-out; }
.ol-confirm span { flex: 1; min-width: 200px; color: var(--text); }

/* account badge for the main menu corner */
.ol-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; font: inherit; font-size: 13px; color: var(--text2); background: rgba(10,11,13,0.78); border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge2); border-radius: 18px; cursor: pointer; max-width: 260px; }
.ol-badge:hover { box-shadow: 0 0 0 1px var(--warm2); color: var(--text); }
.ol-badge .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ol-badge .cta { color: var(--warm); font-weight: 700; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.ol-dot { width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; }
.ol-dot.off { background: var(--dim2); }

@media (max-width: 760px) {
  .ol-grid { grid-template-columns: 1fr; }
  .ol-slot { grid-template-columns: 1fr; }
}
