/* Glass Bead Game — deck frames (v1.9). The Stark Symbolic frame lives in cards.html; these override it per deck. */

/* ───────────── Morris Garden ───────────── */
.gcard.morris { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='%231c3a24'/%3E%3Cpath d='M0 14 C7 4 21 24 28 14' fill='none' stroke='%23577f31' stroke-width='1.6'/%3E%3Cpath d='M7 9 c3 -5 9 -5 10 0 c-3 4 -8 4 -10 0Z' fill='%236f9a3c'/%3E%3Cpath d='M14 19 c3 5 9 5 10 0 c-3 -4 -8 -4 -10 0Z' fill='%236f9a3c'/%3E%3Ccircle cx='4' cy='20' r='2.4' fill='%23b0302a'/%3E%3Ccircle cx='24' cy='7' r='2.4' fill='%23e2a823'/%3E%3C/svg%3E") 0 0 / 7cqw 7cqw, #1c3a24;
  box-shadow:0 0 0 .5cqw #c9a227, 0 6px 18px rgba(0,0,0,.6) }
.gcard.morris .frame { background:linear-gradient(170deg,#f7ecd2,#efdfb9 60%,#e8d2a2);
  box-shadow:inset 0 0 0 .6cqw #22356b, inset 0 0 0 1.1cqw #c9a227, inset 0 0 0 1.5cqw #b0302a, inset 0 0 5cqw rgba(60,40,10,.35) }
.gcard.morris .frame::after { opacity:.12 }
.gcard.morris .bar, .gcard.morris .type { background:linear-gradient(#fbf3de,#f0e0b8); box-shadow:inset 0 0 0 .5cqw #22356b, inset 0 0 0 .9cqw #c9a227 }
.gcard.morris .name { color:#22356b }
.gcard.morris .type { color:#3a2a10 }
.gcard.morris .type .set { border-color:#b0302a; background:radial-gradient(circle,#e2a823 35%,transparent 40%) }
.gcard.morris .art { box-shadow:inset 0 0 0 .6cqw #22356b, 0 0 0 .6cqw #c9a227, 0 0 0 1.1cqw #b0302a }
.gcard.morris .ribbon { background:linear-gradient(transparent, rgba(20,30,60,.82)) }
.gcard.morris .text { background:
    radial-gradient(circle at 92% 88%, rgba(79,122,44,.18) 0 12%, transparent 13%),
    linear-gradient(#fdf8ea,#f5ead0); box-shadow:inset 0 0 0 .4cqw #22356b, inset 0 0 3cqw rgba(176,48,42,.12) }
.gcard.morris .text .sw b { color:#b0302a }
.gcard.morris .text .rule { background:linear-gradient(90deg,transparent,#4f7a2c,transparent) }
.gcard.morris .pt { background:linear-gradient(#c23a30,#8e231c); color:#fbf1d8; box-shadow:inset 0 0 0 .45cqw #e2a823, 0 .5cqw 1cqw rgba(0,0,0,.3) }
.gcard.morris .pt small { color:#f6dfa8 }
.gcard.morris .foot { color:#22356b }

/* ───────────── Jugendstil Glass ───────────── */
.gcard.nouveau { border-radius:6% / 4.3%;
  background:conic-gradient(from 200deg at 50% 60%, #0d3b4a, var(--dd), #3c1d4a, #0d3b4a);
  box-shadow:inset 0 0 0 .9cqw #121212, 0 0 0 .4cqw #d4a93e, 0 6px 18px rgba(0,0,0,.6) }
.gcard.nouveau .frame { border-radius:40cqw 40cqw 3cqw 3cqw / 16cqw 16cqw 3cqw 3cqw;
  background:linear-gradient(170deg, var(--dl), #e9b949 38%, #2f7a6a 75%, var(--dd));
  box-shadow:inset 0 0 0 1cqw #121212, inset 0 0 0 1.5cqw #d4a93e, inset 0 0 0 2.2cqw #121212 }
.gcard.nouveau .frame::after { opacity:0 }
.gcard.nouveau .bar { margin:0 4cqw; border-radius:50%/50%; background:linear-gradient(#fbe7a8,#e3b23c); box-shadow:inset 0 0 0 .7cqw #121212, 0 .6cqw 1.4cqw rgba(0,0,0,.35) }
.gcard.nouveau .name { color:#141414; font-variant:small-caps; letter-spacing:.06em; text-align:center }
.gcard.nouveau .cost { box-shadow:0 0 0 .6cqw #121212 }
.gcard.nouveau .art { border-radius:40cqw 40cqw 2cqw 2cqw / 22cqw 22cqw 2cqw 2cqw; box-shadow:inset 0 0 0 .9cqw #121212, 0 0 0 .6cqw #d4a93e, 0 0 0 1.4cqw #121212 }
.gcard.nouveau .ribbon { background:linear-gradient(transparent, rgba(10,10,10,.8)); letter-spacing:.04em }
.gcard.nouveau .type { background:linear-gradient(90deg,#c9e6d8,#fbe7a8,#c9e6d8); box-shadow:inset 0 0 0 .6cqw #121212; color:#141414; font-variant:small-caps; letter-spacing:.05em }
.gcard.nouveau .type .set { border-color:#121212; background:var(--dc) }
.gcard.nouveau .text { background:linear-gradient(160deg, rgba(255,250,232,.97), rgba(250,236,196,.95)); box-shadow:inset 0 0 0 .7cqw #121212, inset 0 0 0 1.1cqw #d4a93e; border-radius:2cqw 2cqw 6cqw 6cqw / 2cqw 2cqw 5cqw 5cqw }
.gcard.nouveau .text .sw b { color:var(--dd) }
.gcard.nouveau .text .rule { background:linear-gradient(90deg,transparent,#121212,transparent) }
.gcard.nouveau .pt { border-radius:50%; width:12cqw; height:12cqw; padding:0; justify-content:center; background:radial-gradient(circle at 35% 30%,#fff7d0,#e3b23c 60%,#8a6420); color:#141414; box-shadow:inset 0 0 0 .6cqw #121212 }
.gcard.nouveau .pt small { display:none }
.gcard.nouveau .foot { color:#f6efd8; text-shadow:0 1px 2px #000; padding-left:3cqw }

/* ───────────── Tarot of Castalia ───────────── */
.gcard.tarot { aspect-ratio:70/120; border-radius:3.5% / 2%; background:#fbf7ea; box-shadow:0 0 0 1px #cbbd96, 0 6px 18px rgba(0,0,0,.55) }
.gcard.tarot .frame { inset:4cqw; border-radius:0; gap:0; padding:0; background:#fff; box-shadow:0 0 0 .7cqw #111; display:flex; flex-direction:column }
.gcard.tarot .frame::after { display:none }
.gcard.tarot .numeral { flex:0 0 auto; text-align:center; font-family:var(--serif); font-weight:700; font-size:8.5cqw; line-height:1.25; color:#111; border-bottom:.7cqw solid #111; letter-spacing:.08em; background:#fff }
.gcard.tarot .art { flex:1 1 auto; aspect-ratio:auto; border-radius:0; box-shadow:none; min-height:0 }
.gcard.tarot .title { flex:0 0 auto; text-align:center; font-family:var(--serif); font-weight:700; font-size:7cqw; letter-spacing:.07em; line-height:1.1; padding:1.8cqw 2cqw 1.6cqw; color:#111; border-top:.7cqw solid #111; background:#fff }
.gcard.tarot.mini .title { font-size:7.6cqw }
.reading { width:min(92vw,420px); background:#fbf7ea; color:#2a1f10; border:2px solid #111; border-radius:6px; padding:12px 14px; font-size:.9rem; line-height:1.45 }
.reading p { margin:0 0 .45rem } .reading b { font-variant:small-caps; letter-spacing:.06em; color:#8e231c; margin-right:.3rem }
.reading .plain { font-weight:600 } .reading .q { font-family:var(--serif); font-style:italic; font-size:1.05rem } .reading .by { font-size:.78rem; color:#6e4c27; margin:0 }

/* ───────────── start screen: deck chooser and Deal themed per deck ───────────── */
.deckrow { display:flex; gap:10px; align-items:stretch; margin:12px 0 4px; flex-wrap:wrap }
.deckrow label { flex:1 1 220px; display:flex; align-items:center; gap:10px; padding:0 12px; min-height:48px; border-radius:10px; font-family:var(--serif); font-size:1.05rem; font-weight:600; letter-spacing:.03em }
.deckrow select { flex:1; min-width:0; appearance:none; -webkit-appearance:none; background:transparent; border:0; font:inherit; color:inherit; padding:10px 22px 10px 0; cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%); background-position:calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size:5px 5px; background-repeat:no-repeat }
.deckrow select option { color:#1a140c; background:#f4e8cc }
.deckrow #deal { flex:0 0 auto; min-width:120px; font-family:var(--serif); font-size:1.15rem; letter-spacing:.06em }
.decknote { font-size:.8rem; color:#a8987c; margin:2px 2px 10px; min-height:1em }
/* stark */
body[data-deck="stark"] .deckrow label { background:rgba(241,226,191,.06); border:1px solid rgba(184,137,46,.45); color:#f1e2bf }
/* morris */
body[data-deck="morris"] .deckrow label, body[data-deck="morris"] #deal {
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect width='36' height='36' fill='%231c3a24'/%3E%3Cpath d='M0 18 C9 6 27 30 36 18' fill='none' stroke='%23577f31' stroke-width='2'/%3E%3Cpath d='M9 11 c4 -6 11 -6 13 0 c-4 5 -10 5 -13 0Z' fill='%236f9a3c'/%3E%3Ccircle cx='5' cy='26' r='3' fill='%23b0302a'/%3E%3Ccircle cx='31' cy='9' r='3' fill='%23e2a823'/%3E%3C/svg%3E") 0 0/36px 36px;
  border:2px solid #c9a227; box-shadow:inset 0 0 0 2px #b0302a; color:#fbf1d8; text-shadow:0 1px 3px #000 }
body[data-deck="morris"] #deal { border-radius:100px }
/* nouveau */
body[data-deck="nouveau"] .deckrow label, body[data-deck="nouveau"] #deal {
  background:linear-gradient(120deg,#0d5c63 0 22%,#121212 22% 23%,#e3b23c 23% 48%,#121212 48% 49%,#7b2d6b 49% 74%,#121212 74% 75%,#1f5fa8 75%);
  border:3px solid #121212; box-shadow:0 0 0 2px #d4a93e, inset 0 0 18px rgba(255,246,216,.45); color:#fff8e4; text-shadow:0 1px 3px #000 }
body[data-deck="nouveau"] .deckrow label { border-radius:28px 28px 10px 10px }
body[data-deck="nouveau"] #deal { border-radius:50% / 60% }
/* tarot */
body[data-deck="tarot"] .deckrow label, body[data-deck="tarot"] #deal { background:#f2c43d; border:3px solid #111; box-shadow:0 0 0 3px #fbf7ea, 0 0 0 4px #b8892e; color:#111; text-transform:uppercase; font-size:.95rem; letter-spacing:.12em }
body[data-deck="tarot"] #deal { background:#c4302b; color:#fbf7ea; border-radius:6px }
@media (max-width:480px) {
  .deckrow label { flex:1 1 100%; font-size:1rem }
  .deckrow #deal { flex:1 1 100% }
}

/* ───────────── v1.9: every text deck laid out for print (63 × 88 mm) ───────────── */
/* "body" raises these above the Stark frame rules written inline in cards.html */
body .gcard:not(.tarot) .art { aspect-ratio:16/9 }
body .gcard:not(.tarot) .frame { gap:1.4cqw }
body .gcard .type { gap:1.4cqw }
body .gcard .type .tl { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
body .gcard .type .thr { display:inline-flex; align-items:baseline; gap:.6cqw; padding:.35cqw 1.8cqw .45cqw; border-radius:1.4cqw; flex-shrink:0;
  font-family:var(--serif); font-weight:700; font-size:4.4cqw; line-height:1.05; color:#2c1f10; background:linear-gradient(#fbf3df,#e2cb98); box-shadow:inset 0 0 0 .4cqw #8a6420 }
body .gcard .type .thr small { font-family:var(--sans); font-weight:600; font-size:2.3cqw; letter-spacing:.07em; text-transform:uppercase; color:#6e4c27 }
body .gcard.mini .type .thr small { display:none }
body .gcard .type .set { margin-left:0; flex-shrink:0 }
body .gcard .pt { display:none }
body .gcard .text { font-size:4.05cqw; line-height:1.3; padding:1.8cqw 2.8cqw }
body .gcard .text p { margin:0 0 .38em }
body .gcard .text .sw { grid-template-columns:1.05em 1fr; gap:.1em .3em; margin:0 0 .38em }
body .gcard .text .sw b { font-size:.95em; line-height:1.4 }
body .gcard .text .rule { height:.35cqw; margin:.4em 12% }
body .gcard .text .q { font-size:1.06em; line-height:1.2 }
body .gcard .text .by { font-size:.74em; margin-top:.2em }
body .gcard .text .formal { font-size:.86em }
body .gcard.mini .text { font-size:5cqw }
body .gcard.nouveau .art { aspect-ratio:2/1 }
body .gcard.nouveau .text { padding-bottom:3.2cqw }
body .gcard.nouveau .type .thr { color:#141414; background:radial-gradient(circle at 35% 30%,#fff7d0,#e3b23c 70%,#b8892e); box-shadow:inset 0 0 0 .5cqw #121212 }
body .gcard.nouveau .type .thr small { color:#3a2a10 }
/* Morris specifics */
.gcard.morris .frame { gap:1.4cqw }
.gcard.morris .type { gap:1.4cqw; padding:.7cqw 1.6cqw .7cqw 2.4cqw }
.gcard.morris .type .tl { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.gcard.morris .type .thr { display:inline-flex; align-items:baseline; gap:.6cqw; padding:.35cqw 1.8cqw .45cqw; border-radius:1.4cqw;
  font-family:var(--serif); font-weight:700; font-size:4.4cqw; line-height:1.05; color:#fbf1d8;
  background:linear-gradient(#c23a30,#8e231c); box-shadow:inset 0 0 0 .4cqw #e2a823 }
.gcard.morris .type .thr small { font-family:var(--sans); font-weight:600; font-size:2.3cqw; letter-spacing:.07em; text-transform:uppercase; color:#f6dfa8 }
.gcard.morris .type .set { margin-left:0; width:4.8cqw; height:4.8cqw; border:.55cqw solid #e2a823; background:linear-gradient(#c23a30,#8e231c); box-shadow:0 0 0 .3cqw #8e231c }
.gcard.morris.mini .type .thr small { display:none }
.gcard.morris .pt { display:none }
/* text box: every size in em, so one font-size scales the whole box when a card's text is long */
.gcard.morris .text { font-size:4.05cqw; line-height:1.3; padding:1.8cqw 2.8cqw }
.gcard.morris .text p { margin:0 0 .38em }
.gcard.morris .text .sw { grid-template-columns:1.05em 1fr; gap:.1em .3em; margin:0 0 .38em }
.gcard.morris .text .sw b { font-size:.95em; line-height:1.4 }
.gcard.morris .text .rule { height:.35cqw; margin:.4em 12% }
.gcard.morris .text .q { font-size:1.06em; line-height:1.2 }
.gcard.morris .text .by { font-size:.74em; margin-top:.2em }
.gcard.morris .text .formal { font-size:.86em }
.gcard.morris.mini .text { font-size:5cqw }
.gcard.morris .foot { gap:2cqw; padding:0 1.6cqw }
.gcard.morris .foot .cr { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-transform:none; letter-spacing:.02em; font-style:italic; font-family:var(--serif); font-size:3.1cqw }

