:root { color-scheme: dark; font-family: system-ui, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #0f172a; color: #f8fafc; }
.app { width: min(100% - 20px, 960px); margin: 0 auto; padding: 14px 0 88px; }
.hero { text-align: center; margin-bottom: 12px; }
h1 { margin: 0; font-size: clamp(30px, 10vw, 52px); color: #fbbf24; line-height: 1; }
h1 span { display: block; margin-top: 4px; font-size: .42em; color: #cbd5e1; letter-spacing: .08em; text-transform: uppercase; }
p { margin: 6px 0; }
.warn, .bad { color: #fecaca; font-weight: 800; }
.card, .status { background: #1e293b; border: 1px solid #334155; border-radius: 18px; padding: 12px; box-shadow: 0 16px 42px rgba(0,0,0,.22); }
.quick-actions { position: sticky; top: 8px; z-index: 30; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.controls-toggle { height: 42px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.controls { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 10px; transition: max-height .25s ease, opacity .2s ease, padding .2s ease, border-width .2s ease; }
.controls.closed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-width: 0; margin-bottom: 0; }
.controls:not(.closed) { max-height: 420px; opacity: 1; }
.controls-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: #fbbf24; }
.controls-head button { width: auto; min-width: 84px; height: 32px; }
label { display: grid; gap: 4px; color: #cbd5e1; font-size: 12px; font-weight: 800; }
input, button { width: 100%; height: 40px; border: 1px solid #475569; border-radius: 12px; padding: 0 10px; font: inherit; font-weight: 800; }
input { background: #0f172a; color: #f8fafc; }
button, .button-link { background: #f59e0b; color: #111827; cursor: pointer; border: 0; text-decoration: none; display: grid; place-items: center; width: 100%; height: 40px; border-radius: 12px; padding: 0 10px; font: inherit; font-weight: 800; }
button:hover, .button-link:hover { background: #fbbf24; }
.status { margin: 12px 0; text-align: center; color: #cbd5e1; font-size: 16px; line-height: 1.5; }
.status b { color: #fbbf24; }
.status small { display: block; margin: 4px 0 0; color: #fbbf24; font-size: 13px; letter-spacing: 0; text-transform: none; }
.progress-card { margin-bottom: 12px; }
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #cbd5e1; font-weight: 900; }
.progress-row b { color: #fbbf24; }
.bar { height: 14px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #0f172a; border: 1px solid #475569; }
.bar i { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width .35s ease; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
small, .section-title { display: block; color: #94a3b8; text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .08em; margin-bottom: 8px; }
.active-card { text-align: center; }
.bird { font-size: clamp(36px, 13vw, 56px); font-weight: 1000; color: #fbbf24; line-height: 1.1; }
.activity { margin-top: 8px; font-size: clamp(22px, 7vw, 30px); font-weight: 900; }
.atcharam-icon { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #fbbf24; color: #111827; font-weight: 1000; box-shadow: 0 0 0 3px rgba(251,191,36,.22); vertical-align: middle; }
.atcharam-icon.big { width: 1.45em; height: 1.45em; font-size: .75em; }
.relation { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 900; background: #475569; }
.relation.same, .relation.friend { background: #16a34a; color: #052e16; }
.relation.enemy { background: #fb7185; color: #450a0a; }
.details p, .detail-list p { margin: 9px 0; color: #e2e8f0; }
.details b, .detail-list b { color: #fbbf24; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: #cbd5e1; font-size: 12px; }
.detail-list { margin-bottom: 12px; }
.contact-link { position: fixed; right: 12px; bottom: 12px; z-index: 50; width: auto; min-width: 92px; height: 38px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); background: #229ed9; color: white; }
.rows { display: grid; grid-template-columns: 1fr; gap: 10px; }
.row { min-height: 92px; display: grid; align-content: center; gap: 5px; text-align: center; padding: 10px 8px; border: 1px solid #475569; border-radius: 16px; background: #0f172a; position: relative; overflow: hidden; }
.row strong { color: #f8fafc; font-size: 19px; }
.row span { color: #cbd5e1; font-weight: 900; }
.row small { margin: 0; color: #94a3b8; }
.row em { min-height: 18px; color: #fbbf24; font-style: normal; font-weight: 900; }
.row.on { background: #fbbf24; color: #111827; border-color: #fde68a; box-shadow: 0 0 0 4px rgba(251,191,36,.25); transform: translateY(-2px); }
.row.on strong, .row.on span, .row.on small, .row.on em { color: #111827; }
.row.on .atcharam-icon { background: #111827; color: #fbbf24; box-shadow: none; }
.row.adhikara { border-left: 5px solid #22c55e; }
.row.padu { border-right: 5px solid #fb7185; }
.row.friend em, .relation.friend { color: #bbf7d0; }
.row.enemy em, .relation.enemy { color: #fecaca; }
.row.same em, .relation.same { color: #fde68a; }
.row.neutral em, .relation.neutral { color: #cbd5e1; }
.row.on.friend em, .row.on.enemy em, .row.on.same em, .row.on.neutral em { color: #111827; }
@media (min-width: 680px) {
  .app { padding-top: 22px; }
  .controls { grid-template-columns: repeat(7, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .rows { grid-template-columns: repeat(5, 1fr); }
  .row { min-height: 128px; }
  .quick-actions { max-width: 420px; margin-left: auto; margin-right: auto; }
  .controls-toggle { display: block; }
}
