:root {
  --blue: #1e5fd0; --blue-d: #133f8f; --ink: #1d2433; --muted: #6b7486; --bg: #f4f6fb; --card: #fff; --line: #e3e7ef;
  --good: #1f9d55; --warn: #e8890c; --bad: #e03131; --gold: #f2b01e; --pink: #e0457b;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  font-family: 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #163a7a; overscroll-behavior: none; }
body { -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
input { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; }
a { color: inherit; }

/* ---------- ปุ่ม ---------- */
.btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: transform .08s, background .15s; touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn .btn-s { font-weight: 400; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.btn.primary { background: linear-gradient(180deg, #2f74ea, var(--blue)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(30, 95, 208, .3); }
.btn.primary .btn-s { color: #dbe7ff; }
.btn.big { min-height: 54px; font-size: 17px; align-items: center; text-align: center; }
.btn.white { border-color: #b8e0c8; background: #f2fbf5; }
.btn.warn { border-color: #f5c99a; background: #fff7ee; }
.btn.off, .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn.x { width: 40px; min-height: 40px; padding: 0; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; flex: none; }
.btn.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.on .btn-s { color: #dbe7ff; }
.btn.opt { min-height: 54px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns > .btn { flex: 1 1 120px; width: auto; }
.actions { display: grid; gap: 8px; margin-top: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 4px 0 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .btn { width: auto; flex: none; min-height: 38px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; align-items: center; }
.tabs.mini .btn { min-height: 32px; padding: 5px 10px; font-size: 12.5px; }

/* ---------- หน้าแรก ---------- */
.title { display: grid; place-items: center; padding: calc(16px + var(--sat)) 16px calc(16px + var(--sab)); overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, #5ea0ff 0%, #1e5fd0 45%, #0f2f6e 100%); }
.title-card { width: min(440px, 100%); background: rgba(255, 255, 255, .96); border-radius: 26px; padding: 26px 20px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center; }
.logo { font-size: 44px; }
.title h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: .5px; background: linear-gradient(90deg, #1e5fd0, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title .sub { margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.title-art { width: 100%; height: 130px; display: block; }
.title .menu { display: grid; gap: 9px; text-align: left; }
.fine { font-size: 11.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* ---------- สร้างตัวละคร ---------- */
.creator { background: linear-gradient(180deg, #e9f1ff, #fff); overflow-y: auto; padding: calc(12px + var(--sat)) 16px calc(16px + var(--sab)); }
.cc { max-width: 860px; margin: 0 auto; }
.cc h2 { margin: 4px 0 10px; font-size: 22px; }
.cc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.cc-left { display: grid; gap: 10px; justify-items: center; background: #fff; border-radius: 20px; padding: 12px; border: 1px solid var(--line); }
.cc-preview { width: 180px; height: 210px; background: radial-gradient(circle at 50% 80%, #d8ecc8 0, #d8ecc8 40%, transparent 41%); }
.cc-name { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; text-align: center; }
.cc-name:focus { outline: none; border-color: var(--blue); }
.cc-opts h4 { margin: 10px 0 6px; font-size: 14px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--blue); }
.cc .row-btns { margin-top: 16px; }
@media (min-width: 720px) { .cc-grid { grid-template-columns: 260px 1fr; } .cc-preview { width: 220px; height: 260px; } }

/* ---------- เกม ---------- */
.game { background: #2a6b2e; touch-action: none; }
.view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 0; right: 0; top: 0; padding: calc(6px + var(--sat)) calc(8px + var(--sar)) 0 calc(8px + var(--sal)); pointer-events: none; }
.hud-row { display: flex; gap: 8px; align-items: stretch; pointer-events: auto; }
.ava-btn { width: 54px; height: 58px; flex: none; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .92); padding: 0; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); cursor: pointer; }
.ava-btn canvas { width: 54px; height: 58px; display: block; }
.hud-main { align-self: flex-start; flex: 1; min-width: 0; background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 6px 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.hud-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.hud-top b { font-size: 17px; font-weight: 800; color: #0d6b3a; white-space: nowrap; }
.hud-top b.neg { color: var(--bad); }
.city { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.stat { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.sbar { flex: 1; height: 8px; border-radius: 8px; background: #e6e9f0; overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: 8px; transition: width .3s; }
.sbar.hp i { background: linear-gradient(90deg, #ff6b6b, #e03131); }
.sbar.hun i { background: linear-gradient(90deg, #ffc35a, #f08c00); }
.sbar.en i { background: linear-gradient(90deg, #74c0fc, #1c7ed6); }
.sbar.low { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px rgba(224, 49, 49, .35); } }
.clock { flex: none; background: rgba(20, 30, 60, .85); color: #fff; border-radius: 16px; padding: 5px 9px; text-align: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; }
.clock b { font-size: 18px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock small { font-size: 10px; opacity: .85; white-space: nowrap; }
.clock-btns { display: flex; gap: 4px; margin-top: 3px; }
.chipbtn { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; cursor: pointer; min-height: 26px; min-width: 34px; }
.quest-pill { pointer-events: auto; margin: 6px auto 0; display: block; max-width: min(560px, 100%); border: 0; border-radius: 999px; background: rgba(255, 248, 225, .95); color: #6a4a00; font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 14px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dock { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(8px + var(--sab)); display: flex; gap: 6px; background: rgba(255, 255, 255, .95); border-radius: 22px; padding: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.dock button { position: relative; width: 74px; height: 56px; border: 0; border-radius: 16px; background: transparent; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; color: var(--ink); }
.dock button:active { background: #eef3ff; }
.dock span { font-size: 22px; line-height: 1; }
.dock small { font-size: 11px; font-weight: 600; }
.badge { position: absolute; top: 3px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; }
.joy { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .5); pointer-events: none; }
.joy i { position: absolute; left: 30px; top: 30px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.toasts { position: absolute; left: 50%; transform: translateX(-50%); top: calc(110px + var(--sat)); width: min(520px, calc(100% - 20px)); display: grid; gap: 6px; pointer-events: none; z-index: 5; }
.toast { pointer-events: auto; background: rgba(25, 32, 48, .92); color: #fff; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); animation: tin .25s ease-out; border-left: 5px solid #74c0fc; }
.toast.good, .toast.money { border-left-color: #51cf66; }
.toast.warn { border-left-color: #ffa94d; }
.toast.bad { border-left-color: #ff6b6b; background: rgba(70, 18, 24, .94); }
.toast.quest { border-left-color: #ffd43b; background: rgba(40, 32, 8, .93); }
.toast.money { background: rgba(10, 60, 32, .94); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .5s; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Sheet ---------- */
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(8, 14, 30, .45); display: flex; align-items: flex-end; justify-content: center; pointer-events: auto; animation: fade .18s; }
.sheet-wrap.out { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(620px, 100%); max-height: 86vh; max-height: 86dvh; background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .22s ease-out; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet.tall { height: 86vh; height: 86dvh; }
.sheet.small { max-height: 70vh; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 18px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-b { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px calc(18px + var(--sab)); overscroll-behavior: contain; -webkit-user-select: text; user-select: text; }
.sheet-b h4 { margin: 14px 0 6px; font-size: 14.5px; }
.sheet-b input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 4px 0; }
.sheet-b input.num { font-size: 26px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 6px 0; }
.tip { background: #fff8e1; border-radius: 10px; padding: 7px 10px; font-size: 13px; margin: 6px 0; }
.warn { color: #9c4a00; }
p.warn { background: #fff3e6; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; }
.err { color: var(--bad); font-size: 13px; min-height: 1em; }
.say { font-size: 15.5px; line-height: 1.65; white-space: pre-line; background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.center { text-align: center; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; font-weight: 600; }
.kv.ok b { color: var(--good); } .kv.warn b { color: var(--warn); }
.bar { position: relative; height: 22px; border-radius: 11px; background: #e6e9f0; overflow: hidden; margin: 6px 0; }
.bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #74c0fc, #1c7ed6); border-radius: 11px; }
.bar b { position: relative; display: block; font-size: 11.5px; line-height: 22px; padding: 0 10px; color: #12233d; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.trust i { background: linear-gradient(90deg, #ffd8a8, #ff922b, #51cf66); }
.bar.thin { height: 6px; margin: 5px 0 0; }
.bar.gold i { background: linear-gradient(90deg, #ffe066, #f2b01e); }
.bar.green i { background: linear-gradient(90deg, #8ce99a, #2f9e44); }
.bar.purple i { background: linear-gradient(90deg, #d0bfff, #7048e8); }
.bar.red i { background: linear-gradient(90deg, #ffa8a8, #e03131); }
.bar.blue i { background: linear-gradient(90deg, #a5d8ff, #1c7ed6); }
.portrait { display: block; width: 110px; height: 120px; margin: 0 auto; }
.portrait.sm { width: 78px; height: 88px; margin: 0; flex: none; background: radial-gradient(circle at 50% 85%, #dfeee0 0, #dfeee0 45%, transparent 46%); }
.p-head { display: flex; gap: 12px; align-items: center; }
.p-info { flex: 1; min-width: 0; }
.p-info h3 { margin: 0; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #eef1f6; }
.chip.blue { background: #dbe7ff; color: #133f8f; } .chip.red { background: #ffe3e3; color: #a51111; } .chip.pink { background: #ffe0ef; } .chip.gray { background: #eceef2; color: #555; }
.facts { background: #fff; border-radius: 14px; padding: 4px 12px 8px; border: 1px solid var(--line); margin-top: 10px; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0 2px; }
.need { font-size: 12px; padding: 4px 6px; border-radius: 8px; background: #f3f5f9; }
.need.n3 { background: #ffe8cc; } .need.n2 { background: #fff3bf; }
.pols { margin-top: 6px; display: grid; gap: 4px; }
.pol { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin: 4px 0; line-height: 1.45; }
.pol.active { border-color: #b2f2bb; background: #f4fff6; } .pol.pending { border-color: #ffe066; } .pol.cancelled, .pol.lapsed, .pol.declined { opacity: .7; }
.plans { display: grid; gap: 8px; }
.btn.plan.on { background: #eaf2ff; color: var(--ink); border: 2px solid var(--blue); }
.btn.plan.on .btn-s { color: var(--muted); }
.chance { margin: 10px 0; padding: 10px; border-radius: 12px; background: #fff; text-align: center; font-weight: 700; border: 1px solid var(--line); }
details.dark { margin: 10px 0; background: #2a2233; color: #f1e9ff; border-radius: 14px; padding: 8px 12px; }
details.dark summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
details.dark p.warn { background: #3b2f45; color: #ffd8a8; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; font-size: 14px; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; }
.place-time { font-size: 12.5px; background: #fff; border-radius: 10px; padding: 6px 10px; border: 1px solid var(--line); }
.contact { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 9px 12px; margin: 6px 0; font: inherit; cursor: pointer; }
.contact b { display: block; font-size: 14.5px; }
.contact small { display: block; font-size: 12px; }
.msg { font-size: 13px; line-height: 1.5; padding: 8px 10px; background: #fff; border-radius: 10px; margin: 5px 0; border-left: 4px solid #74c0fc; }
.msg.good, .msg.money { border-left-color: #51cf66; } .msg.bad { border-left-color: #ff6b6b; } .msg.warn { border-left-color: #ffa94d; } .msg.quest { border-left-color: #ffd43b; }
.stock { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 10px 12px; margin: 8px 0; }
.st-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.st-top > div:first-child { min-width: 0; flex: 1; }
.spark { width: 90px; height: 28px; flex: none; }
.st-p { font-weight: 700; font-size: 13px; white-space: nowrap; } .st-p.up { color: var(--good); } .st-p.down { color: var(--bad); }
.stock .row-btns { margin-top: 8px; } .stock .row-btns .btn { flex: 1 1 70px; min-height: 38px; padding: 6px 8px; font-size: 13px; }
.tiers { display: flex; flex-wrap: wrap; gap: 4px; } .tiers span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: #eef1f6; } .tiers span.on { background: #d3f9d8; color: #2b8a3e; font-weight: 700; }
.quest { padding: 9px 10px; background: #fff; border-radius: 10px; margin: 5px 0; font-size: 14px; border: 1px solid var(--line); } .quest.done { color: var(--muted); background: #f4fbf6; }
.rank, .lotto-res { padding: 8px 10px; background: #fff; border-radius: 10px; margin: 5px 0; font-size: 13.5px; border: 1px solid var(--line); }
.q-n { font-size: 13px; color: var(--muted); } h3.q { font-size: 17px; line-height: 1.55; margin: 10px 0; }
.exam-res { font-size: 22px; font-weight: 800; text-align: center; padding: 14px; border-radius: 14px; } .exam-res.pass { background: #d3f9d8; color: #2b8a3e; } .exam-res.fail { background: #ffe3e3; color: #c92a2a; }
.review div { font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); line-height: 1.45; } .review .bad { color: #a51111; }
.celebrate { position: fixed; inset: 0; z-index: 20; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 40%, rgba(255, 214, 102, .55), rgba(18, 30, 70, .92) 60%); animation: fade .3s; }
.celebrate .cel-i { font-size: 84px; animation: pop .6s ease-out; }
.celebrate h3 { margin: 0; font-size: 26px; } .celebrate p { max-width: 460px; line-height: 1.6; margin: 0 0 10px; }
.celebrate .btn { width: auto; min-width: 200px; }
@keyframes pop { 0% { transform: scale(.2) rotate(-20deg); } 70% { transform: scale(1.2); } }

/* ---------- ปรับตามอุปกรณ์ ---------- */
@media (max-width: 380px) { .clock { min-width: 80px; } .dock button { width: 64px; } .hud-top b { font-size: 15px; } .ava-btn, .ava-btn canvas { width: 46px; } }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; max-height: 84vh; } .sheet.tall { height: 80vh; } .actions { grid-template-columns: 1fr 1fr; } .dock button { width: 86px; } }
@media (orientation: landscape) and (max-height: 500px) {
  .hud-row { max-width: 640px; } .quest-pill { margin: 4px 0 0; max-width: 420px; }
  .dock { left: auto; right: calc(8px + var(--sar)); transform: none; top: 50%; bottom: auto; flex-direction: column; translate: 0 -50%; }
  .dock button { width: 62px; height: 50px; }
  .toasts { top: calc(80px + var(--sat)); }
  .sheet { max-height: 94vh; } .sheet.tall { height: 94vh; } .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; }
  .title-art { height: 80px; }
}

/* ---------- เนื้อเรื่อง ---------- */
.clock-top { display: flex; align-items: center; gap: 4px; } .wx { font-size: 16px; line-height: 1; }
.sheet.cutscene { background: linear-gradient(180deg, #fdf7ec, #f4f6fb); }
.scene { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.06); animation: tin .25s; }
.scene.j { border-color: #ffc9c9; } .scene.may { border-color: #d0bfff; } .scene.news { border-color: #ffd8a8; background: #fffaf2; } .scene.narr { background: #f8f6ff; }
.scene-icon { font-size: 46px; width: 78px; text-align: center; flex: none; }
.scene-t { flex: 1; min-width: 0; } .scene-t b { font-size: 13px; color: var(--muted); } .scene-t p { margin: 4px 0 0; font-size: 16px; line-height: 1.7; }
.scene-n { text-align: right; font-size: 12px; color: var(--muted); margin: 6px 4px; }
.btn.choice { border: 2px solid #c5d6ff; background: #f5f8ff; }
.say.result { background: #fffbea; border-color: #ffe08a; }
.chapter { font-size: 18px; font-weight: 800; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, #1e5fd0, #7048e8); color: #fff; margin: 6px 0; }
.open-state { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; margin: 8px 0 2px; } .open-state.on { background: #ebfbee; color: #2b8a3e; } .open-state.off { background: #f1f3f5; color: #868e96; }
.msg { white-space: pre-line; }
.admit-head { font-size: 15px; font-weight: 800; color: #c92a2a; background: #fff0f0; border-radius: 12px; padding: 8px 12px; }
.admit-res { font-weight: 800; font-size: 15px; padding: 12px; border-radius: 12px; margin: 10px 0; text-align: center; } .admit-res.ok { background: #d3f9d8; color: #2b8a3e; } .admit-res.bad { background: #ffe3e3; color: #c92a2a; }
.contact.urgent { border-color: #ffa8a8; background: #fff5f5; }
.rank-card { background: linear-gradient(120deg, #1e5fd0, #7048e8); color: #fff; border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.rank-card .rank-id { font-size: 30px; font-weight: 800; letter-spacing: 1px; } .rank-card small { opacity: .9; }
