/* lane win3 (task 6e18c40d): one painted window kit for every window, so the game stops mixing glossy paintings with flat CSS.
   The pieces are painted on the image lane in the hand of lane W2's Glabātava (art/src/windows-win3/, cut by
   art/tools/windows-win3-cut.py into public/img/win_*.webp) and are used only as 9-slice border-images: the text stays live
   HTML and a box keeps its size, because a transparent border plus a border-image-width in px paints over the box without moving
   anything. W2's pieces are reused where they fit: win_btn (the orange pill), win_x (the close cross), win_board (the paper).
     win_btn_green · win_btn_wood   the green (go, take) and the wooden (later, cancel) pills
     win_wood · win_plank           the wooden window frame (nails at the corners) · the title plank
     win_card · win_card_ok         the paper row / tile / chip · its green «ready / got» twin
     win_inset                      the sunk recess (the shop board, an empty slot)
     win_tab · win_tab_on           the wooden tab · the chosen tab in paper
     win_bar · win_bar_fill         the progress groove · its green fill
     win_check · win_check_on       the checkbox, empty and ticked
     win_arrow_wood                 the wooden page arrow (points left; the «next» one is mirrored)
   Titles, numbers and button words use one chunky rounded face with a dark outline, as the farm-name board (lane K1). Body copy
   stays plain dark ink. Loaded after classic-ui.css (index.html) and after windows-2010.css's rules it repeats, so its
   selectors carry the weight they need. Motion: the pieces do not move; the hover lifts stop under reduced motion. */

html.classic{--w3-face:ui-rounded,"Arial Rounded MT Bold","Trebuchet MS",Verdana,sans-serif;--w3-ink:#3A1D00;
  --w3-line:-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;
  --w3-line-g:-1.5px 0 0 #1E4508,1.5px 0 0 #1E4508,0 -1.5px 0 #1E4508,0 1.5px 0 #1E4508,-1px -1px 0 #1E4508,1px -1px 0 #1E4508,-1px 1px 0 #1E4508,1px 1px 0 #1E4508}

/* ---------- 1. the buttons: every .btn in a window, a toast, the Darbi bubble or the title screen's restore card is a painted pill ----------
   green = the default .btn (go, take, visit); orange = W2's win_btn (the main act); wood = grey/alt (later, cancel). Each button
   keeps its own height and padding (the rules that size them stay); only the face changes. The wheel (another lane) keeps its own. */
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn){border-style:solid;border-color:transparent;border-radius:22px;
  border-image:url(../img/win_btn_green.webp) 32 36 fill / 50% 22px stretch;background:none;box-shadow:none;filter:drop-shadow(0 2px 1px rgba(40,20,0,.3));
  font-family:var(--w3-face);font-style:normal;font-weight:bold;letter-spacing:.2px;color:#fff;text-shadow:var(--w3-line-g);text-wrap:balance}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:is(.orange,.gold):not(.wh .btn){border-image-source:url(../img/win_btn.webp);border-image-slice:53 60 fill;text-shadow:var(--w3-line)}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:is(.grey,.alt):not(.wh .btn){border-image-source:url(../img/win_btn_wood.webp);color:var(--w3-ink);text-shadow:0 1px 0 rgba(255,236,196,.55)}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn):hover:not(:disabled){filter:drop-shadow(0 2px 1px rgba(40,20,0,.3)) brightness(1.07)}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn):active:not(:disabled){box-shadow:none;transform:translateY(1px);filter:drop-shadow(0 1px 0 rgba(40,20,0,.3))}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn):disabled{filter:grayscale(.55);opacity:.62;cursor:default}
:is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn):focus-visible{outline:3px solid #2F7FD8;outline-offset:2px}

/* ---------- 2. the titles: the cherry board's title sits on the wooden title plank in the farm-name face ---------- */
html.classic #modal .pergaments:not(.s1-fr) .frame>.pt{align-self:center;max-width:100%;box-sizing:border-box;margin:0 0 2px;padding:4px 28px 7px;text-wrap:balance;
  border:0 solid transparent;border-image:url(../img/win_plank.webp) 44 72 fill / 50% 30px stretch;
  font-family:var(--w3-face);font-weight:bold;color:#FFF7E2;letter-spacing:.3px;text-shadow:var(--w3-line),0 2px 2px rgba(40,16,0,.4);overflow-wrap:anywhere}
/* the section heads inside a window: the same face in dark ink, no dotted rule under them */
html.classic #modal :is(.darbi .dk-sh,.hm-h,.pergaments .ws-h,.aw-h,.dr-win .dr-h,.cp-h,.pk-h,.pergaments .body .keep h4){font-family:var(--w3-face);color:#5A2600;
  text-shadow:0 1px 0 rgba(255,240,206,.6);border-bottom:0;text-transform:none;letter-spacing:.2px}

