/* CROWNFALL v0.8 — steel, gold & arcane */
:root{
  --black:#0C0C0E; --coal:#141417; --steel:#2A2C33; --steel-hi:#3D404B;
  --parch:#D9CBA8; --parch-dim:#9A9077;
  --gold:#E8C258; --gold-dim:#8A7433;
  --crimson:#D14B3C; --crimson-dim:#7A2C22;
  --arcane:#8E6BD1; --shock:#5BA8E8; --poison:#7FBF5A; --fire:#E8834B; --frost:#9AD6E8;
  --tile-l:#3A3D46; --tile-d:#26282F;
}
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; background:var(--black); color:var(--parch);
  font-family:Georgia,"Times New Roman",serif; overflow:hidden;
  -webkit-user-select:none; user-select:none; }
button{ font-family:inherit; color:inherit; background:var(--steel);
  border:1px solid var(--steel-hi); border-radius:8px; cursor:pointer; }
button:disabled{ opacity:.38; }

.screen{ display:none; height:100dvh; padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom); }
.screen.on{ display:flex; flex-direction:column; align-items:center; justify-content:center; }

/* ---- title ---- */
.game-title{ font-size:52px; letter-spacing:6px; font-weight:700; text-align:center; width:100%; }
.tagline{ text-align:center; width:100%; }
.game-title .accent{ color:var(--gold); }
.tagline{ color:var(--parch-dim); margin:6px 0 26px; font-style:italic; }
.menu-buttons{ display:flex; flex-direction:column; gap:12px; width:min(320px,86vw); }
.menu-buttons button{ padding:14px; font-size:16px; }
.menu-buttons button:first-child{ border-color:var(--gold); color:var(--gold); }
.foot{ position:absolute; bottom:calc(10px + env(safe-area-inset-bottom));
  color:var(--parch-dim); font-size:11px; }

/* ---- game column: every row a fixed height, pinned low, nothing ever shifts ---- */
:root{ --colw:min(96vw,440px); }
#screen-game.on{ justify-content:flex-end; gap:6px;
  padding-top:calc(env(safe-area-inset-top) + 4px);
  padding-bottom:calc(env(safe-area-inset-bottom) * 0.35 + 6px); }
.topbar{ width:var(--colw); height:30px; flex:0 0 auto; display:flex; align-items:center; gap:10px;
  font-size:14px; color:var(--parch-dim); }
.topbar .goldnum{ color:var(--gold); }
.menubtn{ margin-left:auto; padding:7px 14px; font-size:13px; }

.resrow{ width:var(--colw); height:32px; flex:0 0 auto; overflow:hidden; font-size:14px; letter-spacing:.4px;
  padding:7px 10px; border-radius:8px; background:var(--coal);
  border:1px solid var(--steel); color:var(--parch-dim); }
.resrow b{ color:var(--parch); }
.resrow.active{ border-color:var(--gold-dim); color:var(--parch); }
.resrow.foe{ border-color:var(--crimson-dim); }
.resrow.foe.active{ border-color:var(--crimson); }
.resrow .tok{ font-style:normal; color:var(--shock); margin-left:2px; }

/* ---- board ---- */
#board{ position:relative;  width:min(96vw, 440px, max(250px, calc(100dvh - 404px - env(safe-area-inset-top)))); flex:0 0 auto; aspect-ratio:1;
  display:grid; grid-template-columns:repeat(7,1fr); grid-template-rows:repeat(7,1fr);
  border:2px solid var(--steel-hi); border-radius:6px; overflow:hidden; }
.tile{ position:relative; }
.tile.light{ background:var(--tile-l); } .tile.dark{ background:var(--tile-d); }
.tile.home1{ box-shadow:inset 0 -3px 0 var(--gold-dim); }
.tile.home2{ box-shadow:inset 0 3px 0 var(--crimson-dim); }
.tile.ctrl{ box-shadow:inset 0 0 0 2px var(--arcane); }
.ctrlmark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:var(--arcane); opacity:.55; font-size:20px; }
.cachemark{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:var(--gold); font-size:26px;
  animation:chestspin 6s linear infinite, chestpulse 1.4s ease-in-out infinite; }
