/* v615 account card (owner 2026-11-28: "ออกแบบใหม่ให้สวย บอกโหมด บอกงาน"). system.md tokens.
   Three zones, top to bottom: the scene (game map picture, mode, where, live state), the job (the one focal number),
   who it is (small). Colour comes from the game picture; the panel stays quiet. */
.account-card.idc { display: flex; flex-direction: column; gap: 12px; padding: 0 0 14px; border: 1px solid rgb(152 140 203 / 20%); border-radius: 16px;
  background: linear-gradient(165deg, rgb(27 30 54 / 94%), rgb(14 17 32 / 94%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); }
.account-card.idc::before { content: none; }
.account-card.idc > * { order: 5; }
.account-card.idc:hover, .account-card.idc:focus-within { border-color: rgb(152 140 203 / 42%); }

/* 1 · scene */
.account-card.idc .idc-scene { order: 1; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px;
  min-height: 104px; margin: 0; padding: 12px 14px; overflow: hidden; border: 0; border-radius: 15px 15px 0 0; background: #0b0e1d; }
.idc-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idc-scene::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(8 11 22 / 0%) 0%, rgb(8 11 22 / 30%) 45%, rgb(17 20 38 / 96%) 100%); content: ""; }
.idc-scene.is-stale .idc-art { filter: grayscale(1) brightness(.5); }
.idc-copy { display: grid; gap: 1px; min-width: 0; }
.idc-mode { overflow: hidden; color: #c6a8ff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.idc-place { overflow: hidden; color: #f0edff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; text-overflow: ellipsis; text-shadow: 0 1px 10px rgb(0 0 0 / 70%); white-space: nowrap; }
.idc-wave { padding: 3px 8px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 8px; background: rgb(8 11 22 / 62%); color: #f0edff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-card.idc .idc-scene .card-activity-state { position: absolute; top: 10px; right: 10px; min-height: 24px; gap: 6px; padding: 0 9px; border: 1px solid rgb(114 223 178 / 34%); border-radius: 99px;
  background: rgb(8 11 22 / 70%); color: #72dfb2; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.account-card.idc .idc-scene[data-state="lobby"] .card-activity-state { border-color: rgb(127 216 255 / 34%); color: #7fd8ff; }
.account-card.idc .idc-scene[data-state="results"] .card-activity-state { border-color: rgb(198 168 255 / 34%); color: #c6a8ff; }
.account-card.idc .idc-scene[data-state="unknown"] .card-activity-state { border-color: rgb(255 255 255 / 14%); color: #b7b6cc; }
.account-card.idc .idc-scene.is-stale .card-activity-state { border-color: rgb(255 130 147 / 34%); background: rgb(8 11 22 / 70%); color: #ff8293; }
.account-card.idc .idc-scene.is-stale .card-activity-state i { box-shadow: none; }

/* 2 · the job */
.account-card.idc .farm-status { order: 2; margin: 0 14px; }
.account-card.idc .home-farm { order: 3; display: grid; gap: 12px; margin: 0 14px; }
.home-farm-job { display: grid; gap: 6px; min-width: 0; }
.account-card.idc .home-farm-top { align-items: baseline; gap: 10px; font-size: 15px; }
.account-card.idc .home-farm-top strong { color: #f0edff; font-size: 15px; font-weight: 800; }
.account-card.idc .home-farm-top .farm-icon { width: 20px; height: 20px; align-self: center; }
.home-farm-pct { flex: none; color: #7fd8ff; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.account-card.idc .home-farm .farm-bar { height: 6px; box-shadow: none; background: rgb(255 255 255 / 7%); }
.account-card.idc .home-farm .farm-bar > span { background: linear-gradient(90deg, #8f7bff, #7fd8ff); box-shadow: 0 0 10px rgb(127 216 255 / 35%); }
.home-farm-pct.is-text { color: #c6a8ff; font-size: 13px; letter-spacing: 0; }
.home-farm-left { color: #8a8ea8; font-size: 11px; font-variant-numeric: tabular-nums; }
.home-farm-job.is-queued .home-farm-top strong { color: #b7b6cc; font-size: 12px; font-weight: 700; }
.home-farm-job.is-queued .home-farm-pct { color: #8a8ea8; font-size: 12px; }
.home-farm-job.is-queued .farm-bar { display: none; }
.home-farm-job.is-queued .farm-icon { width: 16px !important; height: 16px !important; }

/* 3 · who: big headshot, name, what the account holds, and the way in */
.account-card.idc .account-open { order: 4; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: auto; min-height: 0; margin: 0 14px; padding: 12px 0 0;
  border: 0; border-top: 1px solid rgb(255 255 255 / 6%); border-radius: 0; background: none; text-align: left; }
.account-card.idc .card-avatar { width: 52px; height: 52px; border-radius: 14px 14px 14px 5px; }
.account-card.idc .card-avatar::before, .account-card.idc .card-avatar::after { content: none; }
.account-card.idc .card-avatar .avatar-fallback { font-size: 18px; }
.account-card.idc .account-main-copy { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 6px 8px; min-width: 0; }
.account-card.idc .account-username { overflow: hidden; color: #f0edff; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-card.idc .account-level { padding: 0; border: 0; background: none; color: #8a8ea8; font-size: 11px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.account-card.idc .account-level b { color: #b7b6cc; font-variant-numeric: tabular-nums; }
.account-card.idc .account-card-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; border: 0; background: none; }
.account-card.idc .account-card-stats > .card-stat { display: flex; align-items: center; gap: 4px; min-width: 0; }
.account-card.idc .card-stat-icon { flex: none; width: 15px; height: 15px; border: 0; background: none; }
.account-card.idc .card-stat-icon img { width: 15px; height: 15px; object-fit: contain; }
.account-card.idc .card-stat-copy { display: block; min-width: 0; }
.account-card.idc .card-stat-copy b { color: #b7b6cc; font-size: 11px; font-weight: 700; }
.account-card.idc .card-stat-copy small { display: none; }
.idc-more { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid rgb(198 168 255 / 28%); border-radius: 10px; background: rgb(198 168 255 / 8%); color: #c6a8ff; font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: background-color 160ms, border-color 160ms; }
.idc-more::after { content: "›"; font-size: 15px; line-height: 1; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.account-card.idc:hover .idc-more { border-color: rgb(198 168 255 / 55%); background: rgb(198 168 255 / 16%); }
.account-card.idc:hover .idc-more::after { transform: translateX(2px); }
.account-card.idc .account-open:active .idc-more { transform: scale(.97); }
.account-card.idc .card-more { display: none; }
@media (prefers-reduced-motion: reduce) { .idc-more, .idc-more::after { transition: none; } }
/* the whole card opens the profile: the click layer sits above the scene */
.account-card.idc .card-hitarea { z-index: 3; }
.account-card.idc .account-open { z-index: 4; }