/* ---------- 3. rows, tiles, chips: the paper card; a ready / got / chosen one is its green twin ---------- */
html.classic #modal .pergaments :is(.body .row,ul.bank li,ul.awards li,li.rcp,li.upc,.rcp-job,.ws-card,.ws-slot,.aw,.hm-stall,.hm-group,.hm-own,.hm-ready,.hm-grain,.hm-next,
  .dk-row,.dk-medals,.pk-open,.pk-news li,.pk-line,.pk-more,.cp-odds li,.cp-baits li,.cp-week,.cp-grid li,.cp-table li){
  border:0 solid transparent;border-image:url(../img/win_card.webp) 24 fill / 11px stretch;background:none;box-shadow:none}
html.classic #modal .pergaments :is(.dk-row.ready,ul.awards li.got,.aw.got,.hm-stall.ready,.hm-group.ready,.ws-slot.ready,.cp-cond,.cp-baits li.on,.cp-table li.me){
  border:0 solid transparent;border-image:url(../img/win_card_ok.webp) 24 fill / 11px stretch;background:none;box-shadow:none}
html.classic #modal .pergaments :is(.pk-open,.pk-more):hover{filter:brightness(1.04)}
/* an empty or locked slot is a recess in the paper, not a dashed line */
html.classic #modal .pergaments :is(.ws-slot.free,.ws-slot.lock){border:0 solid transparent;border-image:url(../img/win_inset.webp) 26 fill / 12px stretch;background:none;color:#4A2A10}
/* the money / XP / supernauda chips and the level card's chips: small paper tags with their colour kept in the words */
html.classic #modal .pergaments .dk-c,html.classic #modal .pergaments.lv-card .ph li{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 8px stretch;background:none;font-family:var(--w3-face)}
html.classic #modal .pergaments .dk-c.ls,html.classic #modal .pergaments.lv-card .ph li.rw{border-image-source:url(../img/win_card_ok.webp);color:#1E4508}
html.classic #modal .pergaments.lv-card .ph li.rw img{filter:drop-shadow(0 1px 0 rgba(255,255,255,.6))}
html.classic #modal .pergaments.lv-card .ph li.un:is(:hover,.on){background:none;filter:brightness(1.06)}

/* ---------- 4. progress: a wooden groove with a green fill; the number on it in the outlined face ---------- */
html.classic #modal :is(.darbi .dk-bar,.pergaments .ws-bar,.pergaments .rcp-bar,.aw-bar,.cp-bar){border:0 solid transparent;border-image:url(../img/win_bar.webp) 26 34 fill / 50% 12px stretch;
  background:none;box-shadow:none}
html.classic #modal :is(.darbi .dk-bar i,.pergaments .ws-bar s,.pergaments .rcp-bar s,.aw-bar b,.cp-bar i){border:0 solid transparent;border-radius:0;border-image:url(../img/win_bar_fill.webp) 22 30 fill / 50% 10px stretch;background:none}
html.classic #modal .darbi .dk-bar i{top:1px;bottom:1px}
html.classic #modal .darbi .dk-bar span{font-family:var(--w3-face);color:#FFF7E2;text-shadow:var(--w3-line)}

/* ---------- 5. Bodīte: the wooden frame with its nails, wooden tabs, paper cards in a sunk board, wooden page arrows ----------
   The ribbon, the stars and the tomato and broccoli stay (the shop's 2010 face); everything between them is the kit now. */
html.classic #modal .panel.bodite.bodite{border-color:transparent;border-image:url(../img/win_wood.webp) 64 fill / 30px stretch;border-image-outset:14px;background:none;
  box-shadow:0 18px 36px rgba(0,0,0,.42)}
html.classic #modal .panel.bodite.bodite .tabs button{border-color:transparent;border-radius:12px 12px 3px 3px;border-image:url(../img/win_tab.webp) 26 30 10 fill / 12px 13px 5px stretch;
  background:none;box-shadow:none;color:var(--w3-ink);font-family:var(--w3-face)}
