/* Ferma v5 — lane G: the classic 2010 look (plan/R13-classic-ui.md §2–§4, §8.3), laid over ferma.css.
   Everything is scoped to html.classic (set by js/ui/hud.js), so it outranks ferma.css without touching it.
   Sprites come in as --s-<name> custom properties only when the art set has them (html.has-<name>); each sprite
   has a CSS stand-in, so a missing sheet never shows a hole. Motion respects prefers-reduced-motion / «Kustības: mazāk». */

html.classic{--bar:48px;--wood-a:#E3AA66;--wood-b:#C98D4D;--wood-c:#A86D36;--line:#5A3412;--olive:rgba(60,90,30,.55)}
html.classic #hud [hidden],html.classic #modal [hidden]{display:none!important}
.vh{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}
html.classic #hud img{-webkit-user-drag:none;user-select:none}
html.classic #hud .has-img>.fallback{display:none}

/* ================= the bar: one plank from edge to edge (R13 §2.1) ================= */
/* lane P1 (round P): one continuous board at any width — the 360 px plank joints (a seam at 45 % of a phone) are gone;
   the grain is a seamless tile (feTurbulence, stitched) stretched long and thin, over the fine lines and the warm gradient */
html.classic #topbar{left:0;right:0;top:0;height:calc(var(--bar) + var(--sat));box-sizing:border-box;padding:var(--sat) 0 0 calc(8px + var(--sal));gap:0;transform:none;align-items:center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='120'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.14' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .2 0 0 0 0 .03 2.4 0 0 0 -1.1'/%3E%3C/filter%3E%3Crect width='640' height='120' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/640px 120px repeat,
    repeating-linear-gradient(0deg,rgba(120,70,25,.08) 0 2px,rgba(255,236,196,.07) 2px 5px,rgba(120,70,25,0) 5px 9px),
    linear-gradient(var(--wood-a),var(--wood-b) 55%,var(--wood-c));
  border-bottom:2px solid var(--line);box-shadow:0 3px 0 rgba(50,25,5,.32),inset 0 2px 0 rgba(255,240,205,.45),inset 0 -3px 0 rgba(90,50,15,.3)}
/* the rosette sits over the bar and hangs below it on its ribbon tails */
html.classic #topbar .rosette{position:relative;flex:none;align-self:flex-start;width:72px;height:84px;margin:-4px 2px 0 0;z-index:3;filter:drop-shadow(0 2px 1px rgba(0,0,0,.35));transform-origin:50% 35%}
html.classic #topbar .rosette .astes{position:absolute;left:15px;top:40px;width:42px;height:44px;background:var(--s-ui_rozete_astes) 50% 0/contain no-repeat}
html.classic:not(.has-ui_rozete_astes) #topbar .rosette .astes{background:linear-gradient(100deg,transparent 0 18%,#2F7FD8 18% 46%,transparent 46% 54%,#2F7FD8 54% 82%,transparent 82%);clip-path:polygon(0 0,100% 0,100% 100%,78% 84%,62% 100%,50% 30%,38% 100%,22% 84%,0 100%)}
html.classic #topbar .rosette .badge{position:absolute;left:3px;top:0;width:66px;height:72px;object-fit:contain}
html.classic #topbar .rosette:not(.has-img)::before{content:"";position:absolute;left:6px;top:2px;width:60px;height:60px;border-radius:50%;background:radial-gradient(#FFF6DA 0 44%,#2F7FD8 46% 70%,#1B4F9A 72%);box-shadow:0 0 0 3px #FFE14A inset}
html.classic #topbar .rosette b{position:absolute;left:0;right:0;top:15px;z-index:1;text-align:center;font:bold italic 28px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFE14A;letter-spacing:-.5px;
  text-shadow:-3px 0 #1B2F6B,3px 0 #1B2F6B,0 -3px #1B2F6B,0 3px #1B2F6B,-2px -2px #1B2F6B,2px -2px #1B2F6B,-2px 2px #1B2F6B,2px 2px #1B2F6B,0 4px 0 #0f1c44}
html.classic #topbar .rosette.pop{animation:clRosPop .5s cubic-bezier(.3,1.6,.5,1)}
/* the fields: sunk into the bar */
html.classic #topbar .plank{position:relative;display:flex;align-items:center;height:34px;padding:0;margin:0 0 0 10px;border:0;border-radius:0;background:none;box-shadow:none}
html.classic #topbar .plank.xp{width:150px;margin-left:2px}
html.classic #topbar .inset{position:relative;height:34px;min-width:0;box-sizing:border-box;border-radius:9px;border:2px solid #3A1D00;padding:0 10px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  box-shadow:inset 0 3px 4px rgba(0,0,0,.45),inset 0 -1px 0 rgba(255,255,255,.22),0 1px 0 rgba(255,236,196,.65)}
html.classic #topbar .inset.dark{width:100%;background:linear-gradient(#2E1A0A,#55341A)}
html.classic #topbar .inset .fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:6px 0 0 6px;background:linear-gradient(#8FD8FF,#47AEFF 45%,#2E9CFF 60%,#1F7FE0);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55),inset -1px 0 0 rgba(255,255,255,.35);transition:width .4s cubic-bezier(.3,1,.5,1)}
html.classic #topbar .inset span{position:relative;z-index:1;font-size:20px;letter-spacing:.3px;line-height:1}
html.classic #topbar .plank .ic{position:relative;z-index:2;flex:none;width:38px;height:38px;margin:0 -16px 0 0;filter:drop-shadow(0 2px 0 rgba(0,0,0,.35))}
html.classic #topbar .inset.green{width:140px;justify-content:flex-end;padding:0 10px 0 22px;background:linear-gradient(#2C7A1E,#3F9E2B 70%,#4DB236)!important}
html.classic #topbar .inset.purple{width:96px;justify-content:flex-end;padding:0 10px 0 22px;background:linear-gradient(#5B2E9E,#7A43CC 70%,#8A4FE0)!important}
html.classic #topbar .inset .ls{position:relative;z-index:1;margin:3px 0 0 4px;font:bold italic 12px/1 "Trebuchet MS",sans-serif;color:#E9FFD9;
  text-shadow:-1px -1px 0 #1d4f08,1px -1px 0 #1d4f08,-1px 1px 0 #1d4f08,1px 1px 0 #1d4f08}
html.classic #topbar .plank.cl-pulse{animation:clPulse .32s cubic-bezier(.3,1.8,.5,1)}

/* ================= the icon row: 7 wood tabs on the bar ================= */
html.classic #topright{right:calc(8px + var(--sar));top:calc(var(--sat) + 2px);height:44px;gap:6px;align-items:center}
html.classic #topright .hudtab{position:relative;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:8px;display:flex;align-items:center;justify-content:center;
  background:var(--s-ui_hud_tab) center/100% 100% no-repeat;box-shadow:none;transition:transform .14s cubic-bezier(.34,1.56,.64,1),filter .12s}
html.classic:not(.has-ui_hud_tab) #topright .hudtab{background:linear-gradient(#E8B26E,#C88A4A 55%,#9C6230);border:2px solid var(--line);box-shadow:inset 0 2px 0 rgba(255,255,255,.35),0 2px 0 rgba(0,0,0,.3)}
html.classic #topright .hudtab img{width:34px;height:34px;margin:0;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}
html.classic #topright .hudtab:hover{z-index:1;transform:scale(1.14);filter:brightness(1.08)}   /* lane E1: the 2010 board button grows under the pointer */
html.classic #topright .hudtab:active{transform:scale(.93)}
html.classic #topright .hudtab em{top:-5px;right:-6px}
html.classic #topright .gohome.wide{width:auto;height:44px;padding:0 12px 0 6px;gap:6px;border-radius:9px;
  background:linear-gradient(#FFC15A,#F08A1C 55%,#C4600A);border:2px solid var(--line);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 2px 0 rgba(0,0,0,.3)}
html.classic #topright .gohome.wide img{width:34px;height:34px}
html.classic #topright .gohome.wide span{position:static;font-size:16px;white-space:nowrap}

/* ================= «-- Spiest šeit --» and «+» (lane V, plan/R15 §1.4: the original's plain combo-box prompt) ================= */
html.classic #banner{position:absolute;left:calc(300px + var(--sal));top:calc(var(--bar) + 8px + var(--sat));z-index:4;width:250px;height:32px;padding:0 12px;box-sizing:border-box;
  display:flex;align-items:center;justify-content:center;border-radius:10px;border:3px solid #4A3220;background:#BE9D7C;cursor:pointer;
  box-shadow:inset 0 2px 0 rgba(255,240,215,.25),0 1px 2px rgba(0,0,0,.2);transition:transform .14s cubic-bezier(.34,1.56,.64,1)}
html.classic #banner .lbl{font:bold 16px/1 "Trebuchet MS",Verdana,sans-serif;color:#6E4F33;white-space:nowrap}
html.classic #banner:hover{filter:brightness(1.05)}
html.classic #banner:active{transform:scale(.97)}
html.classic #banner-list{position:absolute;left:calc(300px + var(--sal));top:calc(var(--bar) + 42px + var(--sat));z-index:6;width:250px;box-sizing:border-box;padding:3px;border-radius:8px;
  border:2px solid #8A6440;background:#F6E8D2;box-shadow:0 4px 12px rgba(0,0,0,.25);font:13px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#5A4026}
html.classic #banner-list[hidden]{display:none}
html.classic #banner-list .it{display:block;width:100%;box-sizing:border-box;padding:5px 8px;border:0;border-radius:5px;background:none;text-align:left;font:inherit;color:inherit;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
html.classic #banner-list .it:hover{background:#EBD3AE}
html.classic #banner-list .it.new{font-weight:bold}
html.classic #banner-list .it.empty{color:#9A7E5E;cursor:default}
html.classic #banner-list .it.all{margin-top:2px;border-top:1px solid #DDC39C;border-radius:0 0 5px 5px;color:#2F6B1E;font-weight:bold}
/* plan/R96: the notes that hang under the banner (ui/board.js placePins keeps them clear of the day's chip; the toasts flow
   under them by --dk-egg-push). No transition: less motion's 0,01 ms one would hand the placing an old width */
