/* Original border: Kenney CC0; icon art: Lorc / Delapouite CC BY 3.0. */
html[data-game-theme=trpg] .trpg-media,html[data-game-theme=trpg] .trpg-story{position:relative;padding:22px}
html[data-game-theme=trpg] .trpg-media::after,html[data-game-theme=trpg] .trpg-story::after{content:"";position:absolute;inset:0;pointer-events:none;border:12px solid transparent;border-image:url('/fantasy-ui/panel-border.png') 12 stretch;filter:sepia(1) saturate(.8) brightness(.8);opacity:.55}
html[data-game-theme=trpg] .host-mark::before,html[data-game-theme=trpg] button[data-fantasy-icon]::before,html[data-game-theme=trpg] .inventory-window h2::before{content:"";display:inline-block;width:1em;height:1em;margin-inline-end:.4em;background:currentColor;vertical-align:-.12em;mask:var(--fantasy-icon) center/contain no-repeat;-webkit-mask:var(--fantasy-icon) center/contain no-repeat}
html[data-game-theme=trpg] .host-mark{--fantasy-icon:url('/fantasy-ui/crown.svg')}
html[data-game-theme=trpg] .inventory-window h2{--fantasy-icon:url('/fantasy-ui/knapsack.svg')}
button[data-fantasy-icon=story]{--fantasy-icon:url('/fantasy-ui/scroll-unfurled.svg')}
button[data-fantasy-icon=leave]{--fantasy-icon:url('/fantasy-ui/exit-door.svg')}
button[data-fantasy-icon=ready]{--fantasy-icon:url('/fantasy-ui/check-mark.svg')}
button[data-fantasy-icon=action]{--fantasy-icon:url('/fantasy-ui/crossed-swords.svg')}
button[data-fantasy-icon=settings]{--fantasy-icon:url('/fantasy-ui/gears.svg')}
.trpg-image-tile img,.inventory-card img{object-fit:contain;object-position:center}
@media(max-width:600px){html[data-game-theme=trpg] .trpg-media,html[data-game-theme=trpg] .trpg-story{padding:18px}}

/* Framed artwork uses the supplied portraits, items, scenes and Kenney border. */
html[data-game-theme=trpg]{background:radial-gradient(ellipse at 50% 0,#3b2c20 0,transparent 65%),var(--base)}
html[data-game-theme=trpg] .brand{letter-spacing:-.7px}
html[data-game-theme=trpg] .brand::before{background:var(--accent);mask:url('/fantasy-ui/scroll-unfurled.svg') center/contain no-repeat;-webkit-mask:url('/fantasy-ui/scroll-unfurled.svg') center/contain no-repeat;clip-path:none;border-radius:0}
html[data-game-theme=trpg] .trpg-title{padding:4px 2px 18px;border-bottom:1px solid var(--edge)}
html[data-game-theme=trpg] .trpg-title h1{font-family:Georgia,'Batang',serif;letter-spacing:.02em}
html[data-game-theme=trpg] .trpg-scene{border:1px solid #a77e4860;box-shadow:0 8px 22px #0003;border-radius:12px}
html[data-game-theme=trpg] .trpg-scene-image{height:clamp(180px,30vw,360px);object-fit:cover;object-position:center;cursor:zoom-in}
html[data-game-theme=trpg] .trpg-scene-label{padding:15px 18px;color:var(--accent);font-weight:700;background:linear-gradient(90deg,#a77e4815,transparent)}
html[data-game-theme=trpg] .trpg-media h2{display:flex;align-items:center;gap:12px;font-size:13px;letter-spacing:.08em;margin:26px 0 14px}
html[data-game-theme=trpg] .trpg-media h2::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,var(--edge),transparent)}
html[data-game-theme=trpg] .trpg-characters,html[data-game-theme=trpg] .trpg-inventory{gap:12px}
html[data-game-theme=trpg] button.trpg-image-tile{border:1px solid #a77e484d!important;border-radius:12px;padding:9px!important;gap:9px;width:112px;max-width:136px;background:linear-gradient(160deg,#4c392640,#21191470)!important;box-shadow:0 3px 10px #0002;transition:border-color .15s,box-shadow .15s}
html[data-game-theme=trpg] button.trpg-image-tile:hover{border-color:var(--accent)!important;box-shadow:0 4px 16px #0004;filter:none}
html[data-game-theme=trpg] .trpg-image-tile img{width:92px;height:92px;border:1px solid #a77e4840;border-radius:7px;background:#1a1511;object-fit:contain}
html[data-game-theme=trpg] .trpg-image-tile[data-kind=character] img{height:138px}
html[data-game-theme=trpg] .trpg-image-tile>span:last-child{line-height:1.5;overflow-wrap:anywhere;max-width:100%;font-weight:600}
html[data-game-theme=trpg] .trpg-image-tile.is-selected{border-color:var(--accent)!important;box-shadow:0 0 0 1px #e4bd7e44,0 4px 14px #0004}
html[data-game-theme=trpg] .trpg-image-tile.is-selected img{outline:none}
html[data-game-theme=trpg] .trpg-story{background:linear-gradient(145deg,#a77e4809,transparent),var(--surface)}
html[data-game-theme=trpg] .trpg-turn{padding:22px 2px;border-color:#a77e4833}
html[data-game-theme=trpg] .trpg-prose{max-width:70ch;margin-inline:auto;line-height:var(--reading-line-height,1.95)}
html[data-game-theme=trpg] .inventory-card{border-color:#a77e4855;background:linear-gradient(145deg,#a77e4810,transparent),var(--reading)}
html[data-game-theme=trpg] .inventory-card img{width:100%!important;height:130px!important;object-fit:contain;border-radius:8px;background:#1a1511}
html[data-game-theme=trpg] .trpg-composer{border-radius:18px;box-shadow:inset 0 1px #e4bd7e20,0 12px 30px #0003}
.room-card[data-game=relay]{border-color:#afc5df;box-shadow:0 5px 20px #00000005}
.room-card[data-game=trpg]::before{content:'';display:block;height:128px;border-radius:12px;background:linear-gradient(0deg,#21191499,transparent),url('/trpg-art/scenes/scene_riften_01.png?v=9ec79c8485ee') center/cover no-repeat;border:1px solid #a77e4870}
.room-card[data-game=trpg] h2{display:flex;align-items:center;gap:9px}
.room-card[data-game=trpg] h2::before{content:'';width:22px;height:22px;background:#9b733e;mask:url('/fantasy-ui/crossed-swords.svg') center/contain no-repeat;-webkit-mask:url('/fantasy-ui/crossed-swords.svg') center/contain no-repeat}
@media(max-width:600px){html[data-game-theme=trpg] button.trpg-image-tile{width:96px;padding:7px!important}html[data-game-theme=trpg] .trpg-image-tile img{width:80px;height:80px}html[data-game-theme=trpg] .trpg-image-tile[data-kind=character] img{height:120px}html[data-game-theme=trpg] .trpg-characters,html[data-game-theme=trpg] .trpg-inventory{gap:8px}.room-card[data-game=trpg]::before{height:110px}}
@media(prefers-reduced-motion:reduce){html[data-game-theme=trpg] button.trpg-image-tile{transition:none}}
