/* New look (approved by the user on 14-11 from a reference image): dark wood and leather, brass rivets, rounded
   game buttons, a gold/green top bar and a physical relief map. Everything is scoped to body.theme-wood, so the
   classic look in atlas.css stays available with the "Classic look" button. */
body.theme-wood{
  --wood:#5a3a22;--wood-d:#3b2414;--wood-l:#7a5233;--brass:#c9a24a;--brass-d:#8a6a25;--cream:#f5ead0;--parch:#efe0bd;--ink:#2f2215;
  background:#24160c;
}
body.theme-wood #app{background:
  repeating-linear-gradient(92deg,#0000 0 18px,#ffffff06 18px 19px,#0000 19px 41px),
  linear-gradient(180deg,#4a2f1b,#2b1a0e)}
/* rivets */
body.theme-wood .rivets{position:relative}
/* ---------- Top bar ---------- */
body.theme-wood .topbar{gap:8px;padding:6px 10px;background:linear-gradient(#3a2414,#22140a);border-bottom:3px solid var(--brass-d);box-shadow:inset 0 -1px 0 #e3c06f55,0 2px 6px #0009}
body.theme-wood .res{min-width:96px;height:36px;padding:2px 12px 2px 6px;border-radius:18px;background:linear-gradient(#2a2a2e,#141416);border:2px solid #6b6b70;box-shadow:inset 0 2px 4px #000c,0 1px 0 #ffffff22;color:#ffe08a}
body.theme-wood .res b{font-family:'Oswald';font-weight:600;font-size:18px;text-shadow:0 1px 0 #000}
body.theme-wood .res svg{width:26px;height:26px;filter:drop-shadow(0 1px 1px #000)}
body.theme-wood .res.conq{min-width:230px}
body.theme-wood .res.conq .bar{flex:1;height:20px;border-radius:10px;background:#0d0d0f;border:1px solid #555;overflow:hidden;justify-content:center}
body.theme-wood .res.conq .bar i{display:block;position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(#7ee36b,#2f9a2a);box-shadow:inset 0 1px 0 #d6ffbf;transition:width .5s}
body.theme-wood .res.conq .bar b{position:relative;font-size:14px;color:#fff;text-shadow:0 1px 2px #000}
body.theme-wood .res.lives{background:none;border:0;box-shadow:none;min-width:0;padding:0 4px}
body.theme-wood #rLives svg{width:30px;height:30px;filter:drop-shadow(0 2px 1px #000)}
body.theme-wood .status{color:#e9cf8e}
body.theme-wood .clock{font-family:'Oswald';font-weight:600;font-size:20px;color:#f5ead0;background:linear-gradient(#2a2a2e,#141416);border:2px solid #6b6b70;border-radius:8px;padding:2px 12px}
body.theme-wood .menu-btn{padding:6px 18px;font-family:'Oswald';font-weight:600;font-size:16px;letter-spacing:1px;text-transform:uppercase;color:#fff;
  background:linear-gradient(#ef5a3c,#b52a16);border:2px solid #6e1407;border-radius:10px;box-shadow:inset 0 2px 0 #ff9a80,0 3px 0 #4d0d04,0 4px 8px #0008;text-shadow:0 1px 1px #000}
body.theme-wood .look-btn{background:#3a2a1a;color:#e9cf8e;border-color:#8a6a25}
/* ---------- Tabs: rounded game buttons ---------- */
body.theme-wood .tabs{gap:8px;padding:8px 10px 8px;background:linear-gradient(#4a2f1b,#3a2414);border-bottom:2px solid #1d1009}
body.theme-wood .tabs button{flex:1 1 150px;padding:7px 10px;border-radius:22px;border:2px solid #4d3420;font-family:'Oswald';font-weight:600;font-size:16px;letter-spacing:.6px;color:#3b2414;
  background:linear-gradient(#fbf3dc,#d9c391);box-shadow:inset 0 2px 0 #fff,0 3px 0 #2b1a0e,0 4px 6px #0007}
body.theme-wood .tabs button[aria-selected=true]{background:linear-gradient(#ffe9a8,#e0ad3e);border-color:#7a5212;transform:none;box-shadow:inset 0 2px 0 #fff6d0,0 3px 0 #5e3d0c,0 0 12px #ffd76a88}
body.theme-wood .tabs button:active{transform:translateY(2px)}
/* ---------- Panel: leather with brass rivets ---------- */
body.theme-wood .panel{background:
  radial-gradient(circle at 10px 10px,#e8c870 0 3px,#7a5a1f 3.5px,#0000 4.5px),
  radial-gradient(circle at calc(100% - 10px) 10px,#e8c870 0 3px,#7a5a1f 3.5px,#0000 4.5px),
  radial-gradient(circle at 10px calc(100% - 10px),#e8c870 0 3px,#7a5a1f 3.5px,#0000 4.5px),
  radial-gradient(circle at calc(100% - 10px) calc(100% - 10px),#e8c870 0 3px,#7a5a1f 3.5px,#0000 4.5px),
  linear-gradient(#6b4325,#4a2c17);
  border-right:4px solid #24150b;box-shadow:inset 0 0 0 2px #8a5e34,inset 0 0 24px #000a;padding:12px}
body.theme-wood .toolbar{gap:7px}
body.theme-wood .toolbar button{border-radius:10px;border:2px solid #4d3420;background:linear-gradient(#fbf3dc,#d9c391);box-shadow:inset 0 2px 0 #fff,0 3px 0 #2b1a0e,0 4px 6px #0007;padding:6px}
body.theme-wood .toolbar button[aria-pressed=true]{background:linear-gradient(#ffe9a8,#e0ad3e);border-color:#7a5212;box-shadow:inset 0 2px 4px #8a5a10,0 0 10px #ffd76a99}
body.theme-wood .toolbar button:disabled{filter:grayscale(.8) opacity(.5)}
body.theme-wood .dossier{border:3px solid #8a6a25;border-radius:6px;background-color:var(--parch);
  background-image:radial-gradient(#7a5a2010 1px,transparent 1px),linear-gradient(#f6ead0,#ead6ab);background-size:5px 5px,100% 100%;
  box-shadow:inset 0 0 0 2px #f8eccd,inset 0 0 0 5px #b8964f,inset 0 0 30px #8a6a2555,0 3px 8px #000a}
body.theme-wood .dossier h2{font-family:'IM Fell',Georgia,serif;font-size:27px;letter-spacing:1px;color:#3b2414;text-shadow:0 1px 0 #fff8}
body.theme-wood .dossier h3{color:#5a3a22;border-bottom-color:#b8964f}
body.theme-wood .frame{border:3px solid #6b4a1f;background:#fff9ea;box-shadow:0 0 0 2px #d9b867,2px 3px 6px #0006}
body.theme-wood .frame img{filter:saturate(1.05)}
body.theme-wood .frame:hover img{filter:saturate(1.2)}
body.theme-wood .flagrow{background:linear-gradient(#5a3a22,#3b2414);border:2px solid #c9a24a;border-radius:6px;box-shadow:inset 0 0 8px #000a;color:#f5ead0}
body.theme-wood .flagrow .tag{color:#f5ead0}
body.theme-wood .bigflag canvas{background:radial-gradient(#fff6d855,#0000 70%);border-radius:8px}
body.theme-wood .stats li i{border-bottom-color:#8a6a25}
body.theme-wood .start{border-radius:12px;background:linear-gradient(#78d25a,#2f8a24);border:2px solid #1d5a14;box-shadow:inset 0 2px 0 #c8f5a8,0 3px 0 #164410,0 4px 8px #0007;text-shadow:0 1px 1px #000}
body.theme-wood .options .opt,body.theme-wood .scope label{border-radius:10px}
body.theme-wood .options .opt{background:linear-gradient(#fbf3dc,#d9c391);border:2px solid #6b4a1f;box-shadow:inset 0 2px 0 #fff,0 3px 0 #4d3420}
body.theme-wood .credit{color:#f5ead0}
/* ---------- Map: physical relief in a brass frame ---------- */
body.theme-wood .mapwrap{border:6px solid #2b1a0e;box-shadow:inset 0 0 0 3px #c9a24a,inset 0 0 0 5px #6b4a1f;border-radius:4px}
body.theme-wood #map{background:#6f9fc4}
body.theme-wood .ocean{fill:#6f9fc4}
body.theme-wood #relief{filter:saturate(1.45) contrast(1.06) brightness(1.02)}
body.theme-wood #grat path{stroke:#ffffff55;stroke-dasharray:none;stroke-width:.4}
body.theme-wood #grat path:first-child{stroke:#2b4a63;stroke-width:1.4}
body.theme-wood .country{fill:transparent!important;stroke:#3b2a1a;stroke-width:.7;stroke-opacity:.75}
body.theme-wood .country:hover{fill:#fff2b844!important;filter:none;stroke:#1d1209;stroke-width:1.5}
body.theme-wood .country.selected{fill:#ffcf4a55!important;stroke:#1d1209;stroke-width:2.6}
body.theme-wood .country.conquered{fill:#c8402acc!important}
body.theme-wood .country.drop-hover{fill:#ffd84a88!important}
body.theme-wood .country.target{fill:#ffd84a77!important}
body.theme-wood #labels text{font-family:'Oswald';font-weight:700;font-style:normal;fill:#2b1a0e;stroke:#fff3d0;letter-spacing:1px}
body.theme-wood svg#map > rect[filter]{opacity:.12}
body.theme-wood .minimap{background:linear-gradient(#6b4325,#3b2414);border:2px solid #c9a24a;border-radius:6px}
body.theme-wood .minimap svg{background:#6f9fc4}
body.theme-wood .minimap path{fill:none}
body.theme-wood .maptools button,body.theme-wood .maptools select{border-radius:8px;background:linear-gradient(#fbf3dc,#d9c391);border:2px solid #4d3420;box-shadow:inset 0 2px 0 #fff,0 2px 0 #2b1a0e}
/* modes on top of the relief */
body.theme-wood.mode-mountains #relief{filter:saturate(.55) brightness(1.08) contrast(.9);opacity:.75}
body.theme-wood #map.night #relief{opacity:.12;filter:grayscale(1)}
body.theme-wood #map.night .country{fill:#0d1626cc!important}
body.theme-wood .altimeter{background:linear-gradient(#6b4325,#3b2414);border:2px solid #c9a24a;color:#f5ead0}
body.theme-wood .alt-title,body.theme-wood .alt-now{color:#f5ead0}
body.theme-wood .stamp{background:#fff6dcdd}
/* Canva AI icons (14-11) replace the drawn ones in this look */
body.theme-wood img.ic{display:block;object-fit:contain;filter:drop-shadow(0 2px 1px #0008)}
body.theme-wood .res > svg,body.theme-wood .toolbar svg,body.theme-wood #rLives svg{display:none}
body.theme-wood .res img.ic{width:32px;height:32px;margin:-4px 0 -4px -6px}
body.theme-wood #rLives img.ic{width:32px;height:32px}
body.theme-wood #rLives img.ic.lost{filter:grayscale(1) brightness(.6) opacity(.45)}
body.theme-wood .toolbar button img.ic{width:100%;height:100%;max-width:40px;max-height:40px;margin:auto}
body.theme-wood #rLives{gap:5px}
body.theme-wood #seas text{fill:#163f63;stroke:#a9d3f0;stroke-opacity:.75}
body.theme-wood #seas text.sea-ocean{fill:#123a5c;opacity:.85}
body.theme-wood #seas text.sea-ocean{font-weight:400;opacity:.72}
/* spinning globe on mouse over (js/globe-spin.js) */
.res.conq{position:relative;cursor:default}
canvas.globe-spin{display:none}
body.theme-wood canvas.globe-spin{display:block;position:absolute;left:0;top:50%;width:32px;height:32px;margin-top:-16px;opacity:0;transition:opacity .3s;pointer-events:none;filter:drop-shadow(0 2px 1px #0008)}
body.theme-wood .res.conq img.ic{transition:opacity .3s}
body.theme-wood .res.conq.spinning img.ic{opacity:0}
body.theme-wood .res.conq.spinning canvas.globe-spin{opacity:1}
body.theme-wood .void{fill:transparent}
/* 16-11: medium widths (821-1040 px, e.g. a blog iframe of 900 px). The full bar needed ~1005 px and pushed MENU
   off screen; here it gets compact without touching the desktop or phone layouts. */
@media (min-width:821px) and (max-width:1040px){
  body.theme-wood .topbar{gap:5px;padding:5px 8px}
  body.theme-wood .res{min-width:0;height:32px;padding:2px 8px 2px 4px}
  body.theme-wood .res b{font-size:16px}
  body.theme-wood .res svg,body.theme-wood .res img.ic{width:22px;height:22px}
  body.theme-wood .res.conq{min-width:150px}
  body.theme-wood #rLives svg{width:22px;height:22px}
  body.theme-wood .status{display:none}
  body.theme-wood .clock{font-size:17px;padding:2px 8px}
  body.theme-wood .menu-btn{padding:5px 12px;font-size:15px}
  body.theme-wood .tabs{gap:6px}
  body.theme-wood .tabs button{flex:1 1 0;min-width:0;padding:6px 6px;font-size:15px;letter-spacing:.3px}
}
