/* Personal score pad: small printed marks, generous surrounding tap areas. */
#mapArea.compact-map { grid-template-rows: 26px 30px minmax(0,1fr) auto; }
#mapArea.full-sheet { grid-template-rows: 28px minmax(0,1fr) auto; }
#mapArea.compact-map.hide-map-heading { grid-template-rows:30px minmax(0,1fr) auto; }
#mapHeading > b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#mapHeading .peek-banner { flex:none; white-space:nowrap; }
.compact-map #map { overflow:hidden; }
.score-sheet {
 height:100%; min-height:0; display:grid;
 grid-template-rows:58px minmax(0,1fr); gap:7px; color:#46291f;
}
.score-sheet.settlement-sheet:not(.complete-sheet) { grid-template-rows:minmax(0,1fr); }
.score-sheet.complete-sheet { grid-template-rows:66px minmax(0,1fr) minmax(0,1.25fr); }
.sheet-region { min-width:0; min-height:0; display:flex; flex-direction:column; }
.sheet-region-heading {
 display:flex; justify-content:space-between; align-items:center; gap:4px;
 flex:none; border-bottom:1px solid #a46c43; margin-bottom:4px; min-height:22px;
}
.sheet-region-heading h3 { font:700 17px Georgia,serif; margin:0; }
.sheet-region-heading button {
 border:0; background:transparent; padding:0 4px; height:23px; width:27px;
 color:#723a26; font-size:21px; line-height:1;
}
.sheet-trail { display:grid; grid-template-columns:repeat(13,minmax(0,1fr)); flex:1; min-height:0; gap:3px; }
.sheet-outdoors { display:grid; grid-template-columns:1fr 1.2fr; min-height:0; gap:12px; }
.sheet-outdoors.single { grid-template-columns:minmax(0,1fr); }
.sheet-badlands { display:grid; grid-template-rows:repeat(4,minmax(0,1fr)); gap:3px; flex:1; min-height:0; }
.sheet-robbery-row { display:grid; grid-template-columns:58px repeat(3,minmax(0,1fr)) 21px; align-items:center; gap:3px; min-height:0; }
.robbery-label { display:flex; flex-direction:column; line-height:1.15; }
.robbery-label b { font-size:13px; }
.robbery-label span { font-size:12px; white-space:nowrap; }
.robbery-bonus { text-align:center; font-size:16px; }
.sheet-mine { display:flex; flex-direction:column; gap:4px; flex:1; min-height:0; }
.sheet-mine-level { display:flex; justify-content:center; gap:4px; flex:1; min-height:0; }
.sheet-mine-level .sheet-mark { width:18%; flex:none; }
.score-sheet .sheet-mark {
 min-width:0; min-height:0; padding:1px; gap:3px; background:transparent;
 border:0; border-radius:0; box-shadow:none; display:flex;
 flex-direction:column; justify-content:center; align-items:center;
}
.score-sheet .sheet-mark b {
 display:grid; place-items:center; width:24px; height:24px; flex:none;
 padding:0; border:1px solid #93633e; border-radius:3px; background:#fff2ce;
 font:700 17px/1 Georgia,serif;
}
.score-sheet .sheet-mark > span { font:13px/1.15 'Trebuchet MS',sans-serif; white-space:nowrap; }
.score-sheet .sheet-badlands .sheet-mark { flex-direction:row; gap:4px; }
.score-sheet .sheet-mark > .sheet-mark-head { display:flex; align-items:center; justify-content:center; gap:2px; }
.score-sheet .sheet-wanted { font:11px/1 'Trebuchet MS',sans-serif; color:#842f24; }
.cemetery-cost { margin-left:auto; white-space:nowrap; font-size:12px; }
.mine-key { margin-left:auto; font:12px/1 'Trebuchet MS',sans-serif; white-space:nowrap; }
.score-sheet .sheet-mark.circled { opacity:1; }
.score-sheet .sheet-mark.circled b { color:#fff2ce; background:#86452b; border:2px solid #582d21; }
.score-sheet .sheet-mark i, .score-sheet .sheet-mark.crossed::after { display:none; }
.score-sheet .sheet-mark.crossed b { text-decoration:line-through; background:#cdab74; }
.score-sheet .sheet-mark.target { outline:0; background:transparent; box-shadow:none; }
.score-sheet .sheet-mark.target b { outline:3px solid #357747; outline-offset:1px; background:#fffce3; }
.score-sheet .sheet-mark:hover b, .score-sheet .sheet-mark:focus-visible b { box-shadow:0 0 0 2px #81472c80; }
.sheet-settlement { display:grid; grid-template-columns:1.2fr 1fr; gap:12px; min-height:0; }
.sheet-town-column, .sheet-graves-column { display:flex; flex-direction:column; gap:7px; min-width:0; min-height:0; }
.sheet-town-region, .sheet-cemetery-region { flex:1; min-height:0; }
.sheet-town { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(5,minmax(0,1fr)); gap:4px; flex:1; min-height:0; }
.score-sheet .sheet-town .sheet-mark { display:grid; grid-template-columns:24px minmax(0,1fr); grid-template-rows:17px 15px; gap:0 5px; justify-items:start; text-align:left; align-content:center; }
.score-sheet .sheet-town .sheet-mark b { grid-column:1; grid-row:1/3; align-self:center; }
.score-sheet .sheet-town .sheet-mark > span { grid-column:2; font-size:12px; }
.sheet-site-name { font:700 13px/1.15 'Trebuchet MS',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.sheet-cemetery { display:grid; grid-template-columns:1fr .6fr 1fr .6fr 1fr; grid-template-rows:1fr .5fr 1fr .5fr 1fr; flex:1; min-height:0; }
.score-sheet .sheet-cemetery .sheet-mark > span { display:none; }
.score-sheet .sheet-cemetery .sheet-mark b { border-radius:40% 40% 2px 2px; }
.sheet-grave-reward { font:13px/1 'Trebuchet MS',sans-serif; text-align:center; align-self:center; white-space:nowrap; }
.sheet-grave-reward.collected { opacity:.55; text-decoration:line-through; }
.sheet-assets { display:grid; grid-template-columns:1.15fr .8fr .8fr; gap:6px; height:64px; flex:none; border-top:1px solid #a46c43; padding-top:4px; }
.sheet-asset { min-width:0; border:0; background:transparent; color:inherit; padding:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.sheet-asset > b { font-size:13px; white-space:nowrap; }
.hotel-stays { display:flex; gap:3px; }
.hotel-stays > span { border:1px solid #a46c43; min-width:21px; text-align:center; font-size:13px; padding:2px; border-radius:2px; }
.hotel-stays .last-stay { background:#82432b; color:#fff2ce; font-weight:bold; }
.hotel-stays .old-stay { text-decoration:line-through; opacity:.55; }
.sheet-land { display:grid; grid-template-columns:repeat(3,14px); grid-template-rows:repeat(3,14px); gap:1px; }
.sheet-land > span { border:1px solid #aa784a; font:11px/12px 'Trebuchet MS',sans-serif; text-align:center; }
.sheet-land .filled { background:#80653b; color:#fff2ce; }
.sheet-score { display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.sheet-score > b { font-size:26px; }
.sheet-score > span, .sheet-score > small { font-size:12px; white-space:nowrap; }
.sheet-poker { flex:none; min-width:0; }
.sheet-poker h3 { font:700 15px/1.1 Georgia,serif; border-bottom:1px solid #a46c43; margin:0 0 4px; }
.sheet-poker-row { display:flex; gap:5px; align-items:center; font-size:13px; min-height:21px; }
.sheet-poker-row > b { font-size:12px; flex:none; }
.sheet-poker-row > span { display:flex; flex:1; justify-content:space-between; gap:3px; }
.sheet-poker-row i { font-style:normal; font-weight:bold; white-space:nowrap; }
.sheet-poker-row .empty-poker { flex:1; border-bottom:1px solid #ab794b70; text-align:center; }
.sheet-poker-row small { font-size:11px; }
.sheet-poker .red { color:#9b3025; }
.sheet-hole-cards { display:flex; gap:8px; align-items:center; font-size:13px; min-height:21px; }
.sheet-hole-cards b { font-size:11px; }
.sheet-score-parts { display:grid; grid-template-columns:1fr 1fr; gap:3px 10px; border-top:1px solid #b68758; margin-top:5px; padding-top:4px; font-size:12px; }
.sheet-score-parts > span { display:flex; justify-content:space-between; gap:4px; }
.score-sheet[data-sheet-regions="mine cemetery"] { grid-template-columns:1.2fr 1fr; grid-template-rows:minmax(0,1fr); }
.score-sheet[data-sheet-regions="mine cemetery"] .sheet-settlement { grid-template-columns:minmax(0,1fr); }
.score-sheet[data-sheet-regions="town"] .sheet-settlement { grid-template-columns:1.7fr 1fr; }

@media (max-height:540px) {
 #mapArea.compact-map { grid-template-rows:18px 23px minmax(0,1fr) auto; gap:3px; }
 #mapArea.compact-map #mapHeading { font-size:13px; }
 #mapArea.compact-map.hide-map-heading { grid-template-rows:23px minmax(0,1fr) auto; }
 #regionTabs [data-sheet-page] { font-size:12px; padding:1px; }
 .score-sheet { grid-template-rows:45px minmax(0,1fr); gap:5px; }
 .sheet-region-heading { min-height:15px; margin-bottom:2px; }
 .sheet-region-heading h3 { font-size:12px; }
 .sheet-region-heading button { height:16px; width:22px; font-size:16px; }
 .sheet-outdoors, .sheet-settlement { gap:9px; }
 .score-sheet .sheet-mark { gap:1px; padding:0; }
 .score-sheet .sheet-mark b { width:19px; height:19px; font-size:14px; }
 .score-sheet .sheet-mark > span { font-size:10px; line-height:1; }
 .score-sheet .sheet-badlands .sheet-mark > span { font-size:11px; }
 .score-sheet .sheet-wanted { font-size:9px; }
 .cemetery-cost { font-size:10px; }
 .mine-key { font-size:10px; }
 .sheet-trail { gap:1px; }
 .sheet-robbery-row { grid-template-columns:44px repeat(3,minmax(0,1fr)) 15px; gap:2px; }
 .robbery-label b { font-size:11px; }
 .robbery-label span { font-size:10px; }
 .robbery-bonus { font-size:12px; }
 .sheet-mine { gap:2px; }
 .sheet-mine-level { gap:2px; }
 .score-sheet .sheet-mine .sheet-mark b { width:17px; height:17px; font-size:12px; }
 .score-sheet .sheet-mine .sheet-mark > span { font-size:10px; }
 .sheet-town-column, .sheet-graves-column { gap:3px; }
 .sheet-town { gap:2px 4px; }
 .score-sheet .sheet-town .sheet-mark { grid-template-columns:17px minmax(0,1fr); grid-template-rows:12px 10px; gap:0 3px; }
 .score-sheet .sheet-town .sheet-mark b { height:17px; width:17px; font-size:12px; }
 .sheet-site-name { font-size:11px; }
 .score-sheet .sheet-town .sheet-mark > span { font-size:10px; }
 .sheet-grave-reward { font-size:10px; }
 .sheet-assets { height:40px; padding-top:2px; gap:4px; }
 .sheet-asset { gap:1px; }
 .sheet-asset > b { font-size:10px; }
 .hotel-stays { gap:2px; }
 .hotel-stays > span { min-width:15px; padding:1px; font-size:10px; }
 .sheet-land { grid-template-columns:repeat(3,8px); grid-template-rows:repeat(3,8px); }
 .sheet-land > span { font-size:7px; line-height:7px; }
 .sheet-score > b { font-size:19px; }
 .sheet-score > span, .sheet-score > small { font-size:9px; }
 .sheet-poker h3 { font-size:11px; margin-bottom:2px; }
 .sheet-poker-row { gap:3px; min-height:15px; font-size:11px; }
 .sheet-poker-row > b { font-size:10px; }
 .sheet-poker-row small { font-size:9px; }
 .sheet-hole-cards { font-size:11px; min-height:15px; gap:5px; }
 .sheet-hole-cards b { font-size:9px; }
 .sheet-graves-column .sheet-score-parts { display:none; }
 .sheet-score-parts { font-size:10px; gap:5px 9px; margin-top:8px; }
}
@media (max-height:330px) {
 .score-sheet .sheet-mark b { width:18px; height:18px; font-size:13px; }
 .score-sheet[data-sheet-regions="town"] .sheet-assets { height:35px; }
 .score-sheet[data-sheet-regions="town"] .sheet-site-name { font-size:10px; }
 .score-sheet .sheet-trail .sheet-mark-head { gap:1px; }
 .score-sheet .sheet-trail .sheet-mark-head b { width:15px; }
 #regionTabs [data-sheet-page] { font-size:10px; white-space:nowrap; }
}
@media (min-width:1700px) and (min-height:1000px) {
 .score-sheet.complete-sheet { grid-template-rows:92px minmax(0,1fr) minmax(0,1.15fr); gap:15px; }
 .sheet-region-heading h3 { font-size:23px; }
 .sheet-region-heading { min-height:29px; margin-bottom:7px; }
 .score-sheet .sheet-mark b { width:29px; height:29px; font-size:21px; }
 .score-sheet .sheet-mark > span { font-size:18px; }
 .sheet-robbery-row { grid-template-columns:90px repeat(3,minmax(0,1fr)) 35px; }
 .robbery-label b, .robbery-label span, .robbery-bonus { font-size:19px; }
 .sheet-site-name { font-size:19px; }
 .score-sheet .sheet-town .sheet-mark { grid-template-columns:29px minmax(0,1fr); grid-template-rows:22px 20px; }
 .score-sheet .sheet-town .sheet-mark > span { font-size:17px; }
 .sheet-grave-reward { font-size:18px; }
 .sheet-assets { height:78px; }
 .sheet-asset > b, .hotel-stays > span, .sheet-score > span, .sheet-score > small { font-size:18px; }
 .sheet-score > b { font-size:34px; }
 .sheet-poker h3 { font-size:21px; }
 .sheet-poker-row { min-height:29px; font-size:21px; }
 .sheet-wanted, .cemetery-cost { font-size:17px; }
 .sheet-poker-row > b, .sheet-poker-row small, .sheet-score-parts { font-size:18px; }
 .sheet-hole-cards, .sheet-hole-cards b { font-size:18px; }
}
