/* thank you @kittentm for the css help */
:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #18312f; background: #edf3f0; --line: #d7e4df; --muted: #536b66; --accent: #086a57; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.header { background: #153b33; color: white; }
.header-inner { display: flex; min-height: 4rem; justify-content: space-between; align-items: center; }
.wordmark { color: inherit; text-decoration: none; font-size: 1.24rem; font-weight: 760; letter-spacing: -.05em; }
main { padding-block: clamp(1.5rem, 4vw, 3.5rem) 4rem; }
.panel { padding: clamp(1rem, 3vw, 1.6rem); background: #fff; border: 1px solid var(--line); border-radius: .85rem; }
.login { max-width: 27rem; margin: 2rem auto; padding: clamp(1rem, 5vw, 2rem); }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.05em; overflow-wrap: anywhere; }
h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
p { margin: .45rem 0; }
.muted, .login > p { color: var(--muted); overflow-wrap: anywhere; }
form { display: grid; gap: 1rem; margin-top: 1.4rem; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 700; }
input, button { font: inherit; border: 1px solid #a7bdb6; border-radius: .45rem; padding: .65rem .8rem; color: inherit; background: white; }
input { min-width: 0; }
button { cursor: pointer; font-weight: 700; }
button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
#sign-out { background: transparent; color: white; border-color: #80a89d; }
:focus-visible { outline: 3px solid #1f987c; outline-offset: 3px; }
.feedback { max-width: 30rem; margin: 0 auto 1rem; color: #832728; background: #fff5f3; border: 1px solid #ebceca; border-radius: .5rem; padding: .6rem .85rem; }
.profile { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: #e2f1ea; }
.eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 750; color: var(--accent); }
.rank { padding: .5rem .85rem; min-width: 5rem; text-align: center; border-left: 1px solid #b9d5cc; color: var(--accent); }
.rank span { display: block; font-size: .76rem; font-weight: 650; }
.rank strong { display: block; font-size: 2rem; line-height: 1.2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .65rem; margin: .8rem 0 1.35rem; }
.stats > div { padding: .72rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; }
.stats dt { font-size: .83rem; color: var(--muted); }
.stats dd { font-size: 1.25rem; font-weight: 720; margin: 0; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; flex-wrap: wrap; column-gap: .75rem; align-items: baseline; }
.section-heading p { margin: 0 0 .8rem; }
.deck { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; padding: 0; margin: 0; list-style: none; }
.deck li { min-width: 0; overflow: hidden; border-radius: .55rem; border: 1px solid var(--line); background: #f7faf8; }
.deck li.leader { border-color: var(--accent); }
.art { display: grid; position: relative; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #dbece5; color: var(--muted); font-size: .85rem; text-align: center; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-details { padding: .45rem .55rem; font-size: .83rem; }
.card-details strong, .card-details span { display: block; overflow-wrap: anywhere; }
.card-details span { color: var(--muted); }
.recent { margin-top: 1rem; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9rem; }
th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f2f7f4; color: var(--muted); white-space: nowrap; }
td:nth-child(n+2) { white-space: nowrap; }
@media (max-width: 680px) { .deck { grid-template-columns: repeat(auto-fit,minmax(7.5rem,1fr)); } }
.ongoing-gachas { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:.6rem; padding:0; list-style:none; }
.ongoing-gachas li { padding:.7rem .85rem; border:1px solid var(--line); border-radius:.5rem; background:#f7faf8; }
.ongoing-gachas li p { margin:.25rem 0; font-size:.85rem; }
.ongoing-gachas summary { cursor:pointer; font-size:.86rem; font-weight:650; }
.ongoing-note { color:var(--muted); }