html.classic .dk-pin{position:fixed;z-index:5;max-width:min(340px,calc(100vw - 24px));box-sizing:border-box;pointer-events:auto;transition:none}
html.classic body:has(#modal:not([hidden])) .dk-pin,html.classic .dk-pin[hidden]{display:none}
html.classic:has(.dk-pin:not([hidden])):not(:has(#modal:not([hidden]))) #toasts{margin-top:var(--dk-egg-push,0px);transition:none}
/* #2 «Nākamā ola»: the egg's line while q.22.3 is pinned */
html.classic .dk-egg{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;padding:7px 8px 7px 12px;background:#fff4d6;color:#4b361d;border:2px solid #8a5a2b;border-radius:12px;box-shadow:0 3px 0 rgba(60,36,12,.35),0 6px 14px rgba(0,0,0,.25);font:bold 14px/1.3 "Trebuchet MS",Verdana,sans-serif}
html.classic .dk-egg span{flex:1 1 150px;min-width:0}
html.classic .dk-egg button{flex:0 0 auto;min-height:44px;min-width:48px;margin:0}
html.classic #b-more{position:absolute;left:calc(560px + var(--sal));top:calc(var(--bar) + 9px + var(--sat));width:28px;height:28px;padding:0;border-radius:5px;
  border:2px solid rgba(190,205,140,.5);background:rgba(125,145,70,.55);box-shadow:0 1px 2px rgba(0,0,0,.15);transition:transform .14s cubic-bezier(.34,1.56,.64,1),background .3s}
html.classic #b-more i::before,html.classic #b-more i::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:4px;margin:-2px 0 0 -7px;border-radius:2px;background:rgba(215,225,160,.85)}
html.classic #b-more i::after{transform:rotate(90deg)}
html.classic #b-more:hover{background:rgba(150,175,95,.7)}
html.classic #b-more:active{transform:scale(.9)}
html.classic #b-more.lit{border-color:rgba(235,255,215,.85);background:rgba(110,190,70,.9);animation:clPlusLit 2.4s ease-in-out infinite}
html.classic #b-more.lit i::before,html.classic #b-more.lit i::after{background:#fff}
@keyframes clPlusLit{0%,100%{box-shadow:0 1px 2px rgba(0,0,0,.15)}50%{box-shadow:0 0 0 3px rgba(255,235,120,.55),0 1px 2px rgba(0,0,0,.15)}}
/* the house upgrade pergament (lane V, R15 §3): the house now → the next one, small, side by side */
html.classic #modal .pergaments .upg{display:flex;align-items:center;justify-content:center;gap:14px;margin:4px 0 8px}
html.classic #modal .pergaments .upg img{width:150px;height:120px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(60,30,0,.25))}
html.classic #modal .pergaments .upg b{font-size:28px;color:#8A5A2A}
html.classic #modal .pergaments .ph p.upg-why{color:#A0461E;font-weight:bold}
@media (max-width:640px){html.classic #modal .pergaments .upg img{width:110px;height:88px}}
/* lane lopi (plan/R82): «Vistu kūts pilna» — the animal, what room there is, the ways on (wrapping on a phone) */
html.classic #modal .pergaments.lopi-card{max-width:520px}
html.classic #modal .pergaments .lopi-room{display:flex;align-items:center;gap:14px;margin:2px 0 6px;text-align:left}
html.classic #modal .pergaments .lopi-room img{width:76px;height:76px;flex:none;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(60,30,0,.25))}
html.classic #modal .pergaments .lopi-room p{margin:0 0 6px;font-size:15px;line-height:1.35}
html.classic #modal .pergaments.lopi-card .pbtn{flex-wrap:wrap;gap:8px}
@media (max-width:520px),(max-height:430px){html.classic #modal .pergaments .lopi-room img{width:56px;height:56px}html.classic #modal .pergaments .lopi-room p{font-size:14px;margin-bottom:4px}html.classic #modal .pergaments.lopi-card .pbtn .btn{flex:1 1 auto;padding:0 14px;font-size:15px}}
/* the radio (lane V): a square in the right column, under the camera; its panel opens to the left of the column */
html.classic #rcol #radio-badge.rc{position:relative;left:auto;bottom:auto;padding:6px;filter:none}
html.classic #rcol #radio-badge.rc svg{width:100%;height:100%}
html.classic #rcol #radio-badge.rc .lamp{right:3px;top:3px;width:8px;height:8px}
@media (min-width:961px) and (min-height:521px){html.classic #radiopanel{left:auto;right:calc(76px + var(--sar));top:auto;bottom:calc(140px + var(--sab));animation-name:clDropSm}
  html.classic #radiopanel .fr-btn{min-width:24px;min-height:26px}}   /* lane Y6 (X1 U1): every desktop radio button ≥ 24 px (WCAG 2.5.8) */
/* lane P5 (round P #2): the desktop radio's words were 7 px (a 9 px face) — a 12 px face like the phone's, no label under 11 px */
@media (min-width:961px) and (min-height:521px){
  html.classic #radiopanel .fr-radio{font-size:12px!important}
  html.classic #radiopanel :is(.fr-lamp,.fr-badge,.fr-knob em){font-size:11px}
}

/* ================= right column: Mana ferma, Spēles, kamera, ? ================= */
html.classic #rcol{position:absolute;right:calc(8px + var(--sar));bottom:calc(140px + var(--sab));display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}
html.classic #rcol>*{pointer-events:auto}
html.classic #rcol .rc{position:relative;flex:none;width:56px;height:56px;padding:5px;box-sizing:border-box;border-radius:10px;border:2px solid rgba(235,255,220,.55);
  background:rgba(170,212,145,.5);box-shadow:0 2px 5px rgba(0,0,0,.16);display:flex;align-items:center;justify-content:center;transition:transform .14s cubic-bezier(.34,1.56,.64,1),background .12s}
html.classic #rcol .rc img{width:100%;height:100%;margin:0;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(0,0,0,.25))}
html.classic #rcol .rc svg{width:100%;height:100%;margin:0}
html.classic #rcol .rc:hover{background:rgba(190,230,165,.7);transform:translateY(-2px)}
html.classic #rcol .rc:active{transform:scale(.93)}
html.classic #rcol .rc.small{width:32px;height:32px;padding:2px;border-radius:8px}
html.classic #rcol .rc .q{font:bold 20px/1 "Trebuchet MS",sans-serif;color:#5B4A1A}
html.classic #rcol .rc.has-img .q{display:none}
html.classic #rcol .rc-home{position:relative;display:flex;flex-direction:row-reverse;align-items:center;gap:6px;pointer-events:none}
html.classic #rcol .rc-home>*{pointer-events:auto}
/* lane laukums2: «Laukums» — the square's market stall; a red dot while the invitation waits (the phone's tile copies it) */
html.classic #rcol #b-laukums .nw-dot{position:absolute;right:-4px;top:-4px;width:14px;height:14px;border-radius:50%;background:#D8321C;box-shadow:0 0 0 2px #FFF6E0,0 1px 2px rgba(0,0,0,.4)}
html.classic #rcol #b-laukums .nw-dot[hidden],html.classic #rcol #b-laukums img:not([src]){display:none}

/* ================= small bar (R13 §2.1): olive glass, 32 px ================= */
html.classic #side{right:calc(8px + var(--sar));bottom:calc(92px + var(--sab));gap:4px;flex-direction:row;align-items:center}
html.classic #side .sb{position:relative;width:32px;height:32px;padding:4px;box-sizing:border-box;border-radius:6px;border:1px solid rgba(205,235,160,.5);background:var(--olive);
  box-shadow:0 1px 3px rgba(0,0,0,.22);backdrop-filter:none;transition:transform .14s cubic-bezier(.34,1.56,.64,1),background .12s}
html.classic #side .sb:hover{background:rgba(80,115,40,.72)}
html.classic #side .sb:active{transform:scale(.9)}
html.classic #side .sb.txt{font:bold 19px/1 "Trebuchet MS",sans-serif;color:#EEF8DC;text-shadow:0 1px 0 rgba(0,0,0,.55)}
html.classic #side .sb svg path{fill:#EEF8DC;stroke:#EEF8DC}
html.classic #side .sb svg path:first-child{stroke:none}
html.classic.has-hud_zoom #side #b-zin,html.classic.has-hud_zoom #side #b-zout{font-size:0;color:transparent;text-shadow:none;background:var(--s-hud_zoom) 2% 50%/196% 92% no-repeat,var(--olive)}
html.classic.has-hud_zoom #side #b-zout{background-position:98% 50%,0 0}

/* ================= tools: pale green tiles, the chosen one in a blue frame that breathes cyan ================= */
html.classic #palette{right:calc(8px + var(--sar));bottom:calc(8px + var(--sab));gap:6px}
html.classic .tool{width:68px;height:68px;padding:6px;box-sizing:border-box;border-radius:8px;border:2px solid rgba(228,248,210,.65);
  background:linear-gradient(rgba(196,230,170,.86),rgba(160,206,134,.82));box-shadow:0 2px 5px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.45);
  transition:transform .14s cubic-bezier(.34,1.56,.64,1),box-shadow .2s,border-color .2s}
html.classic .tool img{filter:drop-shadow(0 2px 0 rgba(0,0,0,.22))}
html.classic .tool:hover{transform:translateY(-3px)}
html.classic .tool:active{transform:scale(.93)}
html.classic .tool.sel{border:3px solid #4C86BC;background:linear-gradient(rgba(214,240,246,.92),rgba(172,220,232,.88));transform:translateY(-4px);animation:clBreathe 1.6s ease-in-out infinite}
html.classic .tool.sel:active{transform:translateY(-4px) scale(.93)}
html.classic .tool kbd{color:rgba(30,52,14,.5)}
html.classic .tool .badge{border-color:#4C86BC}
/* plan/R141 §2: the ✥ door says «Pārkārtot» on a small plate above it until the mode has been used once (ui.js renderPalette) */
.tool .t-hl{position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);padding:1px 6px;border-radius:6px;background:rgba(58,32,8,.86);
  color:#FFF3DA;font:bold 12px/1.2 "Trebuchet MS",Verdana,sans-serif;letter-spacing:-.2px;white-space:nowrap;pointer-events:none;box-shadow:0 1px 2px rgba(0,0,0,.3)}
html.classic.hud-phone .tool .t-hl{font-size:11px;padding:1px 4px}
html.classic .tool.sel .t-hl{bottom:calc(100% + 6px)}
/* lane uxtools (2026-11-25): a touch screen's tools carry their names and a phone keeps the rake and the glove in «Vairāk
   rīku» (ui/tool-strip.js; the phone's rules are in the lane mobils block at the end) — anywhere else none of that shows */
.tool .t-name,#palette .t-more,#palette .t-tray,#toolcap{display:none}
/* plan/R141 §2: the one pointer to «Pārkārtot sētu» (ui.js pointerShow): a parchment note with its beak over the door, under any window */
#arrange-ptr{position:fixed;z-index:30;left:8px;top:8px;width:max-content;max-width:min(300px,calc(100vw - 16px));box-sizing:border-box;padding:10px 40px 10px 12px;
  border-radius:10px;border:2px solid #8A5A22;background:#FFF6DC;box-shadow:0 4px 12px rgba(0,0,0,.32);color:#3A2208;
  font:bold 14px/1.35 "Trebuchet MS",Verdana,sans-serif;text-align:left;cursor:pointer;pointer-events:auto;animation:fadeIn .25s}
#arrange-ptr::after{content:"";position:absolute;left:var(--ap-x,50%);bottom:-9px;width:14px;height:14px;margin-left:-8px;background:#FFF6DC;
  border-right:2px solid #8A5A22;border-bottom:2px solid #8A5A22;transform:rotate(45deg)}
#arrange-ptr .ap-x{position:absolute;right:2px;top:2px;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#6b3d14;
  font:bold 16px/36px "Trebuchet MS",Verdana,sans-serif;cursor:pointer}
#arrange-ptr .ap-x:focus-visible{outline:3px solid #1F6FD6;outline-offset:-3px}
body.visiting #arrange-ptr,body.arranging #arrange-ptr{display:none}

/* ================= the bag: handle + tray (R13 §2.2) — the seed picker in the classic frame ================= */
html.classic #b-tray{position:absolute;left:calc(8px + var(--sal));bottom:calc(8px + var(--sab));width:24px;height:110px;padding:0;border-radius:6px;border:2px solid #6B4423;
  background:var(--s-ui_tray_rokturis_r) center/100% 100% no-repeat,linear-gradient(90deg,#D9A36A,#E9BE86 50%,#C4874C);box-shadow:0 2px 0 rgba(0,0,0,.3);transition:transform .14s cubic-bezier(.34,1.56,.64,1)}
html.classic.has-ui_tray_rokturis_r #b-tray{border:0;background:var(--s-ui_tray_rokturis_r) center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}
html.classic.has-ui_tray_rokturis_r #b-tray i{display:none}
html.classic #b-tray i{position:absolute;left:7px;top:50%;margin-top:-8px;border:8px solid transparent;border-left:9px solid #FFF1D8;border-right:0;filter:drop-shadow(0 0 1px #5a3412)}
html.classic #b-tray:hover{transform:translateX(2px)}
html.classic #hud:has(#seedpick:not([hidden])) #b-tray{background-image:var(--s-ui_tray_rokturis_l)}
html.classic #friendsbar{left:calc(40px + var(--sal))}
html.classic #hud:has(#seedpick:not([hidden])) #friendsbar{visibility:hidden}
html.classic #seedpick{left:calc(36px + var(--sal));right:auto;bottom:calc(2px + var(--sab));transform:none;height:132px;max-width:min(720px,calc(100vw - 480px));box-sizing:border-box;
  padding:7px 7px 5px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border-radius:10px;
  background:#3A2210;border:6px solid #E2B271;box-shadow:inset 0 3px 8px rgba(0,0,0,.6),0 0 0 2px #6B3F1D,0 4px 0 rgba(0,0,0,.3);transform-origin:0 50%;animation:clTrayIn .26s cubic-bezier(.3,1.3,.5,1);z-index:2}
html.classic.has-ui_tray_ramis #seedpick{border-style:solid;border-color:transparent;border-width:9px 11px 15px;border-image:var(--s-ui_tray_ramis) 14% 7.5% 23% fill / 9px 11px 15px stretch;background:#3A2210 padding-box;box-shadow:none}
html.classic #seedpick .seed{position:relative;flex:none;width:92px;height:96px;padding:2px;box-sizing:border-box;border-radius:6px;border:0;background:rgba(255,240,210,.06);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:#FFF3D6;transition:transform .12s cubic-bezier(.34,1.56,.64,1),background .12s;animation:clCell .22s ease-out both}
html.classic #seedpick .seed:nth-child(2){animation-delay:.02s}html.classic #seedpick .seed:nth-child(3){animation-delay:.04s}html.classic #seedpick .seed:nth-child(4){animation-delay:.06s}
html.classic #seedpick .seed:nth-child(5){animation-delay:.08s}html.classic #seedpick .seed:nth-child(6){animation-delay:.1s}html.classic #seedpick .seed:nth-child(7){animation-delay:.12s}html.classic #seedpick .seed:nth-child(8){animation-delay:.14s}
html.classic #seedpick .seed img{width:52px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(0,0,0,.35))}
html.classic #seedpick .seed b{font:bold 11px/1.15 "Trebuchet MS",sans-serif;color:#fff;white-space:nowrap;text-shadow:-1px -1px 0 #1d0e02,1px -1px 0 #1d0e02,-1px 1px 0 #1d0e02,1px 1px 0 #1d0e02}
html.classic #seedpick .seed small{font:bold 11px/1.1 "Trebuchet MS",sans-serif;color:#FFE14A;text-shadow:0 1px 0 #1d0e02}
html.classic #seedpick .seed:hover{background:rgba(255,240,210,.16);transform:translateY(-2px)}
html.classic #seedpick .seed:active{transform:scale(.93)}
html.classic #seedpick .seed.sel{z-index:1;background:rgba(143,243,255,.14);box-shadow:0 0 0 3px var(--cyan),0 0 12px rgba(111,231,255,.8)}
html.classic.has-ui_suna_sel #seedpick .seed.sel{box-shadow:0 0 12px rgba(111,231,255,.6)}
html.classic.has-ui_suna_sel #seedpick .seed.sel::before{content:"";position:absolute;inset:-6px -6px -5px;background:var(--s-ui_suna_sel) center/100% 100% no-repeat;pointer-events:none}
html.classic #seedpick .seed.lock{opacity:.5;filter:grayscale(.6)}
html.classic #seedpick .seed.lock small{color:#FFB09A}
html.classic #seedpick .seed.more{width:auto;min-width:72px;padding:0 12px;grid-column:1/-1;justify-content:center}   /* task 6e18c40d (R95): «Vēl N — ar līmeņiem», the later crops behind one row */
html.classic #seedpick .seed.more b{white-space:normal;text-align:center}
/* lane pirmie #1: the growing time sits on the seed's picture, top right — read before the tap */
html.classic #seedpick .seed .gt{position:absolute;top:1px;right:1px;padding:1px 4px;border-radius:7px;background:rgba(29,14,2,.82);color:#BFF3FF;font:bold 11px/1.15 "Trebuchet MS",sans-serif;font-style:normal;white-space:nowrap;pointer-events:none}
/* task 6e18c40d (uxguide, Astra rank 12): the seed's one line (ui/seed-line.js), the Bodīte card's words — «aug 15 s» on the
   picture (.gt), «sēkla 0,13 Ls» and «peļņa +0,37 Ls» under the name; the cells grew to hold them (92×96, a phone's 3 a row) */
html.classic #seedpick .seed .sl{display:flex;flex-direction:column;align-items:center;max-width:100%}
html.classic #seedpick .seed .sl small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.classic #seedpick .seed .sl-c{color:#FFF3D6}

/* ================= toasts: the left column, light green, gold letters (R13 §4.3, as in the original) ================= */
html.classic #toasts{left:calc(8px + var(--sal));top:calc(110px + var(--sat));transform:none;width:min(360px,calc(100vw - 110px));flex-direction:column-reverse;align-items:flex-start;gap:5px}
/* lane P3 (R27): the gold letters stay, the pale green behind them goes — gold on pale green was ~1.1:1 (walk-08). A deep
   meadow green (the money plank's family) under the same gold + brown outline is ≥ 4.5:1 even over white (AA, 14–16 px bold) */
html.classic .toast{box-sizing:border-box;min-height:0;max-width:100%;padding:5px 10px 6px;border-radius:5px;background:linear-gradient(rgba(44,98,26,.94),rgba(28,70,14,.94));border:1px solid rgba(255,216,74,.38);
  box-shadow:0 2px 4px rgba(0,0,0,.28);font:bold 16px/1.25 "Trebuchet MS",Verdana,sans-serif;font-style:normal;color:#FFD84A;text-align:left;
  text-shadow:-1px -1px 0 #4A2A00,1px -1px 0 #4A2A00,-1px 1px 0 #4A2A00,1px 1px 0 #4A2A00,0 -1px 0 #4A2A00,0 1px 0 #4A2A00,-1px 0 0 #4A2A00,1px 0 0 #4A2A00,0 2px 1px rgba(40,20,0,.5);
  animation:clToastIn .22s cubic-bezier(.3,1.3,.5,1)}
html.classic .toast.good{background:linear-gradient(rgba(40,104,20,.94),rgba(26,74,10,.94))}
html.classic .toast.bad{background:linear-gradient(rgba(140,34,18,.94),rgba(104,22,10,.94));border-color:rgba(255,190,160,.45);color:#FFF0E6;
  text-shadow:-1px -1px 0 #4A0E04,1px -1px 0 #4A0E04,-1px 1px 0 #4A0E04,1px 1px 0 #4A0E04,0 -1px 0 #4A0E04,0 1px 0 #4A0E04,-1px 0 0 #4A0E04,1px 0 0 #4A0E04}
html.classic .toast.out{opacity:0;transform:translateX(-14px);transition:opacity .3s,transform .3s}
html.classic .toast.act{padding:5px 6px 5px 12px;gap:6px 10px}   /* bed-lawn: a button on its own row sits 6 px under the words (ferma.css .toast.act) */
html.classic .toast.act .btn{height:28px;font-size:13px;font-style:normal}

/* ================= tips (R13 §4.4, §3.4) ================= */
.cl-tip{position:fixed;left:0;top:0;z-index:60;box-sizing:border-box;max-width:270px;padding:8px 12px 9px;border-radius:10px;background:rgba(206,233,190,.95);border:1px solid rgba(80,130,50,.55);
  box-shadow:0 4px 14px rgba(0,0,0,.25);color:#1F2A14;font:13px/1.35 "Trebuchet MS",Verdana,sans-serif;text-align:center;pointer-events:none}
.cl-tip[hidden]{display:none}
.cl-tip.in{animation:clTipIn .14s ease-out}
.cl-tip .tt{display:block;font:bold 14px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#141c0c}
.cl-tip .tx{display:block;margin-top:2px}
.cl-tip.card-tip{width:240px;max-width:240px;padding:9px 12px 10px;text-align:left;background:rgba(255,255,255,.95);border-color:#B9A98A;color:#3A3A3A;border-radius:8px}
.cl-tip.card-tip .tt{text-align:center;color:#1F8A2E;font-size:16px;margin-bottom:2px}
.cl-tip.card-tip .lv{display:flex;align-items:center;gap:5px;margin:2px 0 4px;font:bold 15px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#1F6FD6}
.cl-tip.card-tip .lv img{width:15px;height:19px;object-fit:contain}
.cl-tip.card-tip .kv{font-size:13.5px;line-height:1.45;color:#6B6B6B}
.cl-tip.card-tip .kv b{color:#333}
.cl-tip.card-tip .desc{display:block;margin-top:5px;font-size:12.5px;line-height:1.35;color:#555}
.cl-tip.sheet{left:8px!important;right:8px;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:auto;max-width:none}

/* ================= Bodīte (R13 §3) ================= */
html.classic #modal .panel.bodite{position:relative;width:min(1040px,96vw);height:min(680px,calc(92vh - 40px));max-height:none;margin-top:46px;box-sizing:border-box;display:flex;flex-direction:column;
  padding:0 0 6px;border-radius:14px;border:10px solid #8E5C2C;
  background:repeating-linear-gradient(90deg,rgba(150,95,40,0) 0 118px,rgba(150,95,40,.18) 118px 120px,rgba(255,235,195,.14) 120px 121px,rgba(150,95,40,0) 121px 240px),
    repeating-linear-gradient(0deg,rgba(160,105,50,.06) 0 3px,rgba(255,240,210,.05) 3px 8px),linear-gradient(#E0B079,#D5A167);
  box-shadow:0 0 0 3px #4A2810,inset 0 0 0 2px #E8C08C,inset 0 6px 14px rgba(90,52,18,.25),0 16px 40px rgba(0,0,0,.45);animation:clBoditeIn .32s cubic-bezier(.3,1.5,.5,1) both}
/* the ribbon: two notched ends and a stretched middle, wider than the panel */
html.classic #modal .bodite .lente{position:absolute;left:-7%;right:-7%;top:-62px;height:72px;display:flex;z-index:2;pointer-events:none;animation:clRibbon .45s cubic-bezier(.3,1.5,.5,1) .05s both}
html.classic #modal .bodite .lente .end{flex:none;width:116px;height:100%;background:var(--s-ui_lente_l) right center/100% 100% no-repeat}
html.classic #modal .bodite .lente .end.r{background-image:var(--s-ui_lente_r);background-position:left center}
html.classic #modal .bodite .lente .mid{flex:1;height:100%;margin:0 -3px;background:var(--s-ui_lente_m) center/100% 100% no-repeat}
html.classic:not(.has-ui_lente_m) #modal .bodite .lente .mid{background:linear-gradient(#F2C24B 0 6%,#C9241A 6% 12%,#B01A12 50%,#8C120A 88%,#F2C24B 88% 94%,transparent 94%)}
html.classic:not(.has-ui_lente_l) #modal .bodite .lente .end{background:linear-gradient(#9E1A10,#7A0F08);clip-path:polygon(0 8%,100% 0,100% 100%,0 92%,26% 50%)}
html.classic:not(.has-ui_lente_r) #modal .bodite .lente .end.r{clip-path:polygon(0 0,100% 8%,74% 50%,100% 92%,0 100%)}
html.classic #modal .bodite .lente h2{position:absolute;left:0;right:0;top:9px;margin:0;text-align:center;font:bold 40px/1 "Trebuchet MS",Verdana,sans-serif;font-style:normal;letter-spacing:.5px;color:#FFC93B;
  text-shadow:-3px 0 #6E0E05,3px 0 #6E0E05,0 -3px #6E0E05,0 3px #6E0E05,-2px -2px #6E0E05,2px -2px #6E0E05,-2px 2px #6E0E05,2px 2px #6E0E05,0 5px 0 #4A0802}
html.classic #modal .bodite .stars{position:absolute;left:50%;top:0;width:0;height:0}
html.classic #modal .bodite .st{position:absolute;width:30px;height:30px;margin-left:-15px;font-style:normal;color:#FFD21F;font-size:28px;line-height:30px;text-align:center;animation:clStar .36s cubic-bezier(.3,1.8,.5,1) both}
html.classic #modal .bodite .st img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(90,40,0,.45))}
html.classic #modal .bodite .st.s0{left:-150px;top:-16px;width:25px;height:25px;margin-left:-12px;animation-delay:.18s}
html.classic #modal .bodite .st.s1{left:-76px;top:-34px;animation-delay:.24s}
html.classic #modal .bodite .st.s2{left:0;top:-40px;animation-delay:.3s}
html.classic #modal .bodite .st.s3{left:76px;top:-34px;animation-delay:.36s}
html.classic #modal .bodite .st.s4{left:150px;top:-16px;width:25px;height:25px;margin-left:-12px;animation-delay:.42s}
html.classic #modal .bodite .masc{position:absolute;z-index:3;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px rgba(0,0,0,.3))}
html.classic #modal .bodite .masc.l{left:9%;top:-74px;width:100px;height:96px;animation:clMascL .4s cubic-bezier(.3,1.4,.5,1) .08s both}
html.classic #modal .bodite .masc.r{right:13%;top:-112px;width:84px;height:140px;animation:clMascR .4s cubic-bezier(.3,1.4,.5,1) .08s both}
html.classic #modal .panel.bodite .x.cl-x{right:-26px;top:-58px;z-index:4}
/* tabs: 2 rows of 5 */
html.classic #modal .bodite .tabs{flex:none;display:grid;grid-template-columns:repeat(5,1fr);gap:8px 12px;padding:24px 34px 10px}
html.classic #modal .bodite .tabs button{height:40px;padding:0 6px;border-radius:7px;border:2px solid #8A5A2B;background:linear-gradient(#FBF2E0,#F2E4C6 60%,#E7D2A6);
  font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;color:#6B3F1D;box-shadow:0 2px 0 rgba(90,52,18,.4),inset 0 1px 0 #fff;transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:transform .12s cubic-bezier(.34,1.56,.64,1),filter .12s}
html.classic #modal .bodite .tabs button:hover{filter:brightness(1.04);transform:translateY(-1px)}
html.classic #modal .bodite .tabs button:active{transform:scale(.95)}
html.classic #modal .bodite .tabs button.on{background:linear-gradient(#EBD6AA,#E0C48E);border:3px solid #5A3412;color:#4A2810;box-shadow:inset 0 2px 4px rgba(0,0,0,.35),0 1px 0 rgba(255,240,210,.6);transform:none}
/* the board and the page arrows */
html.classic #modal .bodite .boardwrap{flex:1;min-height:0;display:grid;grid-template-columns:56px 1fr 56px;gap:10px;align-items:center;padding:0 12px}
html.classic #modal .bodite .board{position:relative;align-self:stretch;min-height:0;box-sizing:border-box;border:6px solid #6B3F1D;border-radius:8px;background:#B9834A;padding:12px;overflow:hidden;
  box-shadow:inset 0 3px 8px rgba(0,0,0,.3),0 1px 0 rgba(255,236,200,.5)}
html.classic #modal .bodite .page{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));grid-template-rows:repeat(var(--rows,2),minmax(0,1fr));gap:12px;height:100%}
html.classic #modal .bodite .board.in-r .page:not([hidden]){animation:clInR .18s ease-out}
html.classic #modal .bodite .board.in-l .page:not([hidden]){animation:clInL .18s ease-out}
html.classic #modal .bodite .arrow{position:relative;width:56px;height:min(220px,60%);padding:0;border-radius:12px;border:6px solid #5E3B1D;
  background:linear-gradient(90deg,#A47448,#D0A77D 45%,#B88A5C 70%,#9A6C40);box-shadow:inset 0 0 0 2px rgba(255,235,200,.35),inset 0 -6px 8px rgba(70,40,10,.25),0 4px 0 rgba(0,0,0,.3);
  transition:transform .14s cubic-bezier(.34,1.56,.64,1),filter .12s,opacity .2s}
html.classic #modal .bodite .arrow i{position:absolute;left:50%;top:50%;width:24px;height:40px;margin:-20px 0 0 -14px;background:#F2D4A8;clip-path:polygon(0 50%,100% 0,100% 100%);filter:drop-shadow(0 0 1px #4a2a10)}
html.classic #modal .bodite .arrow.next i{margin-left:-10px;clip-path:polygon(0 0,100% 50%,0 100%)}
html.classic #modal .bodite .arrow:hover:not([disabled]){filter:brightness(1.08)}
html.classic #modal .bodite .arrow:active:not([disabled]){transform:scale(.93)}
html.classic #modal .bodite .arrow[disabled]{opacity:.4;cursor:default}
html.classic #modal .bodite .pageno{flex:none;height:22px;text-align:center;font:bold 13px/22px "Trebuchet MS",Verdana,sans-serif;color:#5A3412}
/* cards */
html.classic #modal .bodite .card{position:relative;min-width:0;min-height:0;box-sizing:border-box;padding:8px 8px 9px;gap:5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  border-radius:8px;border:3px solid #7A4E28;background:linear-gradient(#FAF4EA,#EFE6D6);box-shadow:inset 0 1px 0 #fff,0 2px 0 rgba(70,40,10,.3);
  transition:transform .15s cubic-bezier(.34,1.56,.64,1),box-shadow .15s}
html.classic #modal .bodite .card:hover{transform:translateY(-4px);box-shadow:inset 0 1px 0 #fff,0 8px 12px rgba(70,40,10,.32)}
/* lane pirmie #4: the card «Parādīt» asked for — lit up for a few beats */
html.classic #modal .bodite .card.focus{box-shadow:0 0 0 3px #FFE14A,0 0 16px rgba(255,214,60,.95);animation:bdFocus .9s ease-in-out 4}
@keyframes bdFocus{50%{box-shadow:0 0 0 5px #FFE14A,0 0 26px rgba(255,214,60,1)}}
@media (prefers-reduced-motion:reduce){html.classic #modal .bodite .card.focus{animation:none}}
html.classic #modal .bodite .card .pic{position:relative;flex:1 1 auto;width:auto;height:auto;aspect-ratio:1;max-height:120px;min-height:48px;max-width:100%;box-sizing:border-box;border-radius:9px;
  border:1px solid #C9B48E;background:#fff;box-shadow:inset 0 0 0 3px #F7F0E2,0 1px 2px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;overflow:hidden}
html.classic #modal .bodite .card .pic img{width:86%;height:86%;max-width:none;max-height:none;object-fit:contain;transition:transform .15s ease-out}
html.classic #modal .bodite .card:hover .pic img{transform:scale(1.06)}
/* lane firstvisit (plan/R63): a card whose picture is still on its way — a soft straw-coloured patch breathes where the
   thing will stand, the picture fades in over it; the box is the same before and after */
html.classic #modal .bodite .card .pic img{opacity:1;transition:transform .15s ease-out,opacity .18s ease-out}
html.classic #modal .bodite .card .pic.wait img{opacity:0}
html.classic #modal .bodite .card .pic.wait::before{content:"";position:absolute;left:50%;top:52%;width:58%;height:46%;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(214,186,134,.55),rgba(214,186,134,.22) 62%,rgba(214,186,134,0));animation:bd-wait 1.1s ease-in-out infinite alternate}
@keyframes bd-wait{from{opacity:.45;transform:translate(-50%,-50%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%) scale(1.04)}}
html.less-motion #modal .bodite .card .pic.wait::before{animation:none}
@media (prefers-reduced-motion:reduce){html.classic #modal .bodite .card .pic.wait::before{animation:none}}
html.classic #modal .bodite .card .lockl{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);padding:2px 8px;border-radius:10px;background:#2F63C7;border:1px solid #fff;color:#fff;font:bold 11.5px/1.3 "Trebuchet MS",sans-serif;white-space:nowrap}
html.classic #modal .bodite .card .nm{flex:none;max-width:100%;font:bold 15px/1.2 "Trebuchet MS",Verdana,sans-serif;font-style:normal;color:#2E7D1E;text-shadow:none;text-align:center;margin:0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
/* a name with one very long word («Sniegpulkstenītes») is set a little smaller, so the card never cuts it */
html.classic #modal .bodite.bodite .card .nm.long{font-size:12px !important;letter-spacing:-.2px}
html.classic #modal .bodite .card .step{flex:none;display:flex;align-items:center;gap:4px;height:26px}
html.classic #modal .bodite .card .step.none{height:0}
/* task 6e18c40d (uxguide, Astra rank 12): a seed card says the tray's own line under its name (ui/seed-line.js) */
html.classic #modal .bodite .card .sl{flex:none;display:flex;flex-direction:column;align-items:center;gap:1px;max-width:100%;font:bold 12px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#5A3A10;text-align:center}
html.classic #modal .bodite .card .sl > *{display:block;max-width:100%;font:inherit;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.classic #modal .bodite .card .sl-g{color:#2E7D1E}
html.classic #modal .bodite .card .step button{position:relative;width:26px;height:26px;padding:0;border-radius:7px;border:2px solid #A14F00;background:linear-gradient(#FFB45A,#F28C1E 60%,#D9700C);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 1px 0 rgba(0,0,0,.25);transition:transform .12s cubic-bezier(.34,1.56,.64,1)}
html.classic.has-ui_step_up #modal .bodite .card .step button{border:0;box-shadow:none;background:var(--s-ui_step_down) center/100% 100% no-repeat}
html.classic.has-ui_step_up #modal .bodite .card .step button.up{background-image:var(--s-ui_step_up)}
html.classic.has-ui_step_up #modal .bodite .card .step button i{display:none}
html.classic #modal .bodite .card .step button i{position:absolute;left:50%;top:50%;width:12px;height:9px;margin:-4px 0 0 -6px;background:#FFF1DC;clip-path:polygon(0 0,100% 0,50% 100%)}
html.classic #modal .bodite .card .step button.up i{margin-top:-5px;clip-path:polygon(50% 0,100% 100%,0 100%)}
html.classic #modal .bodite .card .step button:active{transform:scale(.88)}
html.classic #modal .bodite .card .step input{width:44px;height:24px;box-sizing:border-box;border-radius:3px;border:1px solid #9A9A9A;background:#fff;text-align:center;font:bold 14px "Trebuchet MS",sans-serif;color:#2a2a2a;box-shadow:inset 0 1px 2px rgba(0,0,0,.18)}
html.classic #modal .bodite .card .caps{flex:none;display:flex;justify-content:center;gap:6px;width:100%}
html.classic #modal .bodite .card .price{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:min(150px,92%);height:30px;padding:0 10px 0 6px;box-sizing:border-box;
  border-radius:14px;border:2px solid #8A4A00;background:linear-gradient(#FFD27A 0,#F8B133 35%,#E5891B 80%,#D27610);box-shadow:inset 0 1px 0 rgba(255,250,220,.7),0 2px 0 rgba(90,40,0,.35);
  font:bold 16px/1 "Trebuchet MS",Verdana,sans-serif;color:#fff;cursor:pointer;text-shadow:-1px -1px 0 #6B3300,1px -1px 0 #6B3300,-1px 1px 0 #6B3300,1px 1px 0 #6B3300,0 2px 0 #6B3300;
  transition:transform .12s cubic-bezier(.34,1.56,.64,1),filter .12s}
html.classic #modal .bodite .card .price img{width:22px;height:22px;flex:none;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(0,0,0,.3))}
html.classic #modal .bodite .card .price b{flex:1;text-align:center}
html.classic #modal .bodite .card .price small{font-size:11px;margin-left:-2px}
html.classic #modal .bodite .card .price .coin{width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFF2A8,#F2B21C 60%,#B97A00);flex:none}
html.classic #modal .bodite .card .price .coin.kr{border-radius:3px;transform:rotate(45deg) scale(.8);background:linear-gradient(135deg,#E6C8FF,#9A5BD6 50%,#5E2A92)}
html.classic #modal .bodite .card .price:hover{filter:brightness(1.08)}
html.classic #modal .bodite .card .price:active{transform:scale(.92)}
html.classic #modal .bodite .card .price.cant b{color:#FFE2D6}
html.classic #modal .bodite .card.lock{opacity:.6;filter:none}
html.classic #modal .bodite .card.lock .pic img{filter:grayscale(.5)}
html.classic #modal .bodite .card.lock .price{cursor:default;filter:grayscale(.35)}
html.classic #modal .bodite .soon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:100%;padding:0;color:#FFF4DC;font:bold italic 34px/1.1 "Trebuchet MS",sans-serif;text-shadow:0 3px 0 #4A2810,-2px 0 #4A2810,2px 0 #4A2810,0 -2px #4A2810}
html.classic #modal .bodite .soon img{width:96px;height:90px;object-fit:contain;animation:clBob 2.4s ease-in-out infinite}
html.classic #modal .bodite .soon small{font-size:15px;font-style:normal;text-shadow:0 1px 0 #4A2810}

/* the red X shared by every classic panel */
html.classic #modal .panel .x.cl-x{position:absolute;right:-14px;top:-14px;width:44px;height:44px;padding:0;border:0;border-radius:6px;font-size:0;
  background:var(--s-ui_x_sarkans) center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 3px 0 rgba(0,0,0,.35));transition:transform .14s cubic-bezier(.34,1.56,.64,1)}
html.classic:not(.has-ui_x_sarkans) #modal .panel .x.cl-x{background:linear-gradient(#F0533A,#C42A12);border:3px solid #fff;font:bold 20px/1 sans-serif;color:#fff}
html.classic:not(.has-ui_x_sarkans) #modal .panel .x.cl-x::before{content:"✕"}
html.classic #modal .panel .x.cl-x:hover{transform:scale(1.06) rotate(3deg)}
html.classic #modal .panel .x.cl-x:active{transform:scale(.9)}

/* ================= the cherry parchment (R13 §4.1) ================= */
/* round P (P2): the window always fits the room left between the HUD (--hud-b, measured by dialogs.js) plus the cherries and the
   home indicator; it is a column, the frame fills it and only the body inside the frame scrolls. --pg-bw = the paper's border. */
html.classic #modal .panel.pergaments{--pg-bw:3px;--pg-hud:var(--hud-b,calc(var(--bar) + var(--sat) + 8px));--pg-cherry:76px;--pg-low:calc(var(--sab) + 16px);
  --pg-room:calc(100% - var(--pg-hud) - var(--pg-cherry) - var(--pg-low));
  position:relative;width:min(560px,92vw);max-width:calc(100vw - 2 * max(var(--sal),var(--sar)) - 12px);min-height:min(230px,var(--pg-room));max-height:var(--pg-room);box-sizing:border-box;display:flex;flex-direction:column;padding:34px 30px 30px;
  margin:calc(var(--pg-hud) + var(--pg-cherry)) 0 var(--pg-low);
  border-radius:8px;border:3px solid #8A5A2B;background:repeating-linear-gradient(0deg,rgba(170,110,50,.07) 0 3px,rgba(255,240,210,.06) 3px 9px),linear-gradient(#F4D29E,#ECC283 60%,#E2B272);
  box-shadow:inset 0 0 0 2px rgba(255,245,220,.5),0 14px 34px rgba(0,0,0,.45);color:#3A1D00;text-align:center;animation:clDrop .38s cubic-bezier(.3,1.5,.5,1) both}
html.classic.has-ui_pergaments #modal .panel.pergaments{--pg-bw:28px;border:var(--pg-bw) solid transparent;border-image:var(--s-ui_pergaments) 22% 16% fill / var(--pg-bw) stretch;background:none;box-shadow:none;padding:8px 6px 4px;filter:drop-shadow(0 12px 22px rgba(0,0,0,.4))}
html.classic #modal .pergaments .frame{--pg-fw:6px;position:relative;flex:1 1 auto;min-height:0;box-sizing:border-box;padding:24px 26px 20px;border:6px dashed #C8321C;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
html.classic.has-ui_sarkans_ramis #modal .pergaments .frame{--pg-fw:22px;border:var(--pg-fw) solid transparent;border-image:var(--s-ui_sarkans_ramis) 12% / var(--pg-fw) stretch;padding:10px 14px 8px}
html.classic #modal .pergaments .pt{margin:0;font:bold 24px/1.2 "Trebuchet MS",Verdana,sans-serif;font-style:normal;color:#3A1D00;text-shadow:0 1px 0 rgba(255,240,210,.6);letter-spacing:0}
html.classic #modal .pergaments .pb{margin:0;font:bold 20px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .pergaments .ph{font:16px/1.4 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;overflow:auto;width:100%}
html.classic #modal .pergaments .ph p{margin:4px 0}
html.classic #modal .pergaments .ph .big{display:flex;align-items:center;justify-content:center;gap:8px;font:bold 30px/1 "Trebuchet MS",sans-serif;color:#5B2E9E}
html.classic #modal .pergaments .ph .big img{width:36px;height:36px}
html.classic #modal .pergaments .ph .soon{font:bold italic 22px "Trebuchet MS",sans-serif;color:#C8321C}
html.classic #modal .pergaments .pbtn{display:flex;gap:10px;justify-content:center;margin-top:6px}
html.classic #modal .pergaments .pbtn .btn{height:44px;padding:0 20px;font-size:17px}
html.classic #modal .pergaments .kirsi{position:absolute;left:-74px;top:calc(0px - var(--pg-cherry) - var(--pg-bw));width:170px;height:147px;z-index:3;object-fit:contain;pointer-events:none;transform-origin:42% 12%;
  filter:drop-shadow(0 4px 3px rgba(0,0,0,.3));animation:clBob 2.4s ease-in-out infinite}
html.classic #modal .pergaments .kirsi.css b{position:absolute;width:62px;height:58px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#F07ACB,#B0228A 60%,#7A0F5E);box-shadow:inset 0 -4px 0 rgba(0,0,0,.15)}
html.classic #modal .pergaments .kirsi.css b:first-child{left:46px;top:84px}
html.classic #modal .pergaments .kirsi.css b:nth-child(2){left:108px;top:56px}
html.classic #modal .pergaments .kirsi.css s{position:absolute;left:60px;top:8px;width:70px;height:70px;border:5px solid #3D9A2A;border-color:#3D9A2A transparent transparent #3D9A2A;border-radius:50% 0 0 0;transform:rotate(18deg)}
html.classic #modal .pergaments.wide{width:min(640px,94vw)}
html.classic #modal .pergaments ul.awards,html.classic #modal .pergaments ul.bank,html.classic #modal .pergaments ul.help{list-style:none;margin:8px 0 0;padding:0;text-align:left;display:flex;flex-direction:column;gap:4px}
html.classic #modal .pergaments ul.awards li{display:grid;grid-template-columns:96px 1fr 20px;gap:8px;align-items:center;padding:4px 8px;border-radius:6px;background:rgba(255,248,230,.5);font-size:15px}
html.classic #modal .pergaments ul.awards li.got{background:rgba(190,235,160,.6)}
html.classic #modal .pergaments ul.awards li i{font-style:normal;font-weight:bold;color:#2E7D1E}
html.classic #modal .pergaments ul.bank li{display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;padding:5px 10px;border-radius:6px;background:rgba(255,248,230,.55);font-size:16px}
html.classic #modal .pergaments ul.bank img{width:28px;height:28px;object-fit:contain}
/* play2 mid-game: «12 preces paliek pasūtījumiem un receptēm» — what the Banka's «Pārdot visu» leaves, as in the Noliktava */
html.classic #modal .pergaments p.bank-kept{margin:8px 0 0;font-size:14px;line-height:1.3;color:#6A4A22;text-align:center}
/* task 6e18c40d (plan/R96 #5): «Ko paturēsim?» (ui/keep-plan.js) — a phone: the goods as a list, one open, its lines under it;
   a wide screen: the list on the left, the chosen good on the right. The sum stands by the press, outside the scroll. */
html.classic #modal .pergaments .kp{text-align:left}
html.classic #modal .pergaments .kp-note{margin:8px 0;font-size:15px;line-height:1.35;color:#6A4A22;text-align:center}
html.classic #modal .pergaments .kp-note.kp-stale{color:#A0461E;font-weight:bold}
html.classic #modal .pergaments ul.kp-goods,html.classic #modal .pergaments ul.kp-ls{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
html.classic #modal .pergaments .kp-good{border-radius:6px;background:rgba(255,248,230,.55)}
html.classic #modal .pergaments .kp-head{all:unset;box-sizing:border-box;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-items:center;width:100%;min-height:48px;padding:4px 10px;cursor:pointer;font:16px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .pergaments .kp-head img{grid-row:span 2}
html.classic #modal .pergaments .kp-head:focus-visible,html.classic #modal .pergaments .kp-link:focus-visible{outline:3px solid #C8321C;outline-offset:-3px;border-radius:6px}
html.classic #modal .pergaments .kp-head img,html.classic #modal .pergaments .kp-sh img{width:32px;height:32px;object-fit:contain}
html.classic #modal .pergaments .kp-head small{grid-column:2;font-size:14px;color:#6A4A22}
html.classic #modal .pergaments .kp-good.open .kp-head{font-weight:bold}
html.classic #modal .pergaments .kp-lines{padding:0 10px 4px 50px}
html.classic #modal .pergaments.kp-three .pbtn{flex-wrap:wrap}
html.classic #modal .pergaments .kp-good:not(.open) .kp-lines{display:none}
html.classic #modal .pergaments ul.kp-ls li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 10px;min-height:32px;font-size:15px;line-height:1.3}
html.classic #modal .pergaments ul.kp-ls li.kp-go{font-weight:bold}
html.classic #modal .pergaments .kp-link{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;min-height:48px;padding:0 4px;cursor:pointer;color:#8A2A10;text-decoration:underline;font-size:15px}
html.classic #modal .pergaments .kp-side{display:none}
html.classic #modal .pergaments .kp-sum{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:0 18px;font:bold 17px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .pergaments .kp-sum p{margin:0}
html.classic #modal .pergaments .kp-sum .kp-fee{font-weight:normal;color:#6A4A22}
@media (min-width:900px) and (min-height:521px){
  html.classic #modal .pergaments.kp-win{width:min(760px,calc(100vw - 24px))}
  html.classic #modal .pergaments .kp-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:start}
  html.classic #modal .pergaments .kp-good .kp-lines{display:none}
  html.classic #modal .pergaments .kp-good.open{background:rgba(255,236,190,.95);box-shadow:inset 0 0 0 2px #C8321C}
  html.classic #modal .pergaments .kp-side{display:block;position:sticky;top:0;padding:8px 12px;border-radius:6px;background:rgba(255,248,230,.55)}
  html.classic #modal .pergaments .kp-sh{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;margin:0 0 6px;font-weight:bold}
}
html.classic #modal .pergaments ul.help li{font-size:14.5px;line-height:1.35;padding:3px 4px}
html.classic #modal .pergaments p.help-h{margin:12px 0 0;padding-top:8px;border-top:1px dashed rgba(90,38,0,.3);font:bold 16px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#5a2600;text-align:left}   /* task 6e18c40d (atsauksmes): «Sētas pārkārtošana» */
/* task 6e18c40d (atsauksmes): «Vai spēle patīk?» (ui/review-ask.js) — a small card; the store links as plain chips */
html.classic #modal .pergaments.review-ask{max-width:min(420px,calc(100vw - 32px))}
html.classic #modal .pergaments.review-ask .ra-lead{margin:4px 0 10px;font-size:16px;line-height:1.4;color:#4A2508;text-align:center}
html.classic #modal .pergaments.review-ask .ra-stores{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:6px 0 4px}
html.classic #modal .pergaments.review-ask .ra-store{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid #8A5A2B;border-radius:12px;background:#F8E7BC;color:#4A2508;font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;text-decoration:none;box-shadow:0 2px 0 rgba(74,37,8,.35)}
html.classic #modal .pergaments.review-ask .ra-store:focus-visible{outline:3px solid #1F6FD6;outline-offset:2px}
/* task 6e18c40d (atsauksmes): «Raksti mums» in Palīdzība — the letter form opens in Profils → «Par spēli» */
/* plan/R141 §2: «Palīdzība» — the search line, the two how-tos with a picture each, a search that finds nothing */
html.classic #modal .pergaments p.help-find{margin:4px 0 2px}
html.classic #modal .pergaments .help-q{width:100%;box-sizing:border-box;min-height:44px;padding:0 12px;border:2px solid #8A5A2B;border-radius:12px;background:#FFF9E8;color:#3A2208;
  font:15px/1.2 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .pergaments .help-q:focus-visible{outline:3px solid #1F6FD6;outline-offset:2px}
html.classic #modal .pergaments .help-how{display:flex;gap:12px;align-items:flex-start;margin:8px 0 0;padding:8px;border-radius:10px;background:rgba(255,248,228,.6);border:1px solid rgba(90,38,0,.18);text-align:left}
html.classic #modal .pergaments .help-how img{flex:none;width:168px;height:auto;aspect-ratio:3/2;border-radius:8px;border:2px solid rgba(90,38,0,.35);object-fit:cover}
html.classic #modal .pergaments .help-how-h{margin:0 0 4px;font:bold 15px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#5a2600}
html.classic #modal .pergaments .help-how ol{margin:0;padding-left:20px;font-size:14px;line-height:1.35}
html.classic #modal .pergaments .help-how ol li{margin:2px 0}
@media (max-width:520px){html.classic #modal .pergaments .help-how{flex-direction:column;gap:6px}html.classic #modal .pergaments .help-how img{width:100%}}
html.classic #modal .pergaments [data-help][hidden],html.classic #modal .pergaments [data-help-h][hidden],html.classic #modal .pergaments p.help-none[hidden]{display:none}
html.classic #modal .pergaments p.help-none{margin:10px 0 0;font-size:14px;color:#7a4a1c;text-align:left}
html.classic #modal .pergaments p.help-write{margin:12px 0 0;padding-top:8px;border-top:1px dashed rgba(90,38,0,.3);font-size:14px;color:#5a2600;text-align:left}
html.classic #modal .pergaments .help-write-b{min-height:44px;margin:0 6px 0 0;padding:0 14px;border:2px solid #8A5A2B;border-radius:12px;background:#F8E7BC;color:#4A2508;font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;cursor:pointer;box-shadow:0 2px 0 rgba(74,37,8,.35)}
html.classic #modal .pergaments .help-write-b:focus-visible{outline:3px solid #1F6FD6;outline-offset:2px}
html.classic #modal .pergaments p.help-ver{margin:10px 0 0;padding-top:6px;border-top:1px dashed rgba(90,38,0,.3);font-size:12.5px;color:#7a4a1c;text-align:center;user-select:text;-webkit-user-select:text}   /* lane T1: the version a player names to support */
html.classic #modal .pergaments p.help-ver a,html.classic #modal .pergaments p.help-legal a{color:#7a3a00;text-decoration:underline;text-underline-offset:2px}
html.classic #modal .pergaments p.help-legal{margin:8px 0 0;font-size:14px;text-align:center;line-height:2}   /* lane launch (R57 #3): Noteikumi · Privātums · Sīkdatnes; the row is 28 px tall for a thumb */
/* task 6e18c40d (uxnav, Astra section 3): Palīdzība's three doors on top, the pages behind them (ui/help-pages.js), each with
   its way back first; every press a finger high */
html.classic #modal .pergaments .help-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0 10px}
@media (max-width:520px){html.classic #modal .pergaments .help-start{grid-template-columns:1fr}}
html.classic #modal .pergaments .help-door{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:56px;padding:8px 12px;border:2px solid #8A5A2B;border-radius:12px;
  background:#F8E7BC;color:#4A2508;text-align:left;cursor:pointer;box-shadow:0 2px 0 rgba(74,37,8,.35)}
html.classic #modal .pergaments .help-door b{font:bold 16px/1.2 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .pergaments .help-door small{font-size:13px;line-height:1.25;color:#6B4A2A}
html.classic #modal .pergaments .help-door:focus-visible,html.classic #modal .pergaments .help-link:focus-visible,html.classic #modal .pergaments .help-back-b:focus-visible{outline:3px solid #1F6FD6;outline-offset:2px}
html.classic #modal .pergaments p.help-back{margin:0 0 8px;text-align:left}
html.classic #modal .pergaments .help-back-b,html.classic #modal .pergaments .help-link{min-height:44px;padding:0 4px;border:0;background:none;color:#7a3a00;cursor:pointer;
  font:bold 15px/1.2 "Trebuchet MS",Verdana,sans-serif;text-align:left;text-decoration:underline;text-underline-offset:3px}
html.classic #modal .pergaments ul.help-more{list-style:none;margin:2px 0 0;padding:0}
html.classic #modal .pergaments ul.help-more li{padding:0}
html.classic #modal .pergaments ol.help-steps{list-style:none;margin:4px 0 8px;padding:0;text-align:left}
html.classic #modal .pergaments ol.help-steps li{display:flex;gap:10px;align-items:flex-start;margin:0 0 6px;padding:8px 10px;border-radius:10px;background:rgba(255,248,228,.6);border:1px solid rgba(90,38,0,.18);font-size:14.5px;line-height:1.35}
html.classic #modal .pergaments ol.help-fence li{display:block}
html.classic #modal .pergaments ol.help-steps li b{display:block}
html.classic #modal .pergaments .help-n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#5A2600;color:#FFF3D6;font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .pergaments p.help-where,html.classic #modal .pergaments p.help-news,html.classic #modal .pergaments p.help-line{margin:4px 0 8px;font-size:14.5px;line-height:1.4;text-align:left}
html.classic #modal .pergaments .help-tools small{color:#6B4A2A}
html.classic #modal .pergaments .help-rules{padding:10px 12px;border-radius:10px;background:rgba(255,250,232,.75);border:2px solid #C49A62;text-align:left;font-size:14.5px;line-height:1.4}
html.classic #modal .pergaments .help-rules ul{margin:6px 0;padding-left:20px}
html.classic #modal .pergaments .help-rules li{margin:2px 0}
html.classic #modal .pergaments .help-rules small{display:block;color:#6B4A2A;font-size:13px}
/* the level-up card as a parchment */
html.classic #modal .panel.pergaments.lv-card{width:min(480px,92vw);text-align:center}
html.classic #modal .lv-card .ros{position:relative;left:auto;top:auto;width:84px;height:92px;margin:-4px auto 2px;transform:none;animation:clRosIn .7s cubic-bezier(.3,1.6,.5,1) .12s both}
html.classic #modal .lv-card .ros img{width:100%;height:100%;object-fit:contain}
html.classic #modal .lv-card .ros .ros-css{position:absolute;inset:0 8px 16px;border-radius:50%;background:radial-gradient(#FFF6DA 0 44%,#2F7FD8 46% 70%,#1B4F9A 72%)}
html.classic #modal .lv-card .ros b{position:absolute;left:0;right:0;top:19px;font:bold italic 34px/1 "Trebuchet MS",sans-serif;color:#FFE14A;
  text-shadow:-3px 0 #1B2F6B,3px 0 #1B2F6B,0 -3px #1B2F6B,0 3px #1B2F6B,-2px -2px #1B2F6B,2px -2px #1B2F6B,-2px 2px #1B2F6B,2px 2px #1B2F6B,0 4px 0 #0f1c44}
html.classic #modal .lv-card h2.pt{font-size:26px}
html.classic #modal .lv-card .prize{font:bold 17px/1.4 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;margin:2px 0}
html.classic #modal .lv-card .unl{margin:4px 0 0;font:bold 14px "Trebuchet MS",sans-serif;color:#5a2600}
html.classic #modal .lv-card ul{margin:6px 0 8px}
html.classic #modal .lv-card li.rw{display:inline-flex;align-items:center;gap:5px}
html.classic #modal .lv-card li.rw img{width:18px;height:18px}
/* lane ekonomika (play2 #12): the day's gift card — the box, what it gave, «Nākamā dāvana — rīt.» */
html.classic #modal .panel.pergaments.gift-card{width:min(360px,92vw);text-align:center}
html.classic #modal .gift-card .gc-box img{width:96px;height:96px;object-fit:contain;animation:clRosIn .6s cubic-bezier(.3,1.6,.5,1) .05s both}
html.classic #modal .gift-card .gc-main{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0;font:bold 26px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .gift-card .gc-main img{width:30px;height:30px;object-fit:contain}
html.classic #modal .gift-card .gc-extra{list-style:none;margin:6px 0 4px;padding:0;font:14px/1.45 "Trebuchet MS",Verdana,sans-serif;color:#5a2600}
html.classic #modal .gift-card .gc-next{margin:6px 0 2px;font:italic 13px "Trebuchet MS",Verdana,sans-serif;color:#7a4a1c}
@media (prefers-reduced-motion:reduce){html.classic #modal .gift-card .gc-box img{animation:none}}
/* lane ekonomika (play2 #12): «Uz savu sētu» — comes up in the top middle when the camera has drifted off the yard */
html.classic #b-back{position:fixed;z-index:6;left:50%;top:calc(var(--bar) + 58px + var(--sat));transform:translateX(-50%);display:flex;align-items:center;gap:6px;
  height:40px;padding:0 14px 0 6px;border-radius:20px;border:2px solid var(--line);cursor:pointer;font:bold 15px "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;
  background:linear-gradient(#FFE29A,#F2B544 55%,#D08A1C);box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 rgba(0,0,0,.3);animation:clBackIn .25s ease-out both}
html.classic #b-back[hidden]{display:none}
html.classic #b-back img{width:30px;height:30px;object-fit:contain}
html.classic #b-back:hover{filter:brightness(1.07)}
html.classic #b-back:active{transform:translateX(-50%) scale(.95)}
html.classic #b-back:focus-visible{outline:3px solid #fff;outline-offset:2px}
@keyframes clBackIn{0%{opacity:0;transform:translate(-50%,-8px)}100%{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){html.classic #b-back{animation:none}}
@media (max-width:960px),(max-height:520px){html.classic #b-back{top:calc(var(--bar) + 112px + var(--sat));height:36px;font-size:14px}}   /* a phone: under the pinned task's strip */
/* round P (P2): only the body scrolls, inside the red frame; while more waits below, its bottom edge fades (dialogs.js sets .pg-more) */
html.classic #modal .pergaments .frame>:is(.pt,.pb,.pbtn,.pk-top,.foot){flex:none}
html.classic #modal .pergaments .frame>:is(.ph,.aw-body,.hm-body,.body){flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html.classic #modal .pergaments .frame>:is(.pg-more,.pg-less){--pg-ft:0px;--pg-fb:0px;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--pg-ft),#000 calc(100% - var(--pg-fb)),transparent);mask-image:linear-gradient(to bottom,transparent,#000 var(--pg-ft),#000 calc(100% - var(--pg-fb)),transparent)}
html.classic #modal .pergaments .frame>.pg-more{--pg-fb:36px}
html.classic #modal .pergaments .frame>.pg-less{--pg-ft:18px}
/* Draugi, Noliktava and Spēles are pergament windows too (one window family): their rows on the paper, dark ink */
html.classic #modal .pergaments .frame>.body{width:100%;box-sizing:border-box;padding:2px 2px 6px;text-align:left}
html.classic #modal .pergaments .body .rows{gap:6px}
html.classic #modal .pergaments .body .row{background:rgba(255,248,230,.6);border:1px solid rgba(138,90,43,.35);box-shadow:none;color:#3A1D00;font-family:"Trebuchet MS",Verdana,sans-serif}
html.classic #modal .pergaments .body .row .btn{min-height:44px;flex:none}
html.classic #modal .pergaments .body .empty{color:#6B4A2A;text-shadow:none;padding:18px 8px}
html.classic #modal .pergaments .body .note{padding:0 4px 8px;color:#3A1D00;font:15px/1.35 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .pergaments .body .note small{color:#6B4A2A}
html.classic #modal .pergaments .body .note b{color:#2E7D1E}
/* Draugi: the favourite star is a gold glyph on the paper (a 44 px target), not a second grey button beside «Ciemoties» */
html.classic #modal .pergaments.friends .row>button:first-of-type{width:44px;min-width:44px;padding:0;border:0;background:none;box-shadow:none;color:#C98A0C;
  font:28px/1 "Trebuchet MS",Verdana,sans-serif;text-shadow:0 1px 0 rgba(255,245,220,.8)}
html.classic #modal .pergaments .body .keep{border-top-color:rgba(138,90,43,.45)}
html.classic #modal .pergaments .body .keep h4{color:#5A2600;text-shadow:none}
html.classic #modal .pergaments .body .keep .keep-why{color:#6B4A2A}
html.classic #modal .pergaments .frame>.foot{width:100%;display:flex;justify-content:center;padding:6px 0 2px;background:none;border:0;box-shadow:none}
html.classic #modal .pergaments .frame>.foot .btn{min-height:44px}
/* the room each window gets: compact screens */
@media (max-width:960px),(max-height:520px){
  html.classic #modal .panel.pergaments{--pg-hud:var(--hud-b,calc(var(--bar) + var(--sat) + 4px));--pg-cherry:38px;--pg-low:calc(var(--sab) + 10px)}
  html.classic #modal .pergaments .kirsi{left:-40px;width:112px;height:97px}
}
/* an upright phone: a thinner paper and frame give the words the width; the cherries sit on the paper's corner, under the HUD */
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .panel.pergaments{--pg-hud:var(--hud-b,calc(var(--bar) + 48px + var(--sat)));--pg-cherry:28px}
  html.classic.has-ui_pergaments #modal .panel.pergaments{--pg-bw:20px;padding:4px 2px 2px}
  html.classic.has-ui_sarkans_ramis #modal .pergaments .frame{--pg-fw:16px;padding:8px 8px 4px}
  html.classic #modal .pergaments .kirsi{left:-12px;width:92px;height:80px}
  /* Draugi: the name and the farm get the row's whole width, the star and «Ciemoties» stand under them */
  html.classic #modal .pergaments.friends .row{display:grid;grid-template-columns:44px 1fr auto;grid-template-areas:"ic tx tx" "star . go";column-gap:8px;row-gap:2px}
  html.classic #modal .pergaments.friends .row>.ic{grid-area:ic}
  html.classic #modal .pergaments.friends .row>.tx{grid-area:tx}
  html.classic #modal .pergaments.friends .row>button:first-of-type{grid-area:star}
  html.classic #modal .pergaments.friends .row>button:last-of-type{grid-area:go;justify-self:end}
}
/* a narrow upright phone (SE, mini, 320 pt): thinner paper and frame again — the rows keep their words on one or two lines */
@media (max-width:360px) and (min-height:501px){
  html.classic.has-ui_pergaments #modal .panel.pergaments{--pg-bw:16px;padding:3px 1px 1px}
  html.classic.has-ui_sarkans_ramis #modal .pergaments .frame{--pg-fw:12px;padding:6px 5px 3px}
  html.classic #modal .pergaments .kirsi{left:-14px;width:84px;height:73px}
  html.classic #modal .pergaments .body .row{padding:6px 8px;gap:8px}
  html.classic #modal .pergaments .body .row .btn{padding:0 10px}
}
/* a sideways phone: 390 pt of height — thin paper, small cherries on the corner, a smaller title */
@media (max-height:520px){
  html.classic #modal .panel.pergaments{--pg-cherry:12px;--pg-low:calc(var(--sab) + 4px);max-width:calc(100vw - 2 * max(var(--sal),var(--sar)) - 40px)}
  html.classic.has-ui_pergaments #modal .panel.pergaments{--pg-bw:16px;padding:2px 2px 0}
  html.classic.has-ui_sarkans_ramis #modal .pergaments .frame{--pg-fw:14px;padding:4px 10px 2px;gap:4px}
  html.classic #modal .pergaments .kirsi{left:-30px;width:72px;height:62px}
  html.classic #modal .pergaments .frame>.pt{font-size:18px}
}

/* ================= press squash release (js/ui/kit.js squash) ================= */
html.classic .cl-rel{animation:clRel .18s cubic-bezier(.34,1.56,.64,1)}

/* ================= motion ================= */
@keyframes clRosPop{0%{transform:scale(1)}40%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes clRosIn{0%{transform:scale(0) rotate(-40deg)}100%{transform:none}}
@keyframes clPulse{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes clRel{0%{transform:scale(.93)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
@keyframes clBreathe{0%,100%{box-shadow:0 0 0 2px rgba(143,243,255,.8),0 0 9px 2px rgba(111,231,255,.5)}50%{box-shadow:0 0 0 3px rgba(143,243,255,1),0 0 18px 5px rgba(111,231,255,.85)}}
@keyframes clToastIn{from{transform:translateX(-20px);opacity:0}to{transform:none;opacity:1}}
@keyframes clTipIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes clTrayIn{from{transform:scaleX(.2);opacity:0}to{transform:none;opacity:1}}
@keyframes clCell{from{transform:translateY(6px);opacity:0}to{transform:none;opacity:1}}
@keyframes clBoditeIn{0%{transform:scale(.85);opacity:0}70%{transform:scale(1.03);opacity:1}100%{transform:none;opacity:1}}
@keyframes clRibbon{0%{transform:translateY(-30px);opacity:0}60%{transform:translateY(4px);opacity:1}100%{transform:none;opacity:1}}
@keyframes clMascL{from{transform:translateX(-46px) rotate(-14deg);opacity:0}to{transform:none;opacity:1}}
@keyframes clMascR{from{transform:translateX(46px) rotate(14deg);opacity:0}to{transform:none;opacity:1}}
@keyframes clStar{0%{transform:scale(0) rotate(-30deg);opacity:0}70%{transform:scale(1.25);opacity:1}100%{transform:none;opacity:1}}
@keyframes clInR{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
@keyframes clInL{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes clDrop{0%{transform:translateY(-40px) rotate(-2deg);opacity:0}65%{transform:translateY(5px) rotate(.6deg);opacity:1}100%{transform:none;opacity:1}}
@keyframes clDropSm{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
@keyframes clBob{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-3px) rotate(-2deg)}75%{transform:translateY(3px) rotate(2deg)}}
@keyframes clPop{from{transform:scale(.9);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
  html.classic #hud *,html.classic #modal *,.cl-tip{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
html.classic.less-motion #hud *,html.classic.less-motion #modal *,html.less-motion .cl-tip{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}

/* ================= compact: one row (tablets, phones held sideways) — R13 §2.4 landscape ================= */
@media (max-width:960px),(max-height:520px){
  html.classic{--bar:40px}
  html.classic #b-radio{display:block}
  html.classic #b-full{display:none}
  html.classic #topbar .rosette{width:46px;height:56px;margin-top:-3px}
  html.classic #topbar .rosette .badge{left:1px;width:44px;height:48px}
  html.classic #topbar .rosette .astes{left:10px;top:28px;width:26px;height:28px}
  html.classic #topbar .rosette b{top:10px;font-size:19px;text-shadow:-2px 0 #1B2F6B,2px 0 #1B2F6B,0 -2px #1B2F6B,0 2px #1B2F6B,-1px -1px #1B2F6B,1px -1px #1B2F6B,-1px 1px #1B2F6B,1px 1px #1B2F6B,0 3px 0 #0f1c44}
  html.classic #topbar .plank{height:28px;margin-left:8px}
  html.classic #topbar .plank.xp{width:90px;margin-left:2px}
  html.classic #topbar .inset{height:28px;border-radius:7px;padding:0 6px}
  html.classic #topbar .inset span{font-size:15px}
  html.classic #topbar .plank .ic{width:30px;height:30px;margin-right:-12px}
  html.classic #topbar .inset.green{width:104px;padding:0 6px 0 16px}
  html.classic #topbar .inset.purple{width:70px;padding:0 6px 0 16px}
  html.classic #topbar .inset .ls{font-size:10px;margin-left:2px}
  html.classic #topright{top:calc(var(--sat) + 3px);height:34px;gap:4px}
  html.classic #topright .hudtab{width:34px;height:34px}
  html.classic #topright .hudtab img{width:26px;height:26px}
  html.classic #topright .gohome.wide{height:34px;padding:0 8px 0 4px}
  html.classic #topright .gohome.wide img{width:26px;height:26px}
  html.classic #topright .gohome.wide span{font-size:13px}
  html.classic #banner,html.classic #banner-list,html.classic #b-more{display:none}
  html.classic #rcol #radio-badge{display:none}   /* lane V: phones keep the radio in the small bar (#b-radio) */
  html.classic #toasts{top:calc(var(--bar) + 26px + var(--sat));width:min(320px,calc(100vw - 120px))}
  html.classic .toast{font-size:14px;padding:5px 10px 6px;pointer-events:auto;cursor:pointer}
  html.classic #toasts>.toast:first-child:nth-last-child(3){display:none}
  html.classic #rcol{bottom:calc(98px + var(--sab));gap:6px}
  html.classic #rcol .rc{width:40px;height:40px;padding:3px;border-radius:8px}
  html.classic #rcol .rc.small{width:24px;height:24px;padding:1px;border-radius:6px}
  html.classic #rcol .rc .q{font-size:15px}
  html.classic #side{bottom:calc(64px + var(--sab));gap:3px}
  html.classic #side .sb{width:26px;height:26px;padding:3px;border-radius:5px}
  html.classic #side .sb.txt{font-size:16px}
  html.classic #palette{left:auto;right:calc(8px + var(--sar));transform:none;bottom:calc(6px + var(--sab));gap:5px}
  html.classic .tool{width:52px;height:52px;padding:4px;border-radius:7px}
  html.classic .tool.sel{border-width:2px}
  html.classic #b-tray{width:22px;height:70px;bottom:calc(6px + var(--sab))}
  html.classic #seedpick{left:calc(34px + var(--sal));bottom:calc(2px + var(--sab));height:96px;max-width:calc(100vw - 360px - var(--sal) - var(--sar));padding:4px 5px 3px}
  html.classic.has-ui_tray_ramis #seedpick{border-width:6px 7px 10px;border-image-width:6px 7px 10px}
  html.classic.has-ui_suna_sel #seedpick .seed.sel{box-shadow:0 0 0 2px var(--cyan),0 0 8px rgba(111,231,255,.8)}
  html.classic.has-ui_suna_sel #seedpick .seed.sel::before{display:none}
  html.classic #seedpick .seed{width:88px;height:73px}   /* uxguide: the seed's line under the name */
  html.classic #seedpick .seed img{width:36px;height:24px}
  /* lane P5 (round P #1): the names were 9.5 px — 11 px is the floor on a phone */
  html.classic #seedpick .seed b{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  html.classic #seedpick .seed small{font-size:11px}
  html.classic #hostplate{top:calc(var(--bar) + 8px + var(--sat))}
  /* Bodīte, sideways: 4 × 1 cards, tabs 2 × 5 at 12 px */
  html.classic #modal .panel.bodite{width:calc(100vw - 16px - var(--sal) - var(--sar));height:calc(100vh - 44px);margin-top:36px;border-width:6px;border-radius:10px}
  html.classic #modal .bodite .lente{left:12%;right:12%;top:-38px;height:44px}
  html.classic #modal .bodite .lente .end{width:72px}
  html.classic #modal .bodite .lente h2{top:6px;font-size:26px}
  html.classic #modal .bodite .st{width:20px;height:20px;margin-left:-10px;font-size:18px;line-height:20px}
  html.classic #modal .bodite .st.s0,html.classic #modal .bodite .st.s4{display:none}
  html.classic #modal .bodite .stars{top:20px}
  html.classic #modal .bodite .st.s1{left:-52px;top:-18px}html.classic #modal .bodite .st.s2{top:-24px}html.classic #modal .bodite .st.s3{left:52px;top:-18px}
  html.classic #modal .bodite .masc.l{left:6%;top:-44px;width:56px;height:54px}
  html.classic #modal .bodite .masc.r{right:7%;top:-62px;width:46px;height:78px}
  html.classic #modal .panel.bodite .x.cl-x{right:-4px;top:-40px;width:36px;height:36px}
  html.classic #modal .bodite .tabs{gap:4px 6px;padding:12px 14px 6px}
  html.classic #modal .bodite .tabs button{height:26px;font-size:12px;border-radius:5px}
  html.classic #modal .bodite .tabs button.on{border-width:2px}
  html.classic #modal .bodite .boardwrap{grid-template-columns:36px 1fr 36px;gap:6px;padding:0 6px}
  html.classic #modal .bodite .arrow{width:36px;height:min(120px,80%);border-width:4px;border-radius:9px}
  html.classic #modal .bodite .arrow i{width:14px;height:24px;margin:-12px 0 0 -9px}
  html.classic #modal .bodite .arrow.next i{margin-left:-5px}
  html.classic #modal .bodite .board{padding:8px;border-width:4px}
  html.classic #modal .bodite .page{gap:8px}
  html.classic #modal .bodite .card{padding:5px 6px 6px;gap:3px;border-width:2px}
  html.classic #modal .bodite .card .nm{font-size:13px;-webkit-line-clamp:1;line-clamp:1}
  html.classic #modal .bodite .card .price{height:30px}
  html.classic #modal .bodite .pageno{height:16px;line-height:16px;font-size:12px}
  html.classic #modal .pergaments .pb{font-size:17px}
  html.classic #modal .pergaments .pt{font-size:20px}
}
/* wider sideways phones and tablets: the Bodīte board keeps 2 rows when there is height for them */
@media (max-width:960px) and (min-height:521px){
  html.classic #modal .panel.bodite{height:min(680px,calc(100vh - 70px));margin-top:56px}
  html.classic #modal .bodite .lente{top:-50px;height:56px}
  html.classic #modal .bodite .lente h2{top:8px;font-size:32px}
  html.classic #modal .bodite .tabs button{height:32px;font-size:13px}
}

/* ================= phone held upright (R13 §2.4 portrait): two-row bar, centred tools, full-screen Bodīte ================= */
@media (max-width:640px) and (min-height:501px){
  html.classic{--bar:44px}
  html.classic #topbar{height:calc(var(--bar) + 36px + var(--sat));align-items:flex-start;padding-top:calc(var(--sat) + 8px)}
  html.classic #topbar .rosette{width:48px;height:42px;margin-top:-6px}
  html.classic #topbar .rosette .badge{left:1px;width:46px;height:50px}
  html.classic #topbar .rosette b{top:11px;font-size:19px}
  html.classic #topright{left:0;right:0;top:calc(var(--bar) + var(--sat));height:36px;justify-content:center;gap:4px}
  html.classic #topright .hudtab{width:36px;height:36px}
  html.classic #topright .hudtab img{width:27px;height:27px}
  html.classic #topright .gohome.wide{height:34px}
  html.classic #toasts{left:calc(8px + var(--sal));right:calc(60px + var(--sar));width:auto;top:calc(var(--bar) + 42px + var(--sat))}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 92px + var(--sat))}
  html.classic #hostplate{top:calc(var(--bar) + 40px + var(--sat))}
  html.classic #toasts .toast{max-width:100%}
  html.classic #rcol{bottom:calc(112px + var(--sab))}
  html.classic #rcol .rc{width:44px;height:44px}
  html.classic #rcol .rc.small{width:28px;height:28px}
  html.classic #side{bottom:calc(76px + var(--sab))}
  html.classic #side .sb{width:28px;height:28px}
  html.classic #palette{left:50%;right:auto;transform:translateX(-50%);bottom:calc(12px + var(--sab));gap:4px}
  html.classic .tool{width:56px;height:56px}
  html.classic #b-tray{bottom:calc(12px + var(--sab));height:56px;width:22px}
  html.classic #seedpick{left:calc(8px + var(--sal));right:calc(8px + var(--sar));max-width:none;bottom:calc(72px + var(--sab));height:auto;max-height:162px;flex-wrap:wrap;align-content:flex-start;overflow-y:auto;overflow-x:hidden;justify-content:center}
  html.classic #seedpick .seed{width:60px;height:60px}
  /* lane P5 (round P #1): the third row was cut at 162 px and the names were 9.5 px — a grid of ≥ 64 px cells (5 a row on a
     393 pt phone, 4 on a 320 pt one), 12 px names, every row of the 12–15 seeds in view */
  /* uxguide (Astra rank 12): each seed says its cost, gain and time with their words — cells of ≥ 104 px (3 a row on a 375–393
     pt phone, 2 on a 320 pt one), rows of 82 px, the tray up to 340 px tall (it scrolls past that) */
  html.classic #seedpick{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));grid-auto-rows:82px;gap:4px;max-height:min(340px,calc(100vh - 300px))}
  html.classic #seedpick .seed{width:auto;height:82px}
  html.classic #seedpick .seed b{font-size:12px}
  html.classic #seedpick .seed small{font-size:11.5px}
  html.classic #hud:has(#seedpick:not([hidden])) #side,html.classic #hud:has(#seedpick:not([hidden])) #rcol{visibility:hidden}
  html.classic #seedpick .seed img{width:42px;height:34px}
  html.classic #gift{top:calc(var(--bar) + 150px + var(--sat))}
  /* Bodīte full screen: ribbon 70 %, 3 stars, 56 px mascots, one swipeable strip of tabs, 2 × 2 cards */
  html.classic #modal .panel.bodite{width:100vw;height:100vh;height:100dvh;margin:0;border-radius:0;border-width:0;padding:calc(64px + var(--sat)) 0 calc(6px + var(--sab));box-shadow:none}
  html.classic #modal .bodite .lente{left:15%;right:15%;top:calc(10px + var(--sat));height:48px}
  html.classic #modal .bodite .lente .end{width:64px}
  html.classic #modal .bodite .lente h2{top:7px;font-size:28px}
  html.classic #modal .bodite .st.s1{left:-46px;top:-6px}html.classic #modal .bodite .st.s2{top:-12px}html.classic #modal .bodite .st.s3{left:46px;top:-6px}
  html.classic #modal .bodite .masc.l{left:2px;top:calc(4px + var(--sat));width:56px;height:56px}
  html.classic #modal .bodite .masc.r{right:44px;top:calc(2px + var(--sat));width:40px;height:62px}
  html.classic #modal .panel.bodite .x.cl-x{right:6px;top:calc(12px + var(--sat));width:36px;height:36px}
  html.classic #modal .bodite .tabs{display:flex;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:6px;padding:8px 10px 8px}
  html.classic #modal .bodite .tabs::-webkit-scrollbar{display:none}
  html.classic #modal .bodite .tabs button{flex:0 0 auto;height:34px;font-size:13px;padding:0 12px;overflow:visible}
  html.classic #modal .bodite .boardwrap{grid-template-columns:28px 1fr 28px;gap:4px;padding:0 4px}
  html.classic #modal .bodite .arrow{width:28px;height:120px;border-width:3px;border-radius:8px}
  html.classic #modal .bodite .card{justify-content:space-evenly}
  html.classic #modal .bodite .card .pic{flex:0 1 auto;width:88%;max-height:150px}
  html.classic #modal .bodite .card .nm{-webkit-line-clamp:2;line-clamp:2;font-size:14px}
  html.classic #modal .bodite .card .price{height:36px;font-size:17px}
  html.classic #modal .bodite .card .step button{width:30px;height:30px}
  html.classic #modal .bodite .card .step input{height:28px}
}
/* on wide screens the page arrows stand outside the panel, as in the original */
@media (min-width:1220px) and (min-height:640px){
  html.classic #modal .bodite .boardwrap{grid-template-columns:1fr;padding:0 34px}
  html.classic #modal .bodite .arrow{position:absolute;top:50%;width:66px;height:250px;margin-top:-80px}
  html.classic #modal .bodite .arrow.prev{left:-100px}
  html.classic #modal .bodite .arrow.next{right:-100px}
  html.classic #modal .bodite .arrow i{width:28px;height:48px;margin:-24px 0 0 -16px}
  html.classic #modal .bodite .arrow.next i{margin-left:-12px}
}
/* phones: the radio opens as a bottom sheet (ferma.css). Lane P5 (round P #2): the small bar used to ride above the sheet and
   floated mid-screen over the farm — it steps aside like the palette; the sheet closes by its grip (a 44 px button), a swipe
   down or a tap on the farm */
@media (max-width:760px),(max-height:520px){
  html.classic body.radio-open #side{visibility:hidden}
  html.classic body.radio-open #rcol{visibility:hidden}
}
/* narrower desktops: the ribbon and the X stay inside the window */
@media (min-width:961px) and (max-width:1219px){
  html.classic #modal .bodite .lente{left:-3%;right:-3%}
  html.classic #modal .panel.bodite .x.cl-x{right:-6px}
}
/* Bodīte picture tabs (owner 2026-11-10: smarter sizing, icons for the categories): one row of 12, icon over a short name */
html.classic #modal .bodite .tabs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;padding:18px 22px 8px}   /* one row however many tabs (lane items2: «Rotājumi» is the 13th) */
html.classic #modal .bodite .tabs button{height:64px;padding:5px 2px 4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;white-space:normal;overflow:hidden}
html.classic #modal .bodite .tabs button img{flex:none;width:38px;height:32px;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(60,30,0,.3));transition:transform .15s cubic-bezier(.34,1.56,.64,1)}
html.classic #modal .bodite .tabs button span{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font-size:11.5px;line-height:1.08;text-align:center;word-break:normal;hyphens:auto}
html.classic #modal .bodite .tabs button:hover img,html.classic #modal .bodite .tabs button.on img{transform:scale(1.14) translateY(-1px)}
@media (max-width:960px),(max-height:520px){
  html.classic #modal .bodite .tabs{gap:4px;padding:10px 12px 6px}
  html.classic #modal .bodite .tabs button{height:46px;padding:3px 1px 2px;gap:1px;border-radius:6px}
  html.classic #modal .bodite .tabs button img{width:26px;height:22px}
  html.classic #modal .bodite .tabs button span{font-size:9.5px;-webkit-line-clamp:1;line-clamp:1;white-space:nowrap;text-overflow:ellipsis;display:block}
}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .bodite .tabs{display:flex;overflow-x:auto;gap:6px;padding:8px 10px}
  html.classic #modal .bodite .tabs button{flex:0 0 74px;height:58px;padding:4px 3px 3px}
  html.classic #modal .bodite .tabs button img{width:30px;height:26px}
  html.classic #modal .bodite .tabs button span{font-size:10.5px;white-space:normal;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box}
}

/* R18 lane W7 — the recipe picker (dialogs.js recipePicker) and the house choice (upgradeChoice), in the parchment look */
html.classic #modal .pergaments .rcp-note{margin:0 0 6px;font-style:italic;color:#6B3A00}
html.classic #modal .pergaments .rcp-job{display:grid;grid-template-columns:40px 1fr;gap:4px 10px;align-items:center;margin:0 0 8px;padding:6px 10px;border-radius:8px;background:rgba(255,236,170,.65);text-align:left}
html.classic #modal .pergaments .rcp-job img{grid-row:span 2;width:40px;height:40px;object-fit:contain}
html.classic #modal .pergaments .rcp-bar{display:block;height:10px;border-radius:5px;background:rgba(90,50,10,.18);overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
html.classic #modal .pergaments .rcp-bar s{display:block;height:100%;background:linear-gradient(#9BE05A,#3D9A2A);text-decoration:none}
/* «Rīta rasa» under a running job (lead D1): the button + its one-line reason, spanning the text column */
html.classic #modal .pergaments .rcp-job .rcp-rasa{grid-column:2;justify-self:start;margin-top:4px;padding:4px 12px;font-size:14px}
html.classic #modal .pergaments .rcp-job .rcp-rasa-why{grid-column:2;font-size:12px;color:#6B4A1E}
html.classic #modal .pergaments ul.rcp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px;text-align:left}
html.classic #modal .pergaments li.rcp{display:grid;grid-template-columns:minmax(120px,1.1fr) minmax(110px,1.4fr) auto auto;gap:8px;align-items:center;padding:5px 8px;border-radius:7px;background:rgba(255,248,230,.6);font-size:15px}
html.classic #modal .pergaments li.rcp.off{opacity:.55}
html.classic #modal .pergaments .rcp-out{display:flex;align-items:center;gap:6px;min-width:0}
html.classic #modal .pergaments .rcp-out img{width:34px;height:34px;object-fit:contain;flex:none}
html.classic #modal .pergaments .rcp-ins{display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px}
html.classic #modal .pergaments .rcp-in{display:inline-flex;align-items:center;gap:2px;font-weight:bold;white-space:nowrap}
html.classic #modal .pergaments .rcp-in img{width:24px;height:24px;object-fit:contain}
html.classic #modal .pergaments .rcp-in small{font-weight:normal;color:#7A5A30}
html.classic #modal .pergaments .rcp-in.short,html.classic #modal .pergaments .rcp-in.short small{color:#B3261E}
html.classic #modal .pergaments .rcp-plus{color:#8A5A2A}
html.classic #modal .pergaments .rcp-meta{font-size:13px;color:#5A3A10;white-space:nowrap;text-align:right}
html.classic #modal .pergaments .rcp-why{display:block;white-space:normal;color:#A0461E;max-width:150px}
html.classic #modal .pergaments li.rcp .btn{height:32px;padding:0 12px;font-size:15px}
html.classic #modal .pergaments ul.upc-list{list-style:none;margin:6px 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
html.classic #modal .pergaments li.upc{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;border-radius:8px;background:rgba(255,248,230,.6)}
html.classic #modal .pergaments li.upc img{width:100%;max-width:120px;height:84px;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(60,30,0,.25))}
html.classic #modal .pergaments li.upc small{font-size:13px;color:#6B3A00;text-align:center}
html.classic #modal .pergaments li.upc .btn{height:32px;padding:0 16px}
html.classic #modal .pergaments .ph p.upg-why{color:#A0461E;font-weight:bold}
@media (max-width:640px){
  html.classic #modal .pergaments li.rcp{grid-template-columns:1fr auto;gap:4px 8px;font-size:14px}
  html.classic #modal .pergaments .rcp-ins{grid-column:1}
  html.classic #modal .pergaments .rcp-meta{grid-column:1;text-align:left}
  html.classic #modal .pergaments li.rcp .btn{grid-column:2;grid-row:1 / span 3}
  html.classic #modal .pergaments .rcp-why{max-width:none}
  html.classic #modal .pergaments ul.upc-list{grid-template-columns:1fr 1fr;gap:6px}
  html.classic #modal .pergaments li.upc{padding:4px}
  html.classic #modal .pergaments li.upc img{height:64px}
  html.classic #modal .pergaments li.upc b{font-size:14px}
  html.classic #modal .pergaments li.upc small{font-size:11.5px;line-height:1.25}
}

/* R16 lane W1 — the daily gift on a phone held upright: bottom-left, just above the tool tray, off the yard (at the top
   it sat on the kennel and the dog and caught taps meant for the house); hidden while the seed picker is open over it */
@media (max-width:640px) and (min-height:501px){
  html.classic #gift{top:auto;bottom:calc(84px + var(--sab));left:calc(10px + var(--sal))}
  html.classic #hud:has(#seedpick:not([hidden])) #gift{visibility:hidden}
  html.classic .toast:not(.open) .tx{-webkit-line-clamp:2;line-clamp:2}   /* the welcome line «… novāc ar bultu vai grābekli» was cut after «novāc» */
}

/* ================= lane Y6 (R21, X1 #7, X2 #4): made for the hand — on a phone every tap target is ≥ 44 × 44 CSS px (WCAG 2.5.5) =================
   The look stays the 2010 one: where the drawn control is smaller (the bag handle, the shop steppers) the button grows and the picture keeps its size. */
@media (max-width:960px),(max-height:520px){
  html.classic #topright{height:44px;gap:4px}
  html.classic #topright .hudtab{width:44px;height:44px}
  html.classic #topright .hudtab img{width:32px;height:32px}
  html.classic #topright .gohome.wide{height:44px}
  html.classic #rcol{bottom:calc(116px + var(--sab))}
  html.classic #rcol .rc{width:44px;height:44px;padding:4px}
  html.classic #rcol .rc.small{width:44px;height:44px;padding:7px;border-radius:8px}
  html.classic #side{gap:4px}
  html.classic #side .sb{width:44px;height:44px;padding:7px;border-radius:7px}
  html.classic #side .sb.txt{font-size:22px}
  /* the bag handle: a 44 px wide button, the drawn handle stays a slim 22 px on its left edge */
  html.classic #b-tray{width:44px;border:0;box-shadow:none;background:var(--s-ui_tray_rokturis_r,linear-gradient(90deg,#D9A36A,#E9BE86 50%,#C4874C)) left center/22px 100% no-repeat}
  html.classic:not(.has-ui_tray_rokturis_r) #b-tray{background:linear-gradient(90deg,#D9A36A,#E9BE86 50%,#C4874C) left center/22px 100% no-repeat;outline:0}
  html.classic #b-tray i{left:6px}
  /* panels: the close X and the row buttons */
  html.classic #modal .panel .x,html.classic #modal .panel .x.cl-x,html.classic #modal .panel.bodite .x.cl-x{width:44px;height:44px}
  html.classic #modal .panel .row .btn,html.classic #modal .pergaments .pbtn .btn,html.classic #modal .pergaments li.rcp .btn,html.classic #modal .pergaments li.upc .btn{height:44px}
  html.classic .toast.act .btn{height:44px;padding:0 14px}
  /* the shop: steppers, the count, the price and the page arrows */
  html.classic #modal .bodite .card .step{height:44px;gap:2px}
  html.classic #modal .bodite .card .step button{width:44px;height:44px}
  html.classic.has-ui_step_up #modal .bodite .card .step button{background-size:30px 30px}
  html.classic #modal .bodite .card .step input{width:46px;height:44px;border:0;box-shadow:none;
    background:linear-gradient(#fff,#fff) center/calc(100% - 2px) 28px no-repeat,linear-gradient(#9A9A9A,#9A9A9A) center/100% 30px no-repeat}
  html.classic #modal .bodite .card .price{height:44px;border-radius:20px}
  html.classic #modal .bodite .boardwrap{grid-template-columns:44px 1fr 44px;gap:4px}
  html.classic #modal .bodite .arrow{width:44px;border-width:4px}
  /* the radio sheet: bigger face, the buttons and knobs on their own full-width row, each ≥ 44 px */
  html.classic #radiopanel .fr-radio{font-size:12px!important;width:min(30em,100%)}
  /* the body holds a fixed width, so the radio is the same size off and on (its ticker used to widen it by 20 px once a station played) */
  html.classic #radiopanel #radiobody{width:min(360px,100%)}
  html.classic #radiopanel #radiobody .fr-radio{display:block;width:100%}
  html.classic #radiopanel .fr-cab{grid-template-columns:5.6em 1fr;padding:1em .6em .8em}
  html.classic #radiopanel .fr-face{display:contents}
  html.classic #radiopanel .fr-grille{grid-row:1 / span 2}
  html.classic #radiopanel .fr-dial,html.classic #radiopanel .fr-screen{grid-column:2}
  html.classic #radiopanel .fr-ctl{grid-column:1 / -1;gap:2px;padding-bottom:14px}
  html.classic #radiopanel .fr-btns{gap:2px}
  html.classic #radiopanel .fr-btn{font-size:calc(44px / 2.6);min-width:44px;max-width:56px;height:2.6em}
  html.classic #radiopanel .fr-knob{font-size:calc(44px / 2.7)}
  html.classic #radiopanel .fr-knob em{font-size:11px;bottom:-14px}
  html.classic #radiopanel .fr-lamp{font-size:11px}
  html.classic #radiopanel .fr-badge{font-size:11px}   /* lane P5 (round P #2): no radio word under 11 px */
  /* while the sheet is up the tools under it are out of reach anyway: they step aside instead of sitting under the radio's buttons */
  html.classic body.radio-open #palette,html.classic body.radio-open #b-tray,html.classic body.radio-open #gift,html.classic body.radio-open #seedpick{visibility:hidden}
  /* an open panel fills a phone and its dim backdrop takes every tap: the HUD's buttons behind it step aside, so nothing peeks out at its edges */
  html.classic:has(#modal:not([hidden])) #hud :is(#topright,#side,#rcol,#palette,#b-tray,#gift,#seedpick,#radiopanel){visibility:hidden}
}
/* the shop's picture tabs never cut a name (X1: «Rekomendējam», «Amatu mājas», «Botāniskais dārzs»): a column is never narrower than its
   longest word, a desktop tab has room for two lines, a sideways one keeps its name on one line and the strip scrolls if the screen is short of room */
@media (min-width:961px) and (min-height:521px){
  html.classic #modal .bodite .tabs{grid-template-columns:repeat(12,minmax(min-content,1fr))}
  html.classic #modal .bodite .tabs button{height:70px}
  html.classic #modal .bodite .tabs button img{width:36px;height:30px}
  html.classic #modal .bodite .tabs button span{flex:none;line-height:1.12}
}
@media (max-width:960px),(max-height:520px){
  html.classic #modal .bodite .tabs{grid-template-columns:repeat(12,minmax(max-content,1fr));overflow-x:auto;scrollbar-width:none}
  html.classic #modal .bodite .tabs::-webkit-scrollbar{display:none}
  html.classic #modal .bodite .tabs button{min-width:52px}
  html.classic #modal .bodite .tabs button span{font-size:11px;text-overflow:clip}
}
/* sideways phones: the radio is a card in the bottom-left corner (the full-width sheet would cover two thirds of the farm), the bar stays put */
@media (max-height:520px){
  html.classic #radiopanel{right:auto;width:min(380px,calc(100vw - 16px));max-height:calc(100vh - 56px - var(--sat))}
  html.classic #radiopanel #radiobody{width:min(360px,100%)}
  html.classic #radiopanel #radiobody .fr-radio{display:block;width:100%}
  html.classic body.radio-open #side{bottom:calc(64px + var(--sab));visibility:visible}
  html.classic body.radio-open #rcol{visibility:visible}
  html.classic body.radio-open #palette{visibility:visible}
}
/* a phone held upright: the bar's second row grows to 44 px, everything under it moves 8 px down; the palette leaves the bag handle its 44 px */
@media (max-width:640px) and (min-height:501px){
  html.classic #topbar{height:calc(var(--bar) + 44px + var(--sat))}
  html.classic #topright{height:44px}
  html.classic #topright .hudtab{width:44px;height:44px}
  html.classic #topright .hudtab img{width:32px;height:32px}
  html.classic #topright .gohome.wide{height:44px}
  html.classic #toasts{top:calc(var(--bar) + 50px + var(--sat))}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 100px + var(--sat))}
  html.classic #hostplate{top:calc(var(--bar) + 48px + var(--sat))}
  html.classic #rcol{bottom:calc(128px + var(--sab))}
  html.classic #rcol .rc.small{width:44px;height:44px}
  html.classic #side .sb{width:44px;height:44px}
  html.classic #palette{left:calc(50% + 12px)}
  html.classic #b-tray{width:44px}
  html.classic #modal .bodite .boardwrap{grid-template-columns:44px 1fr 44px;gap:2px;padding:0 2px}
  html.classic #modal .bodite .arrow{width:44px;border-width:3px}
  html.classic #modal .bodite .card .step button{width:44px;height:44px}
  html.classic #modal .bodite .card .step input{height:44px}
  html.classic #modal .bodite .card .price{height:44px}
  html.classic #modal .panel.bodite .x.cl-x{width:44px;height:44px;right:2px;top:calc(8px + var(--sat))}
  /* «Rekomendējam» is one long word: the tab grows to fit it instead of cutting it */
  html.classic #modal .bodite .tabs button{flex:0 0 auto;min-width:74px;max-width:150px;padding:4px 6px 3px}
  /* one line: a two-word name («Botāniskais dārzs») lost its second line under the picture; the tab grows with its name instead */
  html.classic #modal .bodite .tabs button span{font-size:12px;hyphens:manual;white-space:nowrap;display:block}
  /* the full-screen shop hides the bar behind it (it sat under the tabs and the ribbon, X1 #7) */
  html.classic:has(#modal:not([hidden]) .panel.bodite) #hud{visibility:hidden}
}

/* lane Y6 (X2 #12): the 2010 object tip — a pale-green translucent plate of stacked plates: the name, the state, and a
   bar with the time left (green while it grows, the 2010 purple while an animal or a building makes something, amber
   while a ripe crop waits before it withers): art/ref/video/key/board-ui-dialogs.png */
.cl-tip.obj-tip{display:grid;gap:3px;min-width:156px;max-width:240px;padding:4px;border-radius:9px;background:rgba(206,233,190,.9)}
.cl-tip.obj-tip[hidden]{display:none}
.obj-tip .tt,.obj-tip .st{display:block;padding:3px 10px;border-radius:6px;background:rgba(255,255,255,.55)}
.obj-tip .tt{font:bold 15px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#141c0c}
.obj-tip .st{font:13px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#24301a}
.obj-tip .bar{position:relative;display:block;height:20px;border-radius:6px;background:rgba(55,70,45,.42);overflow:hidden}
.obj-tip .bar s{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#a6e36a,#5fae2a);text-decoration:none}
.obj-tip .bar.make s{background:linear-gradient(#b57be8,#7a3cc0)}
.obj-tip .bar.wither s{background:linear-gradient(#f4cf6a,#d4911f)}
.obj-tip .bar.dry s{background:linear-gradient(#e3cf9c,#b8925a)}   /* lane sausums: a dry bed's bar stands, dusty tan */
.obj-tip .bar em{position:relative;display:block;font:bold 13px/20px "Trebuchet MS",Verdana,sans-serif;font-style:normal;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.65)}

/* lane Y6 (X2 #15): the first harvest and a level-up — the plank (or the rosette) pops with a warm glow and the amount
   rises by it (fx.js juice); «Kustības: mazāk» / prefers-reduced-motion: fx.js adds nothing, only the number changes */
html.classic #topbar .juice{animation:clJuice .8s cubic-bezier(.25,1.6,.45,1)}
@keyframes clJuice{0%{transform:scale(1);filter:none}25%{transform:scale(1.22);filter:drop-shadow(0 0 8px rgba(255,214,80,.95)) brightness(1.15)}60%{transform:scale(.96)}100%{transform:scale(1);filter:none}}
#flyers .juice-num{position:absolute;transform:translateX(-50%);font:bold 18px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFE27A;text-shadow:0 2px 0 #6a3d00,0 0 6px rgba(0,0,0,.35);white-space:nowrap;animation:clJuiceNum 1.1s ease-out forwards}
@keyframes clJuiceNum{0%{opacity:0;transform:translate(-50%,8px) scale(.6)}20%{opacity:1;transform:translate(-50%,0) scale(1.1)}100%{opacity:0;transform:translate(-50%,26px) scale(1)}}
@media (prefers-reduced-motion:reduce){html.classic #topbar .juice,#flyers .juice-num{animation:none}}
/* task 6e18c40d (uxbulk): what a coin flight brought, under the money plate (fx.js purse) — smaller than the first harvest's;
   less motion: it stands still (class .still) */
#flyers .purse-num{position:absolute;z-index:3;transform:translateX(-50%);padding:3px 8px;border-radius:10px;background:rgba(52,30,6,.84);
  font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFE27A;text-shadow:0 1px 0 #000;white-space:nowrap;animation:clPurseNum 1.5s ease-out forwards}
#flyers .purse-num.still{animation:none}
/* task 6e18c40d (uxbulk, R144): on a phone what an act says stands near the thumb — one toast at a time, just above the
   things at the screen's foot (ui.js toastPlace sets --toast-low: bulk.js toastLow), 15 px; the log column (#evlog), the
   connection and sync notes and the toasts with a button keep their place */
html.classic.hud-phone #toasts>.toast.near{position:fixed;left:16px;right:16px;top:auto;bottom:var(--toast-low,180px);margin:0 auto;width:fit-content;
  max-width:min(360px,calc(100vw - 32px));font-size:15px;z-index:6}
html.classic.hud-phone #toasts>.toast.near.held{visibility:hidden}   /* no room above a giver's card: it waits (ui.js toastPlace) */
@keyframes clPurseNum{0%{opacity:0;transform:translate(-50%,-6px)}15%{opacity:1;transform:translate(-50%,0)}75%{opacity:1;transform:translate(-50%,4px)}100%{opacity:0;transform:translate(-50%,14px)}}

/* workshop — round Z lane M3: the Darbnīca (ui/workshop.js) in the cherry pergament; tap targets ≥ 44 px */
html.classic #modal .panel.pergaments.workshop{width:min(800px,96vw)}
html.classic #modal .pergaments.workshop .frame{justify-content:flex-start;align-items:stretch}
html.classic #modal .pergaments.workshop .ph{max-height:68vh;text-align:left}
html.classic #modal .pergaments.workshop .pbtn .btn{height:44px}
html.classic #modal .pergaments .ws-top{display:grid;grid-template-columns:300px 1fr;gap:14px;align-items:start;margin-bottom:10px}
html.classic #modal .pergaments .ws-room{position:relative;display:block;box-sizing:border-box;max-width:100%;width:300px;height:190px;padding:0;border:3px solid #8A5A2A;border-radius:12px;overflow:hidden;cursor:default;
  background:linear-gradient(#F3DDB0 0 62%,#B98654 62% 64%,#A0703F 64% 100%);box-shadow:inset 0 0 26px rgba(90,50,10,.35)}
html.classic #modal .pergaments .ws-room.ws-ready{cursor:pointer;box-shadow:inset 0 0 26px rgba(90,50,10,.35),0 0 0 3px #FFD45A}
html.classic #modal .pergaments .ws-room .ws-inside{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
html.classic #modal .pergaments .ws-room .ws-ph{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px}
html.classic #modal .pergaments .ws-room .ws-ph::before{content:"";position:absolute;left:22px;top:18px;width:62px;height:54px;border:5px solid #8A5A2A;border-radius:4px;background:linear-gradient(135deg,#CFE9F7,#9BCBE8);opacity:.9}
html.classic #modal .pergaments .ws-room .ws-ph img{position:relative;height:150px;max-width:86%;object-fit:contain;filter:drop-shadow(0 4px 3px rgba(60,30,0,.3))}
html.classic #modal .pergaments .ws-room.ws-quiet .ws-ph img{filter:saturate(.75) drop-shadow(0 4px 3px rgba(60,30,0,.3))}
html.classic #modal .pergaments .ws-room .ws-table{position:absolute;right:14px;bottom:12px;z-index:3;width:64px;height:64px;border-radius:50%;background:radial-gradient(rgba(255,240,170,.95),rgba(255,214,90,0) 70%);display:flex;align-items:center;justify-content:center;animation:wsBob 1.4s ease-in-out infinite}
html.classic #modal .pergaments .ws-room .ws-table img{width:48px;height:48px;object-fit:contain}
html.classic #modal .pergaments .ws-steam{position:absolute;left:50%;top:22px;z-index:3;width:60px;height:60px;pointer-events:none}
html.classic #modal .pergaments .ws-steam b{position:absolute;bottom:0;width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.75);animation:wsPuff 2.4s ease-out infinite}
html.classic #modal .pergaments .ws-steam b:nth-child(2){left:18px;animation-delay:.8s}
html.classic #modal .pergaments .ws-steam b:nth-child(3){left:36px;animation-delay:1.6s}
@keyframes wsPuff{0%{opacity:0;transform:translateY(0) scale(.6)}30%{opacity:.85}100%{opacity:0;transform:translateY(-40px) scale(1.6)}}
@keyframes wsBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
html.classic #modal .pergaments.ws-still .ws-steam b,html.classic #modal .pergaments.ws-still .ws-table{animation:none}
@media (prefers-reduced-motion:reduce){html.classic #modal .pergaments .ws-steam b,html.classic #modal .pergaments .ws-room .ws-table{animation:none}}
html.classic #modal .pergaments .ws-side{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
html.classic #modal .pergaments .ws-side p{margin:0}
html.classic #modal .pergaments .ws-rung{font-weight:bold;color:#3A1D00;display:flex;align-items:center;gap:8px}
html.classic #modal .pergaments .ws-pips{display:inline-flex;gap:4px}
html.classic #modal .pergaments .ws-pips i{width:12px;height:12px;border-radius:50%;border:2px solid #A07A50;background:rgba(255,255,255,.35)}
html.classic #modal .pergaments .ws-pips i.on{border-color:#8A5A12;background:radial-gradient(circle at 35% 30%,#FFE27A,#C98200)}
html.classic #modal .pergaments .ws-up{min-height:44px;height:auto;max-width:100%;padding:4px 14px;font-size:15px;white-space:normal;line-height:1.2}
html.classic #modal .pergaments .ws-top-rung{color:#6B4A1E}
html.classic #modal .pergaments .ws-mast{color:#6B3A00;font-weight:bold}
/* Meistarība: the game's painted XP star (ui_zvaigzne, as on «Darbs padarīts»), one not earned yet greyed (owner 2026-11-18) */
html.classic #modal .pergaments .ws-stars{display:inline-flex;gap:1px;vertical-align:-.25em}
html.classic #modal .pergaments .ws-stars i{display:inline-block;width:1.25em;height:1.25em;background:url(../img/ui_zvaigzne.webp) center/contain no-repeat;font-style:normal;color:transparent;overflow:hidden;white-space:nowrap;text-indent:2em;filter:drop-shadow(0 1px 0 rgba(60,30,0,.3))}
html.classic #modal .pergaments .ws-stars i:not(.on){filter:grayscale(1);opacity:.4}
html.classic #modal .pergaments .ws-mbar{width:180px}
html.classic #modal .pergaments .ws-mgive{display:block;max-width:200px;font-weight:normal;font-size:13px;line-height:1.25;color:#6B4A1E}
html.classic #modal .pergaments .ws-note{font-style:italic;color:#6B3A00}
html.classic #modal .pergaments .ws-liga{min-height:48px;height:auto;max-width:100%;padding:4px 14px;white-space:normal;line-height:1.2}   /* plan/R96 #12 */
html.classic #modal .pergaments .ws-bar{display:block;height:10px;border-radius:5px;background:rgba(90,50,10,.18);overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
html.classic #modal .pergaments .ws-bar s{display:block;height:100%;background:linear-gradient(#9BE05A,#3D9A2A);text-decoration:none}
html.classic #modal .pergaments ul.ws-slots{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html.classic #modal .pergaments .ws-slot{position:relative;min-height:108px;box-sizing:border-box;padding:6px 8px;border-radius:10px;background:rgba(255,248,230,.65);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;font-size:14px}
html.classic #modal .pergaments .ws-slot img{width:40px;height:40px;object-fit:contain}
html.classic #modal .pergaments .ws-slot .ws-bar{width:100%}
html.classic #modal .pergaments .ws-slot small{color:#5A3A10}
html.classic #modal .pergaments .ws-slot.free{border:3px dashed rgba(138,90,42,.55);background:rgba(255,248,230,.35);color:#7A5A30;font-weight:bold}
html.classic #modal .pergaments .ws-slot.lock{background:rgba(90,60,30,.12);color:#7A5A30}
html.classic #modal .pergaments .ws-lock{width:18px;height:14px;margin-top:8px;border-radius:3px;background:#8A5A2A;position:relative}
html.classic #modal .pergaments .ws-lock::before{content:"";position:absolute;left:3px;top:-9px;width:8px;height:8px;border:3px solid #8A5A2A;border-bottom:0;border-radius:7px 7px 0 0}
html.classic #modal .pergaments .ws-slot.ready{background:rgba(255,236,170,.85);box-shadow:0 0 0 3px #FFD45A}
html.classic #modal .pergaments .ws-slot.ready .btn{min-height:44px;padding:0 16px}
html.classic #modal .pergaments .ws-acts{display:flex;gap:6px;align-items:center}
html.classic #modal .pergaments .ws-rasa{min-height:44px;padding:0 10px;font-size:13px}
html.classic #modal .pergaments .ws-x{min-width:44px;min-height:44px;border:0;border-radius:50%;background:rgba(160,70,30,.12);color:#A0461E;font:bold 18px/1 "Trebuchet MS",sans-serif;cursor:pointer}
html.classic #modal .pergaments .ws-h{margin:10px 0 6px;font:bold 17px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6B3A00;text-transform:uppercase;letter-spacing:.04em}
html.classic #modal .pergaments ul.ws-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
html.classic #modal .pergaments .ws-card{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center;padding:8px 10px;border-radius:10px;background:rgba(255,248,230,.7);font-size:14.5px}
html.classic #modal .pergaments .ws-card.no{background:rgba(255,248,230,.45)}
html.classic #modal .pergaments .ws-out{display:flex;align-items:center;gap:8px;min-width:0;font-size:15.5px}
html.classic #modal .pergaments .ws-out img{width:48px;height:48px;object-fit:contain;flex:none}
html.classic #modal .pergaments .ws-ins{grid-column:1;display:flex;flex-wrap:wrap;gap:3px 10px}
html.classic #modal .pergaments .ws-in{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
html.classic #modal .pergaments .ws-in img{width:22px;height:22px;object-fit:contain}
html.classic #modal .pergaments .ws-in small{color:#7A5A30}
html.classic #modal .pergaments .ws-in.short,html.classic #modal .pergaments .ws-in.short small{color:#B3261E}
html.classic #modal .pergaments .ws-meta{grid-column:1;font-size:13px;color:#5A3A10}
html.classic #modal .pergaments .ws-why{grid-column:1;color:#A0461E;font-size:13px}
html.classic #modal .pergaments .ws-srcs{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:6px}
html.classic #modal .pergaments .ws-src{min-height:44px;padding:0 12px;border:2px solid #C9A46A;border-radius:22px;background:#FFF6DC;color:#6B3A00;font:bold 13.5px "Trebuchet MS",sans-serif;cursor:pointer;text-decoration:underline}
html.classic #modal .pergaments .ws-src:disabled{text-decoration:none;cursor:default;opacity:.8}
html.classic #modal .pergaments .ws-go{grid-column:2;grid-row:1 / span 3;min-width:84px;min-height:44px;padding:0 14px;font-size:16px}
html.classic #modal .pergaments ul.ws-season{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
html.classic #modal .pergaments .ws-later{display:flex;align-items:center;gap:8px;color:#6B4A1E;font-size:14.5px}
html.classic #modal .pergaments .ws-later img{width:30px;height:30px;object-fit:contain;opacity:.7}
@media (max-width:640px){
  html.classic #modal .pergaments.workshop .ph{max-height:62vh}
  html.classic #modal .pergaments ul.ws-list{grid-template-columns:1fr}
  html.classic #modal .pergaments ul.ws-slots{gap:5px}
  html.classic #modal .pergaments .ws-slot{font-size:13px;padding:5px 4px}
  html.classic #modal .pergaments .ws-acts{flex-direction:column;gap:3px;width:100%}
  html.classic #modal .pergaments .ws-rasa{min-width:0;width:100%;max-width:100%;box-sizing:border-box;padding:2px 4px;font-size:12px;line-height:1.1;white-space:normal}
}
@media (max-height:480px){
  html.classic #modal .pergaments.workshop .pt{font-size:19px}
  html.classic #modal .pergaments.workshop .ph{max-height:calc(100vh - 190px)}
  html.classic #modal .pergaments.workshop .ws-note{display:none}
}
/* lane P5 (round P #3): a phone opened the workshop on its big picture and empty slots — «Receptes» sat at the fold with no card
   in view. Upright: a small room picture beside the rung and the mastery, the upgrade under them, 64 px slots. Sideways: that
   column on the left, the recipes beside it from the top */
@media (max-width:640px),(max-height:480px){
  html.classic #modal .pergaments .ws-top{grid-template-columns:104px minmax(0,1fr);grid-template-areas:"room rung" "room mast" "room mbar" "up up" "bup bup" "note note";gap:4px 10px;align-items:center;margin-bottom:8px}
  html.classic #modal .pergaments .ws-side{display:contents}
  html.classic #modal .pergaments .ws-room{grid-area:room;align-self:start;width:104px;height:78px;border-width:2px;border-radius:10px}
  html.classic #modal .pergaments .ws-room .ws-ph{padding-bottom:4px}
  html.classic #modal .pergaments .ws-room .ws-ph::before{left:8px;top:8px;width:26px;height:22px;border-width:3px}
  html.classic #modal .pergaments .ws-room .ws-ph img{height:60px}
  html.classic #modal .pergaments .ws-room .ws-table{right:3px;bottom:3px;width:40px;height:40px}
  html.classic #modal .pergaments .ws-room .ws-table img{width:30px;height:30px}
  html.classic #modal .pergaments .ws-steam{top:4px;transform:scale(.55);transform-origin:0 0}
  html.classic #modal .pergaments .ws-rung{grid-area:rung;flex-wrap:wrap;gap:2px 6px;font-size:14px}
  html.classic #modal .pergaments .ws-mast{grid-area:mast;font-size:14px}
  html.classic #modal .pergaments .ws-mbar{grid-area:mbar;width:100%}
  html.classic #modal .pergaments :is(.ws-up[data-rung],.ws-top-rung){grid-area:up}
  html.classic #modal .pergaments .ws-up[data-bup]{grid-area:bup}
  html.classic #modal .pergaments .ws-up{width:100%;font-size:14px}
  html.classic #modal .pergaments .ws-note{grid-area:note}
  html.classic #modal .pergaments .ws-slot{min-height:64px}
}
@media (max-height:480px){
  html.classic #modal .pergaments.workshop :is(.ws-top,ul.ws-slots){float:left;clear:left;width:270px}
  html.classic #modal .pergaments.workshop :is(.ws-h,ul.ws-list,ul.ws-season){margin-left:284px}
  html.classic #modal .pergaments.workshop .ws-h:first-of-type{margin-top:0}
  html.classic #modal .pergaments.workshop ul.ws-list{grid-template-columns:1fr}
  html.classic #modal .pergaments .ws-slot{min-height:56px;font-size:13px;padding:5px 4px}
  html.classic #modal .pergaments .ws-acts{flex-direction:column;gap:3px;width:100%}
  html.classic #modal .pergaments .ws-rasa{min-width:0;width:100%;max-width:100%;box-sizing:border-box;padding:2px 4px;font-size:12px;line-height:1.1;white-space:normal}
}
/* play2 mid-game (F14): a laptop window is wide and short. At 1366×800 the room picture, the rung block and the queue
   filled the window and the recipes — what the window was opened for — began at the fold. Up to 900 px of height the head
   is smaller (nothing leaves it): a 200×126 picture, the rung block in tight rows with the klade beside the rung and
   the star line unbroken, 68 px slots. Buttons keep 44 px; phones (≤ 640 wide, ≤ 480 high) keep their own rules above */
@media (min-width:641px) and (min-height:481px) and (max-height:900px){
  html.classic #modal .pergaments.workshop .ws-top{grid-template-columns:200px minmax(0,1fr);gap:12px;margin-bottom:8px}
  html.classic #modal .pergaments.workshop .ws-room{width:200px;height:126px;border-radius:10px}
  html.classic #modal .pergaments.workshop .ws-room .ws-ph{padding-bottom:6px}
  html.classic #modal .pergaments.workshop .ws-room .ws-ph::before{left:14px;top:12px;width:42px;height:36px;border-width:4px}
  html.classic #modal .pergaments.workshop .ws-room .ws-ph img{height:100px}
  html.classic #modal .pergaments.workshop .ws-room .ws-table{right:8px;bottom:6px;width:52px;height:52px}
  html.classic #modal .pergaments.workshop .ws-room .ws-table img{width:40px;height:40px}
  html.classic #modal .pergaments.workshop .ws-side{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:center;justify-items:start}
  html.classic #modal .pergaments.workshop .ws-side > *{grid-column:1 / -1}
  html.classic #modal .pergaments.workshop .ws-side > .ws-rung{grid-column:1}
  html.classic #modal .pergaments.workshop .ws-side > .ws-klade{grid-column:2;grid-row:1;margin:0}
  html.classic #modal .pergaments.workshop .ws-mgive{max-width:none}
  html.classic #modal .pergaments.workshop .ws-slots.q .ws-slot{min-height:68px}
  html.classic #modal .pergaments.workshop .q-plus{padding:4px}
  html.classic #modal .pergaments.workshop .q-plus b{width:30px;height:30px;font:bold 24px/30px "Trebuchet MS",Verdana,sans-serif}
  html.classic #modal .pergaments.workshop .ws-h{margin:8px 0 4px}
}
/* home — lane M4 (R24 §2): the Kūts view, Istaba, the klēts, the kennel card, «Sasniegumi» (40 rows). Tap targets ≥ 44 px. */
html.classic #modal .pergaments.hm{width:min(860px,95vw)}
html.classic #modal .pergaments.upg .btn,html.classic #modal .pergaments.upchoice .btn{min-height:44px}
html.classic #modal .pergaments.hm .frame{align-items:stretch;justify-content:flex-start}
html.classic #modal .pergaments.hm .pt{text-align:center}
html.classic #modal .hm-body{font:15px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;max-height:64vh;overflow:auto;text-align:left;width:100%}
html.classic #modal .hm-grid{display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:14px;align-items:start}
html.classic #modal .hm-room{position:sticky;top:0;aspect-ratio:1/1;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse at 50% 38%,#FFF1CF 0%,#F2D59C 55%,#C99A5B 100%);box-shadow:inset 0 0 0 3px rgba(122,74,30,.35),inset 0 -40px 40px -20px rgba(110,62,18,.35)}
html.classic #modal .hm-room::after{content:"";position:absolute;left:0;right:0;bottom:0;height:26%;background:repeating-linear-gradient(90deg,#B7814A 0 38px,#A8733E 38px 40px);opacity:.75}
html.classic #modal .hm-room .hm-ph{position:relative;z-index:1;width:78%;height:78%;object-fit:contain;filter:drop-shadow(0 6px 4px rgba(60,30,0,.3))}
html.classic #modal .hm-room.has-in::after{display:none}
html.classic #modal .hm-room .hm-in{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}   /* lead: absolute, so an 840 px interior never sizes its aspect-ratio box */
html.classic #modal .hm-side{display:flex;flex-direction:column;gap:6px;min-width:0}
html.classic #modal .hm-h{margin:8px 0 2px;font:bold 17px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6B3A00;border-bottom:2px dashed rgba(200,50,28,.35);padding-bottom:2px}
html.classic #modal .hm-h:first-child{margin-top:0}
html.classic #modal .hm-note{margin:0;font-style:italic;color:#6B3A00}
/* lane Z1: the klēts card's Jumis — the woven sign (js/content/zimes.js) in the 2010 red on a linen patch, one line of what it means */
#modal .hm-jumis{display:flex;align-items:center;gap:10px;margin:6px 0 8px;padding:6px 10px;border-radius:9px;background:#F6E9C8;box-shadow:inset 0 0 0 2px rgba(152,20,4,.28);font-size:13.5px;line-height:1.35;color:#5A3A10}
#modal .hm-jumis .hm-zime{flex:none;color:#981404}
#modal .hm-jumis b{color:#981404}
html.classic #modal .hm-empty{margin:2px 0;color:#6B4A1E}
html.classic #modal .hm-perks,html.classic #modal .hm-uses,html.classic #modal .hm-stock{margin:0;font-size:14px;color:#5A3A10}
html.classic #modal .hm-stalls{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px}
html.classic #modal .hm-stall{display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 4px;border-radius:9px;background:rgba(255,248,230,.65);box-shadow:inset 0 0 0 2px rgba(150,100,40,.25);text-align:center}
html.classic #modal .hm-stall.ready{background:rgba(205,240,170,.8);box-shadow:inset 0 0 0 2px rgba(61,154,42,.55)}
html.classic #modal .hm-stall img{width:64px;height:56px;object-fit:contain}
html.classic #modal .hm-stall b{font-size:14px}
html.classic #modal .hm-stall small{font-size:12px;color:#5A3A10}
html.classic #modal .hm-heart{font-style:normal;color:#C8321C}
html.classic #modal .hm-own{display:flex;align-items:center;gap:8px;margin:2px 0;padding:4px 8px;border-radius:8px;background:rgba(255,236,170,.6)}
html.classic #modal .hm-own img,html.classic #modal .hm-ready img,html.classic #modal .hm-grain img{width:34px;height:34px;object-fit:contain;flex:none}
html.classic #modal .hm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}
html.classic #modal .hm .btn{min-height:44px;padding:0 16px;font-size:16px}
html.classic #modal .hm .btn.hm-big{min-height:52px;font-size:18px;padding:0 22px}
html.classic #modal .hm-why{flex-basis:100%;font-size:13px;color:#6B4A1E}
/* lane ekonomika (play2 #5): the Kūts bar stays at the top of the scroll; one row per kind («Vista × 6»); the places line */
html.classic #modal .hm-acts.hm-top{position:sticky;top:0;z-index:2;margin:0 0 10px;padding:6px 8px;border-radius:10px;background:rgba(250,236,200,.97);box-shadow:0 2px 6px rgba(90,50,10,.22)}
html.classic #modal .hm-groups{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
html.classic #modal .hm-group{display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:6px 10px;border-radius:9px;background:rgba(255,248,230,.65);box-shadow:inset 0 0 0 2px rgba(150,100,40,.25)}
html.classic #modal .hm-group.ready{background:rgba(205,240,170,.8);box-shadow:inset 0 0 0 2px rgba(61,154,42,.55)}
html.classic #modal .hm-group img{grid-row:1 / span 2;width:56px;height:48px;object-fit:contain}
html.classic #modal .hm-group b{font-size:16px}
html.classic #modal .hm-group small{font-size:13px;color:#5A3A10}
html.classic #modal .hm-places{margin:2px 0;font-size:14px;color:#5A3A10}
html.classic #modal .hm-places b{color:#9A3B12}
@media (max-width:640px){
  html.classic #modal .hm-acts.hm-top .btn{flex:1 1 140px;min-height:52px;font-size:17px}
}
html.classic #modal .hm-readylist,html.classic #modal .hm-grains{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
html.classic #modal .hm-ready,html.classic #modal .hm-grain{display:grid;grid-template-columns:34px 1fr auto;gap:8px;align-items:center;padding:4px 8px;border-radius:8px;background:rgba(255,248,230,.6)}
html.classic #modal .hm-grain{grid-template-columns:34px 1fr auto auto}
html.classic #modal .hm-grain em{font:bold 18px "Trebuchet MS",sans-serif;font-style:normal;min-width:2ch;text-align:right}
html.classic #modal .hm-ready span,html.classic #modal .hm-grain span{display:flex;flex-direction:column;min-width:0}
html.classic #modal .hm-ready small,html.classic #modal .hm-grain small{font-size:13px;color:#5A3A10}
html.classic #modal .hm-more{margin:0;font-size:13px}
html.classic #modal .hm-gift{margin:0}
/* lane atgriez: the daily gift's seven steps (ui/ladder.js) */
html.classic #modal .gl{margin:2px 0 8px}
html.classic #modal .gl-row{list-style:none;margin:0 0 4px;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
html.classic #modal .gl-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:3px 0 4px;border-radius:7px;
  background:rgba(255,248,230,.55);border:1px solid rgba(107,68,35,.2);color:#6B4423;font:12px/1.15 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .gl-step b{font-size:11px;color:#8A6A44}
html.classic #modal .gl-step span{font-weight:700;font-size:13px}
html.classic #modal .gl-got{background:rgba(160,205,110,.35);border-color:rgba(70,120,30,.35)}
html.classic #modal .gl-got::after{content:"\2713";position:absolute;top:1px;right:4px;font-size:11px;color:#3F7A12}
html.classic #modal .gl-now{background:#FFE6A3;border:2px solid #E89A1C;box-shadow:0 0 0 2px rgba(255,214,120,.5)}
/* the game's own kristāls wherever a window names a kristāli sum (owner 2026-11-18: never a glyph) */
.kr-i{display:inline-block;width:1.05em;height:1em;vertical-align:-.14em;background:url(../img/uiv_kristals.webp) center/contain no-repeat;
  font-style:normal;color:transparent;overflow:hidden;white-space:nowrap;text-indent:2em;filter:drop-shadow(0 1px 0 rgba(40,10,60,.3))}
html.classic #modal .gl-gem{display:block;width:22px;height:20px;margin-top:-1px;background:url(../img/uiv_kristals.webp) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(40,10,60,.35))}
html.classic #modal .gl-note{margin:0;font-size:13px;line-height:1.3;color:#5A3A10}
html.classic #modal .hm-next{padding:6px 10px;border-radius:8px;background:rgba(255,236,170,.55)}
html.classic #modal .hm-shelf{list-style:none;margin:0 0 6px;padding:8px 6px 4px;display:flex;flex-wrap:wrap;gap:6px;border-bottom:8px solid #9A6634;border-radius:2px;background:linear-gradient(transparent 70%,rgba(154,102,52,.18))}
html.classic #modal .hm-medal{display:flex;flex-direction:column;align-items:center;width:76px;text-align:center}
/* .hm-shelf in the selector: the tier rules below (.aw-disc.zelts, 22×33 for the awards rows) weigh the same and came later,
   so the shelf showed row-sized medals instead of its big ones */
html.classic #modal .hm-shelf .hm-medal .aw-disc{width:44px;height:66px;margin-bottom:2px;transition:transform .16s cubic-bezier(.34,1.56,.64,1)}
html.classic #modal .hm-medal:hover .aw-disc{transform:rotate(-6deg) scale(1.08)}
html.classic #modal .hm-medal small{font-size:11px;line-height:1.15}
/* plan/R96 (task 6e18c40d): the farm's private pages under the shelf (#12 «Līgas ābolu lapa») and the page itself —
   48 px doors, the painting only on the finished page, its frame keeping the space while it loads (or a label if it never does) */
html.classic #modal .hm-keeps{list-style:none;margin:6px 0 4px;padding:0;display:flex;flex-direction:column;gap:6px}
html.classic #modal .hm-keep{display:flex;align-items:center;gap:10px;padding:4px 6px;border-radius:8px;background:rgba(255,248,230,.55)}
html.classic #modal .hm-keep img{flex:none;width:40px;height:40px;object-fit:contain}
html.classic #modal .hm-keep span{flex:1 1 auto;min-width:0}
html.classic #modal .hm-keep .btn{flex:none;min-height:48px;height:auto;padding:4px 14px;white-space:normal;line-height:1.2}
html.classic #modal .pergaments.liga-page .ph{text-align:left}
html.classic #modal .lp-page{display:flex;flex-direction:column;gap:10px}
html.classic #modal .lp-page section{display:flex;flex-direction:column;gap:6px}
html.classic #modal .lp-page p{margin:0;display:flex;align-items:center;gap:10px;font:15px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .lp-page p > img{flex:none;width:44px;height:44px;object-fit:contain}
html.classic #modal .lp-h{margin:0;font:bold 17px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6B3A00}
html.classic #modal .lp-pic{margin:0;width:min(100%,calc(min(36vh,320px) * 4 / 3));align-self:center;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:rgba(154,102,52,.18);box-shadow:0 2px 6px rgba(60,30,0,.3)}
html.classic #modal .lp-pic img{display:block;width:100%;height:100%;object-fit:cover;font:italic 14px/1.3 "Trebuchet MS",sans-serif;color:#6B3A00}
html.classic #modal .lp-page p.lp-say{align-items:flex-start;padding:8px 10px;border-radius:8px;background:rgba(255,236,170,.55);font-style:italic}
html.classic #modal .lp-page p.lp-say .lp-face{width:56px;height:56px;border-radius:50%}
html.classic #modal .lp-page p.lp-need,html.classic #modal .lp-page p.lp-rest{font-size:14px;color:#5A3A10}
html.classic #modal .lp-page .lp-go{align-self:flex-start;min-height:48px;height:auto;max-width:100%;padding:4px 16px;white-space:normal;line-height:1.2}
html.classic #modal .lp-page.is-done .lp-wait{padding-top:8px;border-top:2px dashed rgba(200,50,28,.3)}
/* #11 «Mežā ar Ievu»: the three twigs side by side (one under another on a phone), each with its name and clue */
html.classic #modal .fp-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.classic #modal .fp-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font:14px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .fp-item b{font-size:16px;color:#6B3A00}
html.classic #modal .fp-pic{margin:0;width:100%;aspect-ratio:1;border-radius:10px;overflow:hidden;background:rgba(154,102,52,.18);box-shadow:0 2px 6px rgba(60,30,0,.25)}
html.classic #modal .fp-pic img{display:block;width:100%;height:100%;object-fit:cover;font:italic 14px/1.3 "Trebuchet MS",sans-serif;color:#6B3A00}
html.classic #modal .fp-foot{margin:14px 0 0;padding-top:8px;border-top:2px dashed rgba(200,50,28,.3);font:13px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#6A4A22;text-align:center}
@media (max-width:560px){
  html.classic #modal .fp-list{grid-template-columns:1fr}
  html.classic #modal .fp-item{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:10px;text-align:left;align-items:start}
  html.classic #modal .fp-pic{grid-row:1 / span 2;width:96px}
}
html.classic #modal .hm-dog{display:flex;align-items:center;gap:10px}
html.classic #modal .hm-dog img{width:72px;height:64px;object-fit:contain}
html.classic #modal .hm-dog span{display:flex;flex-direction:column}
html.classic #modal .aw-disc{display:inline-block;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18),0 1px 1px rgba(0,0,0,.25)}
html.classic #modal .aw-disc.bronza{width:22px;height:33px;border-radius:0;box-shadow:none;background:url(../img/mg_medala_bronza.webp) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(60,30,0,.35))}
html.classic #modal .aw-disc.sudrabs{width:22px;height:33px;border-radius:0;box-shadow:none;background:url(../img/mg_medala_sudrabs.webp) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(60,30,0,.35))}
html.classic #modal .aw-disc.zelts{width:22px;height:33px;border-radius:0;box-shadow:none;background:url(../img/mg_medala_zelts.webp) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(60,30,0,.35))}
/* a tier not reached yet: the same painted medal, grey and faint — never a grey CSS circle (owner 2026-11-18) */
html.classic #modal .aw-disc.off{opacity:.42;filter:grayscale(1) brightness(1.1)}
html.classic #modal .pergaments.awards40 .frame{align-items:stretch;justify-content:flex-start}
html.classic #modal .pergaments.awards40{width:min(760px,95vw)}
html.classic #modal .aw-body{max-height:62vh;overflow:auto;text-align:left;font:15px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .aw-sum{margin:0 0 4px;text-align:center;font-weight:bold}
html.classic #modal .aw-h{margin:8px 0 4px;font:bold 17px "Trebuchet MS",sans-serif;color:#6B3A00}
html.classic #modal .aw-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
html.classic #modal .aw{display:grid;grid-template-columns:76px 1fr auto auto;gap:8px;align-items:center;padding:5px 8px;border-radius:8px;background:rgba(255,248,230,.55);min-height:44px}
html.classic #modal .aw.got{background:rgba(205,240,170,.6)}
html.classic #modal .aw.secret{opacity:.7}
html.classic #modal .aw-discs{display:flex;gap:2px}   /* three 22 px medals fit the 70 px column of a phone */
html.classic #modal .aw-tx{display:flex;flex-direction:column;min-width:0}
html.classic #modal .aw-tx small{font-size:13px;color:#5A3A10}
html.classic #modal .aw-prog{font-size:13px;color:#5A3A10;white-space:nowrap;text-align:right}
html.classic #modal .aw-claim{min-height:44px;padding:0 12px;font-size:14px}
/* lane P4 (R27): a local farm's own count — the note, a progress bar under the numbers, the rows only the server counts */
html.classic #modal .aw-note{margin:0 0 6px;text-align:center;font-size:13px;color:#5A3A10}
html.classic #modal .aw-bar{display:block;width:96px;max-width:100%;height:6px;margin:4px 0 0 auto;border-radius:3px;background:rgba(90,50,10,.16);overflow:hidden}
html.classic #modal .aw-bar b{display:block;height:100%;border-radius:3px;background:linear-gradient(#7FC64A,#3E8F22)}
html.classic #modal .aw.wait{opacity:.62;filter:grayscale(.55)}
@media (max-width:640px){
  html.classic #modal .aw-bar{margin-left:0;width:140px}
}
/* task 6e18c40d: «Sasniegumi» | «Albums» — the two tabs, a set with its pieces (grey until had), the reward and «Saņemt» */
html.classic #modal .aw-tabs{flex:none;display:flex;gap:8px;justify-content:center;margin:0 0 8px}
html.classic #modal .aw-tabs button{min-height:44px;min-width:128px;padding:0 18px;border-radius:7px;border:2px solid #8A5A2B;background:linear-gradient(#FBF2E0,#F2E4C6 60%,#E7D2A6);font:bold 16px "Trebuchet MS",Verdana,sans-serif;color:#4A2810;cursor:pointer}
html.classic #modal .aw-tabs button[aria-selected="true"]{background:linear-gradient(#EBD6AA,#E0C48E);border-color:#5A3412;box-shadow:inset 0 2px 4px rgba(0,0,0,.35)}
html.classic #modal .al-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
html.classic #modal .al-set{padding:8px 10px;border-radius:10px;background:rgba(255,248,230,.55)}
html.classic #modal .al-set.done{box-shadow:inset 0 0 0 2px rgba(62,143,34,.5)}
html.classic #modal .al-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
html.classic #modal .al-count{font-weight:bold;white-space:nowrap}
html.classic #modal .al-how{margin:4px 0 0;font-size:13px;color:#5A3A10}
html.classic #modal .al-cards{list-style:none;margin:6px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:6px}
html.classic #modal .al-card{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:6px 4px;border-radius:8px;border:1px dashed rgba(90,50,10,.4);background:rgba(255,255,255,.45);text-align:center}
html.classic #modal .al-card img,html.classic #modal .al-noimg{width:44px;height:44px;object-fit:contain;filter:grayscale(1);opacity:.5}
html.classic #modal .al-card.have{border:1px solid rgba(62,143,34,.65);background:rgba(238,249,222,.85)}
html.classic #modal .al-card.have img{filter:none;opacity:1}
html.classic #modal .al-card b{font-size:13px;line-height:1.15;overflow-wrap:anywhere}
html.classic #modal .al-n{font-size:13px;color:#5A3A10;white-space:nowrap}
html.classic #modal .al-card.have .al-n{color:#2E6B14;font-weight:bold}
html.classic #modal .al-card .aw-bar{width:80%;margin:2px auto 0}
html.classic #modal .al-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
html.classic #modal .al-rw{font-size:14px;font-weight:bold}
html.classic #modal .al-got{font-size:13px;font-weight:bold;color:#2E6B14}
html.classic #modal .al-wait{font-size:13px;color:#5A3A10}
html.classic #modal .al-soon-note{text-align:left}
html.classic #modal .al-soon{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
html.classic #modal .al-soon li{padding:4px 10px;border-radius:14px;background:rgba(90,50,10,.1);font-size:13px;color:#5A3A10}
@media (max-width:640px){
  html.classic #modal .aw-tabs button{min-width:0;flex:1 1 0;padding:0 8px;font-size:15px}
  html.classic #modal .al-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  html.classic #modal .al-card{padding:5px 2px}
  html.classic #modal .al-set{padding:8px 7px}
  html.classic #modal .al-foot .aw-claim{flex:1 1 100%}
}
@media (max-width:640px){
  html.classic #modal .hm-grid{grid-template-columns:1fr}
  html.classic #modal .hm-room{position:relative;aspect-ratio:auto;height:150px}
  html.classic #modal .hm-room .hm-ph{width:auto;height:88%}
  html.classic #modal .aw{grid-template-columns:70px 1fr;grid-auto-rows:auto}
  html.classic #modal .aw-prog{grid-column:2;text-align:left}
  html.classic #modal .aw-claim{grid-column:1 / span 2}
}
@media (max-height:480px){
  html.classic #modal .hm-grid{grid-template-columns:150px 1fr}
  html.classic #modal .hm-room{aspect-ratio:auto;height:140px}
  html.classic #modal .hm-body,html.classic #modal .aw-body{max-height:58vh}
}
/* lead: the pinned mission line in the Istaba (missions.nextTaskHTML) */
html.classic #modal .nt-count{display:inline-block;margin-left:6px;padding:0 8px;border-radius:10px;background:rgba(61,154,42,.15);color:#2E6B12;font-weight:bold;white-space:nowrap}
/* darbi — lane M2 (round Z, R24 §1 #1, §2): the banner «-- Spiest šeit --» with the pinned task, the giver bubble in the left
   notice column (folds to a portrait chip), the «Darbi» pergament with three shelves, the reward ceremony. Discs: an M7
   portrait (its own round wooden frame) when the file is there, else a lettered wooden disc. */
html.classic #banner{width:330px;gap:8px;padding:0 6px 0 12px}
html.classic #banner .lbl{min-width:0;white-space:nowrap}
html.classic #banner.dk-has{justify-content:space-between}
html.classic #banner .dk-prog{flex:none;min-width:34px;padding:4px 7px;border-radius:9px;background:#6E4F33;color:#FFF3DA;font:bold 14px/1 "Trebuchet MS",Verdana,sans-serif;text-align:center}
html.classic #banner .dk-prog:empty{display:none}
html.classic #banner.dk-ready{background:#D8BE8E;animation:dkGlow 2.4s ease-in-out infinite}
html.classic #banner.dk-ready .dk-prog{background:#3B7F1C}
html.classic #banner.dk-bump{animation:dkBump .4s cubic-bezier(.3,1.6,.5,1)}
html.classic #b-more{left:calc(640px + var(--sal))}
html.classic #banner-list{width:330px}
@keyframes dkGlow{0%,100%{box-shadow:inset 0 2px 0 rgba(255,240,215,.25),0 1px 2px rgba(0,0,0,.2)}50%{box-shadow:inset 0 2px 0 rgba(255,240,215,.25),0 0 0 4px rgba(255,214,80,.6)}}
@keyframes dkBump{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}

/* the discs */
html.classic .dk-disc{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box;border-radius:50%;
  border:3px solid #6B4423;background:radial-gradient(circle at 38% 32%,#F2C98A,#C98B4A 58%,#8E5A2A);box-shadow:inset 0 0 0 2px rgba(255,230,180,.45),0 2px 3px rgba(0,0,0,.25)}
html.classic .dk-disc b{font:bold 20px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFF6E2;text-shadow:-1px -1px 0 #5A3412,1px -1px 0 #5A3412,-1px 1px 0 #5A3412,1px 1px 0 #5A3412,0 2px 1px rgba(40,20,0,.4)}
html.classic .dk-disc.padome{background:radial-gradient(circle,#FBEFD3 55%,#EBD3A4);border:3px double #A0461E}
html.classic .dk-disc.padome b{font-size:14px;color:#A0461E;text-shadow:none}
html.classic .dk-disc.town{background:radial-gradient(circle at 38% 32%,#CFE6F2,#7FA9C4 60%,#4E7690);border-color:#2F4F66}
html.classic .dk-disc img{position:absolute;inset:-3px;width:calc(100% + 6px);height:calc(100% + 6px);object-fit:contain;border-radius:50%}
html.classic .dk-disc.has-face{border-color:transparent;background:none;box-shadow:none}
html.classic .dk-disc.has-face b{visibility:hidden}
/* plan/R54: a cast portrait (a cut-out figure, not a medallion) keeps a ring of its own */
html.classic .dk-disc.cast.has-face{border:2px solid #C8862E;background:radial-gradient(circle at 40% 30%,#FFF6DD,#F1D393);box-shadow:0 1px 2px rgba(60,30,0,.35);overflow:hidden}
html.classic .dk-disc.cast img{inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 12%}
html.classic .dk-disc.big{width:56px;height:56px}
html.classic .dk-disc.big b{font-size:24px}
html.classic .dk-disc.huge{width:132px;height:132px;border-width:5px}
html.classic .dk-disc.huge b{font-size:56px}

/* the giver bubble: the 2010 light-green glass of the left column, a 56 px portrait, the line, 3/6 and «Labi» */
html.classic #darbi-bubble{position:absolute;z-index:5;left:calc(8px + var(--sal));top:calc(262px + var(--sat));width:min(370px,calc(100vw - 120px));pointer-events:none}
/* plan/R96 #1 (first minute): on a wide screen Austra's card stood on the first beds — the watering tap landed on the card. It sits above the friends' bar now, on the fallow */
@media (min-width:961px) and (min-height:641px){html.classic #darbi-bubble{top:auto;bottom:calc(118px + var(--sab))}}
html.classic #darbi-bubble[hidden]{display:none}
html.classic #darbi-bubble>*{pointer-events:auto}
html.classic #darbi-bubble .dk-bcard{display:grid;grid-template-columns:56px 1fr;gap:10px;align-items:start;padding:9px 10px 9px 9px;border-radius:10px;
  background:rgba(232,248,218,.95);border:2px solid rgba(255,255,255,.8);box-shadow:0 0 0 1px rgba(60,90,30,.35),0 4px 12px rgba(0,0,0,.22)}
html.classic #darbi-bubble.dk-in .dk-bcard{animation:dkIn .3s cubic-bezier(.3,1.4,.5,1)}
html.classic #darbi-bubble .dk-bname{display:block;font:bold 15px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#5A2A00}
html.classic #darbi-bubble .dk-bline{margin:2px 0 6px;font:15px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#2E2208}
html.classic #darbi-bubble .dk-bfoot{display:flex;align-items:center;justify-content:space-between;gap:8px}
html.classic #darbi-bubble .dk-bprog{font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;color:#3B6B12}
html.classic #darbi-bubble .dk-bfoot .btn{height:30px;padding:0 16px;font-size:15px}
/* lane uxtools (Astra #2 · A10/A11/A13): a step that needs a tool hands it over — «Paņemt lāpstu» on the card's own row
   above the count and «Labi»; «Lāpsta rokā» on the quiet wooden button once it is in the hand (.alt, windows.css) */
html.classic #darbi-bubble .dk-bfoot{flex-wrap:wrap}
html.classic #darbi-bubble .dk-bfoot .dk-hand{order:-1;flex:1 1 100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* task 6e18c40d (uxguide, Astra rank 10): «Atrast pastkasti · 3,00 Ls» — a step that asks for a thing opens the Bodīte on it,
   on the same own row as the hand button, «Labi» staying beside the count */
html.classic #darbi-bubble .dk-bfoot .dk-find{order:-1;flex:1 1 100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* plan/R96 #1 (task 6e18c40d): «Novākt vienu dobi» — the keyboard's way to Austra's first bed (Tab, then Space or Enter);
   out of the way of a finger or a mouse, it shows the moment it has the focus */
html.classic #darbi-bubble .dk-bkey{position:absolute;left:-9999px;top:auto}
html.classic #darbi-bubble .dk-bkey:focus-visible{position:static;display:block;margin:6px 0 0;min-height:44px;padding:0 14px;border-radius:10px;
  border:2px solid #6B3A00;background:#FFF3DA;color:#3B2A10;font:bold 14px/1 "Trebuchet MS",Verdana,sans-serif;cursor:pointer}
html.classic #darbi-bubble .dk-chip{display:none;position:relative;width:52px;height:52px;padding:0;border:0;background:none;cursor:pointer}
html.classic #darbi-bubble .dk-chip .dk-disc{width:48px;height:48px}
html.classic #darbi-bubble .dk-cprog{position:absolute;right:-8px;bottom:-4px;padding:2px 5px;border-radius:8px;background:#6E4F33;color:#FFF3DA;font:bold 12.5px/1 "Trebuchet MS",Verdana,sans-serif;font-style:normal}
html.classic #darbi-bubble.folded{width:auto}
html.classic #darbi-bubble.folded .dk-bcard{display:none}
html.classic #darbi-bubble.folded .dk-chip{display:block;animation:dkIn .25s ease-out}
@keyframes dkIn{0%{opacity:0;transform:translateX(-12px) scale(.96)}100%{opacity:1;transform:none}}
/* plan/R96 item 3 (task 6e18c40d): a friend link asks on a paper strip (ui/friend-entry.js, #dr-entry), the invite card's
   parchment — not a window, the farm plays on around it. Wide: beside Austra's card over the fallow above the friends' bar,
   never on the beds; a phone: under her card (below). Hidden under a window, while placing and on a visit, as her card is. */
html.classic #dr-entry{position:absolute;z-index:6;left:calc(8px + var(--sal));bottom:calc(118px + var(--sab));width:min(400px,calc(100vw - 32px - var(--sal) - var(--sar)));
  box-sizing:border-box;pointer-events:auto;text-align:left;color:#3A1D00;font:15px/1.35 "Trebuchet MS",Verdana,sans-serif}
html.classic #dr-entry:focus{outline:none}
html.classic #dr-entry .dre-card{border:16px solid transparent;border-image:url(../img/win_board.webp) 12% 9% fill / 18px stretch;padding:0 4px 2px;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.35))}
html.classic #dr-entry .dre-h{margin:0 0 4px;font:bold 17px/1.25 var(--w3-face),"Trebuchet MS",Verdana,sans-serif;color:#5A2600;text-shadow:0 1px 0 rgba(255,240,206,.6);text-wrap:balance}
html.classic #dr-entry .dre-nick{margin:0 0 6px;font:bold 16px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;overflow-wrap:anywhere}
html.classic #dr-entry .dre-say{margin:0 0 8px;padding:5px 10px;border:0 solid transparent;border-image:url(../img/win_card.webp) 24 fill / 11px stretch;font-style:italic;color:#3A1D00}
html.classic #dr-entry .dre-note{margin:0 0 8px;font-weight:bold;color:#1E4508}
html.classic #dr-entry .dre-line{margin:0 0 8px;font:15px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00;text-wrap:pretty}   /* task 6e18c40d (item 3): what a friend is for */
html.classic #dr-entry .dre-note.bad{color:#7A1A00}
html.classic #dr-entry .dre-btns{display:flex;flex-wrap:wrap;gap:8px}
html.classic #dr-entry .dre-btns .btn{min-height:44px;padding:0 16px;font-size:15px}
html.classic #dr-entry .dre-top{margin:0 0 8px}   /* task 6e18c40d (item 4): «Apciemot» above the greeting */
html.classic #dr-entry .dre-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:961px) and (min-height:641px){html.classic #dr-entry{left:calc(466px + var(--sal));width:min(420px,calc(100vw - 556px - var(--sal) - var(--sar)))}}
html.classic body:has(#modal:not([hidden])) #hud #dr-entry,html.classic body.radio-open #hud #dr-entry,html.classic #hud:has(#seedpick:not([hidden])) #dr-entry,
html.classic body:has(#placebar:not([hidden])) #hud #dr-entry{visibility:hidden}
html.classic body.visiting #hud #dr-entry{display:none}
/* «Vēlāk»: the same card waits at the top of «Draugi» for this visit */
html.classic #modal .dre-fold{margin:0 0 10px}
html.classic #modal .dre-fold #dr-entry{position:static;width:auto;z-index:auto}

/* the «Darbi» pergament: three shelves, rows with a disc, the line, a bar, reward chips and one or two buttons */
html.classic #modal .panel.pergaments.darbi{width:min(780px,96vw)}
html.classic #modal .pergaments.darbi .frame{justify-content:flex-start;gap:4px}
html.classic #modal .pergaments.darbi .ph{max-height:min(64vh,620px);text-align:left}
html.classic #modal .darbi .dk-shelf{margin:0 0 8px}
html.classic #modal .darbi .dk-sh{margin:2px 0 4px;padding:0 2px 3px;border-bottom:2px dotted rgba(200,50,28,.55);font:bold 18px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#8A2A0E}
html.classic #modal .darbi .dk-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;margin:5px 0;padding:6px 8px;border-radius:8px;background:rgba(255,248,230,.6)}
html.classic #modal .darbi .dk-row.ready{background:rgba(206,240,172,.8)}
html.classic #modal .darbi .dk-row.claimed{opacity:.7}
html.classic #modal .darbi .dk-row .dk-disc{width:48px;height:48px}
html.classic #modal .darbi .dk-who{display:block;font:bold 14px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6A2C00}
html.classic #modal .darbi .dk-tx{margin:1px 0 4px;font:14.5px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .darbi .dk-line{display:flex;align-items:center;gap:8px}
html.classic #modal .darbi .dk-bar{position:relative;flex:1;max-width:240px;height:18px;border-radius:9px;border:1px solid #8A6440;background:#EAD6B2;overflow:hidden}
html.classic #modal .darbi .dk-bar i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#A6EC58,#56B026);border-radius:8px 0 0 8px}
html.classic #modal .darbi .dk-bar span{position:relative;display:block;text-align:center;font:bold 13px/18px "Trebuchet MS",Verdana,sans-serif;color:#2E1A00}
html.classic #modal .darbi .dk-wait{flex:none;padding:1px 7px;border-radius:8px;background:#3B4C7A;color:#F2F0FF;font:bold 13px/1.4 "Trebuchet MS",Verdana,sans-serif}
html.classic #modal .darbi .dk-end{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
html.classic #modal .darbi .dk-acts{display:flex;gap:6px}
html.classic #modal .darbi .dk-acts .btn{height:32px;padding:0 12px;font-size:15px;white-space:nowrap}
html.classic #modal .darbi .dk-acts .btn.small{height:28px;padding:0 9px;font-size:13px}
html.classic #modal .darbi .dk-acts .btn:disabled{opacity:.6;cursor:default}
html.classic #modal .darbi .dk-got{font:bold 14px "Trebuchet MS",Verdana,sans-serif;color:#2E6B12}
html.classic #modal .darbi .dk-items{list-style:none;display:flex;flex-wrap:wrap;gap:4px 10px;margin:2px 0 0;padding:0;font:14px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .darbi .dk-items li.ok b{color:#2E6B12}
/* plan/R96 #8: the weekly row with the talka's other branch — one target a line; the talka target and how to finish it with
   nobody else online stand side by side, and on a phone (the block below) the rules fold under the target (ui/darbi.js talkaItem) */
html.classic #modal .darbi .dk-items.wk{flex-direction:column;flex-wrap:nowrap;gap:3px}
html.classic #modal .darbi .dk-items .wk-talka{display:grid;grid-template-columns:minmax(0,max-content) minmax(13em,1fr);gap:2px 14px;align-items:baseline}
html.classic #modal .darbi .wk-t{margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left}
html.classic #modal .darbi button.wk-t{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;box-sizing:border-box;padding:4px 10px;border:1px solid #C9A25A;border-radius:9px;background:#FFF1C9;cursor:pointer}
html.classic #modal .darbi button.wk-t::after{content:"+";margin-left:auto;font:bold 18px/1 "Trebuchet MS",Verdana,sans-serif;color:#8A2A0E}
html.classic #modal .darbi .wk-talka.open button.wk-t::after{content:"\2212"}
html.classic #modal .darbi .wk-why{font:13.5px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#5E4326}
html.classic #modal .darbi .wk-why span{display:block}
html.classic #modal .darbi .wk-talka.ok .wk-why{font-weight:bold;color:#2E6B12}
html.classic #modal .darbi .dk-items .dk-wt{font-size:12px;color:#7A4A12;font-style:italic;white-space:nowrap}   /* lane pirmie #13: when the crop is ripe */
html.classic #modal .darbi .dk-row.chain .dk-bar{flex:0 0 96px;max-width:96px}   /* lane orders: the town chain — deliveries made of three, then the step to bring */
html.classic #modal .darbi .dk-row.chain .dk-after{display:block;margin-top:3px;font:13px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#6A4A22}
html.classic #modal .darbi .dk-items .dk-wish{margin-left:2px;padding:0 5px;border-radius:7px;background:#F6D36A;color:#5A3200;font:bold 11px/1.5 "Trebuchet MS",Verdana,sans-serif;white-space:nowrap}   /* lane orders: a raw good nothing else uses, paid three times */
html.classic #modal .darbi .dk-empty{margin:4px 2px 6px;font:italic 14.5px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#5E4326}
/* plan/R96 #6: a followed order's slip under its row (ui/order-trail.js) — a dotted fold in the same paper, what is still short
   on the left in the row's own words, the one next work on the right; a phone stacks them. Its way back hangs under the
   banner (.dk-pin) and sits at the top of the workshop, the Noliktava and the Bodīte */
html.classic #modal .darbi .order-plan{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;padding:7px 2px 1px;border-top:2px dotted rgba(200,50,28,.45)}
html.classic #modal .darbi .order-need{flex:1 1 230px;min-width:0;font:14px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .darbi .order-need b{display:block;margin:0 0 2px;font:bold 14px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6A2C00}
html.classic #modal .darbi .order-need small{display:block;padding-left:14px;font:italic 13px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#6A4A22}
html.classic #modal .darbi .dk-acts:has(.order-toggle){flex-wrap:wrap;justify-content:flex-end}
html.classic #modal .darbi .order-next{flex:none;margin-left:auto;max-width:100%}
html.classic #modal .darbi .order-next .btn{height:34px;padding:0 16px;font-size:15px;white-space:nowrap}
html.classic #modal .darbi .order-next p{margin:0;font:italic 14px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#5E4326}
html.classic .order-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html.classic .order-field-back{min-height:44px;padding:0 16px;white-space:nowrap}
html.classic #modal .bodite .order-link{flex:none;align-self:center;width:auto;height:30px;margin:0 0 6px;padding:0 16px;border-radius:15px;font-size:14px}
html.classic #modal .pergaments .dk-rw{list-style:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;margin:0;padding:0}
html.classic #modal .pergaments .dk-c{padding:2px 7px;border-radius:9px;background:#FFF1C9;border:1px solid #C9A25A;font:bold 13px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#4A2C00;white-space:nowrap}
html.classic #modal .pergaments .dk-c.ls{background:#E3F4C4;border-color:#7FA845;color:#2D4A08}
html.classic #modal .pergaments .dk-c.xp{background:#DCEBFF;border-color:#6E93C9;color:#183A6B}
html.classic #modal .pergaments .dk-c.crys{background:#EBDDFF;border-color:#9A76CC;color:#43206E}
/* each gain wears its painted thing — the coin, the XP star, the kristāls — the same ones that fly to the HUD (owner 2026-11-18) */
html.classic #modal .pergaments .dk-c:is(.ls,.xp,.crys)::before{content:"";display:inline-block;width:1.2em;height:1.2em;margin:0 .28em 0 -.15em;vertical-align:-.27em;background:center/contain no-repeat;filter:drop-shadow(0 1px 0 rgba(40,20,0,.3))}
html.classic #modal .pergaments .dk-c.ls::before{background-image:url(../img/ui_monete.webp)}
html.classic #modal .pergaments .dk-c.xp::before{background-image:url(../img/ui_zvaigzne.webp)}
html.classic #modal .pergaments .dk-c.crys::before{background-image:url(../img/uiv_kristals.webp)}
/* the ceremony: the glad portrait, one line of thanks, the chips (they fly to the HUD on «Paņemt») */
html.classic #modal .panel.pergaments.darbi-cer{width:min(440px,92vw);text-align:center}
html.classic #modal .darbi-cer .dk-cer{display:flex;flex-direction:column;align-items:center;gap:4px}
html.classic #modal .darbi-cer .dk-cface{animation:dkCer .6s cubic-bezier(.3,1.6,.5,1) both}
html.classic #modal .darbi-cer .dk-cname{margin:2px 0 0;font:bold 17px "Trebuchet MS",Verdana,sans-serif;color:#6A2C00}
html.classic #modal .darbi-cer .dk-cline{margin:0 0 6px;font:16px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .darbi-cer .dk-rw.big{justify-content:center}
html.classic #modal .darbi-cer .dk-rw.big{margin:2px 0 4px}
html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal) .dk-cface{zoom:.62}
@media (max-height:760px){html.classic #modal .darbi-cer .dk-cface{zoom:.7}html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal) .dk-cface{zoom:.5}}
html.classic #modal .darbi-cer .dk-rw.big .dk-c{font-size:16px;padding:4px 10px}
@keyframes dkCer{0%{transform:scale(.4) rotate(-8deg);opacity:0}100%{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){html.classic #banner.dk-ready,html.classic #banner.dk-bump,html.classic #darbi-bubble .dk-bcard,html.classic #darbi-bubble .dk-chip,html.classic #modal .darbi-cer .dk-cface{animation:none}}
html.classic.less-motion #banner.dk-ready,html.classic.less-motion #banner.dk-bump,html.classic.less-motion #darbi-bubble .dk-bcard,html.classic.less-motion #darbi-bubble .dk-chip,html.classic.less-motion #modal .darbi-cer .dk-cface{animation:none}

/* phones and small screens: the banner stays (it is the way into «Darbi»); the news drop and «+» stay hidden as before */
@media (max-width:960px),(max-height:520px){
  html.classic #banner{display:flex;left:calc(8px + var(--sal));top:calc(var(--bar) + 6px + var(--sat));width:min(330px,calc(100vw - 16px));height:30px}
  html.classic #banner .lbl{font-size:15px}
  html.classic #toasts{top:calc(var(--bar) + 42px + var(--sat))}
  html.classic #darbi-bubble{top:calc(var(--bar) + 150px + var(--sat))}
  html.classic #modal .darbi .dk-row{grid-template-columns:40px minmax(0,1fr);gap:8px}
  html.classic #modal .darbi .dk-row .dk-disc{width:40px;height:40px}
  html.classic #modal .darbi .dk-end{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center}
  html.classic #modal .darbi .dk-rw{justify-content:flex-start}
  html.classic #modal .darbi .dk-line:has(> .dk-items.wk){align-items:flex-start}
  html.classic #modal .darbi .dk-items .wk-talka{grid-template-columns:minmax(0,1fr);gap:4px}
  html.classic #modal .darbi .wk-talka.fold:not(.open) .wk-why{display:none}
  html.classic #modal .darbi .wk-talka .wk-why{padding:0 2px 2px 10px}
}
/* phone upright: under the row of tabs, full width; the bubble rides above the gift and the tools */
@media (max-width:640px) and (min-height:501px){
  html.classic #banner{top:calc(var(--bar) + 42px + var(--sat));right:calc(8px + var(--sar));width:auto}
  html.classic #toasts{top:calc(var(--bar) + 78px + var(--sat))}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 112px + var(--sat))}
  html.classic #darbi-bubble{top:auto;bottom:calc(150px + var(--sab));right:calc(60px + var(--sar));width:auto}
  html.classic #darbi-bubble.folded{right:auto}
  html.classic #modal .pergaments.darbi .ph{max-height:calc(100dvh - 210px)}
}
/* phone sideways: the bar is one row, so the banner sits bottom left beside the bag handle, left of the tools */
@media (max-height:520px){
  html.classic #banner{top:auto;bottom:calc(14px + var(--sab));left:calc(60px + var(--sal));width:min(300px,calc(100vw - 380px))}
  html.classic #toasts{top:calc(var(--bar) + 26px + var(--sat))}
  html.classic #darbi-bubble{top:auto;bottom:calc(56px + var(--sab));left:calc(60px + var(--sal));width:min(380px,calc(100vw - 420px))}
  html.classic #modal .pergaments.darbi .ph{max-height:calc(100dvh - 150px)}
}
/* darbi: readable label (AA on the plank), 44 px touch targets, and the banner/bubble step aside for the seed tray, the
   radio panel and any window (on small screens the banner too: those sit where it sits) */
html.classic #banner .lbl{color:#3A2612}
html.classic #modal .darbi .dk-acts .btn,html.classic #darbi-bubble .dk-bfoot .btn{height:44px;min-width:44px}
html.classic #darbi-bubble .dk-bfoot .btn{padding:0 20px}
html.classic body:has(#modal:not([hidden])) #darbi-bubble,html.classic body.radio-open #darbi-bubble,html.classic #hud:has(#seedpick:not([hidden])) #darbi-bubble{visibility:hidden}
/* lane pirmie (playtest 15 Nov, #5): while a thing is being placed its ✓ ✕ bar sits where the phone's bubble sits — the bubble steps aside */
html.classic body:has(#placebar:not([hidden])) #darbi-bubble{visibility:hidden}
/* task 6e18c40d (lane pārkārtot): «Pārkārtot sētu»'s bar stands where the placing bar stands — the bubble steps aside for it too */
html.classic body:has(#arrangebar:not([hidden])) #darbi-bubble{visibility:hidden}
@media (max-width:960px),(max-height:520px){
  html.classic #banner{height:44px}
  html.classic body:has(#modal:not([hidden])) #banner,html.classic body.radio-open #banner,html.classic #hud:has(#seedpick:not([hidden])) #banner{visibility:hidden}
}
@media (max-width:640px) and (min-height:501px){
  html.classic #toasts{top:calc(var(--bar) + 92px + var(--sat))}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 126px + var(--sat))}
}
@media (max-height:520px){
  html.classic #darbi-bubble{bottom:calc(66px + var(--sab))}
}
/* darbi art — lane N6 (round N): the goal icon on every row, the banner, the bubble and its folded chip; the order slip
   pinned to «Kaimiņi lūdz»; finished branches with their medals under the story; the medal in a branch's last ceremony */
html.classic #banner .lbl{overflow:hidden;text-overflow:ellipsis}
html.classic #banner .dk-bi{flex:none;width:28px;height:28px;margin:-4px -3px -4px -7px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(40,20,0,.35))}
html.classic #banner .dk-bi[hidden]{display:none}
html.classic #banner.dk-icon .lbl{flex:1;text-align:left}
html.classic #darbi-bubble .dk-bgoal{display:flex;align-items:center;gap:6px}
html.classic #darbi-bubble .dk-gi{flex:none;width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(40,20,0,.3))}
html.classic #darbi-bubble .dk-cgi{position:absolute;right:-10px;top:-8px;width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(40,20,0,.5))}
html.classic #darbi-bubble .dk-cgi[hidden],html.classic #darbi-bubble .dk-gi[hidden]{display:none}
html.classic #modal .darbi .dk-gi{flex:none;width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(60,30,0,.3))}
html.classic #modal .darbi .dk-gi[hidden]{display:none}
html.classic #modal .darbi .dk-line .dk-items{flex:1;min-width:0;margin:0}
html.classic #modal .darbi .dk-sh{display:flex;align-items:center;gap:6px}
html.classic #modal .darbi .dk-shi{flex:none;width:34px;height:34px;margin:-7px 0 -4px -2px;object-fit:contain;transform:rotate(-6deg);filter:drop-shadow(0 1px 1px rgba(60,30,0,.3))}
html.classic #modal .darbi .dk-medals{margin:8px 0 2px;padding:6px 8px 5px;border-radius:8px;background:rgba(255,240,205,.55);border:1px dashed rgba(160,110,50,.5)}
html.classic #modal .darbi .dk-mh{display:block;margin:0 0 4px;font:bold 14px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#6A2C00}
html.classic #modal .darbi .dk-ml{list-style:none;display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0}
html.classic #modal .darbi .dk-medal{display:flex;align-items:center;gap:4px;font:bold 14px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#3A1D00}
html.classic #modal .darbi .dk-mi{flex:none;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(60,30,0,.35))}
html.classic #modal .darbi-cer .dk-cmedal{display:flex;align-self:stretch;align-items:center;justify-content:center;gap:10px;margin:2px 0 8px;padding:6px 14px 6px 8px;border-radius:10px;background:rgba(255,236,190,.75);border:1px solid rgba(190,140,60,.6);animation:dkCer .6s .25s cubic-bezier(.3,1.6,.5,1) both}
html.classic #modal .darbi-cer .dk-cmi{flex:none;width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(60,30,0,.35))}
html.classic #modal .darbi-cer .dk-cml{margin:0;text-align:left;font:bold 15px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#5A2A00}
@media (prefers-reduced-motion:reduce){html.classic #modal .darbi-cer .dk-cmedal{animation:none}}
html.classic.less-motion #modal .darbi-cer .dk-cmedal{animation:none}
@media (max-width:960px),(max-height:520px){
  html.classic #modal .darbi .dk-gi{width:28px;height:28px}
  html.classic #modal .darbi .dk-mi{width:34px;height:34px}
  html.classic #modal .darbi .dk-medal{font-size:13px}
  html.classic #modal .darbi-cer .dk-cmedal{padding:6px 10px 6px 6px;gap:8px}
  html.classic #modal .darbi-cer .dk-cmi{width:56px;height:56px}
}
/* a sideways phone: the ceremony's portrait and medal shrink so the reward chips stay in view above «Paņemt» */
@media (max-height:520px){
  html.classic #modal .darbi-cer .dk-disc.huge{width:72px;height:72px;border-width:4px}
  html.classic #modal .darbi-cer .dk-disc.huge b{font-size:32px}
  html.classic #modal .darbi-cer .dk-cname{margin:0}
  html.classic #modal .darbi-cer .dk-cline{margin:0 0 4px;font-size:15px}
  html.classic #modal .darbi-cer .dk-cmedal{margin:0 0 4px;padding:2px 10px 2px 4px;gap:6px}
  html.classic #modal .darbi-cer .dk-cmi{width:40px;height:40px}
  html.classic #modal .darbi-cer .dk-cml{font-size:14px}
  /* with a medal: the portrait on the left, the name, the thanks and the medal beside it, the chips under both */
  html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:3px;align-items:center;text-align:left}
  html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal) .dk-cface{grid-row:1 / span 3}
  html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal) .dk-cmedal{justify-content:flex-start;margin:0}
  html.classic #modal .darbi-cer .dk-cer:has(.dk-cmedal) .dk-rw.big{grid-column:1 / -1;margin-top:6px}
}
/* keep (lane M6): the Noliktava's «Paturēt noliktavā» switches */
.keep{margin-top:12px;padding-top:10px;border-top:1px dashed rgba(255,226,168,.35)}
.keep h4{margin:0 0 3px;font-size:16px;color:#FFD27A;text-shadow:0 1px 0 rgba(0,0,0,.45)}
.keep .keep-why{margin:0 0 8px;font-size:12px;color:#F3E3C3}
.keep .keep-row{cursor:pointer}
.keep .keep-sw{width:22px;height:22px;flex:0 0 22px;margin-left:auto;accent-color:#E07B1A;cursor:pointer}

/* ================= lane P1 (round P): the island band — a phone held upright whose top inset holds a Dynamic Island =================
   hud.js sets html.hud-band when --sat ≥ 47 px and each side of the cut-out keeps ≥ 88 px, and --isl (the cut-out's half width
   + a margin). The rosette + XP sit left of the island and the lati right of it, centred on it, 22 px off the rounded corners;
   the kristāli ride on the Supernauda tab (#crysb). The wood = the island band + the icon row; the mission banner sits under it.
   --hud-h is the wood's height on every layout (for windows that must clear the bar). */
html.classic{--hud-h:calc(var(--bar) + var(--sat))}
html.classic #crysb{display:none}
@media (max-width:640px) and (min-height:501px){
  html.classic{--hud-h:calc(var(--bar) + 44px + var(--sat))}
  html.classic.hud-band{--hud-h:calc(var(--sat) + 52px);--band-c:calc(var(--sat) / 2)}
  html.classic.hud-band #topbar{height:var(--hud-h);padding:0;
    box-shadow:0 3px 0 rgba(50,25,5,.32),0 6px 10px rgba(40,20,0,.22),inset 0 2px 0 rgba(255,240,205,.45),inset 0 -3px 0 rgba(90,50,15,.3)}
  html.classic.hud-band #topbar .rosette{position:absolute;left:22px;top:calc(var(--band-c) - 22px);width:40px;height:44px;margin:0}
  html.classic.hud-band #topbar .rosette .astes{display:none}
  html.classic.hud-band #topbar .rosette .badge{left:0;top:0;width:40px;height:44px}
  html.classic.hud-band #topbar .rosette:not(.has-img)::before{left:2px;top:4px;width:36px;height:36px}
  html.classic.hud-band #topbar .rosette b{top:11px;font-size:18px}
  html.classic.hud-band #topbar .plank{position:absolute;top:calc(var(--band-c) - 15px);height:30px;margin:0}
  html.classic.hud-band #topbar .plank.xp{left:64px;width:calc(50% - var(--isl) - 64px)}
  html.classic.hud-band #topbar .plank.money{left:calc(50% + var(--isl));right:22px}
  html.classic.hud-band #topbar .plank.crys{display:none}
  html.classic.hud-band #topbar .inset{height:30px}
  html.classic.hud-band #topbar .inset.green{flex:1;width:auto;padding:0 8px 0 18px}
  html.classic.hud-band #topright{top:calc(var(--sat) + 2px)}
  html.classic.hud-band #topright #crysb{display:block;position:absolute;right:-3px;bottom:-5px;z-index:2;min-width:22px;height:20px;padding:0 5px;box-sizing:border-box;
    border-radius:10px;border:2px solid #3A1D00;background:linear-gradient(#9A62EC,#7A43CC 60%,#5B2E9E);color:#fff;
    font:bold 12px/16px "Trebuchet MS",Verdana,sans-serif;text-align:center;white-space:nowrap;text-shadow:0 1px 0 rgba(30,0,60,.6);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 0 rgba(0,0,0,.3);pointer-events:none}
  html.classic.hud-band #topright #crysb.cl-pulse{animation:clPulse .32s cubic-bezier(.3,1.8,.5,1)}
  html.classic.hud-band #banner{top:calc(var(--sat) + 58px)}
  html.classic.hud-band #toasts{top:calc(var(--sat) + 108px)}
  html.classic.hud-band #hostplate{top:calc(var(--sat) + 108px)}
  html.classic.hud-band body.visiting #toasts{top:calc(var(--sat) + 160px)}
  /* a window is open: the icon row is hidden (line 743), so the wood shrinks to the island band and leaves no empty strip */
  html.classic.hud-band:has(#modal:not([hidden])){--hud-h:calc(var(--sat) + 4px)}
}

/* ================= V1 (R32 S1): the visit screen — the host plate in the Darbi banner's place, the way home at its right end
   (always the same spot), the helps left under it; the own-farm HUD (banner, Darbi bubble, Pastkaste «+», the bag, the gift,
   «Mana ferma») steps away while visiting. ================= */
html.classic body.visiting :is(#banner,#banner-list,#b-more,#b-tray,#seedpick,#darbi-bubble,#gift),html.classic body.visiting #rcol .rc-home{display:none!important}
html.classic body.visiting #friendsbar{left:calc(8px + var(--sal))}
html.classic #hostplate{left:calc(300px + var(--sal));top:calc(var(--bar) + 6px + var(--sat));transform:none;z-index:4;width:500px;box-sizing:border-box;
  display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;grid-template-areas:"av nm lv go" "hp hp hp hp";align-items:center;column-gap:10px;row-gap:6px;
  padding:6px 6px 0;border-radius:12px;border:3px solid #E8B26E;background:linear-gradient(#6a4421,#3d2410);box-shadow:0 4px 0 rgba(0,0,0,.3),inset 0 1px 0 rgba(255,230,180,.35)}
html.classic #hostplate[hidden]{display:none}
html.classic #hostplate #hostav{grid-area:av;width:48px;height:48px;box-sizing:border-box;border-radius:8px;border:2px solid #FFE6B0;background:#F6E7C8}
html.classic #hostplate .hp-nm{grid-area:nm;min-width:0}
html.classic #hostplate .hp-nm b,html.classic #hostplate .hp-nm small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.classic #hostplate .hp-nm b{font-size:19px;line-height:1.2}
html.classic #hostplate .hp-nm small{font-size:14px}
html.classic #hostplate #hostlvl{grid-area:lv;white-space:nowrap;font-size:14px;color:#fff}
html.classic #hostplate #b-gohome{grid-area:go;height:48px;padding:0 16px 0 8px;gap:6px;border-radius:10px;border:2px solid var(--line);cursor:pointer;
  background:linear-gradient(#FFC15A,#F08A1C 55%,#C4600A);box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 2px 0 rgba(0,0,0,.35);transition:transform .14s cubic-bezier(.34,1.56,.64,1),filter .12s}
html.classic #hostplate #b-gohome:hover{filter:brightness(1.08);transform:translateY(-1px)}
html.classic #hostplate #b-gohome:active{transform:scale(.95)}
html.classic #hostplate #b-gohome img{width:34px;height:34px;border-radius:0;object-fit:contain}
html.classic #hostplate #b-gohome span{position:static;padding:0;border:0;border-radius:0;background:none;font:bold italic 19px "Trebuchet MS",sans-serif;white-space:nowrap}
html.classic #hostplate #hosthelp{grid-area:hp;margin:0 -6px;padding:5px 10px 6px;border-radius:0 0 9px 9px;border-top:2px solid #8A5A2A;background:#F3E3C3;
  color:#3A2612;font:bold 14px/1.25 "Trebuchet MS",Verdana,sans-serif;text-align:center}
html.classic #hostplate #hosthelp:empty{display:none}
html.classic #hostplate.done #hosthelp{background:#DCEFC0;color:#2A520C}
/* task 6e18c40d (item 4): nothing left to do on a friend's farm — today's gift, under the help line */
html.classic #hostplate #hostgift{grid-column:1/-1;justify-self:center;min-height:44px;margin:0 0 8px;padding:0 20px;font-size:15px}
html.classic #hostplate:has(#hostgift) #hosthelp{border-radius:0}
html.classic #hostplate.done #b-gohome{animation:hpGo 1.6s ease-in-out infinite}
@keyframes hpGo{0%,100%{box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 2px 0 rgba(0,0,0,.35)}50%{box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 0 0 4px rgba(255,225,74,.75)}}
@media (prefers-reduced-motion:reduce){html.classic #hostplate.done #b-gohome{animation:none}}
html.classic.less-motion #hostplate.done #b-gohome{animation:none}
@media (min-width:961px) and (min-height:521px){
  html.classic body.visiting #toasts{top:calc(var(--bar) + 104px + var(--sat))}
}
@media (max-width:960px),(max-height:520px){
  html.classic #hostplate{left:calc(8px + var(--sal));top:calc(var(--bar) + 6px + var(--sat));width:min(460px,calc(100vw - 16px - var(--sal) - var(--sar)));
    grid-template-columns:40px minmax(0,1fr) auto auto;column-gap:8px;row-gap:4px;padding:4px 4px 0}
  html.classic #hostplate #hostav{width:40px;height:40px}
  html.classic #hostplate .hp-nm b{font-size:15px}
  html.classic #hostplate .hp-nm small{font-size:12px}
  html.classic #hostplate #hostlvl{font-size:12px;padding:1px 7px}
  html.classic #hostplate #b-gohome{height:44px;padding:0 12px 0 6px;gap:4px}
  html.classic #hostplate #b-gohome img{width:28px;height:28px}
  html.classic #hostplate #b-gohome span{font-size:15px}
  html.classic #hostplate #hosthelp{margin:0 -4px;padding:4px 8px 5px;font-size:13px}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 94px + var(--sat))}
}
@media (max-width:640px) and (min-height:501px){
  html.classic #hostplate{top:calc(var(--bar) + 42px + var(--sat));right:calc(8px + var(--sar));width:auto}
  html.classic body.visiting #toasts{top:calc(var(--bar) + 132px + var(--sat))}
  html.classic.hud-band #hostplate{top:calc(var(--sat) + 58px)}
  html.classic.hud-band body.visiting #toasts{top:calc(var(--sat) + 148px)}
}

/* ================= V1 (R32 S2): «Mājas» greyed at home; the rename parchment; «Mājas» first in the friends strip (the own name
   plate is lane K1's painted board now, at the end of this file) ================= */
html.classic #topright .hudtab.off{filter:grayscale(.9) brightness(.92);opacity:.5;cursor:default}
html.classic #topright .hudtab.off:hover,html.classic #topright .hudtab.off:active{transform:none;filter:grayscale(.9) brightness(.92)}
html.classic #friendsbar button.home{margin-right:8px}
html.classic #friendsbar button.home::after{content:'';position:absolute;right:-8px;top:4px;bottom:4px;width:2px;border-radius:1px;background:rgba(255,230,176,.45)}
html.classic #friendsbar button.home img{box-sizing:border-box;padding:5px;object-fit:contain;object-position:50% 50%;background:linear-gradient(#CFE8B4,#9CCB78)}
/* the rename parchment */
html.classic #modal .pergaments.rename{width:min(440px,92vw)}
html.classic #modal .pergaments.rename .ph{overflow:visible}
html.classic #modal .pergaments.rename .rn-l{display:block;margin:0 0 8px;font:bold 17px "Trebuchet MS",sans-serif;color:#3A1D00}
html.classic #modal .pergaments.rename input{display:block;width:100%;box-sizing:border-box;height:48px;padding:0 12px;border-radius:9px;border:2px solid #8A5A2A;
  background:#FFF8E8;color:#3A1D00;font:bold 20px "Trebuchet MS",sans-serif;text-align:center;outline:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}
html.classic #modal .pergaments.rename input::placeholder{color:#A88A64;font-weight:normal;font-style:italic}
html.classic #modal .pergaments.rename input:focus{border-color:#E07A10;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 0 0 3px rgba(240,138,28,.35)}
html.classic #modal .pergaments.rename .rn-err{min-height:1.3em;margin:6px 0 0;font:bold 14px/1.3 "Trebuchet MS",sans-serif;color:#B3261E}
html.classic #modal .pergaments.rename .rn-hint{margin:0;font:14px/1.3 "Trebuchet MS",sans-serif;color:#5E3E1E}
/* lane laukums2: «Mana sēta» (ui/seta.js) — the name with its pencil, then the Banka-look rows, each a door */
html.classic #modal .pergaments.seta{width:min(460px,94vw)}
html.classic #modal .pergaments.seta .sc-head{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 2px}
html.classic #modal .pergaments.seta .sc-nm{font:bold 21px/1.2 "Trebuchet MS",sans-serif;color:#3A1D00;overflow-wrap:anywhere}
html.classic #modal .pergaments.seta .sc-pen{flex:none;width:44px;height:44px;padding:6px;border:0;border-radius:8px;background:none;cursor:pointer;font-size:22px;color:#5E3E1E}
html.classic #modal .pergaments.seta .sc-pen:hover,html.classic #modal .pergaments.seta .sc-pen:focus-visible{background:rgba(255,214,110,.6);outline:none}
html.classic #modal .pergaments.seta .sc-pen img{width:30px;height:30px;object-fit:contain}
html.classic #modal .pergaments ul.bank.seta li.sc-go{cursor:pointer;min-height:44px;box-sizing:border-box;background:rgba(255,226,140,.6)}
html.classic #modal .pergaments ul.bank.seta li.sc-go:hover{background:rgba(255,214,110,.8)}
html.classic #modal .pergaments ul.bank.seta li.sc-go:focus-visible{outline:2px solid #7a4a06;outline-offset:1px}
html.classic #modal .pergaments ul.bank.seta li span small{display:block;font-size:13px;line-height:1.25;color:#6A4A22}
html.classic #modal .pergaments ul.bank.seta li b{white-space:nowrap}
html.classic #modal .pergaments.seta .sc-fact{margin:10px 6px 0;font:italic 15px/1.35 "Trebuchet MS",sans-serif;color:#5E3E1E}
html.classic #modal .pergaments.seta .sc-claim{margin:8px 0 0;padding:6px 10px;border-radius:6px;font:bold 15px/1.3 "Trebuchet MS",sans-serif;color:#3A1D00;background:rgba(255,248,230,.55)}
html.classic #modal .pergaments.seta .sc-claim.ok{background:rgba(190,235,160,.65);color:#22521A}
html.classic #modal .pergaments.seta .sc-claim.try{background:rgba(255,214,110,.6)}
/* V1 (R32 S3): who thinned a ripe bed — a warm line under the state in the bed tip */
.obj-tip .st.note{background:rgba(255,236,190,.8);color:#5a3a10;font-style:italic}
/* V1 (R32 S4): six tools at home (the glove) — on a phone the row sits right of the bag handle and shrinks to fit */
@media (max-width:640px) and (min-height:501px){
  html.classic #palette:has(.tool:nth-child(6)){left:auto;right:calc(6px + var(--sar));transform:none;gap:4px}
  html.classic #palette:has(.tool:nth-child(6)) .tool{--tw:min(56px,calc((100vw - 80px - var(--sal) - var(--sar)) / 6));width:var(--tw);height:var(--tw);padding:3px}
  html.classic #palette:has(.tool:nth-child(8)) .tool{--tw:min(56px,calc((100vw - 80px - var(--sal) - var(--sar)) / 8))}   /* task 6e18c40d (lane pārkārtot): eight */
}
/* V1 (R32 S5): a computer neighbour's story portrait is a round medallion with its own ring — no square frame around it */
html.classic img.face{border-radius:50%;object-fit:contain;object-position:50% 50%}
html.classic #friendsbar img.face,html.classic #hostplate #hostav.face{border:0;background:none;box-shadow:0 2px 0 rgba(0,0,0,.35)}
html.classic #friendsbar button.cur img.face{box-shadow:0 0 0 2px var(--cyan),0 0 10px var(--cyan)}
html.classic #hostplate #hostname[data-npc]::after{content:attr(data-npc);margin-left:8px;padding:1px 7px 2px;border-radius:9px;background:rgba(255,230,176,.18);color:#FFE6B0;font:bold 12px "Trebuchet MS",sans-serif;vertical-align:3px}
@media (max-width:960px),(max-height:520px){html.classic #hostplate #hostname[data-npc]::after{margin-left:6px;padding:0 6px 1px;font-size:11px;vertical-align:2px}}
@media (max-width:640px) and (min-height:501px){html.classic #hostplate #hostname[data-npc]::after{display:table;margin:1px 0 2px;font-size:10px}}
/* ================= lane H1 (plan/R35-hud-old-feel.md): the 2010 header, drawn again — separate nailed signboards =================
   The original has no bar: three signboards with ragged ends and nails float over the grass (XP with the rosette on its left
   end, lati, kristāli), and the icon row is seven loose wood tiles. The wood is art/ui-vector (uiv_dels, 9-slice: 12.5 % ends
   = half the board's height) on each .plank::before, so no box moves; #topbar keeps its height (--hud-h, dialogs.js) and only
   loses its paint. Everything waits for html.has-uiv_dels — without the sprite the one-board bar above stays as it was. */
html.classic.has-uiv_dels #topbar{--ph:44px;--pi:30px;--rl:9px;--rw:40px;--rg:10px;background:none;border:0;box-shadow:none;isolation:isolate}
html.classic.has-uiv_dels #topbar .plank{padding:0 8px 0 9px}
html.classic.has-uiv_dels:not(.hud-band) #topbar .plank{height:var(--ph);margin-left:5px}
html.classic.has-uiv_dels #topbar .plank::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:0 solid transparent;
  border-image:var(--s-uiv_dels) 0 12.5% fill / 0 calc(var(--ph) / 2) stretch;filter:drop-shadow(0 2px 1.5px rgba(25,12,0,.45))}
html.classic.has-uiv_dels #topbar .plank.xp{padding-left:0}
html.classic.has-uiv_dels:not(.hud-band) #topbar .plank.xp{width:auto;margin-left:var(--rg)}
html.classic.has-uiv_dels #topbar .plank.xp::before{left:calc(0px - var(--rg) - var(--rw) - var(--rl))}
/* the fields: the original's inks — dark wood under a two-tone sky-blue fill, flat olive for lati, plum for kristāli */
html.classic.has-uiv_dels #topbar .inset{height:var(--pi);border-radius:5px;border:2px solid #3F2921;box-shadow:inset 0 2px 3px rgba(0,0,0,.42),0 1px 0 rgba(255,232,180,.4)}
html.classic.has-uiv_dels #topbar .inset.dark{width:150px;background:linear-gradient(#5A3E1E,#6B4B26 55%,#5E4224)}
html.classic.has-uiv_dels #topbar .inset .fill{border-radius:3px 0 0 3px;background:linear-gradient(#86DBF6,#52C6EF 22%,#22ABE4 50%,#1A80F2 52%,#2A92F6 78%,#40ADF4);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
html.classic.has-uiv_dels #topbar .inset.green{padding:0 9px;background:linear-gradient(#5C9018,#4C7E0F 55%,#447210)!important;border-color:#2C2D06}
html.classic.has-uiv_dels #topbar .inset.purple{padding:0 9px;background:linear-gradient(#7A4A8E,#683E78 55%,#5C366B)!important;border-color:#2E1636}
html.classic.has-uiv_dels #topbar .plank .ic{width:32px;height:32px;margin:0 5px 0 0}
/* the rosette: a steel-blue scalloped disc on the board's left end, its two ribbon tails hanging over the grass; the number
   upright, heavy, orange in a dark outline (uiv_rozete; ui_limenis stays the fallback) */
html.classic.has-uiv_rozete #topbar .rosette{width:var(--rw,40px);height:calc(var(--rw,40px) * 1.65);margin:calc(var(--bar) / 2 - var(--rw,40px) * .48) 0 0 var(--rl,2px);filter:drop-shadow(0 2px 1px rgba(0,0,0,.35))}
html.classic.has-uiv_rozete #topbar .rosette .astes{display:none}
html.classic.has-uiv_rozete #topbar .rosette .badge{left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
html.classic.has-uiv_rozete #topbar .rosette b{top:calc(var(--rw,40px) * .48 - .52em);font:bold 25px/1 "Trebuchet MS",Verdana,sans-serif;font-style:normal;color:#F9B233;letter-spacing:-1px;
  text-shadow:-2px 0 #2A1606,2px 0 #2A1606,0 -2px #2A1606,0 2px #2A1606,-1.5px -1.5px #2A1606,1.5px -1.5px #2A1606,-1.5px 1.5px #2A1606,1.5px 1.5px #2A1606,0 3px 0 #1A0D02}
/* the icon row: seven loose tiles in the original's tan gradient with a dark rim (no sprite needed: crisp at any density) */
html.classic.has-uiv_dels #topright .hudtab{border:2px solid #33220F;border-radius:6px;box-sizing:border-box;
  background:linear-gradient(#EDB862,#DBA657 15%,#C99354 33%,#B0814F 47%,#9E7343 62%,#7A5537 84%,#5E4029);
  box-shadow:inset 0 1.5px 0 rgba(255,236,170,.6),inset 0 -2px 0 rgba(40,22,8,.3),0 2px 3px rgba(20,10,0,.35)}
html.classic.has-uiv_dels #topright .gohome.wide{border-radius:6px}
/* tools: the original's pale glass squares; the chosen one in a steel-blue frame with a dark inner line */
html.classic.has-uiv_dels .tool{border:2px solid rgba(255,255,255,.2);background:rgba(255,255,255,.34);box-shadow:0 1px 3px rgba(0,0,0,.12)}
html.classic.has-uiv_dels .tool.sel{border:3px solid #3F6C99;background:rgba(255,255,255,.42);animation:clSteel 1.8s ease-in-out infinite}
html.classic.has-uiv_dels .tool .badge{border-color:#3F6C99}
@keyframes clSteel{0%,100%{box-shadow:inset 0 0 0 1.5px #173F5E,0 0 0 1.5px #173F5E,0 0 5px 1px rgba(130,195,255,.3)}50%{box-shadow:inset 0 0 0 1.5px #173F5E,0 0 0 1.5px #173F5E,0 0 12px 3px rgba(130,195,255,.6)}}
/* the right column: white glass, lighter than the tools */
html.classic.has-uiv_dels #rcol .rc{border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.22)}
html.classic.has-uiv_dels #rcol .rc:hover{background:rgba(255,255,255,.34)}
/* tips: the original's pale green card has no rim */
html.classic.has-uiv_dels .cl-tip:not(.card-tip){border-color:transparent;background:rgba(210,235,196,.95)}
/* the red X: matte maroon, a pale rim, a white cross (uiv_x) */
html.classic.has-uiv_x #modal .panel .x.cl-x{border:0;background:var(--s-uiv_x) center/100% 100% no-repeat;border-radius:8px}
html.classic.has-uiv_x #modal .panel .x.cl-x::before{content:none}
/* windows: the board and the red frame are lane W2's paintings (css/windows-2010.css); lane win3 retired uiv_pergaments and uiv_ramis */
/* Bodīte: the deeper red ribbon, five stars in a tight arc on its top edge (they were cut at the top of a 720 px screen) */
html.classic.has-uiv_dels #modal .bodite .lente :is(.end,.mid){filter:saturate(.86) brightness(.84)}
html.classic.has-uiv_dels #modal .bodite .st.s0{left:-104px;top:2px}
html.classic.has-uiv_dels #modal .bodite .st.s1{left:-54px;top:-12px}
html.classic.has-uiv_dels #modal .bodite .st.s2{left:0;top:-18px}
html.classic.has-uiv_dels #modal .bodite .st.s3{left:54px;top:-12px}
html.classic.has-uiv_dels #modal .bodite .st.s4{left:104px;top:2px}
/* the level-up card's rosette: the same disc, the tails cut short */
html.classic.has-uiv_rozete #modal .lv-card .ros{width:64px;height:92px}
html.classic.has-uiv_rozete #modal .lv-card .ros img{object-fit:cover;object-position:50% 0}
html.classic.has-uiv_rozete #modal .lv-card .ros b{top:15px;font-size:30px;font-style:normal;color:#F9B233;letter-spacing:-1px;
  text-shadow:-2.5px 0 #2A1606,2.5px 0 #2A1606,0 -2.5px #2A1606,0 2.5px #2A1606,-2px -2px #2A1606,2px -2px #2A1606,-2px 2px #2A1606,2px 2px #2A1606,0 3px 0 #1A0D02}
/* compact (phones sideways, tablets): 38 px boards in the 40 px bar; three boards end 10 px short of the icon row at 852 px */
@media (max-width:960px),(max-height:520px){
  html.classic.has-uiv_dels #topbar{--ph:38px;--pi:28px;--rl:6px;--rw:34px;--rg:6px}
  html.classic.has-uiv_dels #topbar .plank{padding:0 4px 0 5px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .plank{margin-left:4px}
  html.classic.has-uiv_dels #topbar .inset.dark{width:82px}
  html.classic.has-uiv_dels #topbar .inset.green{padding:0 6px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .inset.green{width:104px}
  html.classic.has-uiv_dels #topbar .inset.purple{width:62px;padding:0 6px}
  html.classic.has-uiv_dels #topbar .plank .ic{width:24px;height:24px;margin-right:3px}
  html.classic.has-uiv_rozete #topbar .rosette b{font-size:21px}
}
/* phone upright, two rows (no island band): 34 px boards on the first row, the disc only (its tails would cross the icon row) */
@media (max-width:640px) and (min-height:501px){
  html.classic.has-uiv_dels:not(.hud-band) #topbar{--ph:34px;--pi:26px;--rl:5px;--rw:30px;--rg:5px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .plank{margin-left:3px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .inset.dark{width:70px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .inset.purple{width:56px}
  html.classic.has-uiv_dels:not(.hud-band) #topbar .plank .ic{width:22px;height:22px}
  html.classic.has-uiv_rozete:not(.hud-band) #topbar .rosette{height:34px;margin-top:calc(var(--ph) / 2 - 14.4px)}
  html.classic.has-uiv_rozete:not(.hud-band) #topbar .rosette b{font-size:19px}
  /* the island band: the boards keep lane P1's places (rosette 22 px off the corner, XP left of the island, lati right of it);
     the wood reaches 5 px above and below the 30 px fields and starts 20 px in, inside the screen's rounded corner */
  html.classic.has-uiv_dels.hud-band #topbar{--ph:40px;--pi:30px;--rw:40px}
  html.classic.has-uiv_dels.hud-band #topbar .plank{padding:0 4px 0 0}
  html.classic.has-uiv_dels.hud-band #topbar .plank::before{top:-5px;bottom:-5px}
  html.classic.has-uiv_dels.hud-band #topbar .plank.xp::before{left:-44px}
  html.classic.has-uiv_dels.hud-band #topbar .plank.money{padding-left:5px}
  html.classic.has-uiv_dels.hud-band #topbar .inset.dark{width:100%}
  html.classic.has-uiv_dels.hud-band #topbar .plank .ic{width:24px;height:24px;margin-right:3px}
  html.classic.has-uiv_rozete.hud-band #topbar .rosette{top:calc(var(--band-c) - 19px);height:47px;margin:0}
  html.classic.has-uiv_rozete.hud-band #topbar .rosette b{font-size:22px}
}
/* ================= lane P1 (task 6e18c40d, polish): the collisions found walking every window at 1280×720, 393×852 and
   852×393. Appended last on purpose, nothing above is edited; each rule names what it closes. ================= */
/* phone upright, on a visit: the «spēles kaimiņš» chip was cut («spēles kai…») by the name's ellipsis on a narrow plate —
   a neighbour's name is short, so the chip wraps inside its column instead */
@media (max-width:640px) and (min-height:501px){
  html.classic #hostplate #hostname[data-npc]{overflow:visible;text-overflow:clip;white-space:normal}
  html.classic #hostplate #hostname[data-npc]::after{display:block;width:-webkit-fit-content;width:fit-content;max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.2}
}
/* «Mājas» at home: a pressed-in wood tile (darker, sunk, the house a little dimmer) instead of a half-transparent ghost */
html.classic #topright .hudtab.off,html.classic #topright .hudtab.off:hover,html.classic #topright .hudtab.off:active{opacity:1;filter:none;transform:translateY(1px);
  box-shadow:inset 0 3px 5px rgba(25,12,2,.5),inset 0 -1px 0 rgba(255,226,160,.2)}
html.classic #topright .hudtab.off img{opacity:.88;filter:grayscale(.3) brightness(.85) drop-shadow(0 1px 0 rgba(0,0,0,.3))}
html.classic.has-uiv_dels #topright .hudtab.off{border-color:#2A1A0A;background:linear-gradient(#A27848,#8E683D 30%,#7A5832 65%,#624528)}
/* one kristāls: the header's magenta prism (uiv_kristals; assets.js answers ui_kristals with it) — the count badge on the
   Supernauda tile in the island band and the wheel's «+N %» gem follow it */
html.classic.hud-band #topright #crysb{border-color:#2E1636;background:linear-gradient(#8E55A3,#74437F 55%,#5C366B);text-shadow:0 1px 0 rgba(46,22,54,.7)}
html.has-ui_kristals .wh-gem::before{width:.8em;height:1em;background:var(--s-ui_kristals) center/contain no-repeat;clip-path:none}
/* the giver's card covered the daily gift (desktop: under it; sideways: the gift's edge and the whole Pastkaste chip) —
   while it speaks it starts right of that column; folded it goes back to its corner */
@media (min-width:961px) and (min-height:521px){
  html.classic #darbi-bubble:not(.folded){left:calc(84px + var(--sal))}
  /* a window's cherries sat on the Darbi banner and its «+» — they step away under any window, as on phones */
  html.classic body:has(#modal:not([hidden])) :is(#banner,#b-more,#banner-list){visibility:hidden}
}
@media (max-height:520px){
  html.classic #darbi-bubble:not(.folded){left:calc(124px + var(--sal));width:min(300px,calc(100vw - 420px))}   /* as narrow as it was wide-left: the bed stays in view */
  /* sideways from level 3 (Laimes rats): five buttons in one column climbed over the icon row, «Mana ferma» over Bodīte and
     Noliktava, the map button over «Mājas» — two columns under the name plate instead */
  html.classic #rcol{display:grid;grid-template-columns:44px 44px;justify-content:end;align-content:end;gap:6px}
  html.classic #rcol .rc-home{grid-column:1 / -1;justify-self:end}
  html.classic #rcol #b-help{grid-column:2}
  /* the level card: the rosette left of the words, so «Tagad pieejams» and its chips are in view, not under the fold */
  html.classic #modal .panel.pergaments.lv-card{width:min(720px,92vw)}
  html.classic #modal .lv-card .ph{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:center;align-content:start}
  html.classic #modal .lv-card .ph>.ros{grid-row:1 / span 8;margin:0}
  html.classic #modal .lv-card .ph>:not(.ros){grid-column:2}
  html.classic #modal .lv-card .ph ul{margin:2px 0 4px;gap:5px}
  html.classic #modal .lv-card .ph li{padding:3px 8px;font-size:12.5px}
  html.classic #modal .lv-card .ph li img{width:16px;height:16px}
  html.classic #modal .lv-card .prize{font-size:14px;line-height:1.3}
  html.classic #modal .lv-card .unl{margin:2px 0 0;font-size:13px}
  /* on a visit the welcome line gets two lines, as upright (it was cut at «… kur…») */
  html.classic body.visiting .toast:not(.open) .tx{-webkit-line-clamp:2;line-clamp:2}
  /* Sasniegumi: two rows side by side — one column showed two achievements */
  html.classic #modal .aw-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px}
  html.classic #modal .aw{padding:4px 6px;gap:6px}
  html.classic #modal .aw-body{max-height:none}
  /* the wheel's cards stay inside the screen with their white edge (the odds card touched the top) */
  .wh-card{max-height:calc(100vh - var(--sat) - var(--sab) - 24px)}
}
/* a narrow phone on its side (iPhone SE: 667 px): the icon row lay over the kristāli board — the count rides on the Supernauda
   tile as in the island band, and the board steps away */
@media (max-height:520px) and (max-width:739px){
  html.classic #topbar .plank.crys{display:none}
  html.classic #banner{width:min(300px,calc(100vw - 412px))}   /* the banner's end ran under the seed bag */
  html.classic #topright #crysb{display:block;position:absolute;right:-3px;bottom:-5px;z-index:2;min-width:22px;height:20px;padding:0 5px;box-sizing:border-box;
    border-radius:10px;border:2px solid #2E1636;background:linear-gradient(#8E55A3,#74437F 55%,#5C366B);color:#fff;
    font:bold 12px/16px "Trebuchet MS",Verdana,sans-serif;text-align:center;white-space:nowrap;text-shadow:0 1px 0 rgba(46,22,54,.7);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 0 rgba(0,0,0,.3);pointer-events:none}
  html.classic #topright #crysb.cl-pulse{animation:clPulse .32s cubic-bezier(.3,1.8,.5,1)}
}

/* ================= lane I1 (task 6e18c40d): the 2010 Bodīte card, drawn again on today's shop =================
   Measured on art/ref/video/key/bodite-full-t011.png and the 2010 shop videos: a grey-cream card in a dark brown line, a small
   cream picture plate, the name in teal (not bold), round pale stepper bubbles with brown triangles around a long count box,
   a flat amber price bar with pale-yellow numbers and the crystal or coin over its left end; cream tab pills in a brown line,
   the chosen one pressed in. Boxes keep their sizes (on phones every target stays ≥ 44 px); only the paint changes. */
html.classic #modal .panel.bodite .card{justify-content:flex-start;gap:6px;padding:9px 8px 8px;border-radius:7px;border-color:#4F2E16;
  background:linear-gradient(#F0E9E1,#E6DCD1);box-shadow:inset 0 0 0 1.5px #FAF5EF,0 2px 0 rgba(60,30,8,.35)}
html.classic #modal .panel.bodite .card:hover{box-shadow:inset 0 0 0 1.5px #FAF5EF,0 8px 12px rgba(60,30,8,.32)}
html.classic #modal .panel.bodite .card .pic{flex:0 1 106px;max-height:106px;border-radius:12px;border:2px solid #D3C0AA;
  background:linear-gradient(#FFF9F0,#FBEEDC);box-shadow:inset 0 0 0 2px rgba(255,255,255,.6)}
html.classic #modal .panel.bodite .card .pic>img{width:84%;height:84%}
html.classic #modal .panel.bodite .card .nm{font-weight:normal;color:#2B8A68;letter-spacing:.1px}
html.classic #modal .panel.bodite .card .step{gap:3px}
html.classic #modal .panel.bodite .card .step button:is(.up,.dn){border:0;background:none;box-shadow:none}
html.classic #modal .panel.bodite .card .step button::before{content:'';position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;
  background:radial-gradient(circle at 50% 36%,#FAEDE4 0,#EEDACD 52%,#DDBFAE 100%);box-shadow:inset 0 0 0 1px rgba(150,96,70,.22),0 1px 0 rgba(255,255,255,.7)}
html.classic #modal .panel.bodite .card .step button i{display:block;z-index:1;width:14px;height:11px;margin:-4px 0 0 -7px;background:#AE6343;filter:drop-shadow(0 0 .6px #5E3018)}
html.classic #modal .panel.bodite .card .step button.up i{margin-top:-7px}
html.classic #modal .panel.bodite .card .step input{border-radius:2px;border-color:#8F7F75;background-color:#FCF2EB;color:#151515;box-shadow:inset 0 1px 2px rgba(80,50,30,.16)}
html.classic #modal .panel.bodite .card .price{width:min(164px,78%);padding:0 10px 0 0;border-radius:4px;border:2px solid #341300;
  background:linear-gradient(#F5B460 0,#EA9C3C 28%,#D5862D 55%,#B86E27 84%,#A35F22);box-shadow:inset 0 1px 0 #FFD48E,inset 0 -1px 0 rgba(80,30,0,.35),0 2px 0 rgba(50,20,0,.3);
  font:bold 17px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFE39A;text-shadow:0 1px 0 #5A2A04,1px 0 0 rgba(90,40,4,.55),-1px 0 0 rgba(90,40,4,.55),0 -1px 0 rgba(90,40,4,.4)}
html.classic #modal .panel.bodite .card .price::before{content:'';position:absolute;left:0;top:0;bottom:0;width:28px;border-radius:2px 0 0 2px;
  background:linear-gradient(90deg,rgba(75,38,7,.5),rgba(75,38,7,.12));box-shadow:1px 0 0 rgba(255,210,140,.35)}
html.classic #modal .panel.bodite .card .price>img,html.classic #modal .panel.bodite .card .price>.coin{position:relative;z-index:1;width:26px;height:26px;margin:-4px 0 -4px -5px;filter:drop-shadow(0 1px 0 rgba(40,15,0,.45))}
html.classic #modal .panel.bodite .card .price>.coin{width:20px;height:20px;margin-left:0}
html.classic #modal .panel.bodite .card .price b{position:relative}
html.classic #modal .panel.bodite .card .price small{position:relative;color:#FFE39A}
html.classic #modal .panel.bodite .card .price.cant b{color:#F2C2A6}
html.classic #modal .panel.bodite .card .lockl{display:flex;align-items:center;gap:3px;bottom:5px;padding:1px 7px 1px 5px;border-radius:9px;border:1px solid #A9C8A0;
  background:rgba(241,250,237,.97);color:#1F6FD6;font:bold 11.5px/1.35 "Trebuchet MS",Verdana,sans-serif;box-shadow:0 1px 2px rgba(40,30,10,.25)}
html.classic #modal .panel.bodite .card .lockl img{width:10px;height:13px;object-fit:contain}
html.classic #modal .panel.bodite .card .lockl.own{background:#3E8E2A;border-color:#fff;color:#fff}
html.classic #modal .panel.bodite .card .lockl.room{background:rgba(255,250,232,.97);border-color:#C9B27A;color:#5B4214}   /* lane lopi: «Vistu kūts 3/6» */
html.classic #modal .panel.bodite .card .pic.roomy{overflow:visible}   /* a small picture (a phone on its side): the chip may reach past it, on one line */
html.classic #modal .panel.bodite .card .lockl.room.full{background:#FBE3D6;border-color:#E3A487;color:#A3401D}
html.classic #modal .panel.bodite .card.lock{opacity:.74}
/* «Jauns!» — a little red tag in the ribbon's colours on the card's top-left corner */
html.classic #modal .panel.bodite .card .jauns{position:absolute;left:-7px;top:7px;z-index:2;padding:2px 7px 3px;border-radius:4px;border:2px solid #5A0E05;
  background:linear-gradient(#D93A22,#A8190B);color:#FFE08A;font:bold 12px/1 "Trebuchet MS",Verdana,sans-serif;letter-spacing:.3px;
  text-shadow:0 1px 0 #4A0A02;box-shadow:0 2px 0 rgba(50,10,0,.3);transform:rotate(-10deg);pointer-events:none}
/* the tabs: flat cream pills in a brown line, the chosen one pressed in with a thick dark line (the pictures stay: owner 2026-11-10) */
html.classic #modal .panel.bodite .tabs button{border-radius:5px;border-color:#865E35;background:linear-gradient(#FAF1E5,#F0E0CC);color:#5B371D;
  box-shadow:0 1px 0 rgba(90,52,18,.35),inset 0 1px 0 #fff}
html.classic #modal .panel.bodite .tabs button.on{border-color:#4A2A12;background:linear-gradient(#E3CBAE,#EEDCC5);color:#4A2810;box-shadow:inset 0 2px 5px rgba(60,30,8,.45)}
@media (min-width:961px) and (min-height:521px){
  html.classic #modal .panel.bodite .card .step input{width:92px}
}
@media (max-width:960px),(max-height:520px){
  html.classic #modal .panel.bodite .card{gap:3px;padding:5px 6px 6px}
  html.classic #modal .panel.bodite .card .step button::before{width:30px;height:30px;margin:-15px 0 0 -15px}
  html.classic #modal .panel.bodite .card .step input{width:52px;border:0;box-shadow:none;
    background:linear-gradient(#FCF2EB,#FCF2EB) center/calc(100% - 2px) 28px no-repeat,linear-gradient(#8F7F75,#8F7F75) center/100% 30px no-repeat}
  html.classic #modal .panel.bodite .card .price{width:min(164px,90%);border-radius:5px}
  html.classic #modal .panel.bodite .card .jauns{left:-5px;top:4px;font-size:11px;padding:2px 5px}
}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .panel.bodite .card{justify-content:space-evenly}
  html.classic #modal .panel.bodite .card .pic{width:auto;flex-basis:116px;max-height:116px}
}
/* ---- lane I1 S3: the 2010 «FERMA» logo lettering (public/js/ui/lettering.js; art/ref/logo-raw.png) — fat rounded capitals with
   a bounce, a yellow-to-amber face (#F7C948 → #F2A62B) in a dark brown line (#5A2E0C) over a darker amber side, a small shadow
   below. Three layers of the same letter: the side + outer line (the <i>), the face line (::before), the face (::after).
   Used on the Bodīte ribbon and the level-up title (Laimes rats draws its own in SVG). Not "Arial Rounded MT Bold": it has
   none of ā ē ī ū ģ ķ ļ ņ č ž, so a Latvian word would mix two fonts; Safari gets SF Rounded, the rest a black sans. ---- */
.lt2010{display:inline-flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:.32em;row-gap:.08em;max-width:100%;
  font-family:ui-rounded,"SF Pro Rounded","Arial Black","Segoe UI Black",Roboto,"Trebuchet MS",Verdana,sans-serif;font-weight:900;font-style:normal;line-height:1.12;
  text-transform:uppercase;letter-spacing:0;vertical-align:middle;filter:drop-shadow(0 .07em .035em rgba(45,18,0,.45))}
.lt2010 .w{display:inline-flex;white-space:nowrap}
.lt2010 .sp{display:inline-block;width:.3em}
.lt2010 i{position:relative;display:inline-block;margin:0 .02em;font-style:normal;color:#C4620E;-webkit-text-fill-color:#C4620E;
  -webkit-text-stroke:.17em #5A2E0C;paint-order:stroke fill;text-shadow:none}
.lt2010 i::before,.lt2010 i::after{content:attr(data-l);position:absolute;left:-.04em;top:-.12em;pointer-events:none;text-shadow:none}
.lt2010 i::before{color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:.14em #5A2E0C}
.lt2010 i::after{color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:0;
  background:linear-gradient(#FCE07A 0 10%,#F7C948 28%,#F2A62B 74%,#EC9A22);-webkit-background-clip:text;background-clip:text}
.lt2010 i.b0{transform:translateY(-.04em) rotate(-6deg)}
.lt2010 i.b1{transform:translateY(.05em) rotate(3deg) scale(.95)}
.lt2010 i.b2{transform:translateY(-.02em) rotate(-2deg)}
.lt2010 i.b3{transform:translateY(.04em) rotate(4deg) scale(.97)}
.lt2010 i.b4{transform:translateY(-.05em) rotate(-3deg)}
.lt2010 i.b5{transform:translateY(.02em) rotate(5deg) scale(1.04)}
html.classic #modal .bodite .lente h2{text-shadow:none;letter-spacing:0}
html.classic #modal .bodite .lente h2 .lt2010{font-size:36px}
html.classic #modal .lv-card h2.pt{text-shadow:none;margin:2px 0 4px}
html.classic #modal .lv-card h2.pt .lt2010{font-size:25px}
/* the fat capitals are wider than the old title: the side stars step out and the top one up, so they frame the word, not cover it */
@media (max-width:960px) and (min-height:521px){
  html.classic #modal .bodite .lente h2 .lt2010{font-size:30px}
  html.classic #modal .bodite .lente .st.s1{left:-84px}html.classic #modal .bodite .lente .st.s3{left:84px}html.classic #modal .bodite .lente .st.s2{top:-38px}
}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .bodite .lente h2 .lt2010{font-size:24px}
  html.classic #modal .bodite .lente .st.s1{left:-66px}html.classic #modal .bodite .lente .st.s3{left:66px}html.classic #modal .bodite .lente .st.s2{top:-28px}
  html.classic #modal .lv-card h2.pt .lt2010{font-size:23px}
}
@media (max-height:500px){
  html.classic #modal .bodite .lente h2 .lt2010{font-size:25px}
  html.classic #modal .bodite .lente .st.s1{left:-70px}html.classic #modal .bodite .lente .st.s3{left:70px}html.classic #modal .bodite .lente .st.s2{top:-30px}
  html.classic #modal .lv-card h2.pt .lt2010{font-size:22px}
}

/* ================= lane F1 (plan/R37): the 2010 feel, small and medium changes ================= */
/* #2 the event log (ui/log.js): one translucent column, pale gold bold letters with a dark-brown outline (WC48@206.4,
   crop labels/log-column-harvest). It is the first child of #toasts and is drawn above the toasts that remain (order:1 in
   their column-reverse), so it sits where every breakpoint and the visit screen already put that column. The max-height is
   a whole number of lines that ends above Austra's card (desktop), the field's left edge (phone) and the gift (landscape);
   log.js drops the oldest lines to fit. White at 60 % over the grass gives the original's #B0D098. */
html.classic #evlog{order:1;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;max-width:100%;max-height:149px;overflow:hidden;
  padding:2px 7px 3px 5px;background:rgba(255,255,250,.6);pointer-events:none;
  font:bold 13px/16px Verdana,Tahoma,"Trebuchet MS",sans-serif;color:#EAD28A;white-space:nowrap;
  text-shadow:-1px -1px 0 #483000,1px -1px 0 #483000,-1px 1px 0 #483000,1px 1px 0 #483000,0 -1px 0 #483000,0 1px 0 #483000,-1px 0 0 #483000,1px 0 0 #483000}
html.classic #evlog:empty{display:none}
/* task 6e18c40d (R95 #5): not a grey box — the kit's painted toast (ui_toast, ui-dialogs.png: pale green, green rim), cut in
   nine and drawn inward under the letters (border 0), so the padding, the max-heights and the line counts stay as they are;
   until the sheet is there the white at 60 % above stays */
html.classic.has-ui_toast #evlog{background:none;border:0 solid transparent;border-image:var(--s-ui_toast) 24 24 31 fill / 7px 7px 9px stretch}
/* a toast below it (an error, a notice): the column keeps its three newest lines (flex-end clips the oldest at the top) */
html.classic #evlog{justify-content:flex-end}
html.classic #toasts:has(>.toast) #evlog{max-height:53px}
@media (max-width:960px),(max-height:520px){
  html.classic #evlog{max-height:125px;padding:2px 6px 3px 4px;font-size:12px;line-height:15px}
  html.classic #toasts:has(>.toast) #evlog{max-height:50px}
  html.classic #toasts>#evlog+.toast:nth-last-child(3){display:none}   /* lane Y6's «two toasts on a phone» with the log first */
}
@media (max-height:520px){
  html.classic #evlog{max-height:61px;line-height:14px}
  html.classic #toasts:has(>.toast) #evlog{max-height:33px}
}
/* #3 the bed label (ui/objtip.js): no plate behind it, separate pale pills #D8E4CC with a thin grey-green rim, the bold name
   centred with «[N]» at the right end, the state below, a slim bar #7E9C18 on #4E6C00 with the bare clock in white
   (1VjR@10, WC48@206.4, crops labels/label-bed-*). The producers' purple bar stays (it is not a bed). */
html.classic body .cl-tip.obj-tip:not(.card-tip){gap:2px;min-width:150px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}
html.classic body .obj-tip .tt,html.classic body .obj-tip .st{position:relative;padding:1px 12px 2px;border-radius:7px;border:1px solid rgba(92,116,70,.7);background:#D8E4CC;text-align:center}
html.classic body .obj-tip .tt{padding:1px 38px 2px;font:bold 14px/18px "Trebuchet MS",Verdana,sans-serif;color:#1E2614}
html.classic body .obj-tip .tt .un{position:absolute;right:8px;top:1px;font-weight:normal;font-style:normal;color:#4B5640}
html.classic body .obj-tip .st{font:13px/17px "Trebuchet MS",Verdana,sans-serif;color:#353F2B}
html.classic body .obj-tip .st.sub{font-size:12px;color:#4B5640}
html.classic body .obj-tip .st.note{background:#EDE3C4;border-color:rgba(140,110,50,.6)}
html.classic body .obj-tip .bar:is(.grow,.wither){height:16px;margin:1px 2px 0;border-radius:4px;border:1px solid #2E4200;background:#4E6C00}
html.classic body .obj-tip .bar:is(.grow,.wither) s{background:linear-gradient(#93B022,#7E9C18 60%,#6E8A10)}
html.classic body .obj-tip .bar.dry{height:16px;margin:1px 2px 0;border-radius:4px;border:1px solid #6B5326;background:#8A6F3C}
html.classic body .obj-tip .bar.dry s{background:linear-gradient(#E3CF9C,#C9AB6E 60%,#B8925A)}
html.classic body .obj-tip .bar:is(.grow,.wither,.dry) em{font:bold 12px/16px Verdana,Tahoma,sans-serif;color:#fff;
  text-shadow:-1px -1px 0 #243000,1px -1px 0 #243000,-1px 1px 0 #243000,1px 1px 0 #243000}
/* #4 the item card (ui/bodite-tip.js, the Bodīte and the seed tray): the 2010 pale green #E4EDD8, the small blue rosette
   before «Līmenis N» in slate blue (e2KF@97.4, lRgd@109.63, crops labels/tip-item-*) */
html.classic .cl-tip.card-tip{background:#E4EDD8;border-color:#9DB286}
html.classic .cl-tip.card-tip .lv{font-weight:normal;color:#3D64A8}
html.classic .cl-tip.card-tip .lv img.ros{width:12px;height:20px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.2))}
/* #16 #17 the cherry board (ui/dialogs.js levelCard, ui/notices.js): the level-up's first line is the Novada padome
   sentence in bold near-black, centred, as the 2010 board (lRgd@130.27); the rosette with the level hangs over the board's
   top edge between the cherries and the X; a tip or the invite is one bold centred sentence (lRgd@70.43) */
html.classic #modal .lv-card .frame>.ros{position:absolute;top:-74px;left:50%;margin:0 0 0 -42px;z-index:2;filter:drop-shadow(0 3px 2px rgba(60,30,0,.3))}
html.classic.has-uiv_rozete #modal .lv-card .frame>.ros{margin-left:-32px}
html.classic #modal .pergaments.lv-card .frame{padding-top:34px}
html.classic #modal .lv-card .prize{font:bold 20px/1.35 "Trebuchet MS",Verdana,sans-serif;color:#1E0E00;margin:0 0 4px;text-wrap:balance}
html.classic #modal .pergaments.notice .pb{color:#1E0E00;text-wrap:balance;max-width:24em}
html.classic #modal .pergaments.notice{width:min(480px,92vw)}
@media (max-width:640px),(max-height:520px){html.classic #modal .lv-card .prize{font-size:17px}html.classic #modal .pergaments.notice .pb{font-size:18px}}
/* #8 the visit loader (ui/loader.js, #vload: over the game canvas, under the HUD): the old farm copied and dimmed at once, the monitor in the
   middle with four peppers orbiting it, then the whole cover fades in 0.2 s so the old farm dissolves into the new */
#vload{position:fixed;inset:0;z-index:5;pointer-events:none}
#vload .vl{position:fixed;inset:0;pointer-events:none;opacity:1;transition:opacity .2s linear}
#vload .vl.out{opacity:0}
#vload .vl-snap{position:fixed;display:block}
#vload .vl-dim{position:fixed;inset:0;background:#000}
#vload .vl-box{position:fixed;left:50%;top:50%;width:0;height:0}
#vload .vl-mon{position:absolute;left:-46px;top:-42px;width:104px;height:98px;z-index:2;filter:drop-shadow(0 4px 6px rgba(0,0,0,.45))}
#vload .vl-p{position:absolute;left:-18px;top:-21px;width:36px;height:42px;will-change:transform}
#vload .vl-p svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
@media (max-width:640px),(max-height:520px){#vload .vl-box{scale:.85}}
/* #20 the red X as in 2010 (lRgd@51.3/@53.3): a rounded square, matte #542418 with a brown-red rim and a pale-pink cross; the
   pointer swaps it at once to #6C0C0C with a bright red rim — no grow, no turn. Every classic window; on the small cherry
   boards it stands just outside the top-right corner (the wide windows, the shop and the store keep their own spots) */
html.classic #modal .panel .x.cl-x.cl-x{background:#542418;border:3px solid #8C3A26;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.35),inset 0 2px 0 rgba(255,190,170,.12);
  font-size:0;color:transparent;transition:none}
html.classic #modal .panel .x.cl-x.cl-x::before,html.classic #modal .panel .x.cl-x.cl-x::after{content:"";position:absolute;left:50%;top:50%;width:68%;height:6px;margin:-3px 0 0 -34%;
  border-radius:3px;background:#F4C6C0;transform:rotate(45deg)}
html.classic #modal .panel .x.cl-x.cl-x::after{transform:rotate(-45deg)}
html.classic #modal .panel .x.cl-x.cl-x:hover{background:#6C0C0C;border-color:#F0281C;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3),0 0 0 1px rgba(255,90,70,.35);transform:none}
html.classic #modal .panel .x.cl-x.cl-x:active{transform:scale(.94)}
html.classic #modal .pergaments:not(.wide,.store,.games,.friends,.cope,.hm)>.x.cl-x{right:-4px;top:-56px}
/* #11 the visit card (C3fK@128.87): a tan board #AE845A with a dark rim #483612, the owner's name plain and the farm's name
   bold in dark brown, the level a blue rosette hanging from the board's top edge (its ribbons over the board's lower edge) */
html.classic #hostplate{border:3px solid #483612;background:linear-gradient(#BA9064,#AE845A 45%,#A47A50);box-shadow:0 4px 0 rgba(0,0,0,.3),inset 0 1px 0 rgba(255,236,200,.45)}
html.classic #hostplate #hostav{border-color:#6B4E24}
html.classic #hostplate .hp-nm b{font-weight:normal;font-style:normal;color:#24160A}
html.classic #hostplate .hp-nm small{font-weight:bold;font-style:normal;color:#1E1004}
html.classic #hostplate #hostname[data-npc]::after{background:rgba(72,54,18,.16);color:#3A2810}
html.classic #hostplate #hostlvl{position:relative;z-index:1;align-self:start;width:38px;height:62px;margin:-7px 2px -20px;padding:0;border:0;border-radius:0;box-sizing:border-box;
  background:var(--s-uiv_rozete,radial-gradient(circle at 50% 30%,#FFF6DA 0 26%,#2F7FD8 28% 44%,#1B4F9A 46% 50%,transparent 52%)) 50% 0/100% auto no-repeat;
  filter:drop-shadow(0 2px 1px rgba(40,20,0,.35));text-align:center}
html.classic #hostplate #hostlvl b{display:block;margin:0;padding-top:9px;font:bold 18px/1 "Trebuchet MS",Verdana,sans-serif;color:#F9B233;letter-spacing:-.5px;
  text-shadow:-1.5px 0 #2A1606,1.5px 0 #2A1606,0 -1.5px #2A1606,0 1.5px #2A1606,-1px -1px #2A1606,1px -1px #2A1606,-1px 1px #2A1606,1px 1px #2A1606,0 2px 0 #1A0D02}
@media (max-width:960px),(max-height:520px){
  html.classic #hostplate #hostlvl{width:32px;height:52px;margin:-5px 0 -14px}
  html.classic #hostplate #hostlvl b{padding-top:8px;font-size:15px}
}
/* #24 the corner mark: «v5.2» in small white letters at the bottom-right corner, under the tools (lane spele: no «Testa», quieter) */
html.classic #hud .stamp{position:absolute;right:calc(10px + var(--sar));bottom:max(1px,calc(var(--sab) - 13px));margin:0;font:9px/1 Verdana,Tahoma,sans-serif;color:#fff;
  opacity:.55;text-shadow:0 1px 1px rgba(0,0,0,.6);white-space:nowrap;pointer-events:none;user-select:none}
/* #1 the farm-name plank: lane K1's painted board at the end of this file took over the beige plank (owner 2026-11-13) */
/* the Draugi rows: who on top, the farm's name bold under it, the level and «spēles kaimiņš» small (C3fK@2 friends panel) */
html.classic #modal .pergaments.friends .row .tx .who{display:block;font:13px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#5C4026}
html.classic #modal .pergaments.friends .row .tx b.farm{display:block;font:bold 16px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#2E1A06}

/* ================= lane H2 (task 6e18c40d): what plan/R37 left — #19 the 2013 icon strip on the object tip =================
   a grey glass strip over the pale-green plate (lRgd@43.13): ⟳ Pagriezt, ✥ Pārvietot and, set apart on the right, «Noliktavā».
   40 px buttons by the mouse, 44 px on a touch screen; a refused one stays dimmed and says why */
.cl-tip.obj-tip.has-acts{pointer-events:auto;min-width:168px}
.obj-tip .ot-acts{display:flex;gap:4px;padding:3px;border-radius:6px;background:rgba(146,154,160,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.obj-tip .oa{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:7px;border:1px solid rgba(58,68,76,.6);cursor:pointer;
  background:linear-gradient(rgba(255,255,255,.95),rgba(208,216,222,.95));box-shadow:0 1px 0 rgba(0,0,0,.22),inset 0 1px 0 #fff;transition:transform .12s}
.obj-tip .oa svg{width:26px;height:26px;pointer-events:none}
.obj-tip .oa-stow{margin-left:auto}
.obj-tip .oa:hover:not([aria-disabled="true"]){filter:brightness(1.07);transform:translateY(-1px)}
.obj-tip .oa:active:not([aria-disabled="true"]){transform:scale(.93)}
.obj-tip .oa[aria-disabled="true"]{opacity:.4;cursor:default}
.obj-tip .oa:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}
/* plan/R96 #12 (task 6e18c40d): «Līgas ābolu lapa» folded below an Antonovka's own lines — a paper slip, 48 px tall */
.obj-tip .ot-note{display:block;width:100%;min-height:48px;padding:4px 10px;border-radius:7px;border:1px solid rgba(140,110,50,.6);cursor:pointer;
  background:#EDE3C4;font:bold 13px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#5a3a10;text-align:center}
.obj-tip .ot-note:hover{filter:brightness(1.05)}
.obj-tip .ot-note:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}
/* task 6e18c40d (lane pārkārtot): the first-time line under a thing's icons — «Ēkas, lietas un dobes var pārvietot — …»,
   quiet words a finger high; a press opens «Pārkārtot sētu». Gone for good once the mode has been used (prefs hud.seen) */
.obj-tip .ot-hint{display:block;width:100%;min-height:44px;margin-top:4px;padding:4px 10px;border-radius:7px;border:1px dashed rgba(140,110,50,.6);cursor:pointer;
  background:rgba(255,248,226,.75);font:italic 12.5px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#5a3a10;text-align:left;touch-action:manipulation}
.obj-tip .ot-hint:hover{filter:brightness(1.04)}
.obj-tip .ot-hint:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}
@media (hover:none){
  .cl-tip.obj-tip.has-acts{min-width:180px}
  .obj-tip .oa{width:44px;height:44px}
  .obj-tip .oa svg{width:28px;height:28px}
}
/* #23 the 2010 left column (4-6R@0): pale glass tiles stacked tight at the left edge, what each working building makes;
   a green count on the ones with something ready. leftcol.js places each tile (44 px) clear of the gift, the book and the rest */
html.classic #leftcol{position:absolute;left:0;top:0;width:0;height:0;z-index:3;pointer-events:none}
html.classic #leftcol[hidden]{display:none}
html.classic #leftcol .lc-tile{position:fixed;width:44px;height:44px;padding:5px;box-sizing:border-box;border-radius:8px;cursor:pointer;pointer-events:auto;
  border:1px solid rgba(255,255,255,.8);background:linear-gradient(rgba(255,255,255,.58),rgba(206,230,192,.42));
  box-shadow:0 2px 4px rgba(20,40,10,.25),inset 0 1px 0 rgba(255,255,255,.85);transition:transform .12s}
html.classic #leftcol .lc-tile img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(40,30,10,.3))}
html.classic #leftcol .lc-tile .lc-n{position:absolute;right:-6px;top:-6px;min-width:19px;height:19px;padding:0 4px;box-sizing:border-box;border-radius:10px;
  border:2px solid #fff;background:#3E9A1B;color:#fff;font:bold 11px/15px "Trebuchet MS",Verdana,sans-serif;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.3)}
html.classic #leftcol .lc-tile:hover{transform:translateX(2px)}
html.classic #leftcol .lc-tile:active{transform:scale(.92)}
html.classic #leftcol .lc-tile:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}

/* land that is not the player's: the map button lights up while the note offers the map */
#b-map.land-nudge{animation:landNudge .9s ease-in-out 3}
@keyframes landNudge{50%{box-shadow:0 0 0 5px rgba(255,227,138,.75);transform:scale(1.08)}}
html.less-motion #b-map.land-nudge{animation:none;box-shadow:0 0 0 4px rgba(255,227,138,.75)}
@media (prefers-reduced-motion:reduce){#b-map.land-nudge{animation:none;box-shadow:0 0 0 4px rgba(255,227,138,.75)}}
/* plan/R145 C1 (task 6e18c40d, ui/place-mark.js): Austra's small face on the map's button (and its phone tab) after the
   level-2 card, until pressed once — a mark, never a window: it opens nothing and covers nothing but the button's corner
   (the buttons by place-mark.js's class am-on, so the phone tab's own rules stay the phone line's: tests/mobils.test.mjs) */
.am-on>i.am-pip{position:absolute;left:-7px;top:-7px;width:22px;height:22px;border-radius:50%;box-sizing:border-box;
  border:2px solid #fff;background:#F4E2B8 url(../img/npc/austra_glad.webp) center/cover no-repeat;box-shadow:0 1px 3px rgba(0,0,0,.35);
  pointer-events:none;z-index:2}
html.classic.hud-phone #topright .am-on>i.am-pip{left:-6px;top:-6px;width:20px;height:20px}
body.visiting .am-on>i.am-pip{display:none}
/* ================= lane K1 (task 6e18c40d): the farm-name board. The owner (2026-11-13): the plate floating in the middle of the
   screen looked cheap. Now a painted wooden board hangs under the icon row by two ropes, right-aligned with the tiles, the ropes
   tucked behind them (hud.js placeBoard; on an upright phone it hangs under the darbi board or the notice under it, and it steps
   away, never squeezed, when it would reach the right column or the middle of the screen). The player's own portrait (the
   Draugi face) sits in a painted round frame hanging at its left end. The name is live text in rounded bold letters with a dark
   outline; until the farm is named the board asks «Nosauc savu fermu» (plank.js). A tap on the board opens the rename window,
   on the portrait brings the camera home, as before. Art: art/tools/icons-k1.py (hud_nameboard, hud_portrait_ring, hud_pencil);
   without it the board is a CSS plank. ================= */
html.classic #avatar{position:absolute;left:auto;right:var(--nb-r,calc(8px + var(--sar)));top:var(--nb-t,calc(52px + var(--sat)));z-index:auto;
  display:flex;flex-direction:row;align-items:flex-start;gap:0;width:auto;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
  transform:none;pointer-events:none;--nb-w:232px;--nb-d:62px;--nb-f:16px;transition:opacity .18s ease,visibility .18s}
html.classic #avatar[data-off]{opacity:0;visibility:hidden}
html.classic #avatar :is(.fp-home,.fp-name){position:relative;flex:none;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;
  pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:transform .14s cubic-bezier(.34,1.56,.64,1),filter .12s}
html.classic #avatar :is(.fp-home,.fp-name):hover{filter:brightness(1.07)}
html.classic #avatar :is(.fp-home,.fp-name):active{transform:scale(.95)}
html.classic #avatar :is(.fp-home,.fp-name):focus-visible{outline:3px solid #1F6FD6;outline-offset:2px;border-radius:10px}
/* the portrait: the face in a circle under the round frame, which hangs from its own rope loop */
html.classic #avatar .fp-home{z-index:1;width:var(--nb-d);aspect-ratio:220/256;margin-right:calc(var(--nb-d) * -.3);transform-origin:50% 0}
html.classic #avatar .fp-home .av{position:absolute;left:13%;top:calc(56.8% - 37% * 220 / 256);width:74%;height:auto;aspect-ratio:1;box-sizing:border-box;margin:0;
  border:0;border-radius:50%;overflow:hidden;background:#F6E7C8;box-shadow:none}
html.classic #avatar .fp-home .av img{display:block;width:100%;height:100%;object-fit:cover}
html.classic #avatar .fp-home .av img[hidden],html.classic #avatar.has-face .fp-home .av svg{display:none}
html.classic #avatar .fp-home::after{content:'';position:absolute;inset:0;border-radius:50%;border:4px solid #B9772F;box-shadow:0 0 0 1.5px #4A2508;pointer-events:none}
html.classic.has-hud_portrait_ring #avatar .fp-home::after{border:0;border-radius:0;box-shadow:none;background:var(--s-hud_portrait_ring) 0 0/100% 100% no-repeat;
  filter:drop-shadow(0 2px 1px rgba(40,16,0,.35))}
/* the board: the ropes are its top 28 %, the words sit on the wood below them */
html.classic #avatar .fp-name{display:block;width:var(--nb-w);aspect-ratio:720/195;text-align:center;transform-origin:50% 0}
html.classic #avatar .fp-name::before{content:'';position:absolute;left:0;right:0;top:28%;bottom:8%;border:2px solid #4A2508;border-radius:9px;
  background:linear-gradient(#F0C477,#D99B48 60%,#B97A35);box-shadow:inset 0 2px 0 rgba(255,240,200,.6),0 3px 0 rgba(0,0,0,.25)}
html.classic.has-hud_nameboard #avatar .fp-name::before{top:0;bottom:0;border:0;border-radius:0;box-shadow:none;background:var(--s-hud_nameboard) 0 0/100% 100% no-repeat;
  filter:drop-shadow(0 3px 2px rgba(40,16,0,.3))}
html.classic #avatar .fp-t{position:absolute;left:calc(var(--nb-d) * .3 + 7px);right:calc(var(--nb-f) * 1.25);top:28.2%;bottom:13.3%;display:flex;flex-direction:column;
  align-items:center;justify-content:center;min-width:0;max-width:none;margin:0;padding:0;white-space:nowrap;text-shadow:none}
html.classic #avatar #farmname{display:block;box-sizing:border-box;max-width:100%;margin:0;padding:1px 3px 2px;align-self:auto;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font:bold var(--nb-f)/1.15 ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",Verdana,sans-serif;letter-spacing:.2px;color:#FFF7E2;text-align:center;
  text-shadow:-1.5px 0 0 #4A2508,1.5px 0 0 #4A2508,0 -1.5px 0 #4A2508,0 1.5px 0 #4A2508,-1px -1px 0 #4A2508,1px -1px 0 #4A2508,-1px 1px 0 #4A2508,1px 1px 0 #4A2508,
    0 2.5px 2px rgba(40,16,0,.45)}
html.classic #avatar:not(.named):not(.given) #farmname{color:#FFE9A6;font-size:calc(var(--nb-f) - 1px)}
html.classic #avatar #farmplace{display:none}
/* the pencil at the board's right end: the board can be renamed */
html.classic #avatar .pen{position:absolute;right:calc(var(--nb-f) * -.2);bottom:4%;width:calc(var(--nb-f) * 1.6);height:calc(var(--nb-f) * 1.6);display:grid;
  place-items:center;border-radius:50%;background:#F3E3C3;color:#6b3d14;font:normal bold calc(var(--nb-f) - 2px)/1 "Trebuchet MS",sans-serif;
  box-shadow:0 1px 0 rgba(0,0,0,.35);pointer-events:none}
html.classic.has-hud_pencil #avatar .pen{border-radius:0;background:var(--s-hud_pencil) 50% 50%/contain no-repeat;box-shadow:none;color:transparent;font-size:0;
  filter:drop-shadow(0 1px 1px rgba(40,16,0,.4))}
/* where it steps aside: an open window, and on a phone the radio sheet or the seed tray (as the right column does) */
html.classic:has(#modal:not([hidden])) #hud #avatar{visibility:hidden}
@media (max-width:760px),(max-height:520px){
  html.classic #avatar{--nb-w:192px;--nb-d:52px;--nb-f:14px}
  html.classic body.radio-open #avatar,html.classic #hud:has(#seedpick:not([hidden])) #avatar{visibility:hidden}
}
/* lane K1: the painted HUD icons. The left column's tiles take the right column's glass (lane H1) instead of a pale opaque plate,
   so the painted products (products.js `icon`) carry them; the radio is the painted table radio on both of its buttons */
/* lane U1 (R105 #5): …and then a small wooden crate each (the window kit's win_wood, nails and all): solid, so the roofs and
   the tractor under them never show through and the tiles stop reading as half-loaded glass */
html.classic #leftcol .lc-tile{padding:6px;border:0 solid transparent;border-image:url(../img/win_wood.webp) 64 fill / 8px stretch;background:none;border-radius:0;
  box-shadow:none;filter:drop-shadow(0 2px 2px rgba(30,15,0,.35))}
html.classic #leftcol .lc-tile:hover{filter:drop-shadow(0 2px 2px rgba(30,15,0,.35)) brightness(1.06)}
html.classic #leftcol .lc-tile img{filter:drop-shadow(0 2px 0 rgba(0,0,0,.25))}
html.classic #side #b-radio img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(0,0,0,.3))}
html.classic #rcol #radio-badge.rc{padding:5px}

/* lane items2 (plan/R47): the Bodīte's set chips — «Visi» and one chip per decor set (picture, name, kinds on the farm / sold),
   a strip under the tabs that scrolls sideways when the sets outgrow it; the picked chip is pressed in like a tab */
html.classic #modal .bodite .sets{flex:none;display:flex;justify-content:center;gap:8px;padding:0 34px 8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html.classic #modal .bodite .sets[hidden]{display:none}
html.classic #modal .bodite .sets::-webkit-scrollbar{display:none}
html.classic #modal .bodite .sets button{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;border:2px solid #8A5A2B;
  background:linear-gradient(#FFF8EA,#F3E3C0);font:bold 13px/1 "Trebuchet MS",Verdana,sans-serif;color:#6B3F1D;box-shadow:0 2px 0 rgba(90,52,18,.35);white-space:nowrap;cursor:pointer}
html.classic #modal .bodite .sets button img{width:24px;height:24px;object-fit:contain;margin-left:-4px}
html.classic #modal .bodite .sets button small{font-size:11px;color:#2F6A12;background:rgba(255,255,255,.7);border-radius:8px;padding:2px 5px}
html.classic #modal .bodite .sets button.on{background:linear-gradient(#EBD6AA,#E0C48E);border-color:#5A3412;color:#4A2810;box-shadow:inset 0 2px 4px rgba(0,0,0,.3)}
html.classic #modal .bodite .sets button img.badge{width:22px;height:22px;margin:0 -6px 0 0}
/* the picked set's line: its badge (grey until every kind stands on the farm), what the set is, and its one-time gift */
html.classic #modal .bodite .setline{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 34px 8px;padding:4px 12px;border-radius:10px;
  background:rgba(255,248,234,.82);border:1px solid rgba(138,90,43,.45);font:13px/1.25 "Trebuchet MS",Verdana,sans-serif;color:#5A3412}
html.classic #modal .bodite .setline[hidden]{display:none}
html.classic #modal .bodite .setline img{width:30px;height:30px;object-fit:contain;flex:none}
html.classic #modal .bodite .setline span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.classic #modal .bodite .setline em{flex:none;font-style:normal;font-weight:bold;color:#8A4B12}
html.classic #modal .bodite .setline.done em{color:#2F6A12}
/* lane ekonomika (play2 #8): the view row over the board (Visi · Manam līmenim · Jaunie) — a size under the set chips */
html.classic #modal .bodite .sets.views{padding-bottom:6px}
html.classic #modal .bodite .sets.views button{height:28px;padding:0 11px;font-size:12.5px}
html.classic #modal .bodite .sets.views button:disabled{opacity:.45;cursor:default;box-shadow:none}
/* plan/R96 #4: «Kad būsi atpakaļ?» — the view row's twin under it (the question, then the four pills); a seed's name opens its
   card, so it is a button that reads as the name; the card puts the first harvest's hour on top */
html.classic #modal .bodite .sets.seed-windows{align-items:center}
html.classic #modal .bodite .sets.seed-windows .ask{flex:none;font:bold 13px/1 "Trebuchet MS",Verdana,sans-serif;color:#5A3412;white-space:nowrap}
html.classic #modal .bodite .card .nm .seed-name{margin:0;padding:0;border:0;background:none;box-shadow:none;font:inherit;letter-spacing:inherit;color:inherit;text-align:inherit;cursor:pointer}
html.classic #modal .bodite .card .nm .seed-name:focus-visible{outline:2px solid #2F63C7;outline-offset:2px;border-radius:3px}
html.classic #modal .bodite .soon.none b{max-width:90%;font-size:24px;text-align:center}
.cl-tip.card-tip .when{margin:0 0 5px;padding:4px 7px 5px;border-radius:6px;background:rgba(255,255,255,.6);font:bold 13.5px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#2A6E16}
.cl-tip.card-tip .when small{display:block;font-weight:normal;font-style:italic;font-size:12px;color:#555}
@media (max-width:640px),(max-height:500px){
  html.classic #modal .bodite .setline{margin:0 10px 6px;padding:3px 8px;font-size:11.5px;gap:6px}
  html.classic #modal .bodite .setline img{width:24px;height:24px}
  html.classic #modal .bodite .setline span{display:none}
  html.classic #modal .bodite .sets{justify-content:flex-start;gap:6px;padding:0 10px 6px}
  html.classic #modal .bodite .sets button{height:28px;font-size:12px;padding:0 10px}
  html.classic #modal .bodite .sets button img{width:20px;height:20px}
  html.classic #modal .bodite .sets.views{justify-content:center;padding-bottom:5px}
  html.classic #modal .bodite .sets.views button{height:25px;font-size:11.5px;padding:0 9px}
  html.classic #modal .bodite .sets.seed-windows{flex-wrap:wrap;row-gap:5px;overflow:visible}
  html.classic #modal .bodite .sets.seed-windows .ask{font-size:12px}
}
/* plan/R50 (lane snow): the sniegavīrs's window — he stands in the middle, his things in two rows under him */
html.classic #modal .pergaments.snowman .sm{display:flex;flex-direction:column;align-items:center;gap:8px}
html.classic #modal .pergaments.snowman .sm-pic{position:relative;width:170px;height:190px;background:radial-gradient(ellipse at 50% 88%,rgba(198,217,234,.9) 0 34%,rgba(198,217,234,0) 62%)}
html.classic #modal .pergaments.snowman .sm-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px rgba(40,60,90,.25))}
html.classic #modal .pergaments.snowman .sm-say{margin:0;font-style:italic;color:#5A4326;text-align:center;min-height:2.6em}
html.classic #modal .pergaments.snowman .sm-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
html.classic #modal .pergaments.snowman .sm-slot{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:96px;padding:6px 4px;border:2px solid #C9A46A;border-radius:12px;background:#FFF6DF;color:#4A3520;font:inherit;cursor:pointer}
html.classic #modal .pergaments.snowman .sm-slot img{width:44px;height:44px;object-fit:contain}
html.classic #modal .pergaments.snowman .sm-slot b{font-size:14px;line-height:1.1;text-align:center}
html.classic #modal .pergaments.snowman .sm-slot small{font-size:12px;color:#8A6A3A;text-align:center}
html.classic #modal .pergaments.snowman .sm-slot.on{background:#E4F3D2;border-color:#6FA53A}
html.classic #modal .pergaments.snowman .sm-slot.on small{color:#3F7A1E}
html.classic #modal .pergaments.snowman .sm-slot.no{opacity:.55;cursor:default}
html.classic #modal .pergaments.snowman .sm-slot.no img{filter:grayscale(1)}
html.classic #modal .pergaments.snowman .sm-note{margin:0;font-size:13px;color:#8A6A3A;text-align:center}
@media (max-height:880px) and (min-width:700px){
html.classic #modal .pergaments.snowman .sm{gap:6px}
html.classic #modal .pergaments.snowman .sm-pic{width:120px;height:132px}
html.classic #modal .pergaments.snowman .sm-say{min-height:1.3em}
html.classic #modal .pergaments.snowman .sm-slot{min-height:72px;padding:4px}
html.classic #modal .pergaments.snowman .sm-slot img{width:32px;height:32px}
html.classic #modal .pergaments.snowman .sm-note{display:none}
}
/* lane phonefix (owner 2026-11-14, a phone screenshot): the tools, the right column and the small bar were thin white
   glass (.22–.34) — a fence, a hay stack or a bush behind them read as part of the button's picture. The plates keep
   the original's pale look but carry their own ground now: a pale leaf-green plate that hides what is under it, a light
   rim and a soft inner line. No backdrop blur (the farm under them repaints every frame). */
html.classic.has-uiv_dels .tool{border:2px solid rgba(255,255,255,.62);background:linear-gradient(rgba(232,244,216,.9),rgba(204,228,182,.88));
  box-shadow:0 1px 3px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.55)}
html.classic.has-uiv_dels .tool.sel{background:linear-gradient(rgba(236,246,252,.95),rgba(206,230,244,.93))}
html.classic.has-uiv_dels #rcol .rc{border:2px solid rgba(255,255,255,.6);background:linear-gradient(rgba(232,244,216,.86),rgba(206,228,186,.84));
  box-shadow:0 1px 3px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.5)}
html.classic.has-uiv_dels #rcol .rc:hover{background:linear-gradient(rgba(240,248,228,.92),rgba(214,234,196,.9))}
html.classic #side .sb{background:rgba(52,82,26,.82)}
html.classic #side .sb:hover{background:rgba(70,104,36,.88)}

/* ---------- lane hud2 (task 6e18c40d, owner 2026-11-14): the phone HUD (public/js/ui/hud-phone.js) ----------
   html.hud-phone: the short side of the screen is under 560 px (every phone either way up, never an iPad). The row keeps
   Draugi, Supernauda, Noliktava and Bodīte and gets «Vairāk»; the rest of the row, the right column, the small bar and the
   name board step off the farm into Vairāk's board, where a stand-in tile presses each real button. */
html.classic #topright #b-vairak,html.classic #b-dfold{display:none}   /* #topright: it must outweigh «#topright .hudtab{display:flex}» */
html.classic.hud-phone #topright :is(#b-awards,#b-bank,#b-home){display:none}
html.classic.hud-phone :is(#rcol,#side,#avatar){display:none!important}
html.classic.hud-phone #topright #b-vairak{display:flex;flex-direction:column;justify-content:center;gap:3px}
html.classic.hud-phone #b-vairak .hp-dots{display:grid;grid-template-columns:repeat(2,8px);gap:3px}
html.classic.hud-phone #b-vairak .hp-dots b{width:8px;height:8px;border-radius:2px;background:#FFF3DA;box-shadow:0 0 0 1.5px #5A3412}
html.classic.hud-phone #b-vairak.open{filter:brightness(.88);transform:translateY(1px)}
/* MAP-PLAN-2026-11-24 §2.3 (task 6e18c40d): «Karte» in the line, before «Vairāk», while the farm has no place (hud-phone.js paintMapTab) */
html.classic #topright #b-maptab{display:none}
html.classic.hud-phone #topright #b-maptab:not([hidden]){display:flex}
/* … a sixth tab fits an upright phone under 420 px only in a tighter line (measured 360–430 px with Draugi and the darbi
   chip): the gap is 6 px and the folded darbi chip shows its picture without the count — a tap on it opens the bar with
   the count, as before; under 370 px the line and the chip also sit 4 and 2 px closer to the edge (a smaller gap made the
   «Noliktava» and «Bodīte» captions touch). All of it ends with the tab, when the farm has its place. */
@media (orientation:portrait) and (max-width:419px){
  html.classic.hud-phone:has(#topright #b-maptab:not([hidden])) #topright{gap:6px}
  html.classic.hud-phone:has(#topright #b-maptab:not([hidden])) #banner.hp-fold .dk-prog{display:none}
}
@media (orientation:portrait) and (max-width:369px){
  html.classic.hud-phone:has(#topright #b-maptab:not([hidden])) #topright{right:calc(6px + var(--sar))}
  html.classic.hud-phone:has(#topright #b-maptab:not([hidden])) #banner.hp-fold{right:calc(var(--hp-row-l,260px) + 6px)}
}
/* lane pirmie (playtest 15 Nov, #11): on a phone the row's four tabs say what they are — a small plate under each picture */
html.classic.hud-phone #topright .hudtab[data-hl]::after{content:attr(data-hl);position:absolute;left:50%;top:calc(100% + 1px);transform:translateX(-50%);padding:1px 4px;border-radius:5px;
  background:rgba(58,32,8,.8);color:#FFF3DA;font:bold 11px/1.15 "Trebuchet MS",Verdana,sans-serif;letter-spacing:-.2px;white-space:nowrap;pointer-events:none}
html.classic.hud-phone body.visiting #topright .hudtab[data-hl]::after{display:none}
html.classic :is(#b-vairak,.hp-tile) em.dot{min-width:14px;width:14px;height:14px;padding:0}
@media (max-width:640px) and (min-height:501px){
  html.classic.hud-phone #topright{gap:10px}
}
/* the board: the bar's wood, three labelled groups (one grid of seven when the phone lies on its side) */
html.classic .hp-drawer{position:absolute;z-index:8;top:var(--hp-top,60px);right:var(--hp-right,8px);box-sizing:border-box;
  width:min(372px,calc(100vw - 16px - var(--sal) - var(--sar)));max-height:calc(100vh - var(--hp-top,60px) - var(--sab) - 8px);overflow:auto;overscroll-behavior:contain;
  padding:10px 10px 12px;border:3px solid var(--line);border-radius:14px;background:linear-gradient(var(--wood-a),var(--wood-b) 45%,var(--wood-c));
  box-shadow:0 8px 18px rgba(30,15,0,.45),inset 0 2px 0 rgba(255,240,205,.45),inset 0 -3px 0 rgba(90,50,15,.3);transform-origin:calc(100% - 22px) 0;animation:hpIn .18s cubic-bezier(.3,1.4,.5,1)}
html.classic .hp-drawer[hidden]{display:none}
@keyframes hpIn{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
html.classic .hp-head{display:flex;align-items:center;gap:8px;margin:0 0 2px}
html.classic .hp-farm{flex:none;width:44px;height:44px;padding:0;border-radius:50%;border:3px solid #E9B44C;background:#FFF3DA;overflow:hidden;cursor:pointer}
html.classic .hp-farm img{display:block;width:100%;height:100%;object-fit:cover}
html.classic .hp-farm img:not([src]){visibility:hidden}
html.classic .hp-name{flex:1;min-width:0;height:44px;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:10px;border:2px solid var(--line);
  background:#F6E2B8;color:#3A2612;font:bold 16px/1 "Trebuchet MS",Verdana,sans-serif;cursor:pointer;box-shadow:inset 0 2px 3px rgba(90,50,15,.25)}
html.classic #hp-plate{display:none}
html.classic.hud-phone #hp-plate{display:flex;align-items:center;gap:3px;box-sizing:border-box;position:absolute;left:calc(8px + var(--sal,0px));top:calc(92px + var(--sat,0px));z-index:1;max-width:120px;height:20px;padding:0 8px;
  border:1.5px solid #5A3412;border-radius:10px;background:linear-gradient(#F6E2B0,#E3C27E);box-shadow:0 2px 0 rgba(58,29,0,.35);color:#4A2508;
  font:800 12px/17px "Trebuchet MS",Verdana,sans-serif;pointer-events:auto;-webkit-tap-highlight-color:transparent}
html.classic.hud-phone #hp-plate span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* task 6e18c40d: the pen while the farm has no name of its own (the server's «Ežu sēta», or «Nosauc fermu»); hud-phone.js sets .pen */
html.classic #hp-plate i{display:none}
html.classic.hud-phone #hp-plate.pen i{display:block;flex:none;font:normal 800 11px/1 "Trebuchet MS",sans-serif;color:#7A4A1C}
/* with the pen the plate is a touch tighter so every name the game gives («Kameņu sēta», the longest) and the short ask fit
   the 91 px task pill whole; a name of the player's own keeps 12 px and ends in «…» when it is longer */
html.classic.hud-phone #hp-plate.pen{gap:1px;padding:0 4px 0 6px;font-size:11px}
html.classic.hud-phone #hp-plate.ask{font-size:10px}
/* task 6e18c40d: it steps aside as the name board does (an open window, see #avatar above), on the square, and while a
   thing is being placed (#placebar shows; there is no .placing class and no body.modal-open in the game) */
html.classic.hud-phone.lk-open #hp-plate,html.classic.hud-phone:has(#placebar:not([hidden])) #hp-plate{display:none}
html.classic.hud-phone:has(#modal:not([hidden])) #hp-plate{visibility:hidden}
/* task 6e18c40d: the first minute (missions.js firstMinute → html.first-minute, ui.js quiet): until Austra's six carrots
   are claimed her card speaks alone — no «!» or hop on the gift, no red count or dot on the Noliktava, the news book,
   «Vairāk» (on a laptop the board's #boardcount it sums) or the letter box, no plate asking for a name over the toasts,
   no festive chip; all of them come back the moment she pays */
html.first-minute #gift.ready{animation:none}
html.first-minute #gift.ready::after,html.first-minute #storecount,html.first-minute #b-news .nw-dot,html.first-minute #boardcount,
html.first-minute:not(.with-friend) #pk-chip .pk-n,html.first-minute #b-more .pk-n,html.first-minute #b-vairak .hp-badge,html.first-minute #hp-plate.ask,
html.first-minute #s18-chip{display:none}
/* task 6e18c40d (lane A «Klusā pirmā minūte», R105): the first minute holds back the secondary doors too, a shorter while
   than the badges: html.fm-doors (ui.js paintQuiet, missions.js firstDoors) — until level 2 or Austra's pay, whichever comes
   first. A laptop's tab row keeps Supernauda, Noliktava and Bodīte (Draugi, Sasniegumi, Banka and the board wait); the right
   column (karte, spēles, laukums, kamera, radio) waits but its «?» — Palīdzība stays, the other device's «Ievadīt kodu» is
   there (ui/other-device.js CODE_WHERE); «+» by the Darbi bar, the news book, the letter chip and the name plate's pencil
   wait; a phone's row keeps Supernauda, Noliktava, Bodīte and «Vairāk». What the tutorial points at stays: Austra's card,
   the Darbi bar with her step, the tools, the gift. The tabs leave the row (no holes in it); the rest only hides, so nothing
   moves when it comes back. They come back with one slow fade (html.fm-reveal for 2,4 s) once the level card is closed;
   a farm past level 1 or past that step never has html.fm-doors, so a returning player never sees them go.
   Task 6e18c40d (the social research B5): a newcomer who HAS a friend (html.with-friend, ui/friends.js refresh) keeps
   «Draugi» and the letter chip with its count from the first second — what the friend did and sent is there; a newcomer
   with no friend still waits for them */
html.fm-doors:not(.with-friend) #topright #b-friends,html.fm-doors #topright :is(#b-awards,#b-bank,#b-home){display:none}
html.fm-doors #rcol>:not(#b-help),html.fm-doors :is(#b-more,#b-news,#avatar .pen,#hp-plate i),html.fm-doors:not(.with-friend) #pk-chip{visibility:hidden;pointer-events:none}
@media (prefers-reduced-motion:no-preference){
  html.fm-reveal:not(.less-motion) #topright :is(#b-friends,#b-awards,#b-bank,#b-home),html.fm-reveal:not(.less-motion) :is(#b-more,#avatar .pen,#hp-plate i){animation:fmIn .9s ease-out both}
  html.fm-reveal:not(.less-motion) #rcol>:not(#b-help),html.fm-reveal:not(.less-motion) :is(#b-news,#pk-chip){animation:fmIn .9s ease-out .35s both}
}
@keyframes fmIn{from{opacity:0}to{opacity:1}}
/* task 6e18c40d (R95 #5): on a phone the festive chip (svetki18.js, centred at 118 px, over the HUD) sat on the open darbi
   bar and on the notice column's first line («Burkāni pārdoti: +2,10 Ls · pieredze +3» showed only «Burkāni p»); it waits
   while the bar is open or a line or notice shows and comes back when they go. Only WHEN it shows — svetki18.js is untouched */
html.classic.hud-phone:has(#banner:not(.hp-fold):not([hidden])) #s18-chip,html.classic.hud-phone:has(#evlog:not(:empty)) #s18-chip,
html.classic.hud-phone:has(#toasts>.toast) #s18-chip{visibility:hidden}
html.classic .hp-fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
html.classic .hp-pen{flex:none;font-style:normal;color:#7A4A1C}
html.classic body.visiting .hp-head{display:none}
html.classic .hp-sec[hidden]{display:none}
/* owner 2026-11-25 («most of them have a next row with only one square»): one grid of half-columns, every tile two wide and
   placed by hud-phone.js boardLayout (--hp-x, --hp-y) — a shorter row sits centred under a fuller one, a group's name is a
   row of its own; before the first layout the tiles flow four to a row */
html.classic .hp-body{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:6px}
html.classic .hp-sec,html.classic .hp-grid{display:contents}
html.classic .hp-g{grid-column:1/-1;grid-row:var(--hp-y,auto);margin:4px 2px 0;font:bold 13px/1 "Trebuchet MS",Verdana,sans-serif;color:#FFF3DA;text-shadow:0 1px 0 #4A3220,0 0 3px rgba(74,50,32,.6)}
html.classic .hp-g[hidden]{display:none}
html.classic .hp-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:74px;grid-column:var(--hp-x,auto)/span 2;grid-row:var(--hp-y,auto);padding:5px 2px 6px;box-sizing:border-box;
  border:0;border-radius:10px;background:rgba(255,243,218,.16);color:#FFF8E8;font:bold 12px/1.1 "Trebuchet MS",Verdana,sans-serif;text-shadow:0 1px 0 #3A2008,0 0 3px rgba(58,32,8,.7);cursor:pointer}
html.classic .hp-tile[hidden]{display:none}
html.classic .hp-tile:active{transform:scale(.94);background:rgba(255,243,218,.28)}
html.classic .hp-tile:focus-visible,html.classic #b-dfold:focus-visible{outline:3px solid #FFE38A;outline-offset:2px}
html.classic .hp-ic{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:none;border-radius:9px;background:var(--s-ui_hud_tab) center/100% 100% no-repeat}
html.classic:not(.has-ui_hud_tab) .hp-ic{box-sizing:border-box;background:linear-gradient(#E8B26E,#C88A4A 55%,#9C6230);border:2px solid var(--line)}
html.classic .hp-ic img{width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}
html.classic .hp-ic img[hidden]{display:none}
html.classic .hp-l{max-width:100%;text-align:center;overflow-wrap:anywhere}
html.classic .hp-tile em,html.classic #b-vairak em{position:absolute;min-width:20px;height:20px;padding:0 3px;box-sizing:border-box;border-radius:10px;background:#C9361A;border:2px solid #fff;
  color:#fff;font:bold 12px/16px sans-serif;font-style:normal;text-align:center;text-shadow:none}
html.classic .hp-tile em{top:0;left:calc(50% + 14px)}
html.classic .hp-tile em[hidden],html.classic #b-vairak em[hidden]{display:none}
html.classic .hp-tile.on .hp-ic::after{content:"";position:absolute;right:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#7CE04A;box-shadow:0 0 0 2px #2F5A12,0 0 6px #B4FF7A}
html.classic .hp-tile.off .hp-ic img{filter:grayscale(.75) brightness(1.05) drop-shadow(0 2px 0 rgba(0,0,0,.25));opacity:.9}   /* as the button shows it (a palīgs not hired) */
html.classic .hp-tile[data-for="b-mute"].off .hp-ic::after{content:"";position:absolute;left:8px;right:8px;top:50%;height:4px;margin-top:-2px;border-radius:2px;background:#B01A14;transform:rotate(-45deg)}
html.classic .hp-tile[data-for="b-paligs"] .hp-ic img{border-radius:50%}
html.classic .hp-tile:is([data-for="b-zin"],[data-for="b-zout"]) .hp-ic::before{content:"";width:38px;height:38px;background:var(--s-hud_zoom) 2% 50%/196% 92% no-repeat}
html.classic .hp-tile[data-for="b-zout"] .hp-ic::before{background-position:98% 50%}
html.classic:not(.has-hud_zoom) .hp-tile[data-for="b-zin"] .hp-ic::before{content:"+";background:none;font:bold 30px/38px sans-serif;text-align:center;color:#3A2008;text-shadow:none}
html.classic:not(.has-hud_zoom) .hp-tile[data-for="b-zout"] .hp-ic::before{content:"−";background:none;font:bold 30px/38px sans-serif;text-align:center;color:#3A2008;text-shadow:none}
@media (orientation:landscape){
  html.classic .hp-drawer{width:min(600px,calc(100vw - 16px - var(--sal) - var(--sar)))}
  html.classic .hp-body{grid-template-columns:repeat(14,minmax(0,1fr));margin-top:8px}
  html.classic .hp-g{display:none}
}
/* owner 2026-11-25: «Mērnieks» on the board (ui/mernieks-door.js) — his round portrait as the palīgs's face; never on a
   neighbour's farm (he works on the player's own land); his door itself (#b-mernieks) is never a button of its own */
html.classic #b-mernieks{display:none!important}
html.classic .hp-tile[data-for="b-mernieks"] .hp-ic img{width:42px;height:42px;border-radius:50%;object-fit:cover}
html.classic body.visiting .hp-tile[data-for="b-mernieks"]{display:none}
/* … and his card when he does not come: his face beside the reason, then what he does and what it costs */
html.classic .mr-doorwin .mr-door{display:flex;align-items:center;gap:12px;text-align:left}
html.classic .mr-doorwin .mr-door-face{flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover}
html.classic .mr-doorwin .mr-door-why{margin:0;font-size:16px;line-height:1.35}
html.classic .mr-doorwin .mr-door-head{margin:0 0 10px;font-size:17px;font-weight:700;line-height:1.3}
html.classic .mr-doorwin .mr-door-what{margin:10px 0 0;font-size:14px;line-height:1.35;opacity:.85}
html.classic:has(#modal:not([hidden])) .hp-drawer{display:none}
@media (prefers-reduced-motion:reduce){html.classic .hp-drawer{animation:none}}
html.classic.less-motion .hp-drawer{animation:none}
/* the darbi bar folds: the toggle sits at its end (hud-phone.js places it); folded, the bar is a chip — the goal's picture and the count */
html.classic.hud-phone #b-dfold:not([hidden]){display:flex}
html.classic #b-dfold{position:absolute;z-index:4;width:44px;height:44px;padding:0;align-items:center;justify-content:center;box-sizing:border-box;border-radius:10px;
  border:3px solid #4A3220;background:#BE9D7C;cursor:pointer;box-shadow:inset 0 2px 0 rgba(255,240,215,.25),0 1px 2px rgba(0,0,0,.2)}
html.classic #b-dfold i{display:block;width:11px;height:11px;border-left:3.5px solid #3A2612;border-bottom:3.5px solid #3A2612;transform:translateX(2px) rotate(45deg)}
html.classic #b-dfold.folded i{transform:translateX(-2px) rotate(-135deg)}
html.classic #b-dfold:active{transform:scale(.92)}
html.classic body.visiting #b-dfold{display:none!important}
html.classic body:has(#modal:not([hidden])) #b-dfold,html.classic body.radio-open #b-dfold,html.classic #hud:has(#seedpick:not([hidden])) #b-dfold{visibility:hidden}
@media (max-width:640px) and (min-height:501px){
  html.classic.hud-phone #banner{right:calc(56px + var(--sar))}
}
@media (max-height:520px){
  html.classic.hud-phone #banner{width:min(252px,calc(100vw - 460px))}
}
html.classic.hud-phone #banner.hp-fold{width:auto;right:auto;gap:6px;padding:0 12px 0 14px}
html.classic.hud-phone #banner.hp-fold .lbl{display:none}
html.classic.hud-phone #banner.hp-fold:not(.dk-has)::after{content:"Darbi";font:bold 15px/1 "Trebuchet MS",Verdana,sans-serif;color:#3A2612}
html.classic.hud-phone #banner.hp-fold .dk-bi{margin:-4px 0 -4px -6px}

/* lane hud2 (B): the phone defects of the 2026-11-14 audit (844×390, 932×430, 667×375, 390×844, 430×932) */
/* the radio card on a phone lying down started under the notch («KAĻUMS» and «ĒTERĀ» behind it); its grip shrank to 33 px on a 375 px screen */
@media (max-height:520px){
  html.classic #radiopanel{left:var(--sal)}
}
#radiopanel .grip{flex:none}
#radioask .ask{min-height:44px}
/* a 375 px phone lying down (SE, mini) is 14 px short for the 44 px grip and «Palūgt dziesmu» together: the grip, the full card's width, gives 16 */
@media (max-height:400px){
  #radiopanel .grip{height:28px}
  #radiopanel .grip i{margin-top:9px}
}
/* Bodīte lying down: its foot (the page count) sat on the home bar */
@media (max-height:520px){
  html.classic #modal .panel.bodite{height:calc(100vh - 44px - var(--sab));margin-bottom:var(--sab)}
}
/* Banka's two doors («Uz laukumu», «Novada kase») were 38 px rows */
@media (max-width:960px),(max-height:520px){
  html.classic #modal .pergaments ul.bank li.nv-door{min-height:44px;box-sizing:border-box}
}

/* task 6e18c40d (owner 2026-11-22): «Sēšanas režīms» (sow-mode.js). The chip «Sēšana: <sēkla>» with its ✕ stands by the tools
   while the sack sows (ui/sow-chip.js places it: left of the folded tool on a phone, else over the strip, never over the open
   tray); a cream plank, 48 px tall with its 2 px rim, so both halves are a full 44 × 44 px touch target (review round 2: the
   rim took 4 px of the ✕). The sack's button is lit, not in the hand, while its tray is open and nothing is sown yet. The
   arrow's card on an own bed carries the bed's next work as one green button (ui.js lookDo) */
#sowchip{position:absolute;z-index:4;display:flex;align-items:stretch;height:48px;box-sizing:border-box;border-radius:24px;overflow:hidden;
  border:2px solid #8A6A3A;background:linear-gradient(#FFF6DE,#EED9AE);box-shadow:0 2px 6px rgba(0,0,0,.28);
  font:bold 14px/1 "Trebuchet MS",Verdana,sans-serif;color:#3A2A10}
#sowchip[hidden]{display:none}
#sowchip button{display:flex;align-items:center;gap:6px;height:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
#sowchip .sc-go{padding:0 10px 0 5px;max-width:230px}
#sowchip .sc-go img{flex:none;width:32px;height:32px;object-fit:contain}
#sowchip .sc-go b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#sowchip .sc-x{justify-content:center;flex:none;box-sizing:content-box;width:44px;min-height:44px;border-left:1px solid rgba(138,106,58,.55);font-size:17px}
#sowchip button:hover{background:rgba(255,255,255,.4)}
#sowchip button:active{background:rgba(138,106,58,.18)}
#sowchip button:focus-visible{outline:3px solid #1F6FD6;outline-offset:-3px}
body:has(#modal:not([hidden])) #sowchip,body.radio-open #sowchip{visibility:hidden}
html.classic .tool.open:not(.sel){border-color:#C9A25A;background:linear-gradient(rgba(255,244,214,.95),rgba(238,214,160,.9))}
.cl-tip.obj-tip.has-do .ot-do{pointer-events:auto}   /* review round 3: only the button takes a press — a tap on the card's words reaches the bed under it */
.obj-tip .ot-do{display:block;width:100%;min-height:44px;margin:0;padding:4px 12px;border-radius:7px;border:1px solid #2E5A12;cursor:pointer;touch-action:manipulation;
  background:linear-gradient(#8FD04E,#5FA82A);box-shadow:0 1px 0 rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.5);
  font:bold 15px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.45);text-align:center}
.obj-tip .ot-do:hover{filter:brightness(1.06)}
.obj-tip .ot-do:active{transform:scale(.97)}
.obj-tip .ot-do:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}
/* task 6e18c40d (atsauksmes): under a bed's card or a thing's icons — «Pārvietot» (into «Pārkārtot sētu») and an empty bed's
   «Aizbērt dobi», cream buttons a finger high beside each other; above them one quiet line where it cannot be done yet.
   Only the buttons take a press (the card's words let a tap through to the bed, as .ot-do) */
.obj-tip .ot-find{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.obj-tip .ot-why{flex:1 1 100%;margin:0;padding:3px 10px 4px;border-radius:7px;border:1px solid rgba(140,110,50,.6);background:#EDE3C4;   /* the classic tip has no back of its own: the note's cream pill, readable over the farm */
  font:italic 12.5px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#4A3512;text-align:center}
.cl-tip.obj-tip .ot-fb{pointer-events:auto}
/* bed-lawn (owner 26 Nov): a label never breaks («Aizbērt / dobi»): each button is as wide as its words; two that do not fit
   side by side stand one under the other, each the card's width */
.obj-tip .ot-fb{flex:1 1 auto;white-space:nowrap;min-width:96px;min-height:44px;margin:0;padding:4px 10px;border-radius:7px;border:1px solid rgba(110,80,30,.7);cursor:pointer;touch-action:manipulation;
  background:linear-gradient(#FFF6DA,#EAD6A2);box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 1px 0 #fff;
  font:bold 14px/1.2 "Trebuchet MS",Verdana,sans-serif;color:#4A2E08;text-align:center}
.obj-tip .ot-fb:hover{filter:brightness(1.05)}
.obj-tip .ot-fb:active{transform:scale(.97)}
.obj-tip .ot-fb:focus-visible{outline:3px solid #1F6FD6;outline-offset:1px}
/* ---------- lane mobils (task 6e18c40d, owner 2026-11-15, his iPhone 16): the farm gets the phone's screen ----------
   Only html.hud-phone (the short side under 560 px). Upright: the island band's two plates, then one line — the darbi chip,
   Draugi, Kristāli, Noliktava, Bodīte, «Vairāk»; at the foot the notices (the gift, the letters, the red book) on one line
   and the tools, folded to the one in hand. On its side: the plates top left (the kristāli ride on their tab, as upright),
   the line top right, the notices bottom left, the tools bottom right — nothing beside the island's edge, nothing on the
   home bar. The foot sits at --hp-foot: just over the home indicator, not a whole inset above it (owner: an empty strip
   along the bottom). hud-phone.js keeps the folds in prefs.js and sets --hp-row-t/-b/-l from the line. */
html.classic.hud-phone{--hp-foot:max(12px,calc(var(--sab) - 12px));--hp-tool:48px;--hp-cap:34px}   /* --hp-cap: the line over the strip (its fold, lane uxtools) */
@media (orientation:landscape){html.classic.hud-phone{--hp-foot:max(8px,calc(var(--sab) - 6px))}}
/* the corner mark leaves the farm (the version is in Palīdzība); the bag handle too — the sack is the strip's first tool */
html.classic.hud-phone #hud .stamp,html.classic.hud-phone #b-tray{display:none}
/* the line: right-aligned, the darbi chip at its left end */
html.classic.hud-phone #topright{left:auto;right:calc(10px + var(--sar));justify-content:flex-end;gap:8px}
@media (orientation:landscape){html.classic.hud-phone #topright{gap:6px}}
html.classic.hud-phone #b-vairak .hp-dots{grid-template-columns:repeat(2,10px);gap:4px}
html.classic.hud-phone #b-vairak .hp-dots b{width:10px;height:10px;border-radius:3px}
/* first-time captions: a small pill under the icon until the player has tapped that tab once (prefs 'hud.seen') */
html.classic.hud-phone #topright .hudtab[data-hl]::after{top:calc(100% + 4px);padding:1px 5px;border-radius:8px;font-size:10.5px;line-height:1.15;
  background:rgba(58,32,8,.86);box-shadow:0 0 0 1px rgba(255,236,190,.3)}
/* plan/R99 D7 (owner 2026-11-19): the name is «Supernauda» — too long for one line under a 44 px tab beside «Draugi» and
   «Noliktava», so its caption breaks at the soft hyphen hud-phone.js puts in it: «Super-» over «nauda» */
html.classic.hud-phone #topright #b-super[data-hl]::after{white-space:normal;width:min-content;text-align:center;hyphens:manual}
/* … two lines are 12 px taller: the open darbi bar and the notices keep clear of that pill while it is there */
html.classic.hud-phone:has(#topright #b-super[data-hl]) #banner:not(.hp-fold){top:calc(var(--hp-row-b,105px) + 36px)}
html.classic.hud-phone:has(#topright #b-super[data-hl]):has(#banner.hp-fold) #toasts{top:calc(var(--hp-row-b,105px) + 36px)}
@media (orientation:portrait){
  html.classic.hud-phone:not(.away):has(#topright #b-super[data-hl]):has(#banner:not(.hp-fold):not([hidden])) body:not(.visiting) #toasts{top:calc(var(--hp-row-b,105px) + 84px)}
}
/* the darbi bar: folded, a chip in the line (its picture and count, nothing else); open, under the line */
html.classic.hud-phone #banner.hp-fold{top:var(--hp-row-t,calc(var(--sat) + 2px));bottom:auto;left:auto;right:calc(var(--hp-row-l,260px) + 8px);height:44px;width:auto;gap:4px;padding:0 7px 0 12px}
html.classic.hud-phone #banner.hp-fold .dk-prog{min-width:28px;padding:4px 6px;font-size:13px}
html.classic.hud-phone #banner.hp-fold.hp-new::before{content:"";position:absolute;right:-4px;top:-4px;width:14px;height:14px;border-radius:50%;background:#D8321C;box-shadow:0 0 0 2px #FFF6E0,0 1px 2px rgba(0,0,0,.4)}
html.classic.hud-phone #banner:not(.hp-fold){top:calc(var(--hp-row-b,105px) + 8px);bottom:auto}
html.classic.hud-phone:has(#topright .hudtab[data-hl]) #banner:not(.hp-fold){top:calc(var(--hp-row-b,105px) + 24px)}
html.classic.hud-phone #darbi-bubble.folded{display:none}   /* the giver's disc and its count: the chip in the line says it once */
html.classic.hud-phone:has(#banner.hp-fold) #toasts{top:calc(var(--hp-row-b,105px) + 26px)}
/* lane play1 (playtest 16 Nov): open, the bar is 44 px tall 8 px under the line (24 px while the first captions are there) and
   the notices began behind it — «Zaļš — der, sarkans — nē. Pieskaries vietai, tad spied ✓» showed only «spied ✓». Upright
   only: on its side the bar is top right and the notices top left. A visit and a trip away keep their own places. */
@media (orientation:portrait){
  html.classic.hud-phone:not(.away):has(#banner:not(.hp-fold):not([hidden])) body:not(.visiting) #toasts{top:calc(var(--hp-row-b,105px) + 56px)}
  html.classic.hud-phone:not(.away):has(#topright .hudtab[data-hl]):has(#banner:not(.hp-fold):not([hidden])) body:not(.visiting) #toasts{top:calc(var(--hp-row-b,105px) + 72px)}
}
/* the tools: one strip of 48 px tools at the foot, folded to the tool in hand; open, the fold button closes the strip's end */
html.classic.hud-phone #hud #palette{left:auto;right:calc(12px + var(--sar));bottom:var(--hp-foot);transform:none;gap:4px}
html.classic.hud-phone #hud #palette .tool{--tw:var(--hp-tool);width:var(--hp-tool);height:var(--hp-tool);padding:3px}
/* plan/R85 S2: seven tools at home («Žogu režīms») — open, the strip still fits a 360 px phone (lane uxtools: its fold is a
   handle over the strip now, not a button in the row) */
html.classic.hud-phone:not(.hp-tools-shut) #hud #palette:not(.has-more):has(.tool:nth-child(7)){gap:3px;right:calc(8px + var(--sar))}
html.classic.hud-phone:not(.hp-tools-shut) #hud #palette:not(.has-more):has(.tool:nth-child(7)) .tool{--tw:min(var(--hp-tool),calc((100vw - 34px - var(--sal) - var(--sar)) / 7));width:var(--tw);height:var(--tw)}
/* task 6e18c40d (lane pārkārtot): eight tools at home («Pārkārtot sētu») — open, the strip still fits a 360 px phone */
html.classic.hud-phone:not(.hp-tools-shut) #hud #palette:not(.has-more):has(.tool:nth-child(8)){gap:2px;right:calc(6px + var(--sar))}
html.classic.hud-phone:not(.hp-tools-shut) #hud #palette:not(.has-more):has(.tool:nth-child(8)) .tool{--tw:min(var(--hp-tool),calc((100vw - 26px - var(--sal) - var(--sar)) / 8));width:var(--tw);height:var(--tw)}
/* lane uxtools (2026-11-25): on a touch phone every tool says its name under its picture and is a finger's 44 px at least;
   the tool in hand has the blue frame and its name on a blue plate. Seven named tools fill one line of a 375 px phone,
   so at home the rake and the glove wait in «Vairāk rīku» at the strip's end (ui/tool-strip.js): a tap opens them over
   it, the rake in hand shows on that button by its name. Upright, the line spans the screen. (hover:none) is ui.js
   touchUI — a computer's narrow window keeps its eight pictures with their keys. */
@media (hover:none){
  html.classic.hud-phone{--hp-tool:58px}
  /* a tool is as wide as its name needs (44 px at least: the name's own 36), the line's room shared out evenly */
  html.classic.hud-phone #hud #palette .tool{flex:1 1 0;width:auto;min-width:auto;max-width:76px;height:var(--hp-tool);padding:2px 1px 1px}
  html.classic.hud-phone #palette .tool{display:flex;flex-direction:column;align-items:center}   /* no #hud: the folded strip's rules still hide */
  html.classic.hud-phone #hud #palette .tool > img,html.classic.hud-phone #hud #palette .tool > svg{flex:1 1 0;min-height:0;width:100%;max-width:40px;height:auto}
  html.classic.hud-phone #palette .tool .t-name{display:block;flex:none;min-width:36px;border-radius:5px;box-sizing:border-box;text-align:center;
    font:bold 10.5px/13px "Trebuchet MS",Verdana,sans-serif;letter-spacing:-.2px;color:#283A12;white-space:nowrap;text-shadow:0 1px 0 rgba(255,255,255,.55);pointer-events:none}
  html.classic.hud-phone #palette .tool.sel .t-name,html.classic.hud-phone #palette .t-more.held .t-name{padding:0 2px;background:#3F78AE;color:#fff;text-shadow:none}
  html.classic.hud-phone #palette .tool .t-hl{display:none}
  html.classic.hud-phone #palette .tool .badge{right:-4px;top:-6px;width:22px;height:22px}
  html.classic.hud-phone #palette .t-more.held{border:3px solid #4C86BC;background:linear-gradient(rgba(214,240,246,.92),rgba(172,220,232,.88))}
  html.classic.hud-phone #palette.more-open > .t-more{border-color:#C9A25A;background:linear-gradient(rgba(255,244,214,.95),rgba(238,214,160,.9))}
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.has-more > .t-more{display:flex}
  html.classic.hud-phone #palette .t-more .t-pair{position:relative;display:block;flex:1 1 0;min-height:0;width:40px}
  html.classic.hud-phone #palette .t-more .t-pair img{position:absolute;width:27px;height:27px;object-fit:contain}
  html.classic.hud-phone #palette .t-more .t-pair img:first-child{left:0;top:1px}
  html.classic.hud-phone #palette .t-more .t-pair img:last-child{right:0;bottom:0}
  /* the drawer: shut, its tools are out of the line; open, a parchment over the strip's right end with the two in it */
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.has-more:not(.more-open) > .tool.t-in-more{display:none}
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.more-open > .t-tray{display:block;position:absolute;right:0;bottom:calc(100% + 6px);width:140px;height:94px;
    box-sizing:border-box;padding:3px 8px 0;border-radius:12px;border:2px solid #4A3220;background:linear-gradient(#F6E7C8,#E6CFA3);box-shadow:0 3px 10px rgba(0,0,0,.3);
    font:bold 12px/16px "Trebuchet MS",Verdana,sans-serif;color:#3A2612;text-align:center;pointer-events:none}
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.more-open > .tool.t-in-more{position:absolute;z-index:1;bottom:calc(100% + 14px);flex:none;width:58px;min-width:58px;max-width:58px}
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.more-open > .tool.t-m1{right:74px}
  html.classic.hud-phone:not(.hp-tools-shut) #hud #palette.more-open > .tool.t-m2{right:10px}
  html.classic.hud-phone #hud #palette.more-open > #b-tfold{display:none}
  @media (orientation:portrait){
    html.classic.hud-phone:not(.hp-tools-shut) #hud #palette{left:calc(6px + var(--sal));right:calc(6px + var(--sar));justify-content:flex-end;gap:3px}
  }
  @media (max-width:380px){html.classic.hud-phone:not(.hp-tools-shut) #hud #palette{gap:2px}}
  @media (max-width:370px){html.classic.hud-phone #palette .tool .t-name{font-size:10px}}
  @media (max-width:345px){   /* a 320 px phone: a long name may lose a letter, the line stays on the screen */
    html.classic.hud-phone #hud #palette .tool{min-width:0;overflow:hidden}
    html.classic.hud-phone #palette .tool .t-name{min-width:0;font-size:9.5px;letter-spacing:-.3px}
  }
}
html.classic.hud-phone.hp-tools-shut #palette:has(> .tool.sel) > .tool:not(.sel),
html.classic.hud-phone.hp-tools-shut #palette:not(:has(> .tool.sel)) > .tool:not(:first-child){display:none}
html.classic.hud-phone.hp-tools-shut #palette > .tool::after{content:"";position:absolute;left:-9px;top:50%;width:14px;height:22px;margin-top:-11px;border-radius:6px 0 0 6px;
  background:linear-gradient(90deg,#C88A4A,#E3AA66);box-shadow:inset 0 0 0 2px #5A3412}
html.classic.hud-phone.hp-tools-shut #palette > .tool::before{content:"";position:absolute;z-index:1;left:-4px;top:50%;width:5px;height:5px;margin-top:-3.5px;
  border-left:2px solid #FFF3DA;border-bottom:2px solid #FFF3DA;transform:rotate(45deg)}
html.classic #b-tfold{display:none}
/* lane uxtools (2026-11-25): the fold is a handle on the strip's top edge, not a «>» at its end — a «>» after the tools
   read as «more tools» and folded them. A wooden tab with a «⌄» sits on the right end of the strip; its touch area is
   48 × 44 px (the button is clear, the tab its lower part). It leaves while the seed tray or the drawer stands there. */
html.classic.hud-phone:not(.hp-tools-shut) #b-tfold{display:flex;position:absolute;right:0;bottom:100%;z-index:2;width:48px;height:44px;margin:0;padding:0;
  align-items:flex-end;justify-content:flex-end;box-sizing:border-box;border:0;background:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html.classic #b-tfold i{position:relative;display:block;width:44px;height:24px;box-sizing:border-box;border-radius:10px 10px 0 0;border:2px solid #4A3220;border-bottom:0;
  background:linear-gradient(#D6B48C,#BE9D7C);box-shadow:inset 0 2px 0 rgba(255,240,215,.35),0 -1px 2px rgba(0,0,0,.18)}
html.classic #b-tfold i::after{content:"";position:absolute;left:50%;top:4px;width:8px;height:8px;margin-left:-5px;border-right:3px solid #3A2612;border-bottom:3px solid #3A2612;transform:rotate(45deg)}
html.classic #b-tfold:active i{transform:translateY(2px)}
html.classic #b-tfold:focus-visible{outline:none}
html.classic #b-tfold:focus-visible i{outline:3px solid #FFE38A;outline-offset:1px}
html.classic.hud-phone:has(#seedpick:not([hidden])) #b-tfold{display:none}
/* lane uxtools (Astra §4): the level rosette — the one door to «Profils» and its settings — is a 30 × 34 disc on a phone; its
   finger's area is 44 × 44 around it (an empty layer, the disc's look unchanged) */
html.classic.hud-phone #topbar .rosette::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
/* lane uxtools (Astra #6 · A17/A18): one line over the strip — the tool in the hand and what it is for now (ui.js paintCap),
   in the --hp-cap band left of the fold's handle; it steps aside for the seed tray, the drawer, a placement, the
   arrange bar and the ✥ door's pointer (plan/R141 §2). A new hand (the game's own switch to the can too) flashes it once. */
html.classic.hud-phone #toolcap{display:block;position:absolute;z-index:3;right:calc(64px + var(--sar));bottom:calc(var(--hp-foot) + var(--hp-tool) + 5px);
  max-width:calc(100vw - 76px - var(--sal) - var(--sar));height:26px;box-sizing:border-box;padding:0 10px;border-radius:13px;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;pointer-events:none;transform-origin:right center;background:rgba(255,248,226,.95);
  box-shadow:0 0 0 1px rgba(90,60,20,.4),0 2px 5px rgba(0,0,0,.22);font:bold 13px/26px "Trebuchet MS",Verdana,sans-serif;color:#3B2A10}
html.classic.hud-phone.hp-tools-shut #toolcap{right:calc(12px + var(--sar));max-width:calc(100vw - 24px - var(--sal) - var(--sar))}
html.classic.hud-phone #toolcap[hidden],html.classic.hud-phone #hud:has(#seedpick:not([hidden])) #toolcap,html.classic.hud-phone #hud:has(#palette.more-open) #toolcap,
html.classic.hud-phone body:has(#placebar:not([hidden])) #toolcap,html.classic.hud-phone body:has(#arrangebar:not([hidden])) #toolcap,
html.classic.hud-phone body:has(#arrange-ptr) #toolcap,html.classic.hud-phone:has(#modal:not([hidden])) #toolcap{display:none}
html.classic.hud-phone #toolcap.fresh{animation:clPulse .5s ease-out}
html.classic.hud-phone.less-motion #toolcap.fresh{animation:none}
@media (prefers-reduced-motion:reduce){html.classic.hud-phone #toolcap.fresh{animation:none}}
/* the notices: one size, one line — the gift, then the letters and the red book at its right (pastkaste.js, news.js place them) */
html.classic.hud-phone #gift{width:44px;height:44px;top:auto;left:calc(12px + var(--sal));bottom:calc(var(--hp-foot) + var(--hp-tool) + var(--hp-cap) + 4px)}
html.classic.hud-phone #gift img{width:100%;height:100%}
html.classic.hud-phone #pk-chip{width:44px;height:44px}
html.classic.hud-phone #pk-chip img{inset:4px;width:36px;height:36px}
/* the giver's card when it speaks: over the notices, never in the farm's middle */
html.classic.hud-phone #darbi-bubble:not(.folded){top:auto;left:calc(8px + var(--sal));right:calc(8px + var(--sar));width:auto;bottom:calc(var(--hp-foot) + var(--hp-tool) + var(--hp-cap) + 58px)}
/* plan/R96 item 3: a friend link's strip under her card, one choice a row. It stands at the foot beside the tool in hand
   (over the notices' line), above the tools while their strip is open; her card steps up by the strip's height (--dre-h,
   ui/friend-entry.js measures it), so on the first screen she stays off the beds */
html.classic.hud-phone{--dre-b:var(--hp-foot)}
html.classic.hud-phone:not(.hp-tools-shut){--dre-b:calc(var(--hp-foot) + var(--hp-tool) + var(--hp-cap) + 4px)}
html.classic.hud-phone #dr-entry{left:calc(8px + var(--sal));right:calc(var(--hp-tool) + 20px + var(--sar));width:auto;bottom:var(--dre-b)}
html.classic.hud-phone:not(.hp-tools-shut) #dr-entry{right:calc(8px + var(--sar))}
html.classic.hud-phone #dr-entry .dre-card{border-width:12px;border-image-width:14px;padding:0 2px 1px}
html.classic.hud-phone #dr-entry .dre-h{font-size:16px}
html.classic.hud-phone #dr-entry .dre-nick{margin-bottom:4px;font-size:15px}
html.classic.hud-phone #dr-entry .dre-say{margin-bottom:6px;padding:3px 10px}
html.classic.hud-phone #dr-entry .dre-btns{flex-direction:column;gap:6px}
html.classic.hud-phone #dr-entry .dre-btns .btn{width:100%}
html.classic.hud-phone body.dr-entry-on #darbi-bubble:not(.folded){bottom:calc(var(--dre-b) + var(--dre-h,0px) + 8px)}
@media (orientation:landscape){
  html.classic.hud-phone #dr-entry{left:auto;right:calc(56px + var(--sar));width:min(340px,calc(100vw - 420px));bottom:calc(var(--hp-foot) + var(--hp-tool) + var(--hp-cap) + 4px)}
  html.classic.hud-phone body.dr-entry-on #darbi-bubble:not(.folded){bottom:calc(var(--hp-foot) + 54px)}
}
/* the seed tray: over the tools upright */
html.classic.hud-phone #seedpick{bottom:calc(var(--hp-foot) + var(--hp-tool) + 8px)}
@media (orientation:landscape){
  html.classic.hud-phone #topbar .plank.crys{display:none}
  html.classic.hud-phone #topright #crysb{display:block;position:absolute;right:-3px;bottom:-5px;z-index:2;min-width:22px;height:20px;padding:0 5px;box-sizing:border-box;
    border-radius:10px;border:2px solid #2E1636;background:linear-gradient(#8E55A3,#74437F 55%,#5C366B);color:#fff;
    font:bold 12px/16px "Trebuchet MS",Verdana,sans-serif;text-align:center;white-space:nowrap;text-shadow:0 1px 0 rgba(46,22,54,.7);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 0 rgba(0,0,0,.3);pointer-events:none}
  html.classic.hud-phone #banner:not(.hp-fold){left:auto;right:calc(56px + var(--sar));width:min(300px,calc(100vw - 420px))}
  html.classic.hud-phone #gift{left:calc(8px + var(--sal));bottom:var(--hp-foot)}
  html.classic.hud-phone #darbi-bubble:not(.folded){right:auto;width:min(300px,calc(100vw - 480px));bottom:calc(var(--hp-foot) + 54px)}
  html.classic.hud-phone #darbi-bubble .dk-bcard{grid-template-columns:40px 1fr;gap:8px;padding:7px 8px 7px 7px}
  html.classic.hud-phone #darbi-bubble .dk-bcard .dk-disc.big{width:40px;height:40px}
  html.classic.hud-phone #darbi-bubble .dk-bname{font-size:13px}
  html.classic.hud-phone #darbi-bubble .dk-bline{margin:1px 0 4px;font-size:13px;line-height:1.25}
  /* the seed tray: bottom left, never over the tools' strip (the sack sat under it) */
  html.classic.hud-phone #seedpick{left:calc(8px + var(--sal));bottom:var(--hp-foot);max-width:calc(100vw - var(--sal) - var(--sar) - 7 * var(--hp-tool) - 60px)}
  html.classic.hud-phone.hp-tools-shut #seedpick{max-width:calc(100vw - var(--sal) - var(--sar) - var(--hp-tool) - 48px)}
  /* windows lying down: Draugi's X hung 56 px over a window that starts at the top (cut at y −3) — it sits in the window's
     own corner, where its header keeps 52 px free; Laimes rats was centred on the whole height and ended 3 px into the home bar */
  html.classic.hud-phone #modal .pergaments.s1-fr>.x.cl-x{top:2px;right:2px}
  html.classic.hud-phone #modal .panel.wh{margin-bottom:var(--sab)}
}
/* lane U1 (R105 #15): the board's Palīgs tile shows the helper's face in colour — grey read as a broken picture; a working helper
   still has its green lamp (.on). The square's fountain (hud-phone.js TILE_PIC) is wider than tall: it gets the plank's width. */
html.classic.hud-phone .hp-tile[data-for="b-paligs"].off .hp-ic img{filter:drop-shadow(0 2px 0 rgba(0,0,0,.3));opacity:1}
html.classic.hud-phone .hp-tile[data-for="b-paligs"] .hp-ic img{width:40px;height:40px;object-fit:cover}
html.classic.hud-phone .hp-tile[data-for="b-laukums"] .hp-ic img{width:42px;height:40px}
