/* Sticky Tour: home button and the campaign block on the match result sheet. */
.result-tour{margin:14px 0 0;padding:14px 16px;border:2px solid #E09536;border-radius:16px;background:#fffbe9;box-shadow:0 4px 0 #0B1A1840}
@media(max-width:980px){#app #match-result .result-tour{order:1;width:100%;box-sizing:border-box;margin:0}}
.result-tour[hidden]{display:none}
.tour-result-goals{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tour-result-heading{margin:0 0 10px;font-family:var(--font-display,inherit);font-size:16px;color:#1b3a2e}
.tour-result-goal-value{display:block;margin-top:3px;font-size:12px;color:#425b37;font-weight:700}
.tour-result-total{margin:12px 0 8px;padding-top:10px;border-top:2px dashed #E0953666;font-weight:900;font-size:14px;color:#1b3a2e}
.tour-result-extras{margin-top:12px;border-top:1px solid #0B1A1826}
.tour-result-extras>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:900;color:#34483F}
.tour-result-extras>summary::before{content:'+';color:#85500A;font-size:20px}
.tour-result-extras[open]>summary::before{content:'−'}
.tour-result-extras:not([open])>:not(summary){display:none}
.tour-result-extras>summary:focus-visible{outline:3px solid #85500A;outline-offset:2px;border-radius:8px}
.tour-result-goal[data-met="false"][data-saved="true"] .tour-result-star{fill:#E09536;opacity:.65}
.tour-result-goal[data-met="false"][data-saved="true"]{color:#425b37}
.tour-result-goal[data-met="false"][data-saved="true"] .tour-result-goal-state{color:#85500A}
.tour-result-goal{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;font-weight:800;font-size:14px;line-height:1.3;color:#1b3a2e}
.tour-result-goal[data-met="false"]{color:#6b7d68}
.tour-result-star{width:26px;height:26px;fill:#d9d2b6;stroke:#6b7d68;stroke-width:1.4;stroke-linejoin:round}
.tour-result-star[data-on="true"]{fill:#E09536;stroke:#0B1A18;stroke-width:1.8;filter:drop-shadow(0 2px 0 #0B1A1830)}
.tour-result-goal-state{font-family:var(--font-display,inherit);font-weight:400;font-size:13px;letter-spacing:.3px;color:#85500A}
.tour-result-goal[data-met="false"] .tour-result-goal-state{color:#7a8a77}
.tour-result-points,.tour-result-unlock,.tour-result-note{margin:12px 0 0;font-weight:900;font-size:14px;color:#1b3a2e}
.tour-result-points{display:inline-block;padding:6px 14px;border-radius:999px;background:#E09536;color:#0B1A18;border:2px solid #0B1A18;font-family:var(--font-display,inherit);font-weight:400;font-size:16px}
.tour-result-unlock{color:#2f6a24}
@media(prefers-reduced-motion:no-preference){
  .tour-result-star[data-on="true"]{animation:tour-star-pop .5s cubic-bezier(.2,1.6,.4,1) both}
  .tour-result-goal:nth-child(2) .tour-result-star{animation-delay:.12s}.tour-result-goal:nth-child(3) .tour-result-star{animation-delay:.24s}
  .tour-result-points{animation:tour-star-pop .5s .35s cubic-bezier(.2,1.6,.4,1) both}
}
@keyframes tour-star-pop{from{transform:scale(.2) rotate(-30deg);opacity:0}to{transform:none;opacity:1}}

/* Home: Jetzt spielen + Sticky Tour on top, the three smaller entries below. */
@media(min-width:900px) and (min-height:600px){
#app .home-links{grid-template-columns:repeat(6,minmax(0,1fr))}
#app .home-links #start,#app .home-links #start-tour{grid-column:span 3}
#app .home-links #play-online,#app .home-links #show-howto,#app .home-links #open-equipment,#app .home-links #open-settings{
  grid-column:span 2;height:calc(var(--home-button-height)*.72);min-height:calc(var(--home-button-height)*.72);max-height:calc(var(--home-button-height)*.72)}
#app .home-links #play-online,#app .home-links #show-howto,#app .home-links #open-equipment,#app .home-links #open-settings{padding:12px 11%;font-size:17px;gap:8px}
#app .home-links :is(#play-online,#show-howto,#open-equipment,#open-settings) svg{width:24px;height:24px}
#app .home-links #start-tour .home-button-copy small{color:#39515A}
}

/* The tour screens bring their own header; hide the global settings/sound buttons there. */
#app:has(#tour-map:not([hidden])) .header-actions{display:none}
/* Five home buttons: never squash the last one, let the screen scroll if it must. */
#app .home-links{flex-shrink:0}
#app .home-links>button{flex-shrink:0}
/* Phones: portrait stacks five rows; short landscape keeps two rows (2 + 3). */
@media(max-width:760px){
  #app #welcome .home-links{grid-template-rows:repeat(5,minmax(0,1fr));max-height:470px}
}
@media(orientation:landscape) and (max-height:540px){
  #app #welcome .home-links{grid-template-columns:repeat(6,minmax(0,1fr))}
  #app #welcome .home-links #start,#app #welcome .home-links #start-tour{grid-column:span 3}
  #app #welcome .home-links :is(#play-online,#show-howto,#open-equipment,#open-settings){grid-column:span 2;padding-inline:8%;font-size:12px}
  #app #welcome .home-links :is(#play-online,#show-howto,#open-equipment,#open-settings) small{display:none}
}

/* Result: stars land one by one; then the racket part show. */
@media(prefers-reduced-motion:no-preference){
  .tour-result-goal{animation:tour-row-in .35s var(--tour-delay,0ms) both}
  .tour-result-reward,.tour-special{animation:tour-row-in .4s var(--tour-delay,0ms) both}
}
@keyframes tour-row-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tour-result-hint{margin:0 0 8px;font-weight:800;font-size:13px;color:#425b37}
.tour-result-reward{position:relative;margin-top:12px;padding-top:10px;border-top:2px dashed #E0953666}

/* ── Part card (front of a flip card, map briefing) ── */
.tour-part-card{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;box-sizing:border-box;border-radius:16px;border:3px solid #0B1A18;
  background:#fff1d8;color:#0B1A18;text-align:left;font:inherit;box-shadow:0 4px 0 #0B1A18}
.tour-part-card[data-kind="frame"]{background:#FFE2B0}
.tour-part-card[data-kind="strings"]{background:#E7F3BE}
.tour-part-card[data-kind="grip"]{background:#D5F0FA}
.tour-part-picture{width:56px;height:96px;object-fit:contain;image-rendering:pixelated;flex:none}
.tour-part-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.tour-part-kind{font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#425b37}
.tour-part-name{font-family:var(--font-display,inherit);font-size:18px;line-height:1.1}
.tour-part-changes{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start}
.tour-part-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 7px 2px 3px;border-radius:999px;border:2px solid #0B1A18;background:#fff;font-size:12px;font-weight:900}
.tour-part-chip[data-sign="up"]{background:#CBE075}
.tour-part-chip[data-sign="down"]{background:#FFD0C8}
.tour-part-chip.is-even{padding:2px 8px}
.tour-part-chip svg{width:18px;height:18px}
.tour-part-task{font-style:normal;font-weight:800;font-size:13px;color:#7a3d12}
.tour-part-card.is-special{margin-top:8px;box-shadow:0 3px 0 #0B1A18}
.tour-part-card.is-special[data-owned="true"] .tour-part-task{color:#2f6a24}

/* ── The pick show: face-down cards, wobble, flip, flash ── */
.tour-pick-title{margin:0 0 8px;font-family:var(--font-display,inherit);font-size:22px;color:#0B1A18;text-align:center}
.tour-pick-left{margin:-4px 0 8px;font-weight:800;font-size:13px;color:#425b37;text-align:center}
.tour-pick-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;perspective:1100px;padding:6px 2px 10px}
.tour-flip{--glow:#5FD3F3;--edge:#2a8fb0;position:relative;min-height:236px;padding:0;cursor:pointer;transform-style:preserve-3d}
.tour-flip[data-rarity="epic"]{--glow:#C48CF0;--edge:#7a3fc2}
.tour-flip[data-rarity="legend"]{--glow:#FFC93C;--edge:#c47a00}
/* #app button paints every button with the comic panel; the flip card brings its own faces. */
#app button.tour-flip{border:0;border-radius:18px;background:none;box-shadow:none;filter:none;color:#0B1A18;font-weight:inherit}
.tour-flip-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform .52s cubic-bezier(.3,1.4,.5,1);border-radius:18px}
.tour-flip.is-revealed .tour-flip-inner{transform:rotateY(180deg)}
.tour-flip-back,.tour-flip-front{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:18px;overflow:hidden}
.tour-flip-back{display:grid;place-items:center;border:4px solid #FFC93C;background:#0B1A18;box-shadow:0 5px 0 #000,inset 0 0 0 4px #1d3a33}
.tour-flip-rays{position:absolute;inset:-60%;background:repeating-conic-gradient(from 0deg,#FFC93C22 0 10deg,transparent 10deg 20deg)}
.tour-flip-mark{position:relative;display:grid;place-items:center;width:78px;height:78px;border-radius:50%;background:#FF9F08;border:4px solid #FFC93C;
  color:#0B1A18;font-family:var(--font-display,inherit);font-size:52px;line-height:1;box-shadow:0 0 0 6px #0B1A18,0 0 28px #FFC93C99}
.tour-flip-front{transform:rotateY(180deg);flex-direction:column;justify-content:flex-start;padding:24px 8px 10px;text-align:center;
  border-color:var(--edge);box-shadow:0 5px 0 #0B1A18,0 0 0 3px var(--glow),0 0 26px var(--glow)}
.tour-flip-front .tour-part-text{align-items:center}
.tour-flip-front .tour-part-changes{justify-content:center}
.tour-flip-front .tour-part-picture{width:72px;height:116px;filter:drop-shadow(0 0 8px #fff)}
/* Narrow cards: chips show icon and number only (the stat name stays for screen readers). */
.tour-flip-front .tour-part-name{font-size:17px;overflow-wrap:anywhere;hyphens:auto}
.tour-flip-front .tour-part-chip{padding:1px 6px 1px 2px;font-size:12px}
.tour-flip-front .tour-part-chip .tour-chip-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tour-rarity{position:absolute;top:0;left:50%;transform:translateX(-50%);padding:3px 12px 4px;border-radius:0 0 12px 12px;background:var(--edge);color:#fff;
  font-weight:900;font-size:11px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.tour-shine{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 35%,#ffffffb0 48%,transparent 60%);transform:translateX(-120%)}
.tour-flash{position:absolute;inset:-30%;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#fff 0,var(--glow) 30%,transparent 65%);opacity:0;transform:scale(.3)}
#app button.tour-flip:focus-visible{outline:4px solid #254f36;outline-offset:4px}
@media(prefers-reduced-motion:no-preference){
  .tour-flip{animation:tour-deal .5s calc(var(--i,0)*110ms) cubic-bezier(.2,1.5,.5,1) both}
  .tour-flip.is-waiting .tour-flip-inner{animation:tour-wobble .32s calc(var(--i,0)*90ms) ease-in-out infinite}
  .tour-flip.is-waiting .tour-flip-rays{animation:tour-spin 6s linear infinite}
  .tour-flip.is-waiting .tour-flip-mark{animation:tour-pulse .7s ease-in-out infinite}
  .tour-flip.is-revealed .tour-flash{animation:tour-flash .6s .18s ease-out}
  .tour-flip.is-revealed .tour-shine{animation:tour-shine 1.1s .45s ease-in-out}
  .tour-flip[data-rarity="legend"].is-revealed .tour-shine,.tour-flip[data-rarity="epic"].is-revealed .tour-shine{animation:tour-shine 1.1s .45s ease-in-out,tour-shine 1.1s 2.6s ease-in-out infinite}
  .tour-flip.is-revealed:hover{transform:translateY(-6px) rotate(-1deg)}
  .tour-flip{transition:transform .18s,opacity .35s}
  .is-picked .tour-flip.is-chosen{transform:scale(1.12);z-index:2;transition:transform .35s cubic-bezier(.2,1.6,.5,1)}
  .is-picked .tour-flip.is-gone{transform:translateY(60px) rotate(8deg) scale(.8);opacity:0;transition:transform .45s ease-in,opacity .45s}
}
.is-picked .tour-flip.is-gone{pointer-events:none}
@keyframes tour-deal{from{opacity:0;transform:translateY(-70px) rotate(-14deg) scale(.6)}to{opacity:1;transform:none}}
@keyframes tour-wobble{0%,100%{transform:rotate(0)}25%{transform:rotate(-2.5deg) translateY(-2px)}75%{transform:rotate(2.5deg) translateY(-2px)}}
@keyframes tour-spin{to{transform:rotate(360deg)}}
@keyframes tour-pulse{50%{transform:scale(1.12)}}
@keyframes tour-flash{0%{opacity:.95;transform:scale(.3)}100%{opacity:0;transform:scale(1.4)}}
@keyframes tour-shine{to{transform:translateX(120%)}}

/* ── Frames: the painted bag on the card, a drum roll, a quake ── */
.tour-flip-front.has-art{padding-top:0}
.tour-frame-art{display:block;width:calc(100% + 16px);margin:0 -8px 4px;height:118px;overflow:hidden;border-bottom:3px solid var(--edge);background:#0B1A18}
.tour-frame-art img{width:100%;height:100%;object-fit:cover;object-position:62% 38%;transform:scale(1.35)}
.tour-flip-front.has-art>.tour-part-picture{display:none}
.tour-flip-front.has-art .tour-rarity{z-index:2}
.tour-frame-bolt{position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 40%,#ffffff 50%,transparent 60%);opacity:0;mix-blend-mode:overlay}
.tour-flip.is-frame .tour-flip-back{border-color:#C48CF0;box-shadow:0 5px 0 #000,inset 0 0 0 4px #2b1747,0 0 22px #C48CF066}
.tour-flip.is-frame .tour-flip-mark{background:#C48CF0;border-color:#FFF1D9}
@media(prefers-reduced-motion:no-preference){
  .tour-flip.is-drumroll .tour-flip-inner{animation:tour-drum .09s linear infinite}
  .tour-flip.is-drumroll .tour-flip-back{box-shadow:0 5px 0 #000,0 0 0 4px #C48CF0,0 0 46px #C48CF0}
  .tour-flip.is-drumroll .tour-flip-mark{animation:tour-pulse .25s ease-in-out infinite}
  .tour-flip.is-frame.is-revealed .tour-flash{animation:tour-flash .8s .15s ease-out;inset:-80%}
  .tour-flip.is-frame.is-revealed .tour-frame-bolt{animation:tour-bolt .9s .35s ease-out}
  .tour-flip.is-frame.is-revealed .tour-frame-art img{animation:tour-art-zoom 1.2s .2s cubic-bezier(.2,1,.4,1) both}
  .tour-pick-row.is-quake{animation:tour-quake .5s ease-out}
}
@keyframes tour-drum{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(-3px,1px) rotate(-3deg)}50%{transform:translate(2px,-2px) rotate(2deg)}75%{transform:translate(-2px,2px) rotate(-1deg)}100%{transform:translate(0,0)}}
@keyframes tour-quake{0%,100%{transform:none}20%{transform:translate(-6px,2px)}40%{transform:translate(5px,-3px)}60%{transform:translate(-3px,2px)}80%{transform:translate(2px,-1px)}}
@keyframes tour-bolt{0%{opacity:0;transform:translateX(-80%)}30%{opacity:1}100%{opacity:0;transform:translateX(80%)}}
@keyframes tour-art-zoom{from{transform:scale(2.2)}to{transform:scale(1.35)}}

/* ── The win: rays, glow, NEU! stamp, confetti ── */
.tour-pick-done{--glow:#5FD3F3;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.tour-pick-done[data-rarity="epic"]{--glow:#C48CF0}
.tour-pick-done[data-rarity="legend"]{--glow:#FFC93C}
.tour-win-stage{position:relative;display:grid;place-items:center;width:210px;height:210px}
.tour-win-rays{position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,var(--glow) 0 12deg,transparent 12deg 24deg);
  -webkit-mask:radial-gradient(circle,#000 18%,transparent 70%);mask:radial-gradient(circle,#000 18%,transparent 70%)}
.tour-win-glow{position:absolute;inset:22%;border-radius:50%;background:radial-gradient(circle,#fff,var(--glow) 55%,transparent 72%)}
.tour-win-stage .tour-part-picture{position:relative;width:96px;height:156px;filter:drop-shadow(0 0 10px #fff) drop-shadow(0 4px 0 #0B1A18)}
.tour-stamp{position:absolute;right:-6px;top:14px;padding:4px 12px 6px;border:4px solid #0B1A18;border-radius:12px;background:#FF5A4E;color:#fff;
  font-family:var(--font-display,inherit);font-size:24px;transform:rotate(12deg);box-shadow:0 4px 0 #0B1A18}
.tour-win-name{margin:4px 0 0;font-size:28px}
.tour-win-kind{margin:0 0 8px;font-weight:900;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#425b37}
.tour-confetti{position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;z-index:5}
.tour-confetti i{position:absolute;width:9px;height:14px;border-radius:2px;opacity:0;animation:tour-confetti 1.6s var(--d,0ms) cubic-bezier(.15,.7,.4,1) forwards}
@keyframes tour-confetti{0%{opacity:1;transform:translate(0,0) rotate(0)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + 260px)) rotate(var(--r))}}
@media(prefers-reduced-motion:no-preference){
  .tour-win-rays{animation:tour-spin 7s linear infinite,tour-pop .5s cubic-bezier(.2,1.6,.5,1) both}
  .tour-win-glow{animation:tour-pulse 1.4s ease-in-out infinite}
  .tour-win-stage .tour-part-picture{animation:tour-hero-in .6s cubic-bezier(.2,1.7,.5,1) both}
  .tour-stamp{animation:tour-stamp .4s .45s cubic-bezier(.2,1.8,.5,1) both}
  .tour-win-name,.tour-win-kind,.tour-pick-equip{animation:tour-row-in .4s .6s both}
}
@keyframes tour-pop{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes tour-hero-in{0%{transform:scale(0) rotate(-30deg)}70%{transform:scale(1.25) rotate(6deg)}100%{transform:none}}
@keyframes tour-stamp{from{opacity:0;transform:rotate(12deg) scale(3)}to{opacity:1;transform:rotate(12deg) scale(1)}}
/* Frame win: the bag as a lit vitrine. */
.tour-win-stage.is-frame{width:min(420px,92vw);height:250px}
.tour-win-vitrine{position:relative;display:block;width:min(330px,82vw);aspect-ratio:3/2;border-radius:16px;overflow:hidden;border:5px solid #FFF1D9;
  box-shadow:0 0 0 4px #0B1A18,0 0 40px var(--glow),0 8px 0 #0B1A18;background:#0B1A18}
.tour-win-vitrine img{width:100%;height:100%;object-fit:cover}
.tour-win-stage.is-frame .tour-stamp{right:-2px;top:-6px;font-size:20px}
.tour-win-quote{margin:-2px 0 2px;font-weight:800;font-style:italic;font-size:14px;color:#425b37}
.tour-pick-done>.tour-part-changes{justify-content:center;margin-bottom:6px}
@media(prefers-reduced-motion:no-preference){
  .tour-win-vitrine{animation:tour-vitrine-in .8s cubic-bezier(.2,1.5,.4,1) both}
  .tour-win-vitrine img{animation:tour-art-zoom 1.4s cubic-bezier(.2,1,.4,1) both}
  .tour-win-vitrine .tour-shine{animation:tour-shine 1.1s .7s ease-in-out,tour-shine 1.1s 3s ease-in-out infinite}
}
@keyframes tour-vitrine-in{0%{transform:scale(.2) rotate(-12deg);opacity:0}60%{transform:scale(1.08) rotate(3deg);opacity:1}100%{transform:none}}
#app .tour-pick-equip{border:0;box-shadow:none;min-width:220px;min-height:64px;padding:10px 28px 16px;filter:drop-shadow(0 5px 8px #0007);cursor:pointer;
  font-family:var(--font-display,inherit);font-size:18px;color:#0B1A18;background:transparent url('../ui/comic-controls-neutral/play.webp') center/100% 100% no-repeat}
.tour-pick-equip:focus-visible{outline:4px solid #254f36;outline-offset:3px}

/* Special part right in the result: a golden card that turns over by itself. */
.tour-special{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:12px;padding:10px 12px 14px;border-radius:18px;border:3px solid #0B1A18;
  background:radial-gradient(circle at 50% 60%,#FFE9A8,#FFC93C);box-shadow:0 4px 0 #0B1A18}
.tour-special .tour-flip{width:min(200px,70%);cursor:default}
.tour-special-text{margin:0;font-family:var(--font-display,inherit);font-size:20px;color:#0B1A18}

/* Result: the pick as a full-screen stage with a spotlight. */
.tour-reward-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;box-sizing:border-box;
  background:radial-gradient(circle at 50% 45%,#2d5a4ecc,#0B1A18f2 65%)}
.tour-reward-overlay[hidden]{display:none}
.tour-reward-box{width:min(640px,100%);display:flex;flex-direction:column;align-items:center;gap:6px;overflow:visible}
.tour-reward-box .tour-result-reward{width:100%;margin:0;padding:0;border:0}
#app .tour-reward-later{min-height:44px;padding:6px 18px;border:0;background:none;color:#425b37;font-weight:900;font-size:15px;text-decoration:underline;cursor:pointer}
.tour-reward-later:focus-visible{outline:3px solid #254f36;outline-offset:2px}
@media(prefers-reduced-motion:no-preference){
  .tour-reward-overlay:not([hidden]){animation:tour-fade-in .3s ease-out}
  .tour-reward-overlay:not([hidden]) .tour-reward-box{animation:tour-hero-in .5s cubic-bezier(.2,1.5,.5,1)}
}
@keyframes tour-fade-in{from{opacity:0}to{opacity:1}}

/* Map: the pick as a sheet over the map. */
.tour-skills[hidden]{display:none}
.tour-pick-layer{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:#0B1A18cc}
.tour-pick-layer[hidden]{display:none}
.tour-pick-box{position:relative;width:min(600px,100%);max-height:100%;overflow:auto;box-sizing:border-box;padding:18px 16px 16px;border-radius:22px;border:4px solid #0B1A18;background:#FFF1D9;box-shadow:0 6px 0 #0B1A18}
.tour-pick-close{position:absolute;top:8px;right:8px;width:48px;height:48px;font-size:18px;cursor:pointer;z-index:3}
.tour-pick-close:focus-visible{outline:4px solid #254f36;outline-offset:2px}
/* Phones: three slim cards side by side still read; shorter cards, smaller text. */
@media(max-width:520px){
  .tour-pick-row{gap:7px}
  .tour-flip{min-height:246px}
  .tour-flip-front{padding:22px 4px 8px}
  .tour-flip-front .tour-part-picture{width:52px;height:88px}
  .tour-flip-front .tour-part-name{font-size:13px;overflow-wrap:normal;letter-spacing:-.01em}
  .tour-flip-front .tour-part-kind{font-size:10px}
  .tour-flip-front .tour-part-chip{font-size:10px;padding:1px 5px 1px 2px}
  .tour-flip-front .tour-part-chip svg{width:14px;height:14px}
  .tour-rarity{font-size:9px;padding:2px 8px 3px}
  .tour-flip-mark{width:58px;height:58px;font-size:38px}
}

/* Wide result screen: the stars sit beside the score, so the buttons stay on screen. */
@media(min-width:981px){
  #match-result[data-tour="true"] .result-sheet{display:contents}
  #app #match-result[data-tour="true"] .result-layout{grid-template-rows:auto 1fr}
  #app #match-result[data-tour="true"] .result-content{grid-column:1;grid-row:1}
  #app #match-result[data-tour="true"] .result-navigation{grid-column:1;grid-row:2;align-self:start;margin-top:0}
  #app #match-result[data-tour="true"] .result-status,#app #match-result[data-tour="true"] .result-account-prompt{grid-column:1;grid-row:3}
  #app #match-result[data-tour="true"] .result-tour{grid-column:2;grid-row:1;margin:0;align-self:start}
  #app #match-result[data-tour="true"] .result-card-panel{grid-column:2;grid-row:2;align-self:start}
}
