:root {
  --bg: #0b1020; --surface: #141b33; --surface2: #1c2547; --border: #2a3563; --text: #eef1fb; --muted: #9aa5c8;
  --saffron: #ff9933; --gold: #ffc94a; --good: #4ade80; --bad: #f87171; --sea: #18b5b0;
  --felt1: #2b4a2a; --felt2: #16291a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
body { min-height: 100vh; min-height: 100dvh; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.screen { max-width: 1280px; margin: 0 auto; padding: 0 16px env(safe-area-inset-bottom); }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.back { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.iconbtn { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 36px; font-size: 18px; }
.gtitle { flex: 1; text-align: center; font-weight: 800; letter-spacing: .5px; color: var(--saffron); }
.gtitle small { color: var(--muted); font-weight: 600; margin-left: 6px; }

/* setup */
.hero { display: flex; gap: 14px; align-items: flex-end; margin: 6px 0 14px; }
.hero-text { flex: 1; }
.kicker { color: var(--saffron); font-weight: 800; letter-spacing: 3px; font-size: 12px; margin: 0; }
h1 { font-size: 40px; margin: 2px 0; line-height: 1.05; }
h1 .mr { display: block; font-size: 26px; color: var(--saffron); }
.tag { color: var(--gold); font-weight: 700; margin: 6px 0; }
.sub { color: var(--muted); margin: 6px 0 0; }
.coach { width: 120px; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin: 0 0 14px; }
.card h2 { margin: 0 0 10px; font-size: 18px; }
.prow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.prow .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.prow input { flex: 1; min-width: 0; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex: none; }
.seg button { background: transparent; border: 0; padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--saffron); color: #1a1000; }
.x { background: transparent; border: 0; color: var(--muted); font-size: 18px; width: 28px; }
.row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.row label { color: var(--muted); font-weight: 600; }
.row select { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 9px; }
.primary { width: 100%; background: var(--saffron); color: #1a1000; border: 0; border-radius: 12px; padding: 13px; font-weight: 800; font-size: 16px; }
.primary:disabled { opacity: .45; }
.ghost { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 11px; font-weight: 700; margin-top: 8px; }
.danger { color: var(--bad); }
.rules summary { font-weight: 800; cursor: pointer; }
.rules-body p, .rules-body li { color: var(--muted); }
.rules-body b { color: var(--text); }

/* players strip */
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px 10px; min-width: 112px; font-size: 12px; }
.chip.on { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron) inset; }
.chip.out { opacity: .4; }
.chip .n { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip .n i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip .t { color: var(--muted); }
.chip .c { color: var(--gold); font-weight: 800; }

/* board: square, photo tiles */
.gamebody { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gamebody.wide { flex-direction: row; align-items: flex-start; justify-content: center; }
#board-wrap { display: flex; justify-content: center; }
#board { position: relative; background: #1a1206; border: 3px solid #6b4a1e; border-radius: 10px; box-shadow: 0 10px 30px #0009; }
.tile { position: absolute; background: var(--surface2) center/cover no-repeat; border: 1px solid #0b1020; overflow: hidden; cursor: pointer; line-height: 1.05; }
.tile.fort::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #000c); pointer-events: none; }
.tile .band { position: absolute; z-index: 1; }
.tile[data-side="0"] .band { top: 0; left: 0; right: 0; height: 18%; }
.tile[data-side="1"] .band { top: 0; bottom: 0; right: 0; width: 18%; }
.tile[data-side="2"] .band { bottom: 0; left: 0; right: 0; height: 18%; }
.tile[data-side="3"] .band { top: 0; bottom: 0; left: 0; width: 18%; }
.tile .nm { position: absolute; z-index: 2; left: 2px; right: 2px; bottom: 2px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1em; }
.tile:not([data-big="1"]).fort .nm { display: none; }
.tile .ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9em; z-index: 1; }
.tile.card, .tile.corner { background-color: #24170a; }
.tile.card .nm, .tile.corner .nm { color: var(--gold); }
.tile.corner .ic { font-size: 2.6em; }
.tile.corner::after { content: ""; position: absolute; inset: 0; background: #0006; }
.tile.corner .ic, .tile.corner .nm { z-index: 3; }
.tile .star { position: absolute; z-index: 3; top: 1px; right: 2px; color: var(--gold); text-shadow: 0 0 3px #000; font-size: 1.15em; }
.tile .flag { position: absolute; z-index: 3; top: 2px; left: 2px; width: 32%; max-width: 12px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #fff; }
.tile.owned { box-shadow: inset 0 0 0 3px var(--own); }
.tile .arm { position: absolute; z-index: 3; left: 0; right: 0; top: 40%; text-align: center; color: var(--gold); font-size: .9em; text-shadow: 0 0 3px #000; }
.tile.here { outline: 3px solid #fff; outline-offset: -3px; z-index: 4; box-shadow: 0 0 16px var(--saffron); }
.token { position: absolute; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; transform: translate(-50%, -50%); transition: left .12s linear, top .12s linear; z-index: 6; box-shadow: 0 1px 4px #000a; pointer-events: none; }
.token.me { width: 17px; height: 17px; z-index: 7; }
#center { position: absolute; background: radial-gradient(ellipse at 50% 35%, var(--felt1), var(--felt2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 4%; text-align: center; overflow: hidden; }
#spot { position: absolute; inset: 0; background: center/cover no-repeat; opacity: .55; pointer-events: none; }
#center > *:not(#spot) { position: relative; }
#goal { font-size: 12px; color: #e8f2e3; width: min(320px, 90%); }
#goal b { color: var(--gold); }
.bar { height: 7px; background: #0008; border-radius: 99px; overflow: hidden; margin: 3px 0; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
#who { font-weight: 800; font-size: 17px; }
#who small { display: block; color: #cfe3c8; font-weight: 600; font-size: 12px; }
#dice { display: flex; gap: 8px; min-height: 44px; }
.die { width: 44px; height: 44px; background: #fff; color: #222; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; box-shadow: 0 3px 8px #0007; }
.die.roll { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-18deg) scale(1.1); } 75% { transform: rotate(18deg) scale(1.1); } }
#actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#actions button { background: var(--saffron); color: #1a1000; border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 800; font-size: 15px; }
#actions button.alt { background: #0007; color: var(--text); border: 1px solid #fff3; }
#feed { font-size: 12px; color: #d9e6d3; max-width: 100%; }
#feed div { margin: 2px 0; }
#feed .good { color: #a7f3c0; } #feed .bad { color: #fecaca; } #feed .big { color: var(--gold); font-weight: 700; } #feed .card { color: #c7d2fe; }

/* modal */
.modal { position: fixed; inset: 0; background: #000a; display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 20px 20px 0 0; width: 100%; max-width: 620px; max-height: 92vh; overflow: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .modal { align-items: center; } .sheet { border-radius: 20px; } }
.sheet h3 { margin: 0 0 4px; font-size: 21px; }
.sheet .mr { color: var(--saffron); font-weight: 700; }
.sheet .meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.sheet .fact { background: #1b2a1c; border: 1px solid #2f5d34; color: #d6f5d9; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.sheet .fact b { color: #a7f3c0; }
.sheet .card-text { background: linear-gradient(135deg, #3b2a0a, #1f1606); border: 1px solid var(--saffron); border-radius: 14px; padding: 16px; font-size: 16px; margin: 10px 0; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btns button { flex: 1 1 140px; border-radius: 12px; padding: 12px; font-weight: 800; border: 1px solid var(--border); background: var(--surface2); }
.btns button.go { background: var(--saffron); color: #1a1000; border: 0; }
.btns button:disabled { opacity: .4; }
.q { font-size: 17px; font-weight: 700; margin: 8px 0 12px; }
.opts { display: grid; gap: 8px; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { text-align: left; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-weight: 600; }
.opt b { color: var(--saffron); margin-right: 6px; }
.opt.gone { opacity: .2; pointer-events: none; }
.opt.right { background: #14532d; border-color: var(--good); }
.opt.wrong { background: #5f1d1d; border-color: var(--bad); }
.life { display: flex; gap: 8px; margin: 12px 0 0; }
.life button { flex: 1; background: transparent; border: 1px dashed var(--border); border-radius: 10px; padding: 8px 4px; font-size: 13px; font-weight: 700; }
.life button:disabled { opacity: .3; }
.hint { display: flex; gap: 10px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 8px 10px; margin-top: 10px; font-size: 14px; }
.hint img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 50%; }
.progress { color: var(--gold); font-weight: 800; font-size: 13px; }
.armrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.armrow .lv { color: var(--gold); font-weight: 800; }
.armrow button { border-radius: 10px; padding: 8px 10px; font-weight: 800; border: 1px solid var(--border); background: var(--surface2); font-size: 13px; }
.armrow button.go { background: var(--saffron); color: #1a1000; border: 0; }
.fortlist .f { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); cursor: pointer; }
.fortlist .f i { width: 10px; height: 26px; border-radius: 4px; flex: none; }
.fortlist .f .grow { flex: 1; }
.fortlist .f small { color: var(--muted); display: block; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.skills span { background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.toast { font-size: 13px; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--saffron); border-radius: 999px; padding: 10px 16px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; }
.win { text-align: center; }
.win .big { font-size: 34px; font-weight: 900; color: var(--saffron); margin: 6px 0; }
.rank { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); }

/* forts panel */
#side { width: 100%; max-width: 620px; }
.gamebody.wide #side { width: 340px; max-height: calc(100vh - 150px); overflow: auto; }
#side h3 { margin: 0 0 8px; font-size: 16px; color: var(--saffron); }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.pcard.on { border-color: var(--saffron); }
.pcard.out { opacity: .45; }
.pcard .ph { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pcard .ph i { width: 11px; height: 11px; border-radius: 50%; }
.pcard .ph span { color: var(--muted); }
.pcard .ph .c { margin-left: auto; color: var(--gold); font-weight: 800; }
.pcard .need { font-size: 12px; color: var(--muted); }
.pcard .need b { color: var(--gold); }
.forts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fchip { display: flex; align-items: center; gap: 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px 2px 2px; font-size: 11px; font-weight: 700; }
.fchip.u { border-color: var(--gold); color: var(--gold); }
.fchip .th, .fortlist .th { width: 24px; height: 24px; border-radius: 50%; background: center/cover; flex: none; }
.fortlist .th { width: 40px; height: 40px; border-radius: 8px; }
.none { color: var(--muted); font-size: 12px; }
/* photos in sheets */
.photo { margin: -18px -16px 10px; position: relative; }
.photo img { width: 100%; max-height: 240px; object-fit: cover; display: block; border-radius: 20px 20px 0 0; }
.photo.sm img { max-height: 130px; }
.photo figcaption { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fffc; background: #0008; padding: 2px 6px; border-radius: 6px; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.vs > div { flex: 1; text-align: center; background: var(--surface2); border-radius: 12px; padding: 6px; }
.vs img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.vs b { display: block; } .vs small { color: var(--muted); }
.vs > span { font-weight: 900; color: var(--saffron); font-size: 20px; }
/* war: two halves, the top one turned round when two people share the device */
.modal.warmode { align-items: stretch; }
.modal.warmode .sheet { max-width: 760px; height: 100%; max-height: 100vh; border-radius: 0; padding: 10px 12px; display: flex; }
.war { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.war .half { flex: 1; background: var(--surface2); border: 2px solid var(--pc); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.war .half.rot { transform: rotate(180deg); }
.war .hh { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.war .hh i { width: 12px; height: 12px; border-radius: 50%; }
.war .pts { margin-left: auto; font-size: 26px; font-weight: 900; color: var(--gold); }
.war .st { font-size: 12px; color: var(--muted); min-width: 70px; text-align: right; }
.war .good { color: var(--good); font-weight: 800; } .war .bad { color: var(--bad); font-weight: 800; }
.war .wq { font-weight: 700; font-size: 15px; }
.war .opts { grid-template-columns: 1fr 1fr; }
.war .opt { padding: 10px; font-size: 14px; }
.war .opt.mine { box-shadow: 0 0 0 3px var(--gold); }
.wmid { text-align: center; color: var(--saffron); font-weight: 800; font-size: 13px; }
.wfact { color: #d6f5d9; font-weight: 500; font-size: 12px; margin-top: 4px; }

@media (max-width: 560px) {
  #center { gap: 5px; padding: 3%; }
  #who { font-size: 15px; } #goal { font-size: 11px; }
  .die { width: 36px; height: 36px; font-size: 21px; } #dice { min-height: 36px; }
  #actions button { padding: 8px 14px; font-size: 14px; }
  .photo img { max-height: 190px; }
}

/* ---- v3: names on tiles, kavdya, emblems, dates, sardars, mandil ---- */
.tile .nm { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2px 2px 3px; background: linear-gradient(transparent, #000d 35%); text-align: center; white-space: normal; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.tile .nm b { font-weight: 900; color: #fff; font-size: 1em; line-height: 1.05; text-shadow: 0 1px 2px #000, 0 0 4px #000; word-break: break-word; }
.tile .nm i { font-style: normal; font-size: .75em; color: var(--gold); font-weight: 800; }
.tile:not([data-big="1"]).fort .nm { display: flex; }
.tile[data-vert="1"] .nm { top: 0; bottom: 0; left: auto; width: 62%; right: 0; background: linear-gradient(90deg, transparent, #000c 30%); justify-content: center; }
.tile[data-vert="1"] .nm b { writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; font-size: 1.05em; letter-spacing: .3px; }
.tile[data-side="1"] .nm, .tile[data-side="3"] .nm { top: 0; justify-content: center; background: #0009; }
.tile.corner .nm b { color: var(--gold); }
.tile .flag { width: auto; height: auto; max-width: none; aspect-ratio: auto; font-size: .8em; padding: 1px 2px; border-radius: 6px; border: 1px solid #fff; line-height: 1; }
.token { width: var(--tok, 18px); height: var(--tok, 18px); display: flex; align-items: center; justify-content: center; font-size: calc(var(--tok, 18px) * .62); line-height: 1; }
.token.me { width: calc(var(--tok, 18px) * 1.25); height: calc(var(--tok, 18px) * 1.25); box-shadow: 0 0 0 2px var(--gold), 0 2px 6px #000; }
i.em { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; vertical-align: middle; }
.chip .n i.em { width: 18px; height: 18px; font-size: 11px; }
select.emb { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 7px 4px; font-size: 18px; }
.emblems { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; }
.theme { display: block; width: 100%; text-align: left; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.theme.on { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron) inset; }
.theme small { display: block; color: var(--muted); margin-top: 3px; }
.theme .mr { color: var(--saffron); font-weight: 700; }
/* kavdya */
#dice { min-height: 64px; align-items: center; }
.kavdi { display: inline-flex; gap: 10px; perspective: 500px; }
.shell { width: 30px; height: 40px; display: inline-block; }
.cw { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .3s; }
.shell.is-d .cw { transform: rotateX(180deg); }
.face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fw { background: radial-gradient(ellipse at 40% 35%, #fffdf3, #eadfc4 60%, #c9b994); box-shadow: inset 0 -3px 6px #0003, 0 2px 4px #0006; }
.fw::after { content: ""; position: absolute; left: 44%; right: 44%; top: 14%; bottom: 14%; background: #3a2a1a; border-radius: 4px; box-shadow: -3px 0 0 -1px #6d5636, 3px 0 0 -1px #6d5636; background-image: repeating-linear-gradient(0deg, #3a2a1a 0 3px, #8a7350 3px 4px); }
.fd { transform: rotateX(180deg); background: radial-gradient(ellipse at 45% 35%, #a7744a, #6a3f1f 55%, #3b210e); box-shadow: inset 0 -4px 8px #0006, 0 2px 4px #0006; }
.fd::after { content: ""; position: absolute; inset: 18% 22%; border-radius: 50%; background: radial-gradient(circle, #d9a46e66 1px, transparent 2px) 0 0/6px 6px; }
.kavdi.flying .shell { animation: toss var(--dur) cubic-bezier(.3,.7,.4,1) var(--d) both; }
.kavdi.flying .cw { animation: spin var(--dur) cubic-bezier(.2,.6,.3,1) var(--d) both; }
@keyframes toss { 0% { transform: translateY(0) rotateZ(0); } 40% { transform: translateY(calc(var(--h) * -1)) rotateZ(calc(var(--rz) / 2)); } 70% { transform: translateY(0) rotateZ(var(--rz)); } 82% { transform: translateY(-8px) rotateZ(var(--rz)); } 100% { transform: translateY(0) rotateZ(var(--rz)); } }
@keyframes spin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(var(--rx)) rotateY(360deg); } }
.kpts { font-size: 26px; font-weight: 900; color: var(--gold); margin-left: 10px; text-shadow: 0 2px 4px #000; }
.force { display: flex; align-items: center; gap: 12px; }
.force .meter { width: 18px; height: 70px; border-radius: 9px; background: #0009; border: 2px solid #fff6; display: flex; align-items: flex-end; overflow: hidden; }
.force .meter i { display: block; width: 100%; background: linear-gradient(0deg, #4ade80, #ffd54f 60%, #ef4444); border-radius: 7px; }
.force .throw { background: var(--saffron); color: #1a1000; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 900; font-size: 16px; animation: pulse 1s infinite; }
.force small { color: #e8f2e3; font-size: 11px; max-width: 80px; }
@keyframes pulse { 50% { transform: scale(1.06); } }
/* sardars behind the centre */
#center { background-image: linear-gradient(#16291acc, #16291add), url(/forts/sardar-shivaji.jpg), radial-gradient(ellipse at 50% 35%, var(--felt1), var(--felt2)); background-size: cover, auto 92%, cover; background-position: center, center, center; background-repeat: no-repeat; }
#sardars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto 1fr auto; align-content: space-between; padding: 6px; pointer-events: none; }
#sardars .sd { pointer-events: auto; justify-self: center; width: clamp(34px, 9%, 62px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #c9a227; background: #2a1d0b center/cover; opacity: .55; color: #f5e6c4; font-weight: 900; font-size: 11px; position: relative; padding: 0; }
#sardars .sd:nth-child(n+6) { grid-row: 3; }
#sardars .sd:hover { opacity: 1; }
#sardars .sd em { position: absolute; left: 50%; top: 102%; transform: translateX(-50%); font-style: normal; font-size: 9px; white-space: nowrap; color: #f5e6c4; text-shadow: 0 1px 2px #000; }
#center > #who, #center > #goal, #center > #dice, #center > #actions, #center > #feed, #center > #dyk { z-index: 2; }
#dyk { font-size: 12px; color: #f5e6c4; max-width: 92%; background: #0007; border-radius: 10px; padding: 6px 10px; }
#dyk b { color: var(--gold); }
/* dates */
.gamebody.three #dates { width: 230px; max-height: calc(100vh - 150px); overflow: auto; }
.dates h4 { margin: 0 0 8px; color: var(--saffron); font-size: 15px; }
.dt { font-size: 12px; padding: 5px 8px; border-left: 4px solid; margin-bottom: 5px; border-radius: 0 8px 8px 0; opacity: .55; }
.dt span { display: block; font-weight: 800; font-size: 11px; }
.dt.g { border-color: #22c55e; background: #14532d55; } .dt.g span { color: #4ade80; }
.dt.r { border-color: #ef4444; background: #7f1d1d55; } .dt.r span { color: #f87171; }
.dt.past { opacity: 1; }
.dates .lg { font-size: 11px; color: var(--muted); } .dates .lg .g { color: #4ade80; } .dates .lg .r { color: #f87171; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; font-weight: 800; font-size: 13px; color: var(--muted); }
.tabs button.on { background: var(--saffron); color: #1a1000; border-color: var(--saffron); }
.sdrow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); cursor: pointer; }
.sdpic { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid #c9a227; background: #2a1d0b center/cover; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #f5e6c4; }
.sdrow small { display: block; color: var(--muted); font-size: 12px; }
.sdrow .mr { color: var(--saffron); font-size: 12px; }
.mandil { width: 160px; display: block; margin: 0 auto; filter: drop-shadow(0 6px 12px #000a); }
@media (max-width: 560px) { #sardars { display: none; } #dyk { display: none; } .shell { width: 24px; height: 32px; } .kavdi { gap: 7px; } .force .meter { height: 54px; } }

.tile .nm b { word-break: normal; overflow-wrap: normal; hyphens: manual; }
.tile .arm { top: 22%; bottom: auto; font-size: .8em; }
#sardars { display: flex; justify-content: center; gap: 6px; align-items: flex-start; flex-wrap: nowrap; inset: 6px 6px auto 6px; padding: 0; }
#sardars .sd { width: clamp(28px, 8%, 54px); flex: none; opacity: .6; }
#center { padding-top: max(4%, 64px); }
#feed div { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile[data-vert="1"] .star { top: auto; bottom: 1px; left: 2px; right: auto; }
.tile[data-vert="1"] .nm { width: 70%; }
.tile .arm { top: 2px; left: 22%; right: 22%; font-size: .75em; }
