/* The interface of the art "story" (Storybook): a picture book in watercolour. Everything here is scoped to :root[data-art="story"]; the layout
   it dresses is css/app.css. Four ideas tie it to the picture:
   (1) everything is paper: a panel is a sheet torn by hand (its edge wanders; the SVG filters come from the art's `dom`, see js/art/story.js),
       lying on the page with a soft shadow, never a box with a black border;
   (2) colour is paint: a button is a dab of watercolour with pigment gathered at its rim, a bar is one stroke of a brush, a tab is a ribbon
       hanging out of the book;
   (3) lettering is a book's: Almendra for what is called out, IM Fell English for what is read, its small capitals for labels, italics for speech;
   (4) nothing is black and nothing shouts: lines are sepia pencil, shadows are soft, things stand square and hold still. */
@font-face { font-family: 'Almendra'; src: url('/fonts/almendra-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Almendra'; src: url('/fonts/almendra-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Almendra Bold'; src: url('/fonts/almendra-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('/fonts/im-fell-english.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('/fonts/im-fell-english-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IM Fell English Italic'; src: url('/fonts/im-fell-english-italic.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IM Fell English SC'; src: url('/fonts/im-fell-english-sc.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root[data-art="story"] {
  --ink: #4a372b; --ink2: #8a7562; --paper: #f7efdc; --paper2: #fcf8ec; --paper3: #ebe0c5; --paper4: #d9caa6;
  --red: #c0503f; --brick: #963a32; --mustard: #dcab3e; --butter: #f2e2a8; --blue: #5380a8; --sky: #c3d8e2; --leaf: #6c9a58; --mint: #cbdfb9; --plum: #7d5a94; --lilac: #d8c8e4; --orange: #d4883e;
  --bg: #f7efdc; --muted: #86725f; --dim: #a8997f; --gold: #a87c1e; --line: rgba(74, 55, 43, .5); --line2: rgba(74, 55, 43, .18); --green-d: #4f7f5c;
  --fh: 'Almendra', 'IM Fell English', Georgia, serif; --fd: 'Almendra', 'IM Fell English', Georgia, serif; --ft: 'IM Fell English Italic', 'IM Fell English', Georgia, serif;
  --fb: 'IM Fell English', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; --fs: 'IM Fell English Italic', 'IM Fell English', Georgia, serif;
  --fsc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --r: 3px; --bw: 1.5px;
  --drop: 0 2px 6px rgba(74, 55, 43, .3); --drop-s: 0 1.5px 4px rgba(74, 55, 43, .28); --drop-l: 0 10px 34px rgba(60, 40, 25, .4);
  --press-l: 0 2px 3px rgba(74, 55, 43, .25); --press: 0 1.5px 2.5px rgba(74, 55, 43, .22); --press-s: 0 1px 2px rgba(74, 55, 43, .2); --press-xs: 0 1px 1.5px rgba(74, 55, 43, .16); --press-0: 0 0 0 transparent;
  --tilt: .3; --wig: none; --on: #fffaf0;
  --pencil: rgba(74, 55, 43, .62);
  /* the tooth of the paper */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .21  0 0 0 0 .13  0 0 0 .13 -.012'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* behind a figure: not a sunburst but a blot of colour let run on wet paper */
  --rays: radial-gradient(62% 56% at 46% 62%, rgba(220, 171, 62, .42), rgba(220, 171, 62, .2) 58%, rgba(220, 171, 62, 0) 76%), radial-gradient(40% 36% at 68% 40%, rgba(192, 80, 63, .16), rgba(192, 80, 63, 0) 72%);
  /* shapes cut or painted by hand: never a true rectangle, never a true circle */
  --hand: 9px 13px 8px 12px / 12px 8px 13px 9px; --hand2: 13px 8px 12px 9px / 8px 12px 9px 13px; --blob: 47% 53% 51% 49% / 52% 47% 53% 48%;
}
:root[data-art="story"] body, :root[data-art="story"] html { background: var(--bg); color: var(--ink); }
:root[data-art="story"] h1, :root[data-art="story"] h2, :root[data-art="story"] h3 { font-family: var(--fd); font-weight: 700; color: var(--ink); letter-spacing: 0; }
:root[data-art="story"] h4 { font: 400 14.5px/1.2 var(--fsc); text-transform: none; letter-spacing: .07em; color: var(--brick); }
:root[data-art="story"] a { color: var(--brick); font-weight: 400; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
:root[data-art="story"] b, :root[data-art="story"] strong { font-family: var(--fd); font-weight: 700; letter-spacing: .01em; }
:root[data-art="story"] #artbar b, :root[data-art="story"] #artbar strong { font-family: inherit; }   /* the Graphics bar looks the same in every art */
:root[data-art="story"] .num { font-family: var(--fd); }
:root[data-art="story"] .muted { color: var(--muted); }
:root[data-art="story"] ::-webkit-scrollbar { width: 10px; height: 10px; } :root[data-art="story"] ::-webkit-scrollbar-thumb { background: rgba(74, 55, 43, .38); border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; } :root[data-art="story"] ::-webkit-scrollbar-track { background: transparent; }
:root[data-art="story"] .scroll { scrollbar-color: rgba(74, 55, 43, .4) transparent; }

/* ---- sheets: anything that was a box is a piece of paper lying on the page. The paper itself is a layer behind the content (::before), so that
   its torn edge can wander without the lettering wandering with it. */
:root[data-art="story"] .panel, :root[data-art="story"] .modal-box, :root[data-art="story"] .log, :root[data-art="story"] .hud-top, :root[data-art="story"] .hud-ctl, :root[data-art="story"] .pc, :root[data-art="story"] .card, :root[data-art="story"] #tip, :root[data-art="story"] .toast, :root[data-art="story"] .turnbox { background: none; border: 0; box-shadow: none; border-radius: 0; isolation: isolate; }
:root[data-art="story"] .modal-box, :root[data-art="story"] .toast { position: relative; }
:root[data-art="story"] .panel::before, :root[data-art="story"] .modal-box::before, :root[data-art="story"] .log::before, :root[data-art="story"] .hud-top::before, :root[data-art="story"] .hud-ctl::before, :root[data-art="story"] .pc::before, :root[data-art="story"] .card::before, :root[data-art="story"] #tip::before, :root[data-art="story"] .toast::before, :root[data-art="story"] .turnbox::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 2px;
  background: var(--grain), linear-gradient(172deg, #fefbf1, #f8f0dc 60%, #f3e9d1);
  filter: url(#story-deckle) drop-shadow(0 2px 3.5px rgba(74, 55, 43, .34)); }
:root[data-art="story"] .pc:nth-child(even)::before, :root[data-art="story"] .card:nth-child(even)::before, :root[data-art="story"] .log::before, :root[data-art="story"] .hud-ctl::before, :root[data-art="story"] .pt-bench::before { filter: url(#story-deckle-b) drop-shadow(0 2px 3.5px rgba(74, 55, 43, .34)); }
:root[data-art="story"] .pc:nth-child(3n)::before, :root[data-art="story"] .card:nth-child(3n)::before, :root[data-art="story"] .hud-top::before, :root[data-art="story"] #tip::before, :root[data-art="story"] .dock::before { filter: url(#story-deckle-c) drop-shadow(0 2px 3.5px rgba(74, 55, 43, .34)); }
:root[data-art="story"] .modal-box::before { filter: url(#story-deckle) drop-shadow(0 12px 26px rgba(60, 40, 25, .42)); }
:root[data-art="story"] .hud-top { overflow: visible; }
:root[data-art="story"] .panel > header, :root[data-art="story"] .hd { background: none; border-bottom: 0; border-radius: 0; padding: 12px 18px 9px; position: relative; }
:root[data-art="story"] .panel > header::after, :root[data-art="story"] .hd::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; border-top: 1.5px solid var(--pencil); border-bottom: 1px solid rgba(74, 55, 43, .3); pointer-events: none; }
:root[data-art="story"] .panel > header h2, :root[data-art="story"] .hd h2 { font-size: 23px; }
:root[data-art="story"] .parch { background: rgba(255, 252, 240, .55); border: 0; border-radius: var(--hand); box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .38); }
:root[data-art="story"] .rule { border-top: 1px solid rgba(74, 55, 43, .34); height: 4px; border-bottom: 1px solid rgba(74, 55, 43, .16); }
:root[data-art="story"] .orn { color: var(--brick); font: 400 15px var(--fsc); letter-spacing: .1em; text-transform: none; }
:root[data-art="story"] .orn::before, :root[data-art="story"] .orn::after { border-top: 1px solid var(--ink); height: 3px; border-bottom: 1px solid var(--ink); opacity: .3; }

/* ---- paint: a button is a dab of watercolour (the dab is the layer behind the lettering; its ragged edge, its gathered rim and its grain are the
   #story-dab filter) */
:root[data-art="story"] .btn { --c: #ecdfbc; min-height: 38px; padding: 5px 20px 7px; font: 700 17.5px/1 var(--fd); letter-spacing: .02em; text-transform: none; color: var(--ink); background: none; border: 0; border-radius: 0; box-shadow: none; transform: none; isolation: isolate; transition: transform .1s, filter .15s; }
:root[data-art="story"] .btn::before { content: ''; position: absolute; inset: 1px 0; z-index: -1; pointer-events: none; border-radius: 12px 16px 11px 15px / 15px 11px 16px 12px;
  background: linear-gradient(98deg, color-mix(in srgb, var(--c) 84%, #fffaf0), var(--c) 46%, color-mix(in srgb, var(--c) 90%, #6a4a36)); filter: url(#story-dab); }
:root[data-art="story"] .btn:hover { filter: saturate(1.2) brightness(1.03); transform: translateY(-1px); }
:root[data-art="story"] .btn:active { transform: translateY(1px); filter: saturate(1.1) brightness(.95); box-shadow: none; }
:root[data-art="story"] .btn:disabled, :root[data-art="story"] .btn.off { filter: grayscale(.75) opacity(.5); transform: none; box-shadow: none; }
:root[data-art="story"] .btn.red { --c: #c8584a; color: var(--on); } :root[data-art="story"] .btn.green { --c: #74a05f; color: var(--on); } :root[data-art="story"] .btn.gold { --c: #e2b548; color: #3d2c22; } :root[data-art="story"] .btn.blue { --c: #5c88ae; color: var(--on); } :root[data-art="story"] .btn.ghost { --c: #ecdfbc; }
:root[data-art="story"] .btn.red, :root[data-art="story"] .btn.green, :root[data-art="story"] .btn.blue { text-shadow: 0 1px 1.5px rgba(60, 25, 15, .45); }
:root[data-art="story"] .btn.big { min-height: 54px; padding: 8px 34px 11px; font-size: 25px; border-radius: 0; box-shadow: none; } :root[data-art="story"] .btn.big:active { box-shadow: none; transform: translateY(1.5px); }
:root[data-art="story"] .btn.sm { min-height: 28px; padding: 3px 12px 4px; font-size: 14.5px; border-radius: 0; box-shadow: none; } :root[data-art="story"] .btn.icon { padding: 0; width: 38px; }
:root[data-art="story"] .coin { background: radial-gradient(circle at 36% 32%, #f8e9a8 0 20%, #dcab3e 24% 62%, #c08a26 100%); box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .6); border-radius: var(--blob); }
:root[data-art="story"] .price { font: 700 16.5px var(--fd); color: var(--ink); } :root[data-art="story"] .price.no { color: var(--red); }
:root[data-art="story"] input[type=text], :root[data-art="story"] input[type=password], :root[data-art="story"] select { font: 18px var(--fb); color: var(--ink); background: rgba(255, 252, 240, .6); border: 0; border-bottom: 1.5px solid var(--pencil); border-radius: 2px; padding: 6px 8px; }
:root[data-art="story"] input:focus, :root[data-art="story"] select:focus { box-shadow: 0 2px 0 var(--mustard); }
:root[data-art="story"] input[type=range] { accent-color: var(--red); } :root[data-art="story"] input[type=checkbox] { accent-color: var(--red); }

/* ---- the head of the page: a strip of the sheet itself, with ribbons hanging out of the book for the three rooms of the game */
:root[data-art="story"] #top { background: none; border-bottom: 0; color: var(--ink); }
:root[data-art="story"] #top::before { content: ''; position: absolute; inset: -14px -14px 0 -14px; z-index: -1; pointer-events: none; background: var(--grain), linear-gradient(180deg, #fdf9ee, #f5ecd6); filter: url(#story-deckle-b) drop-shadow(0 2px 3px rgba(74, 55, 43, .3)); }
:root[data-art="story"] #crest { filter: drop-shadow(0 3px 3px rgba(74, 55, 43, .38)); top: 5px; }
:root[data-art="story"] .gname { font: 700 22px/1.05 var(--fd); color: var(--ink); }
:root[data-art="story"] .glevel { font: 400 13.5px var(--fsc); letter-spacing: .06em; text-transform: none; color: var(--muted); } :root[data-art="story"] .glevel b { color: var(--brick) !important; font: 700 16px var(--fd) !important; }
:root[data-art="story"] .xp { height: 8px; border-radius: 4px 6px 5px 3px / 5px 3px 6px 4px; background: rgba(74, 55, 43, .1); box-shadow: inset 0 0 0 1px rgba(74, 55, 43, .4); }
:root[data-art="story"] .xp i { background: linear-gradient(180deg, #8fb878, #5f8f4e); border-radius: 3px 5px 4px 3px; }
:root[data-art="story"] nav.tabs { align-self: flex-start; gap: 12px; filter: drop-shadow(0 2.5px 2.5px rgba(74, 55, 43, .38)); }
:root[data-art="story"] nav.tabs button { min-width: 122px; height: 43px; padding: 0 18px 11px; font: 700 20px var(--fd); color: var(--on); background: none; border: 0; border-radius: 0; transform: none; text-shadow: 0 1px 1.5px rgba(50, 25, 15, .5); isolation: isolate; transition: height .16s, filter .16s; box-shadow: none; }
:root[data-art="story"] nav.tabs button::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 12px), 0 100%);
  background: linear-gradient(180deg, rgba(40, 20, 10, .28), rgba(40, 20, 10, 0) 9px), var(--grain), linear-gradient(96deg, color-mix(in srgb, var(--rib) 88%, #fff6e0), var(--rib) 50%, color-mix(in srgb, var(--rib) 86%, #4a2a1c)); }
:root[data-art="story"] nav.tabs button:nth-child(1) { --rib: #b9584a; } :root[data-art="story"] nav.tabs button:nth-child(2) { --rib: #6f9a5e; } :root[data-art="story"] nav.tabs button:nth-child(3) { --rib: #5a84aa; }
:root[data-art="story"] nav.tabs button { filter: saturate(.72) brightness(1.06); }
:root[data-art="story"] nav.tabs button:hover { transform: none; height: 48px; filter: saturate(.95); }
:root[data-art="story"] nav.tabs button.on { background: none; transform: none; height: 56px; filter: none; box-shadow: none; }
:root[data-art="story"] nav.tabs button .pip { right: -6px; top: 14px; min-width: 21px; height: 21px; border-radius: var(--blob); background: #fdf7e6; color: var(--brick); border: 1.3px solid var(--brick); font: 700 13px/18px var(--fd); text-shadow: none; }
:root[data-art="story"] .purse { background: radial-gradient(70% 80% at 40% 55%, rgba(220, 171, 62, .34), rgba(220, 171, 62, .12) 62%, rgba(220, 171, 62, 0) 80%); border: 0; border-radius: 0; font: 700 21px var(--fd); color: var(--ink); padding: 4px 14px 4px 10px; }
:root[data-art="story"] #top .btn.icon { --c: #ecdfbc; min-height: 32px; width: 36px; box-shadow: none; }
:root[data-art="story"] #top .btn.gfx { min-height: 32px; font-size: 15.5px; padding: 3px 14px 5px; }

/* ---- screens */
:root[data-art="story"] .subtabs { gap: 14px; } :root[data-art="story"] .subtabs button { padding: 2px 3px 3px; font: 700 16px var(--fd); letter-spacing: .01em; text-transform: none; color: var(--muted); background: none; border: 0; border-radius: 0; box-shadow: none; }
:root[data-art="story"] .subtabs button.on { background: linear-gradient(transparent 58%, rgba(192, 80, 63, .4) 58% 92%, transparent 92%); color: var(--ink); transform: none; border-radius: 40% 60% 50% 50% / 20% 30% 70% 80%; }
:root[data-art="story"] .subtabs button:hover:not(.on) { background: linear-gradient(transparent 58%, rgba(220, 171, 62, .45) 58% 92%, transparent 92%); color: var(--ink); }

/* ---- plates: a figure on a blot of colour, its name underneath */
:root[data-art="story"] .cards { gap: 16px; padding: 10px 10px 14px 6px; }
:root[data-art="story"] .card { padding: 9px 11px 10px; gap: 4px; }
:root[data-art="story"] .card:hover { transform: translate(0, -4px) rotate(calc(-1.2deg * var(--tilt))); box-shadow: none; }
:root[data-art="story"] .card:nth-child(odd) { rotate: -.35deg; } :root[data-art="story"] .card:nth-child(even) { rotate: .3deg; }
:root[data-art="story"] .card.sold { opacity: .38; filter: grayscale(.8); }
:root[data-art="story"] .card .art { border: 0; border-radius: 0; background: var(--rays); overflow: hidden; height: 116px; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); } :root[data-art="story"] .card .art img, :root[data-art="story"] .card .art canvas { max-height: 130px; margin-bottom: -10px; }
:root[data-art="story"] .card .nm { font: 700 18px/1.1 var(--fd); letter-spacing: 0; } :root[data-art="story"] .card .sub { font: italic 400 13.5px/1.2 var(--fb); color: var(--muted); }
:root[data-art="story"] .card .lvl, :root[data-art="story"] .lvlchip { border-radius: var(--blob); background: #fdf7e6; color: var(--brick); border: 1.3px solid var(--brick); font: 700 13px var(--fd); }
:root[data-art="story"] .rar-common { --rc: #a79d8c; } :root[data-art="story"] .rar-uncommon { --rc: var(--leaf); } :root[data-art="story"] .rar-rare { --rc: var(--blue); } :root[data-art="story"] .rar-very-rare, :root[data-art="story"] .rar-veryrare { --rc: var(--plum); } :root[data-art="story"] .rar-legendary { --rc: var(--orange); } :root[data-art="story"] .rar-artifact { --rc: var(--red); }
:root[data-art="story"] .item { background: none; border: 0; border-bottom: 1px dashed rgba(74, 55, 43, .32); border-radius: 0; padding: 6px 8px 6px 12px; position: relative; }
:root[data-art="story"] .item::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 5px; background: var(--rc, rgba(74, 55, 43, .45)); border-radius: 3px 2px 4px 2px / 8px 5px 9px 6px; opacity: .85; }
:root[data-art="story"] .item:hover { transform: translateX(2px); background: rgba(242, 226, 168, .4); }
:root[data-art="story"] .item .ic, :root[data-art="story"] .ic { border: 0; border-radius: var(--blob); background: radial-gradient(circle at 45% 55%, rgba(220, 171, 62, .4), rgba(220, 171, 62, .14) 60%, rgba(220, 171, 62, 0) 78%); }
:root[data-art="story"] .item .nm { font: 700 16px/1.1 var(--fd); letter-spacing: 0; } :root[data-art="story"] .item .sub { font: italic 400 13.5px/1.15 var(--fb); }

/* ---- the little furniture of a character sheet */
:root[data-art="story"] .portrait { border: 0; border-radius: var(--blob); background: var(--rays); overflow: visible; }
:root[data-art="story"] .hpbar { height: 9px; border: 0; border-radius: 4px 6px 5px 3px / 5px 3px 6px 4px; background: rgba(74, 55, 43, .1); box-shadow: inset 0 0 0 1px rgba(74, 55, 43, .45); }
:root[data-art="story"] .hpbar i { background: linear-gradient(180deg, #8fb878, #628f50); box-shadow: 1.5px 0 0 rgba(60, 40, 25, .25); border-radius: 3px 5px 4px 3px; } :root[data-art="story"] .hpbar.foe i, :root[data-art="story"] .hpbar.low i { background: linear-gradient(180deg, #d77868, #b24a3c); } :root[data-art="story"] .hpbar b { background: #8fb4cc; }
:root[data-art="story"] .stat { border: 0; border-radius: var(--hand); background: rgba(255, 252, 240, .5); box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .4); padding: 6px 4px 4px; }
:root[data-art="story"] .stat:nth-child(even) { border-radius: var(--hand2); }
:root[data-art="story"] .stat .k { font: 400 12.5px var(--fsc); letter-spacing: .06em; text-transform: none; color: var(--brick); } :root[data-art="story"] .stat .v { font: 700 24px/1.05 var(--fd); } :root[data-art="story"] .stat .m { font: italic 400 13.5px var(--fb); color: var(--blue); }
:root[data-art="story"] .tag { border: 0; border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px; background: rgba(255, 252, 240, .65); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .5); font: 400 13px/20px var(--fsc); letter-spacing: .05em; text-transform: none; padding: 0 9px; color: var(--ink); }
:root[data-art="story"] .tag.bad { background: #efb5a8; color: #5a1f18; } :root[data-art="story"] .tag.good { background: #c5dcb0; color: #2c4a22; } :root[data-art="story"] .tag.sp { background: #d8c8e4; color: #43305a; } :root[data-art="story"] .tag.new { background: #f0d37c; color: #3d2c22; }
:root[data-art="story"] .pick { border: 0; border-radius: var(--hand); background: rgba(255, 252, 240, .5); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .4); padding: 7px 10px; }
:root[data-art="story"] .pick:nth-child(even) { border-radius: var(--hand2); }
:root[data-art="story"] .pick:hover { background: rgba(242, 226, 168, .5); transform: none; } :root[data-art="story"] .pick.on { background: rgba(242, 226, 168, .85); box-shadow: inset 0 0 0 2px var(--red); }
:root[data-art="story"] .pick .nm { font: 700 16px/1.15 var(--fd); letter-spacing: 0; } :root[data-art="story"] .pick .sub { font: italic 400 13.5px/1.2 var(--fb); }

/* ---- the bench: places kept at the table */
:root[data-art="story"] .slot { border: 0; border-radius: var(--blob); background: var(--rays); overflow: visible; box-shadow: none; }
:root[data-art="story"] .slot.on { box-shadow: 0 0 0 2px var(--red); } :root[data-art="story"] .slot.over { box-shadow: 0 0 0 3px var(--leaf); }
:root[data-art="story"] .slot.empty { background: none; box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .3); border-style: none; }
:root[data-art="story"] .slot .new { background: #f0d37c; border: 1.2px solid var(--ink); border-radius: var(--blob); font: 700 13px/17px var(--fd); }
:root[data-art="story"] .ghost-drag { filter: drop-shadow(0 6px 5px rgba(74, 55, 43, .4)); }

/* ---- a window is a page laid over the book; a note is a slip of paper */
:root[data-art="story"] #modal { background: rgba(244, 235, 214, .78); backdrop-filter: blur(1.5px) saturate(.7); }
:root[data-art="story"] .modal-box { animation: story-page .32s ease-out; }
@keyframes story-page { from { transform: translateY(14px); opacity: 0; } }
:root[data-art="story"] .modal-box > header { background: none; border-bottom: 0; border-radius: 0; padding: 20px 22px 12px; position: relative; justify-content: center; }
:root[data-art="story"] .modal-box > header h2 { color: var(--ink); font: 700 30px/1.1 var(--fd); text-shadow: none; text-align: center; }
:root[data-art="story"] .modal-box > header::after { content: '❦'; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font: 400 17px/1 serif; color: var(--brick); background: linear-gradient(90deg, rgba(74, 55, 43, 0), rgba(74, 55, 43, .45) 22%, rgba(74, 55, 43, .45) 42%, rgba(74, 55, 43, 0) 43%, rgba(74, 55, 43, 0) 57%, rgba(74, 55, 43, .45) 58%, rgba(74, 55, 43, .45) 78%, rgba(74, 55, 43, 0)) 50% 55% / 100% 1.2px no-repeat; width: min(420px, 70%); text-align: center; }
:root[data-art="story"] .modal-box .x { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border: 0; border-radius: var(--blob); background: none; box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .5); color: var(--ink); font: 400 15px var(--fb); } :root[data-art="story"] .modal-box .x:hover { background: rgba(242, 226, 168, .8); rotate: none; }
:root[data-art="story"] .modal-body { padding: 18px 24px 22px; overflow-wrap: anywhere; } :root[data-art="story"] .modal-box { min-width: 0; max-width: 100%; }
:root[data-art="story"] .toast { padding: 8px 22px 10px; font: 400 18px var(--fs); color: var(--ink); animation: story-page .3s ease-out; }
:root[data-art="story"] .toast.bad { color: #7c2a22; } :root[data-art="story"] .toast.bad::before { background: var(--grain), linear-gradient(172deg, #f6d2c6, #efbcae); } :root[data-art="story"] .toast.good { color: #2f5226; } :root[data-art="story"] .toast.good::before { background: var(--grain), linear-gradient(172deg, #dcebc9, #c9deb3); }
:root[data-art="story"] #tip { padding: 10px 14px 11px; font-size: 15px; }
:root[data-art="story"] #tip h5 { font: 700 18px var(--fd); letter-spacing: 0; color: var(--brick); } :root[data-art="story"] #tip .sub { font-style: italic; color: var(--muted); font-size: 13.5px; } :root[data-art="story"] #tip .ln b { font: 700 15px var(--fd); } :root[data-art="story"] #tip em { color: var(--plum); font-weight: 400; }

/* ---- the title page */
:root[data-art="story"] .veil { background: radial-gradient(62% 50% at 50% 48%, rgba(249, 242, 224, .93), rgba(249, 242, 224, .78) 55%, rgba(249, 242, 224, .22) 100%); }
:root[data-art="story"] .logo { font-family: var(--fd); font-weight: 700; color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; rotate: none; line-height: 1.02; }
:root[data-art="story"] .logo small { font: 400 clamp(13px, 1.5vw, 20px) var(--fsc); letter-spacing: .32em; color: var(--muted); text-shadow: none; margin: .2em 0 .5em; }
:root[data-art="story"] .logo .l1 { font-size: clamp(34px, 6.6vw, 92px); color: var(--brick); text-shadow: 0 2px 0 rgba(255, 250, 235, .7); } :root[data-art="story"] .logo .l2 { font-size: clamp(17px, 2.8vw, 39px); font-weight: 400; color: var(--ink); }
:root[data-art="story"] .logo::after { content: '❦'; display: block; margin: .35em auto 0; width: min(520px, 80%); font: 400 clamp(16px, 1.8vw, 24px)/1 serif; color: var(--brick); background: linear-gradient(90deg, rgba(74, 55, 43, 0), rgba(74, 55, 43, .5) 20%, rgba(74, 55, 43, .5) 44%, rgba(74, 55, 43, 0) 45%, rgba(74, 55, 43, 0) 55%, rgba(74, 55, 43, .5) 56%, rgba(74, 55, 43, .5) 80%, rgba(74, 55, 43, 0)) 50% 55% / 100% 1.3px no-repeat; }
:root[data-art="story"] .presents { font: 400 clamp(13px, 1.4vw, 18px) var(--fsc); letter-spacing: .3em; color: var(--muted); text-shadow: none; }
:root[data-art="story"] .title > p { color: var(--ink) !important; text-shadow: none !important; font-weight: 400 !important; font-style: italic; }
:root[data-art="story"] .title > p.tiny { color: var(--ink) !important; font-style: normal; text-shadow: 0 0 3px #fbf5e4, 0 0 3px #fbf5e4, 0 0 6px #fbf5e4, 0 0 9px #fbf5e4 !important; }
:root[data-art="story"] .title > p.tiny { bottom: 30px !important; }
:root[data-art="story"] .steps { font: 400 14px var(--fsc); letter-spacing: .06em; text-transform: none; color: var(--muted); } :root[data-art="story"] .steps b { border-radius: var(--blob); background: none; border: 1.2px solid var(--pencil); font: 700 14px var(--fd); } :root[data-art="story"] .steps .on b { background: #c8584a; color: var(--on); border-color: #963a32; } :root[data-art="story"] .steps i { border-top: 1px solid var(--ink); opacity: .35; }
:root[data-art="story"] .wheel { border: 0; border-radius: var(--hand); background: rgba(255, 252, 240, .55); box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .4); }
:root[data-art="story"] .wheel button { font: 400 19px var(--fd); color: var(--ink2); border-radius: 12px 18px 11px 16px / 16px 11px 18px 12px; } :root[data-art="story"] .wheel button:hover { background: rgba(242, 226, 168, .7); } :root[data-art="story"] .wheel button.on { color: var(--on); background: #c8584a; font-weight: 700; }
:root[data-art="story"] .swatches button { border-radius: var(--blob); border: 1.3px solid rgba(74, 55, 43, .55); box-shadow: inset 0 -3px 4px rgba(60, 40, 25, .18), inset 0 2px 3px rgba(255, 250, 235, .35); } :root[data-art="story"] .swatches button:nth-child(even) { border-radius: 52% 48% 47% 53% / 48% 53% 47% 52%; }
:root[data-art="story"] .swatches button.on { box-shadow: 0 0 0 2.5px var(--paper2), 0 0 0 4px var(--ink); }
:root[data-art="story"] .opts { gap: 6px; } :root[data-art="story"] .opts button { border: 0; border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px; background: rgba(255, 252, 240, .6); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .45); font: 400 15px var(--fb); padding: 2px 11px 3px; }
:root[data-art="story"] .opts button:hover { background: rgba(242, 226, 168, .7); } :root[data-art="story"] .opts button.on { color: var(--on); background: #c8584a; box-shadow: inset 0 0 0 1.1px #963a32; font-weight: 400; }
:root[data-art="story"] .chargegrid button { border: 0; border-radius: var(--hand); background: rgba(255, 252, 240, .5); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .35); } :root[data-art="story"] .chargegrid button:hover { background: rgba(242, 226, 168, .7); rotate: none; } :root[data-art="story"] .chargegrid button.on { background: rgba(240, 211, 124, .8); box-shadow: inset 0 0 0 2px var(--red); }
:root[data-art="story"] .codebox { background: rgba(242, 226, 168, .5); border: 1.5px dashed var(--pencil); border-radius: var(--hand); color: var(--ink); }

/* ---- below ground: what lies on the page round the picture */
:root[data-art="story"] .pc { grid-template-columns: 56px 1fr; gap: 9px; padding: 7px 10px 8px 8px; }
:root[data-art="story"] .pc:hover { transform: translateX(2px); } :root[data-art="story"] .pc.on { transform: translateX(8px); background: none; }
:root[data-art="story"] .pc.on::before { background: var(--grain), linear-gradient(172deg, #fbf0c4, #f4e3a4); } :root[data-art="story"] .pc.down { background: none; } :root[data-art="story"] .pc.down::before { background: var(--grain), linear-gradient(172deg, #f6d6ca, #eebfb0); }
:root[data-art="story"] .pc .pt { width: 56px; height: 56px; border: 0; border-radius: var(--blob); background: var(--rays); } :root[data-art="story"] .pc .pt img, :root[data-art="story"] .pc .pt canvas { border-radius: var(--blob); box-shadow: 0 0 0 1.2px rgba(74, 55, 43, .5); }
:root[data-art="story"] .pc:nth-child(even) .pt img { border-radius: 52% 48% 47% 53% / 48% 53% 47% 52%; }
:root[data-art="story"] .pc .ac { right: -8px; bottom: -6px; min-width: 24px; height: 26px; font: 700 13.5px/1 var(--fd); color: var(--ink); background: #fdf8ea; border: 1.2px solid var(--pencil); border-radius: 4px 5px 12px 13px / 4px 4px 14px 13px; }
:root[data-art="story"] .pc .nm { font: 700 17.5px/1.05 var(--fd); letter-spacing: 0; } :root[data-art="story"] .pc .cl { font: italic 400 13px/1.15 var(--fb); color: var(--muted); }
:root[data-art="story"] .pc .hpn { font: 700 13.5px var(--fd); } :root[data-art="story"] .pc .tmpn { color: var(--blue); }
:root[data-art="story"] .pc .sl, :root[data-art="story"] .pc .rs { font: 400 12px/1 var(--fsc); gap: 2.5px; } :root[data-art="story"] .pc .sl b, :root[data-art="story"] .pc .rs b { color: var(--brick); font-family: var(--fd); font-weight: 700; font-size: 12px; }
:root[data-art="story"] .pc .sl i, :root[data-art="story"] .pc .rs i { width: 8.5px; height: 8.5px; border: 0; border-radius: var(--blob); background: radial-gradient(circle at 40% 35%, #a887bd, #74528c); box-shadow: 0 0 0 1px rgba(74, 55, 43, .45); }
:root[data-art="story"] .pc .rs i { border-radius: 2px 3px 2px 3px; background: linear-gradient(160deg, #e3a25c, #c4792e); } :root[data-art="story"] .pc .sl.pact i { background: radial-gradient(circle at 40% 35%, #86a8c8, #4f7ca4); }
:root[data-art="story"] .pc .sl i.o, :root[data-art="story"] .pc .rs i.o { background: none; opacity: .6; box-shadow: 0 0 0 1px rgba(74, 55, 43, .4); } :root[data-art="story"] .pc .rs u { font: 700 12.5px var(--fd); }
:root[data-art="story"] .pc .tk { width: 17px; height: 17px; border: 0; border-radius: var(--blob); font: 700 10.5px/1 var(--fd); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .45); color: var(--muted); }
:root[data-art="story"] .pc .tk.on { color: var(--on); box-shadow: inset 0 0 0 1px rgba(60, 30, 20, .35), inset 0 -2px 3px rgba(60, 30, 20, .2); } :root[data-art="story"] .pc .tk.a.on { background: #c8584a; } :root[data-art="story"] .pc .tk.b.on { background: #5c88ae; } :root[data-art="story"] .pc .tk.r.on { background: #74a05f; }
:root[data-art="story"] .pc .cond span { border: 0; border-radius: 8px 11px 7px 10px / 10px 7px 11px 8px; background: #c3d8e2; box-shadow: inset 0 0 0 1px rgba(74, 55, 43, .45); font: 400 12px/17px var(--fsc); letter-spacing: .03em; color: #2f4656; }
:root[data-art="story"] .pc .cond span.bad { background: #efb5a8; color: #5a1f18; } :root[data-art="story"] .pc .cond span.conc { background: #d8c8e4; color: #43305a; }
:root[data-art="story"] .turnbox { padding: 4px 14px 5px; font-size: 14px; }
:root[data-art="story"] .turnbox .who { font: 700 16px/1.1 var(--fd); letter-spacing: 0; } :root[data-art="story"] .turnbox.foe .who { color: var(--brick); } :root[data-art="story"] .turnbox .who small { font: italic 400 13px var(--fb); }
:root[data-art="story"] .turnbox .act b { border: 0; border-radius: var(--blob); font: 700 10.5px/1 var(--fd); box-shadow: inset 0 0 0 1px rgba(60, 30, 20, .35); } :root[data-art="story"] .turnbox .act.a b { background: #c8584a; } :root[data-art="story"] .turnbox .act.b b { background: #5c88ae; } :root[data-art="story"] .turnbox .act.r b { background: #74a05f; }
:root[data-art="story"] .hud-top > div { padding: 6px 16px 7px; border-right: 1px solid rgba(74, 55, 43, .3); } :root[data-art="story"] .hud-top > div:last-child { border-right: 0; }
:root[data-art="story"] .hud-top .k { font: 400 12px var(--fsc); letter-spacing: .08em; text-transform: none; color: var(--brick); } :root[data-art="story"] .hud-top .v { font: 700 20px/1.1 var(--fd); } :root[data-art="story"] .hud-top .v span { font-size: 16.5px !important; font-weight: 400; } :root[data-art="story"] .hud-top .skulls { color: var(--brick); }
:root[data-art="story"] .hud-xp { font: 700 14px var(--fd); color: var(--ink); text-shadow: 0 0 3px #fbf5e4, 0 0 3px #fbf5e4, 0 0 5px #fbf5e4, 0 0 7px #fbf5e4; }
:root[data-art="story"] .hud-xp .xp { height: 9px; box-shadow: inset 0 0 0 1px rgba(74, 55, 43, .5), 0 0 0 3px rgba(251, 245, 228, .75); background: rgba(251, 245, 228, .8); }
:root[data-art="story"] .hud-ctl { padding: 8px 16px 10px; gap: 12px; }
:root[data-art="story"] .seg { border: 0; border-radius: 0; box-shadow: none; overflow: visible; gap: 3px; } :root[data-art="story"] .seg button { border: 0; border-right: 0; background: none; font: 700 15px var(--fd); letter-spacing: 0; text-transform: none; color: var(--muted); padding: 3px 10px 4px; border-radius: 9px 12px 8px 11px / 11px 8px 12px 9px; box-shadow: inset 0 0 0 1px rgba(74, 55, 43, .28); }
:root[data-art="story"] .seg button:hover { background: rgba(242, 226, 168, .7); color: var(--ink); } :root[data-art="story"] .seg button.on { background: #c8584a; color: var(--on); box-shadow: inset 0 0 0 1px #963a32, inset 0 -2px 3px rgba(60, 30, 20, .18); }
:root[data-art="story"] .orders .k { font: 400 15px var(--fsc); letter-spacing: .05em; text-transform: none; color: var(--brick); } :root[data-art="story"] .orders .d { font: italic 400 14px/1.25 var(--fb); }
:root[data-art="story"] .log .hd { padding: 9px 16px 7px !important; } :root[data-art="story"] .log .hd h4 { font: 700 18px var(--fd); color: var(--ink); letter-spacing: 0; } :root[data-art="story"] .log .hd .tiny { font-style: italic; }
:root[data-art="story"] .log .lines { padding: 9px 14px 12px 12px; font-size: 14.5px; line-height: 1.3; gap: 4px; } :root[data-art="story"] .log .lines div { padding-left: 9px; border-left: 3px solid rgba(74, 55, 43, .2); border-radius: 2px 0 0 3px; }
:root[data-art="story"] .log .lines .hit, :root[data-art="story"] .log .lines .dmg { border-color: #d99a5a; } :root[data-art="story"] .log .lines .miss { border-color: #cfc5b0; color: var(--muted); } :root[data-art="story"] .log .lines .cast { border-color: #a78bbd; } :root[data-art="story"] .log .lines .heal, :root[data-art="story"] .log .lines .good, :root[data-art="story"] .log .lines .save { border-color: #8fb878; } :root[data-art="story"] .log .lines .die, :root[data-art="story"] .log .lines .down, :root[data-art="story"] .log .lines .bad, :root[data-art="story"] .log .lines .fail { border-color: #d77868; }
:root[data-art="story"] .log .lines .round { font: 400 13px var(--fsc); letter-spacing: .12em; text-transform: none; color: var(--brick); border: 0; }
:root[data-art="story"] .log b.ally { color: #3f6a34; } :root[data-art="story"] .log b.foe { color: var(--brick); } :root[data-art="story"] .log b.sp { color: #6b4a84; } :root[data-art="story"] .log b.crit { color: var(--red); }
:root[data-art="story"] .log .roll { background: none; color: var(--ink); font: 700 13.5px var(--fd); border-radius: var(--blob); box-shadow: inset 0 0 0 1.1px rgba(74, 55, 43, .55); padding: 0 5px; } :root[data-art="story"] .log .hp { color: var(--dim); font-style: italic; }
:root[data-art="story"] .ini { border: 0; border-radius: var(--blob); background: radial-gradient(circle at 50% 60%, #dcebc9, #c5dcb0 70%); box-shadow: 0 0 0 1.3px rgba(74, 55, 43, .55), 0 2px 3px rgba(74, 55, 43, .3); } :root[data-art="story"] .ini.foe { background: radial-gradient(circle at 50% 60%, #f6d6ca, #ecbcae 70%); }
:root[data-art="story"] .ini:nth-child(even) { border-radius: 52% 48% 47% 53% / 48% 53% 47% 52%; } :root[data-art="story"] .ini.on { box-shadow: 0 0 0 1.3px rgba(74, 55, 43, .6), 0 0 0 4.5px #e2b548, 0 0 0 5.6px rgba(74, 55, 43, .45), 0 3px 4px rgba(74, 55, 43, .3); }
:root[data-art="story"] .fade { background: #f7efdc; color: var(--ink); font: 400 28px var(--ft); letter-spacing: .04em; }
:root[data-art="story"] .bigstat { border: 0; border-radius: var(--hand); background: rgba(255, 252, 240, .5); box-shadow: inset 0 0 0 1.2px rgba(74, 55, 43, .4); } :root[data-art="story"] .bigstat:nth-child(even) { border-radius: var(--hand2); }
:root[data-art="story"] .bigstat .v { font: 700 31px/1 var(--fd); color: var(--brick); } :root[data-art="story"] .bigstat .k { font: 400 13px var(--fsc); letter-spacing: .06em; text-transform: none; color: var(--muted); }
:root[data-art="story"] .gate h1 { rotate: none; color: var(--brick); text-shadow: none; -webkit-text-stroke: 0; }
/* what the screens set on single elements for the cartoon (a butter header, an ink rule) gives way to the page */
:root[data-art="story"] .pt-side > .row:first-child { background: none !important; border-bottom: 0 !important; border-radius: 0 !important; position: relative; padding: 14px 18px 10px !important; }
:root[data-art="story"] .pt-side > .row:first-child::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 4px; border-top: 1.5px solid var(--pencil); border-bottom: 1px solid rgba(74, 55, 43, .3); pointer-events: none; }
:root[data-art="story"] .panel > .row[style*="border-top"], :root[data-art="story"] .panel > div[style*="border-top"] { border-top: 1.5px solid var(--pencil) !important; box-shadow: inset 0 3px 0 -2px rgba(74, 55, 43, .3); margin: 0 14px; padding-left: 4px !important; padding-right: 4px !important; }
:root[data-art="story"] .side .body div[style*="sticky"] { background: #f9f2e0 !important; border-color: rgba(74, 55, 43, .35) !important; border-top-style: solid !important; border-bottom-style: solid !important; border-width: 1px !important; }
/* a chapter begins with a painted capital */
:root[data-art="story"] .dg-side .body > p:first-child::first-letter, :root[data-art="story"] .modal-body .parch > p:first-of-type::first-letter { font: 700 3.1em/.78 var(--fd); color: var(--brick); float: left; padding: .06em .09em 0 0; }
/* the screens' own one-off styling, written for the cartoon: capitals in the display face become small capitals, pale names become ink */
:root[data-art="story"] [style*="text-transform: uppercase"] { font-family: var(--fsc) !important; text-transform: none !important; letter-spacing: .06em !important; }
:root[data-art="story"] h1[style*="--mustard"], :root[data-art="story"] h1[style*="--gold-l"], :root[data-art="story"] h2[style*="--gold-l"], :root[data-art="story"] div[style*="--gold-l"] { color: var(--brick) !important; }
:root[data-art="story"] #tip h5[style] { filter: brightness(.6) saturate(1.5); }
:root[data-art="story"] .item[style*="border-left-color"] { border-left: 0 !important; } :root[data-art="story"] .item[style*="--butter"] { background: rgba(242, 226, 168, .55) !important; }
:root[data-art="story"] .pick[style*="border-left"] { border-left-width: 6px !important; border-radius: 4px 12px 8px 4px / 9px 8px 12px 9px; }
/* a curio's rarity is one stroke of colour along its top edge */
:root[data-art="story"] .card[style*="border-top"] { border-top: 0 !important; padding-top: 16px; }
:root[data-art="story"] .card[style*="border-top"]::after { content: ''; position: absolute; left: 12px; right: 14px; top: 7px; height: 5px; background: var(--rc); opacity: .78; border-radius: 3px 6px 4px 2px / 3px 2px 5px 3px; pointer-events: none; }

/* ---- before the book is open */
:root[data-art="story"] #boot { background: #f7efdc; color: var(--ink); }
:root[data-art="story"] #boot .d { border: 0; border-radius: var(--blob); background: radial-gradient(circle at 46% 56%, rgba(192, 80, 63, .5), rgba(192, 80, 63, .22) 60%, rgba(192, 80, 63, 0) 76%); font: 700 66px var(--fd); color: var(--brick); } :root[data-art="story"] #boot .d::before { display: none; }
:root[data-art="story"] #boot p { font-size: 0; letter-spacing: 0; } :root[data-art="story"] #boot p::after { content: 'Once upon a time…'; font: 400 22px var(--ft); color: var(--muted); }

@media (max-width: 900px) {
  :root[data-art="story"] nav.tabs button { min-width: 0; padding: 0 12px 10px; font-size: 16px; height: 38px; } :root[data-art="story"] nav.tabs button.on { height: 48px; } :root[data-art="story"] nav.tabs button:hover { height: 42px; } :root[data-art="story"] .gname { font-size: 17px; }
}
@media (max-width: 760px) {
  :root[data-art="story"] nav.tabs { gap: 4px; } :root[data-art="story"] nav.tabs button { padding: 0 1px 9px; font-size: 13.5px; letter-spacing: -.01em; height: 34px; border-radius: 0; overflow: visible; } :root[data-art="story"] nav.tabs button.on { height: 43px; } :root[data-art="story"] nav.tabs button .pip { top: auto; bottom: -9px; right: -2px; min-width: 18px; height: 18px; font-size: 11.5px; line-height: 15px; }
  :root[data-art="story"] div[style*="repeat(3, 1fr)"] { grid-template-columns: 1fr 1fr !important; overflow-wrap: normal; }
  :root[data-art="story"] .pt-side .grid2, :root[data-art="story"] .modal-body .grid2 { grid-template-columns: 1fr; }
  :root[data-art="story"] .col.gap4 > .row[style*="baseline"] { flex-wrap: wrap; row-gap: 1px; overflow-wrap: normal; } :root[data-art="story"] .col.gap4 > .row[style*="baseline"] > b { min-width: 0 !important; flex: 1 0 100%; }
  :root[data-art="story"] .panel > .row[style*="border-top"] { flex-wrap: wrap; row-gap: 8px; } :root[data-art="story"] .panel > .row[style*="border-top"] .btn { padding: 5px 13px 7px; font-size: 15.5px; }
  :root[data-art="story"] .veil { background: radial-gradient(120% 62% at 50% 44%, rgba(249, 242, 224, .95), rgba(249, 242, 224, .86) 60%, rgba(249, 242, 224, .5) 100%); }
  :root[data-art="story"] .purse { font-size: 16px; padding: 3px 8px 3px 5px; } :root[data-art="story"] #top .btn.icon { width: 30px; min-height: 30px; } :root[data-art="story"] #top .btn.gfx { padding: 3px 8px 5px; }
  :root[data-art="story"] .pc { padding: 5px 7px 6px; } :root[data-art="story"] .pc .nm { font-size: 13.5px; } :root[data-art="story"] .pc .hpn { font-size: 11.5px; }
  :root[data-art="story"] .hud-top > div { padding: 4px 9px 5px; } :root[data-art="story"] .hud-top .v { font-size: 16px; }
  :root[data-art="story"] .modal-box > header h2 { font-size: 24px; } :root[data-art="story"] .modal-body { padding: 12px 14px 16px; }
  :root[data-art="story"] .btn.big { font-size: 21px; padding: 7px 22px 10px; min-height: 48px; }
}