html.classic #modal .panel.bodite.bodite .tabs button.on{border-image-source:url(../img/win_tab_on.webp);box-shadow:none;color:var(--w3-ink)}
html.classic #modal .panel.bodite.bodite .board{border-color:transparent;border-image:url(../img/win_inset.webp) 26 fill / 14px stretch;background:none;box-shadow:none}
html.classic #modal .panel.bodite.bodite .card{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 12px stretch;background:none;box-shadow:none}
html.classic #modal .panel.bodite.bodite .card:hover{box-shadow:none}
html.classic #modal .panel.bodite.bodite .card .pic{border-color:transparent;background:none;box-shadow:none}
html.classic #modal .panel.bodite.bodite .card .nm{font-family:var(--w3-face);font-weight:bold;color:#2A6E16}
html.classic #modal .panel.bodite.bodite .card .price{padding:0 12px 0 8px;border-color:transparent;border-radius:20px;border-image:url(../img/win_btn.webp) 53 60 fill / 50% 18px stretch;
  background:none;box-shadow:none;font-family:var(--w3-face)}
html.classic #modal .panel.bodite.bodite .card .price::before{content:none}
html.classic #modal .panel.bodite.bodite .card .price>img{margin:-3px 0 -3px -2px}
html.classic #modal .panel.bodite.bodite .card .price small{color:#FFF1C9}
html.classic #modal .panel.bodite.bodite .arrow{border-color:transparent;border-radius:0;background:url(../img/win_arrow_wood.webp) center/100% auto no-repeat;box-shadow:none;
  filter:drop-shadow(0 2px 1px rgba(40,20,0,.35))}
html.classic #modal .panel.bodite.bodite .arrow i{display:none}
html.classic #modal .panel.bodite.bodite .arrow.next{transform:scaleX(-1)}
html.classic #modal .panel.bodite.bodite .arrow:hover:not([disabled]){filter:drop-shadow(0 2px 1px rgba(40,20,0,.35)) brightness(1.08)}
html.classic #modal .panel.bodite.bodite .arrow.prev:active:not([disabled]){transform:scale(.93)}
html.classic #modal .panel.bodite.bodite .arrow.next:active:not([disabled]){transform:scaleX(-1) scale(.93)}
html.classic #modal .panel.bodite.bodite .pageno{font-family:var(--w3-face);color:var(--w3-ink)}
/* the count between ▼ and ▲ is written on a paper slip (the 2010 arrows stay) */
html.classic #modal .panel.bodite.bodite .card .step input{border-style:solid;border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 7px stretch;background:none;box-shadow:none;
  font-family:var(--w3-face);color:var(--w3-ink)}
/* the narrower screens: the frame is thinner and stays on the screen */
@media (max-width:960px),(max-height:520px){
  html.classic #modal .panel.bodite.bodite{border-image-width:20px;border-image-outset:6px}
  html.classic #modal .panel.bodite.bodite .board{border-image-width:10px}
}
/* an upright phone: the shop is the whole screen; the screen's edge is the frame, so only the calm wood behind it is painted */
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .panel.bodite.bodite{border-image-width:0;border-image-outset:0}
}

/* ---------- 6. Draugi un saime: the wooden window, the title plank across its head, a paper sheet inside ----------
   (S1's rules carry :not(#s1); these carry one id more.) */