@keyframes chestspin{ from{ rotate:0deg; } to{ rotate:360deg; } }
@keyframes chestpulse{ 0%,100%{ opacity:.55; scale:.92; } 50%{ opacity:1; scale:1.12; } }

.piece{ position:absolute; inset:4% 6%; display:flex; align-items:center; justify-content:center;
  font-size:clamp(26px,8.6vw,41px); line-height:1; z-index:2; }
.piece.t-king{ font-size:clamp(30px,10vw,48px); }
.piece.p1{ color:var(--gold); text-shadow:0 2px 3px #000; }
.piece.p2{ color:var(--crimson); text-shadow:0 2px 3px #000; }
.piece.struct{ font-size:clamp(19px,6.2vw,29px); opacity:.95; }
.piece.ghost{ opacity:.45; filter:blur(.4px); }
.piece.building{ opacity:.55; }
.piece.selected{ filter:drop-shadow(0 0 6px var(--gold)); }
.hpbar{ position:absolute; left:8%; right:8%; bottom:3%; height:4px;
  background:#000a; border-radius:2px; overflow:hidden; }
.hpbar i{ display:block; height:100%; background:var(--poison); }
.hpbar i.mid{ background:var(--gold); } .hpbar i.low{ background:var(--crimson); }
.badges{ position:absolute; top:1%; right:3%; font-size:11px; letter-spacing:-1px; }

/* highlights — the way is shown in blue, flowing like the Chest */
.tile.hl-move::after{ content:""; position:absolute; inset:0; margin:auto;
  width:26%; height:26%; border-radius:50%;
  background:radial-gradient(circle, var(--shock) 0%, #5ba8e880 70%, transparent 72%);
  animation:flowdot 1.5s ease-in-out infinite; z-index:1; }
@keyframes flowdot{ 0%,100%{ opacity:.55; transform:scale(.85);} 50%{ opacity:1; transform:scale(1.12);} }
.tile.hl-atk::after{ content:""; position:absolute; inset:6%; border:2px solid var(--crimson);
  border-radius:6px; z-index:1; }
.tile.hl-buff::after{ content:""; position:absolute; inset:6%; border:2px solid var(--shock);
  border-radius:6px; z-index:1; }
.tile.hl-siege::after{ content:""; position:absolute; inset:6%; border:2px dashed var(--fire);
  border-radius:6px; z-index:1; }
.tile.hl-place::after{ content:""; position:absolute; inset:8%; border:2px dotted var(--gold);
  border-radius:8px; animation:flowdot 1.5s ease-in-out infinite; z-index:1; }

/* ---- unit info ---- */
.unitinfo{ width:var(--colw); height:56px; flex:0 0 auto; overflow-y:auto;
  font-size:13.5px; line-height:1.42;
  padding:7px 10px; border-radius:8px; background:var(--coal);
  border-left:3px solid var(--gold-dim); }
.unitinfo.enemy{ border-left-color:var(--crimson); }
.unitinfo .uname{ color:var(--gold); margin-right:8px; }
.unitinfo.enemy .uname{ color:var(--crimson); }
.unitinfo .ustats{ color:var(--parch); margin-right:8px; }
.unitinfo .ustatus{ color:var(--shock); display:block; }
.unitinfo .uspec{ color:var(--arcane); display:block; }
.unitinfo .udesc{ color:var(--parch-dim); font-style:italic; display:block; font-size:12.5px; }

.hidden{ display:none !important; }

/* ---- the Battle Log bar: one line at the very bottom, tap to unfurl UP ---- */
#screen-game{ position:relative; }
#log{ display:block; width:var(--colw); height:26px; flex:0 0 auto; overflow:hidden; font-size:12.5px; line-height:20px;
  color:var(--parch-dim); padding:3px 10px; background:var(--coal);
  border:1px solid var(--steel); border-radius:8px; cursor:pointer;
  white-space:nowrap; text-overflow:ellipsis; }
#log .logline{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#log .logline.latest{ color:var(--parch); }
#log.expanded{ position:absolute; left:50%; transform:translateX(-50%);
  bottom:var(--logbot, 8px); height:auto; z-index:60; white-space:normal;
  overflow-y:auto; background:var(--coal); border-color:var(--gold-dim);
  box-shadow:0 -8px 30px #000b; line-height:1.55; }
#log.expanded .logline{ white-space:normal; }
#log.full{ display:block; position:fixed; left:50%; transform:translateX(-50%);
  width:var(--colw); top:max(10dvh, calc(env(safe-area-inset-top) + 12px)); height:auto; max-height:70dvh; overflow-y:auto; z-index:70;
  bottom:auto; background:var(--coal); border-color:var(--gold-dim);
  box-shadow:0 10px 40px #000d; line-height:1.55; white-space:normal; }
#log.full .logline{ white-space:normal; }

/* ---- action rows: buttons you can actually press ---- */
.actrow{ width:var(--colw); display:flex; gap:8px; align-items:center; }
.actrow.deploy{ height:50px; flex:0 0 auto; }
.actrow.wrap{ flex-wrap:wrap; height:86px; flex:0 0 auto;
  overflow-y:auto; align-items:flex-start; align-content:flex-start; padding-top:2px; }
.actrow.endrow{ height:46px; flex:0 0 auto; }
.abtn{ min-height:44px; padding:8px 14px; font-size:14px; }
.abtn.armed{ border-color:var(--gold); color:var(--gold); }
.abtn.buffbtn{ border-color:var(--shock); }
.abtn.buffbtn.armed{ color:var(--shock); }
.abtn.danger{ border-color:var(--crimson-dim); }
.abtn.endbtn{ margin-left:auto; border-color:var(--gold-dim); color:var(--gold); }
.abtn.endbtn.push{ background:var(--gold-dim); color:var(--black); animation:pulse 1.6s infinite; }
.abtn.tokenbtn{ border-color:var(--shock); color:var(--shock); }
@keyframes pulse{ 0%,100%{ filter:brightness(1);} 50%{ filter:brightness(1.25);} }
.selicon{ width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  font-size:30px; background:var(--coal); border:1px solid var(--steel-hi); border-radius:8px; }
.selicon.p1{ color:var(--gold); } .selicon.p2{ color:var(--crimson); }
.hint{ font-size:13.5px; color:var(--parch-dim); font-style:italic; }
.subbar{ display:flex; flex-wrap:wrap; gap:8px; width:100%; }
.dbtn{ flex:0 0 auto; width:52px; max-width:52px; min-height:48px;
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; padding:4px 0; }
.dbtn .g{ font-size:22px; color:var(--parch); }
.dbtn .c{ font-size:11px; color:var(--gold); }
.dbtn.armed{ border-color:var(--gold); }
.float{ position:absolute; left:0; right:0; top:6%; text-align:center; z-index:5;
  font-size:13px; font-weight:bold; animation:rise .95s ease-out forwards; pointer-events:none; }
@keyframes rise{ from{ opacity:1; transform:translateY(0);} to{ opacity:0; transform:translateY(-16px);} }
.float.dmg{ color:var(--crimson); } .float.heal{ color:var(--poison); }
.float.buff{ color:var(--shock); } .float.kill{ color:var(--fire); font-size:17px; }

/* ---- toast ---- */
#toast{ position:fixed; left:50%; bottom:22dvh; transform:translateX(-50%) translateY(8px);
  max-width:88vw; padding:11px 16px; background:var(--steel); color:var(--parch);
  border:1px solid var(--arcane); border-radius:10px; font-size:14px; text-align:center;
  opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:80; }
#toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---- overlays ---- */
.overlay{ display:none; position:fixed; inset:0; background:#000a; z-index:50;
  align-items:center; justify-content:center; padding:14px; }
.overlay.on{ display:flex; }
.overlay.solid{ background:var(--black); }
.panel{ width:min(94vw,480px); max-height:88dvh; overflow-y:auto; background:var(--coal);
  border:1px solid var(--steel-hi); border-radius:12px; padding:18px; }
.panel.tall{ height:min(84dvh,760px); display:flex; flex-direction:column; }
.panel.narrow{ width:min(86vw,320px); }
.panel.center{ text-align:center; }
.panel h2{ color:var(--gold); letter-spacing:2px; margin-bottom:10px; }
.panel p{ line-height:1.5; margin-bottom:10px; }
.panel button{ padding:12px 16px; font-size:14.5px; margin:4px 0; width:100%; }
.prewrap{ white-space:pre-wrap; }
.btnrow{ display:flex; gap:10px; margin-top:auto; padding-top:10px; }
.btnrow button{ width:auto; flex:1; }
.primary{ border-color:var(--gold-dim); color:var(--gold); }
.danger{ border-color:var(--crimson-dim); color:var(--crimson); }
.ghost{ background:transparent; }
.intel{ color:var(--parch-dim); font-size:13px; }

#brief-options{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.foeopt{ text-align:left; padding:10px 12px; }
.foeopt b{ color:var(--parch); display:block; margin-bottom:3px; }
.foeopt span{ color:var(--parch-dim); font-size:12.5px; line-height:1.4; display:block; }
.foeopt.armed{ border-color:var(--gold); }
.foeopt.armed b{ color:var(--gold); }

.tabs{ display:flex; gap:8px; margin-bottom:10px; }
.tabs button{ flex:1; padding:9px; font-size:13.5px; }
.tabs button.armed{ border-color:var(--gold); color:var(--gold); }
.arm-list{ flex:1; overflow-y:auto; }
.arow{ padding:9px 0; border-bottom:1px solid var(--steel); }
.arow b{ display:block; margin-bottom:6px; }
.arow .abtn{ width:auto; margin:3px 6px 3px 0; min-height:40px; font-size:13px; }
.arow .dim{ color:var(--parch-dim); font-size:12.5px; display:block; }
.specdesc{ color:var(--parch-dim); font-size:12px; font-style:italic; margin:2px 0 6px; }

.howto{ flex:1; overflow-y:auto; font-size:14px; line-height:1.55; }
.howto h3{ color:var(--gold); margin:14px 0 5px; }
.howto p{ margin-bottom:8px; color:var(--parch); }
.howto b{ color:var(--gold); }

/* ===== v1.0: Crown-Seekers & the risen dead ===== */
.crownbadge{
  position:absolute; top:10%; left:50%; transform:translateX(-50%);
  font-size:19px; line-height:1; color:#fff; z-index:3; pointer-events:none;
  -webkit-text-stroke:1.4px #000; paint-order:stroke fill;
  text-shadow:0 0 2px #000, 0 1px 2px #000;
  animation:crownglow 1.8s ease-in-out infinite;
}
.crownbadge.boss{ font-size:23px; top:6%; -webkit-text-stroke:1.6px #000; }
@keyframes crownglow{ 0%,100%{ opacity:.9; transform:translateX(-50%) scale(1);}
  50%{ opacity:1; transform:translateX(-50%) scale(1.1);} }
.piece.husk{ filter:saturate(.35) brightness(.85); }
.piece.husk::after{ content:"\2620"; position:absolute; bottom:2%; right:4%;
  font-size:10px; opacity:.8; }


/* ===================== BATTLE FX ===================== */
#fxlayer{ position:absolute; inset:0; pointer-events:none; z-index:40; overflow:visible; }
.fx{ position:absolute; transform:translate(-50%,-50%); pointer-events:none; z-index:41; }

@keyframes fxshake{ 0%,100%{ translate:0 0; } 25%{ translate:-3px 1px; } 50%{ translate:3px -1px; } 75%{ translate:-2px -1px; } }
.tile.fxshake{ animation:fxshake .28s ease-in-out; }

.fxflash{ width:26%; height:26%; min-width:12px; min-height:12px; border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #ffd97066 55%, transparent 70%);
  animation:fxflashk .22s ease-out forwards; }
@keyframes fxflashk{ from{ opacity:1; scale:.5; } to{ opacity:0; scale:1.9; } }

.fxslash{ width:6%; height:64%; min-width:4px; min-height:26px; border-radius:3px;
  background:linear-gradient(#fff, #ffd970, #fff0);
  rotate:45deg; animation:fxslashk .26s ease-out forwards; box-shadow:0 0 8px #ffd970aa; }
@keyframes fxslashk{ 0%{ opacity:0; rotate:20deg; scale:.4 .2; } 25%{ opacity:1; }
  100%{ opacity:0; rotate:65deg; scale:1.1 1.2; } }

.fxburst{ width:20px; height:20px; border-radius:50%; animation:fxburstk .42s ease-out forwards; }
.fxburst.boom{ background:radial-gradient(circle, #fff8 0%, #ffb84d88 45%, transparent 70%);
  border:2px solid #ffb84d; }
.fxburst.fire{ background:radial-gradient(circle, #fff3c4cc 0%, #ff7a2e99 50%, transparent 72%);
  border:2px solid #ff7a2e; }
.fxburst.ground{ background:radial-gradient(circle, #d8c9a8aa 0%, #8a7a5a77 50%, transparent 72%);
  border:2px solid #8a7a5a; }
@keyframes fxburstk{ from{ opacity:1; scale:.4; } to{ opacity:0; scale:2.6; } }

.fxzone{ position:absolute; inset:6%; border-radius:6px; pointer-events:none; z-index:5;
  animation:fxzonek .5s ease-out forwards; }
.fxzone.fire{ background:#ff7a2e; box-shadow:inset 0 0 10px #ffd970; }
.fxzone.boom{ background:#ffd970; }
@keyframes fxzonek{ 0%{ opacity:0; } 20%{ opacity:.42; } 100%{ opacity:0; } }

.fxproj{ z-index:42; }
.fxproj.bolt, .fxproj.dagger{ width:16px; height:3px; border-radius:2px;
  background:linear-gradient(90deg, transparent, #ffd970, #fff); box-shadow:0 0 6px #ffd970; }
.fxproj.dagger{ background:linear-gradient(90deg, transparent, #cfd6e4, #fff); box-shadow:0 0 5px #cfd6e4; }
.fxproj.holy{ width:12px; height:12px; border-radius:50%;
  background:radial-gradient(circle, #fff, #ffeec2 60%, transparent 75%); box-shadow:0 0 8px #fff; }
.fxproj.spark{ width:12px; height:12px; border-radius:50%;
  background:radial-gradient(circle, #fff, #b98cff 55%, transparent 75%); box-shadow:0 0 9px #b98cff; }
.fxproj.void{ width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle, #e6d5ff, #6a3bb5 55%, transparent 78%); box-shadow:0 0 10px #6a3bb5; }
.fxproj.shell{ width:11px; height:11px; border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #666, #1c1c1c 70%); box-shadow:0 0 4px #000; }
.fxproj.fire{ width:14px; height:14px; border-radius:50%;
  background:radial-gradient(circle, #fff3c4, #ff7a2e 55%, transparent 78%); box-shadow:0 0 10px #ff7a2e; }

.fxbeam{ height:3px; transform-origin:left center; border-radius:2px; z-index:42;
  animation:fxbeamk .32s ease-out forwards; }
.fxbeam.lightning{ height:3px;
  background:repeating-linear-gradient(90deg, #fff 0 6px, #9fd8ff 6px 10px); box-shadow:0 0 9px #9fd8ff; }
.fxbeam.spark{ background:linear-gradient(90deg, #b98cff, #fff); box-shadow:0 0 8px #b98cff; }
.fxbeam.heal{ background:linear-gradient(90deg, #9fe8a9, #fff); box-shadow:0 0 8px #9fe8a9; }
.fxbeam.ice{ background:linear-gradient(90deg, #bfe7ff, #fff); box-shadow:0 0 8px #bfe7ff; }
.fxbeam.drain{ background:linear-gradient(90deg, #d4a7ff, #4d2a66); box-shadow:0 0 9px #8b5cf6; }
.fxbeam.hexline{ background:linear-gradient(90deg, #ff8bd0, #7a2a5a); box-shadow:0 0 8px #ff8bd0; }
@keyframes fxbeamk{ 0%{ opacity:0; scale:.2 1; } 25%{ opacity:1; scale:1 1; } 100%{ opacity:0; } }

.fxglyph{ font-size:20px; line-height:1; z-index:43; animation:fxglyphk .7s ease-out forwards;
  text-shadow:0 1px 3px #000; }
.fxglyph.gold{ color:#ffd970; }
.fxglyph.steelblue{ color:#9fd8ff; }
.fxglyph.heal, .fxglyph.cure{ color:#9fe8a9; }
.fxglyph.ice{ color:#bfe7ff; }
.fxglyph.venom{ color:#8fd14f; }
.fxglyph.arcane{ color:#b98cff; }
.fxglyph.hexmark{ color:#ff8bd0; }
.fxglyph.shadow{ color:#aab; opacity:.8; }
.fxglyph.crownfx{ color:#fff; font-size:26px; -webkit-text-stroke:1px #000; }
@keyframes fxglyphk{ 0%{ opacity:0; translate:0 6px; scale:.6; } 25%{ opacity:1; }
  100%{ opacity:0; translate:0 -14px; scale:1.15; } }

.fxwalker{ font-size:clamp(26px,8.6vw,41px); line-height:1; z-index:44; text-shadow:0 2px 3px #000; }
.fxwalker.p1{ color:var(--gold); }
.fxwalker.p2{ color:var(--crimson); }
.fxwalker .fxcrown{ position:absolute; top:8%; left:50%; transform:translateX(-50%);
  font-size:.45em; color:#fff; -webkit-text-stroke:1px #000; }

/* ===================== CUSTOM PIECE ART =====================
   Rendered by pieceVisual() when ART.on is true. The <img> fills the
   same box the text glyph occupied, so the crown badge, HP bar, status
   icons and all battle FX keep landing in the right place. */
.pieceart{ width:100%; height:100%; object-fit:contain;
  display:block; pointer-events:none; -webkit-user-drag:none;
  filter:drop-shadow(0 2px 3px #000a); }
/* text-glyph fallback span behaves exactly like the old textContent */
.pieceglyph{ display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; line-height:1; }

/* the board piece: let the art fill the tile cell */
.piece > .pieceart, .piece > .pieceglyph{ width:100%; height:100%; }
/* structures render a touch smaller, matching the old glyph sizing */
.piece.struct > .pieceart{ width:78%; height:78%; margin:auto; }

/* the walking clone and the selection crest */
.fxwalker > .pieceart{ width:100%; height:100%; }
.selicon > .pieceart{ width:82%; height:82%; }

/* OPTIONAL neutral-silhouette tint mode (ART.tint = true):
   a single white PNG per unit, recolored per side. Uses a drop-shadow
   recolor trick so any white shape becomes gold or crimson. */
.pieceart.tint-p1{ filter:brightness(0) saturate(100%)
  invert(78%) sepia(38%) saturate(720%) hue-rotate(1deg) brightness(102%) contrast(96%)
  drop-shadow(0 2px 3px #000a); }
.pieceart.tint-p2{ filter:brightness(0) saturate(100%)
  invert(28%) sepia(64%) saturate(2200%) hue-rotate(338deg) brightness(92%) contrast(94%)
  drop-shadow(0 2px 3px #000a); }


/* ===================== PVP ONLINE LOBBY ===================== */
.online-status{ min-height:44px; padding:10px 12px; margin:10px 0; border-radius:8px;
  background:var(--coal); border:1px solid var(--steel); font-size:14.5px; line-height:1.5; }
.online-status:empty{ display:none; }
.online-status b{ color:var(--gold); font-size:22px; letter-spacing:4px; }
.online-status.waiting::after{ content:"\2026"; animation:lobbypulse 1.2s ease-in-out infinite; }
@keyframes lobbypulse{ 0%,100%{ opacity:.3; } 50%{ opacity:1; } }
.joinrow{ display:flex; gap:8px; margin-top:10px; }
#online-code{ flex:1; min-width:0; background:var(--coal); color:var(--parch);
  border:1px solid var(--steel-hi); border-radius:8px; padding:10px 12px;
  font-family:inherit; font-size:20px; letter-spacing:6px; text-transform:uppercase; text-align:center; }
#online-code:focus{ outline:none; border-color:var(--gold-dim); }