html.classic #modal .panel.pergaments.s1-fr:not(#s1):not(#w3){border-color:transparent;border-image:url(../img/win_wood.webp) 64 fill / 24px stretch;border-image-outset:8px;
  background:none;box-shadow:0 14px 30px rgba(0,0,0,.42)}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .frame>.s1-top{margin:2px -4px 0;padding:8px 52px 11px;border:0 solid transparent;border-radius:0;
  border-image:url(../img/win_plank.webp) 44 72 fill / 50% 34px stretch;background:none;box-shadow:none}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .s1-top>.pt{font-family:var(--w3-face);color:#FFF7E2;text-shadow:var(--w3-line),0 2px 2px rgba(40,16,0,.4)}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .s1-home{border-color:transparent;border-image:url(../img/win_btn_wood.webp) 32 36 fill / 50% 20px stretch;background:none;
  box-shadow:none;color:var(--w3-ink);font-family:var(--w3-face);text-shadow:0 1px 0 rgba(255,236,196,.55)}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .frame>.body{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 12px stretch;background:none;box-shadow:none}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .body .rows>.row{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 11px stretch;background:none;box-shadow:none}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .body .rows>.row .tx b{font-family:var(--w3-face);color:#3A1D00}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .body .rows>.row .tx small{color:#4A2A10}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .body .rows>.row .fav{color:#E0A010;text-shadow:0 0 1px #6B3D14,0 1px 0 #6B3D14}
html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .s1-invite span{border-color:transparent;border-image:url(../img/win_btn_wood.webp) 32 36 fill / 50% 20px stretch;background:none;
  box-shadow:none;color:var(--w3-ink);font-family:var(--w3-face);text-shadow:0 1px 0 rgba(255,236,196,.55)}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .panel.pergaments.s1-fr:not(#s1):not(#w3){border-image-width:18px 0 0;border-image-outset:0}
  html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .frame>.s1-top{margin:0 -9px}
}
@media (max-height:520px){
  html.classic #modal .panel.pergaments.s1-fr:not(#s1):not(#w3){border-image-width:16px;border-image-outset:4px}
  html.classic #modal .pergaments.s1-fr:not(#s1):not(#w3) .frame>.s1-top{padding:4px 48px 6px 14px}
}

/* ---------- 7. (the «Privatizēt» board went with its flow, task 6e18c40d) ---------- */

/* ---------- 8. the toasts: a slip of pale green paper with dark words (a warning: plain paper, red-brown words) ---------- */
html.classic #toasts .toast{border:0 solid transparent;border-image:url(../img/win_card_ok.webp) 24 fill / 10px stretch;background:none;box-shadow:none;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));color:#1E3D08;text-shadow:none}
html.classic #toasts .toast.bad{border-image-source:url(../img/win_card.webp);color:#7A1A00;text-shadow:none}
/* task 6e18c40d (bed-lawn, the owner's screenshot 26 Nov): the pill's text-wrap:balance (section 1) broke a toast's label in
   two («Aizbērt / dobi»); a toast's label is one line, and the button takes its own row when it does not fit (ferma.css .toast.act) */
html.classic #toasts .toast.act .btn:not(.wh .btn){white-space:nowrap;text-wrap:nowrap}
@media (pointer:coarse){ #wintoasts>.toast.act .btn{min-height:44px} }

/* ---------- 9. the map's card over the farm and the news window's buttons (the game only: karte.html never loads this sheet;
   the news window keeps lane L1's 2011 vine frame, only its button is the painted pill) ---------- */
html.classic .lvmap .card{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 14px stretch;background:none;box-shadow:none;filter:drop-shadow(0 4px 3px rgba(60,30,0,.35))}
html.classic .lvmap .card .btn,html.classic #modal .nw-win .nw-go{border-color:transparent;border-radius:22px;border-image:url(../img/win_btn_green.webp) 32 36 fill / 50% 22px stretch;background:none;
  box-shadow:none;filter:drop-shadow(0 2px 1px rgba(40,20,0,.3));font-family:var(--w3-face);font-style:normal;color:#fff;text-shadow:var(--w3-line-g)}
html.classic .lvmap .card .btn:is(.gold,.orange),html.classic #modal .nw-win .nw-go{border-image-source:url(../img/win_btn.webp);border-image-slice:53 60 fill;color:#fff;text-shadow:var(--w3-line)}
html.classic .lvmap .card .btn.alt{border-image-source:url(../img/win_btn_wood.webp);color:var(--w3-ink);text-shadow:0 1px 0 rgba(255,236,196,.55)}
html.classic .lvmap .card .btn:hover,html.classic #modal .nw-win .nw-go:hover{filter:drop-shadow(0 2px 1px rgba(40,20,0,.3)) brightness(1.07)}
html.classic .lvmap .card .btn:active,html.classic #modal .nw-win .nw-go:active{box-shadow:none}
/* «Ceļotāja albums» on the map: the stamps stay; the page is the paper board, its close the painted cross */
html.classic .lvmap .album .pg{padding:6px 10px 8px;border-width:22px;border-color:transparent;border-radius:0;border-image:url(../img/win_board.webp) 12% 9% fill / 26px stretch;background:none;
  box-shadow:none;filter:drop-shadow(0 10px 18px rgba(0,0,0,.4))}
@media (max-width:640px),(max-height:520px){html.classic .lvmap .album .pg{padding:4px 2px 6px;border-width:16px;border-image-width:18px}}
/* plan/R96 #10 (task 6e18c40d): a travel page on a phone starts under the painted cross, so the landscape is never covered */
@media (max-width:560px){html.classic .lvmap .album .pg.tp-pg{padding-top:44px}}
html.classic .lvmap .album :is(h2,h3){font-family:var(--w3-face)}
html.classic .lvmap .album h3{border-bottom:0}
/* the map drew this small print for its cream page (#FDF3D8); on the tan board it fell to 1.5–3.3 : 1, so it takes darker ink
   (the stamps and the criteria keep their own white cards and colours); a sign not found yet is the plain, not the bold, name */
html.classic .lvmap .album .sum,html.classic .lvmap .album .zime span{color:#4A2A10}
html.classic .lvmap .album h3 small,html.classic .lvmap .album .zime.off b{color:#5B3A1E}
html.classic .lvmap .album .zime.off b{font-weight:normal}
html.classic .lvmap .album .cx{right:0;top:0;border:0;border-radius:10px;background:url(../img/win_x.webp) center/100% 100% no-repeat;box-shadow:none;font-size:0;color:transparent;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}

/* ---------- 10. the checkbox: «Paturēt noliktavā» (ui/keep.js) on the paper is the painted box (the Glabātava keeps W2's own) ---------- */
html.classic #modal .pergaments .keep .keep-sw{appearance:none;-webkit-appearance:none;width:28px;height:28px;flex:0 0 28px;margin:0 0 0 auto;border:0;border-radius:6px;
  background:url(../img/win_check.webp) center/100% 100% no-repeat;cursor:pointer}
html.classic #modal .pergaments .keep .keep-sw:checked{background-image:url(../img/win_check_on.webp);background-size:118% 118%;background-position:20% 80%}
html.classic #modal .pergaments .keep .keep-sw:focus-visible{outline:3px solid #2F7FD8;outline-offset:2px}

/* ---------- 10b. the farm-name field is a paper slip (the focus ring stays classic-ui's); the recipe's «where from» link a wooden pill ---------- */
html.classic #modal .pergaments.rename input{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 11px stretch;background:none}
html.classic #modal .pergaments .ws-src{border-color:transparent;border-image:url(../img/win_btn_wood.webp) 32 36 fill / 50% 20px stretch;background:none;
  color:var(--w3-ink);font-family:var(--w3-face);text-decoration:none;text-shadow:0 1px 0 rgba(255,236,196,.55)}
html.classic #modal .pergaments .ws-src:disabled{border-image-source:url(../img/win_card.webp);border-image-slice:24 fill;border-image-width:11px;opacity:1}
/* a letter's gift: the parcel is a recess in the paper, each gift a paper tag in it; a taken gift the green twin */
html.classic #modal .pergaments .pk-giftbox{border-color:transparent;border-image:url(../img/win_inset.webp) 26 fill / 11px stretch;background:none}
html.classic #modal .pergaments .pk-giftbox.got{border-image-source:url(../img/win_card_ok.webp);border-image-slice:24 fill}
html.classic #modal .pergaments .pk-giftbox .pk-got{color:#1E4508}
html.classic #modal .pergaments .pk-giftbox .pk-got.pk-later{color:#4A2A10}
html.classic #modal .pergaments .pk-chips li{border:0 solid transparent;border-image:url(../img/win_card.webp) 24 fill / 9px stretch;background:none;box-shadow:none;font-family:var(--w3-face)}
/* the žurnāls' «???» for a fish not caught yet stays muted, but readable on the paper (it was 2.9 : 1) */
html.classic #modal .pergaments .cp-grid li.shadow b{color:#7A5530}
/* on a wide screen Bodīte's page arrows stand outside the frame (classic-ui); the painted sign is nailed half onto the frame's edge,
   so it reads as the shop's and does not sit on the HUD's buttons */
@media (min-width:1220px) and (min-height:640px){
  html.classic #modal .panel.bodite.bodite .arrow.prev{left:-50px}
  html.classic #modal .panel.bodite.bodite .arrow.next{right:-50px}
}

/* ---------- 12. «Atjaunot fermu» (the title screen's card, friends.css) and the Palīdzība's account corner: the paper board, the
   pills, the code on a paper slip, the warning on paper in red-brown; the small print takes inks that read on the board (they were
   3.7–4.4 : 1). friends.css is linked later (account.js ensureCss), so these carry an html more. ---------- */
html .acc-ov .acc-card{border:22px solid transparent;border-radius:0;padding:2px 4px 0;border-image:url(../img/win_board.webp) 12% 9% fill / 24px stretch;background:none;
  box-shadow:none;filter:drop-shadow(0 14px 24px rgba(0,0,0,.45))}
html .acc-ov .acc-card h2{font-family:var(--w3-face);color:#5A2600;text-shadow:0 1px 0 rgba(255,240,206,.6)}
html .acc-ov .acc-card input,html .acc-rec .acc-code{border-color:transparent;border-style:solid;border-image:url(../img/win_card.webp) 24 fill / 11px stretch;background:none}
html .acc-rec .acc-warn{border-color:transparent;border-image:url(../img/win_card.webp) 24 fill / 10px stretch;background:none;color:#7A1A00}
html :is(.acc-card,.acc-rec) .acc-small{color:#4A2A10}
html :is(.acc-card,.acc-rec) .acc-msg{color:#1E4508}
html .acc-card .acc-err{color:#7A1A00}
/* the Darbi bubble (Austra's word over the farm) was a flat pale-mint glass card: it is a slip of the same paper, in the kit's face */
html.classic #darbi-bubble .dk-bcard{border-color:transparent;border-radius:0;border-image:url(../img/win_card.webp) 24 fill / 12px stretch;background:none;
  box-shadow:none;filter:drop-shadow(0 4px 5px rgba(40,20,0,.35))}
html.classic #darbi-bubble :is(.dk-bname,.dk-bprog){font-family:var(--w3-face)}

/* ---------- 11. a finger needs 44 px; nothing lifts under reduced motion ---------- */
@media (pointer:coarse){
  html.classic #modal .panel.bodite.bodite .arrow{min-width:44px}
  html.classic #toasts .toast .btn{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  html.classic #modal .panel.bodite.bodite .card:hover,html.classic #modal .panel.bodite.bodite .tabs button:hover{transform:none}
  :is(html.classic #modal,html.classic #toasts,html.classic #darbi-bubble,html.classic #dr-entry,html .acc-ov) .btn:not(.wh .btn):active:not(:disabled){transform:none}
}
html.less-motion #modal .panel.bodite.bodite .card:hover,html.less-motion #modal .panel.bodite.bodite .tabs button:hover{transform:none}
html.less-motion :is(#modal,#toasts,#darbi-bubble,#dr-entry,.acc-ov) .btn:active:not(:disabled){transform:none}

/* lane fixes (plan/R52 «tag rule»): the farm tag outside the pastkaste (Darbi, Draugi) — the same pill as css/pastkaste.css .pk-farm */
.pk-farm{flex:none;align-self:center;margin:-2px auto 4px;padding:3px 14px;border-radius:999px;background:rgba(255,248,230,.7);box-shadow:inset 0 0 0 1px rgba(107,68,35,.25);
  font:bold 14px/1.3 "Trebuchet MS",Verdana,sans-serif;color:#6B4423;text-align:center;width:fit-content;max-width:100%}
.pk-farm[hidden]{display:none}
/* polish 2: css/pastkaste.css loads later and its .pk-farm margin (0 at the sides) won, and on Darbi the parchment's own
   «.ph p» margin (classic-ui.css) — a short tag sat left of the middle. The windows (Darbi .dk-farm, the board .bd-farm, Draugi .dr-farm) name themselves; a long name wraps inside a softer pill. */
html.classic #modal .pergaments .ph p.pk-farm.dk-farm,.pk-farm.bd-farm,.pk-farm.dr-farm{margin:-2px auto 4px;width:fit-content;max-width:100%;border-radius:14px;text-wrap:balance}

/* ---------- 10. «Sinhronizēts» (task 6e18c40d, ui/sync-note.js): the toasts' slip, smaller and still, only while the same
   farm is open on another device of the player too; a small lamp says ok (green), on its way (amber), just came (blue) ---------- */
#toasts .toast.sync-note{min-height:0;padding:3px 10px 4px;font-size:12.5px;line-height:1.25;opacity:.94;cursor:default;pointer-events:none}
#toasts .toast.sync-note .tx::before{content:'';display:inline-block;width:7px;height:7px;margin:0 6px 1px 0;border-radius:50%;background:#3E9B2A;vertical-align:middle;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
#toasts .toast.sync-note.busy .tx::before{background:#E0A526}
#toasts .toast.sync-note.came .tx::before{background:#2F7FD8}

/* ---------- 12. lane U1 (R105 #11): the Bodīte on a phone held upright — one sideways row of tabs that says it scrolls, ONE
   row of chips (views · «Kad būsi atpakaļ?» · sets, ui/bodite.js .chiprow), and cards whose rows line up: the picture, the
   name (two lines' room), the stepper's row (kept when a card has none) and the price, at the same heights on every card ---------- */
html.classic #modal .bodite .chiprow{display:contents}
html.classic #modal .bodite .sets>.ask{flex:none;align-self:center;font:bold 13px/1 "Trebuchet MS",Verdana,sans-serif;color:#5A3412;white-space:nowrap}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .panel.bodite.bodite .tabs{scroll-snap-type:x proximity;scroll-padding-inline:10px;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 34px),transparent)}
  html.classic #modal .panel.bodite.bodite .tabs button{scroll-snap-align:start}
  html.classic #modal .bodite .chiprow{flex:none;display:flex;align-items:center;gap:8px;padding:0 10px 6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 30px),transparent)}
  html.classic #modal .bodite .chiprow::-webkit-scrollbar{display:none}
  html.classic #modal .bodite .chiprow>.sets{flex:none;flex-wrap:nowrap;justify-content:flex-start;gap:6px;padding:0;overflow:visible}
  html.classic #modal .bodite .chiprow>.sets[hidden]{display:none}
  /* each group after the first: a thin wooden rule before it, so «Visi» of the sets never reads as «Visi» of the views */
  html.classic #modal .bodite .chiprow>.sets:not([hidden])~.sets:not([hidden]){padding-left:8px;border-left:2px solid rgba(110,70,30,.4)}
  html.classic #modal .bodite .chiprow>.sets>.ask{font-size:12px}
  html.classic #modal .bodite .chiprow>.sets button{height:44px;min-width:44px;justify-content:center;border-radius:22px}   /* lane uxtools (Astra C20): a finger's 44 px, not 30 */
  html.classic #modal .panel.bodite.bodite .card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 36px 32px 38px;row-gap:3px;
    justify-items:center;align-items:center;justify-content:stretch;align-content:stretch}
  html.classic #modal .panel.bodite.bodite .card .pic{align-self:center;width:auto;height:min(116px,100%);max-height:116px;max-width:100%;aspect-ratio:1}
  html.classic #modal .panel.bodite.bodite .card .nm{align-self:center}
}

/* ---------- 13. lane U1 (R105 #8, #9): ONE set of buttons in a window, three looks and no more —
   · primary   = the orange gloss (win_btn): the act the window is for («Atvērt», «Algot», «Ievadīt kodu»);
   · secondary = the brown wooden pill (win_btn_wood): another act; it keeps its pill shape, never stretched into a plank;
   · quiet     = words on the paper, underlined: «Vēlāk», «Aizvērt» (a window with a painted X has two ways out already).
   New code writes .btn.b-primary / .btn.b-secondary / .btn.b-quiet; the windows this lane touched are mapped onto the same
   three here, by their own classes (Cita ierīce, Paplašināt sētu and Talka, Palīgi). A primary that cannot be pressed yet goes
   grey, never the wood of a secondary (it read as a fourth kind). The frame: Supernauda and the level card are the cherry
   board; the Bodīte and the Noliktava the wooden frame with its nails (css/windows-2010.css). ---------- */
:is(html.classic #modal,html.classic #toasts,html .acc-ov) .btn.b-primary:not(.wh .btn){border-image-source:url(../img/win_btn.webp);border-image-slice:53 60 fill;color:#fff;text-shadow:var(--w3-line)}
:is(html.classic #modal,html.classic #toasts,html .acc-ov) .btn.b-secondary:not(.wh .btn),
html.classic #modal .pergaments.paligs .pl-kb.pl-kb{border:0 solid transparent;border-radius:22px;border-image:url(../img/win_btn_wood.webp) 32 36 fill / 50% 18px stretch;background:none;box-shadow:none;
  color:var(--w3-ink);font-family:var(--w3-face);text-shadow:0 1px 0 rgba(255,236,196,.55);filter:drop-shadow(0 2px 1px rgba(40,20,0,.28))}
html.classic #modal .pergaments.paligs .pl-kb.pl-kb{min-height:40px;padding:0 16px}
html.classic #modal .pergaments.paligs .pl-kb.pl-kb:hover:not([disabled]){background:none;filter:drop-shadow(0 2px 1px rgba(40,20,0,.3)) brightness(1.07)}
html.classic #modal .pergaments.paligs .pl-kb.pl-kb[disabled]{filter:grayscale(1);opacity:.5}
:is(html.classic #modal,html.classic #toasts,html .acc-ov) .btn.b-quiet:not(.wh .btn),
:is(html.classic #modal,html .acc-ov) .od-card .od-x .btn:not(.wh .btn),
html.classic #modal .pergaments:is(.exp-win,.pl-hirewin) .pbtn .btn:is(.grey,.green):last-child:not(.wh .btn){border:0;border-image:none;border-radius:8px;background:none;box-shadow:none;filter:none;
  color:#5A2E0E;text-shadow:none;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
/* the quiet one is only as wide as its word (the paint above never sets a size: tests/win3-windows.test.mjs) */
:is(html.classic #modal,html.classic #toasts,html .acc-ov) .btn.b-quiet:not(.wh .btn),
:is(html.classic #modal,html .acc-ov) .od-card .od-x .btn:not(.wh .btn),
html.classic #modal .pergaments:is(.exp-win,.pl-hirewin) .pbtn .btn:is(.grey,.green):last-child:not(.wh .btn){flex:0 0 auto;width:auto;min-width:88px;min-height:44px;padding:0 14px;font:bold 16px/1 var(--w3-face)}
:is(html.classic #modal,html .acc-ov) :is(.btn.b-quiet,.od-card .od-x .btn,.pergaments:is(.exp-win,.pl-hirewin) .pbtn .btn:is(.grey,.green):last-child):not(.wh .btn):hover:not(:disabled){filter:none;color:#2E1500;background:rgba(255,240,206,.45)}
/* the secondary keeps its pill: on a phone the device card's two presses no longer fill the row */
html .acc-ov .od-card .od-steps .acc-btns .btn{flex:0 1 auto;min-width:min(210px,100%)}
html.classic #modal .pergaments.exp-win .pbtn .btn.orange{flex:1 1 auto;max-width:340px}
:is(html.classic #modal,html.classic #toasts,html .acc-ov) .btn:is(.orange,.gold,.b-primary):not(.wh .btn):disabled{filter:grayscale(1) brightness(1.08);opacity:.5}

/* ---------- 14. lane U1 (R105 #14): the level card's «Tagad pieejams» — the level is the game's main reward, so each thing it
   opens is a paper tile with its picture large (64 px; 52 on a phone, 34 on its side) over its name, not a 16-px pill; the
   heading says it in the board's face. The tiles stay li.un (ui/unlock-peek.js opens the larger look on them). ---------- */
html.classic #modal .pergaments.lv-card .ph p.unl{margin:8px 0 2px;font:bold 17px/1.2 var(--w3-face);color:#5A2600;letter-spacing:.2px}
html.classic #modal .pergaments.lv-card .ph ul.unls{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:10px;margin:8px 0 12px;padding:0}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;width:104px;box-sizing:border-box;
  padding:9px 6px 8px;text-align:center}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un{border:0 solid transparent;border-image:url(../img/win_card.webp) 24 fill / 12px stretch;background:none;border-radius:0;
  font:bold 13px/1.2 var(--w3-face);color:#3A1D00;filter:drop-shadow(0 3px 2px rgba(60,30,0,.28))}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un img{flex:none;width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 2px 1px rgba(40,20,0,.3))}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;hyphens:auto}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un.nopic{justify-content:center;min-height:64px}
html.classic #modal .pergaments.lv-card .ph ul.unls li.un:is(:hover,.on){filter:drop-shadow(0 4px 3px rgba(60,30,0,.32)) brightness(1.05)}
html.classic #modal .pergaments.lv-card .ph li.rw img{width:24px;height:24px;object-fit:contain}
@media (min-width:641px) and (min-height:521px){
  html.classic #modal .panel.pergaments.lv-card:has(ul.unls){width:min(600px,92vw)}   /* four tiles in one row */
}
@media (max-width:640px) and (min-height:501px){
  html.classic #modal .pergaments.lv-card .ph ul.unls{gap:8px}
  html.classic #modal .pergaments.lv-card .ph ul.unls li.un{width:88px;padding:7px 4px 6px;font-size:12px}
  html.classic #modal .pergaments.lv-card .ph ul.unls li.un img{width:52px;height:52px}
}
@media (max-height:520px){
  html.classic #modal .pergaments.lv-card .ph p.unl{margin:2px 0 0;font-size:14px}
  html.classic #modal .pergaments.lv-card .ph ul.unls{gap:6px;margin:4px 0 6px}
  html.classic #modal .pergaments.lv-card .ph ul.unls li.un{width:78px;padding:5px 3px 4px;gap:2px;font-size:11px}
  html.classic #modal .pergaments.lv-card .ph ul.unls li.un img{width:34px;height:34px}
  html.classic #modal .pergaments.lv-card .ph li.rw img{width:18px;height:18px}
}
