/* The Campaign join screen (js/side-join.js, docs/reports/side-join.md): field-journal red, black and white. Item plates
   follow css/plates.css (inked frame, corner ticks, eyebrow strip with pips, picture, name). */

/* ---- the two side cards: each nation's War Bond is the hero (Gage 11-04: "It shows the pass, and it looks fancy") ---- */
.war .sj-card { position: relative; overflow: hidden; }
.war .sj-card .wps-flag { width: 48px; height: 32px; margin-bottom: 2px; }
.war .wp-side em.full { color: #ffb4a8; }
.war .sj-card.full { filter: none; }
.war .sj-card.full .sj-bondcard, .war .sj-card.full .wps-flag { opacity: 1; }
.war .sj-card.full::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #0d0b0900 0 10px, #0d0b0933 10px 12px); pointer-events: none; }
.sj-stamp { position: absolute; top: 62%; left: 50%; z-index: 1; transform: translate(-50%, -50%) rotate(-12deg); padding: 4px 12px 2px; font: 400 22px/1 var(--display); font-style: normal; letter-spacing: .16em; text-transform: uppercase;
  color: #f4efe4; background: #8f1d18e6; border: 2px solid #f4efe4; outline: 2px solid #0d0b09; box-shadow: 3px 3px 0 #0d0b09; pointer-events: none; }
.sj-stamp.big { position: relative; display: block; width: max-content; margin: 2px auto 12px; top: auto; left: auto; transform: rotate(-4deg); font-size: 28px; }
.sj-full-note { margin: 10px 0 0 !important; padding: 8px 10px; font-size: 12px; line-height: 1.4; color: #f4efe4; background: #3a1210; border-left: 4px solid #d52b1e; }

/* ---- the draft row ---- */
.sj-draft { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 10px 10px 12px; background: linear-gradient(90deg, #1b1714, #110f0d); border: 1px solid #ae977066; box-shadow: inset 0 0 0 2px #0d0b09; }
.sj-draft > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sj-draft b { font: 400 16px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #f4efe4; }
.sj-draft small { font-size: 12px; line-height: 1.3; color: #c9b99c; }
.sj-draft .btn { flex: none; min-height: 44px; padding: 0 14px; }

/* ---- the sheets ---- */
.sj-sheet .setup-body { display: grid; gap: 10px; }
.sj-sheet .setup-head .command-eyebrow svg { width: 32px; height: 23px; }
.sj-sheet .setup-head h2 { font-size: 30px; }
.sj-sheet.us .setup-head { box-shadow: inset 0 -3px 0 #3c6fc4; }
.sj-sheet.ca .setup-head { box-shadow: inset 0 -3px 0 #d52b1e; }
.sj-h { margin: 4px 0 0; font: 400 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #c9b99c; display: flex; align-items: center; gap: 8px; }
.sj-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #ae977088, transparent); }
.sj-line { margin: 0; font-size: 12px; line-height: 1.45; color: #e6dccb; }
.sj-bond { display: flex; gap: 10px; align-items: center; margin: 2px 0 0; padding: 9px 10px; font-size: 12px; line-height: 1.45; color: #f4efe4; background: #16130f; border: 1px dashed #c9a64a88; }
.sj-bond svg { width: 28px; height: 28px; flex: none; }
.sj-full { display: flex; gap: 10px; align-items: center; padding: 10px; background: #3a1210; border: 2px solid #d52b1e; box-shadow: 3px 3px 0 #0d0b09; }
.sj-full i { flex: none; padding: 4px 8px 2px; font: 400 18px/1 var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #f4efe4; background: #d52b1e; transform: rotate(-4deg); }
.sj-full p { margin: 0; font-size: 12px; line-height: 1.4; color: #f4efe4; }
.sj-sheet .setup-footer { flex-wrap: wrap; }
.sj-sheet .btn[disabled] { opacity: .55; cursor: not-allowed; }
.sj-sheet .setup-footer .sj-nope { flex: 1 0 100%; grid-column: 1 / -1; width: 100%; box-sizing: border-box; display: grid; gap: 2px; justify-items: center; min-height: 48px; padding: 6px 10px; background: #1b1714; color: #f4efe4; border: 1px solid #ae977088; }
.sj-nope small { font: 12px/1.2 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--gold, #e0b04a); }

/* ---- item plates ---- */
.sj-set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sj-free { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sj-plate { display: grid; gap: 5px; align-content: start; padding: 0 0 7px; min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--spin-color) 70%, #24201b);
  background:
    linear-gradient(var(--spin-color), var(--spin-color)) 4px 25px / 9px 2px no-repeat, linear-gradient(var(--spin-color), var(--spin-color)) 4px 25px / 2px 9px no-repeat,
    linear-gradient(var(--spin-color), var(--spin-color)) calc(100% - 4px) 25px / 9px 2px no-repeat, linear-gradient(var(--spin-color), var(--spin-color)) calc(100% - 4px) 25px / 2px 9px no-repeat,
    radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--spin-color) 22%, transparent), transparent 70%),
    linear-gradient(170deg, #241e19, #12100e);
  box-shadow: inset 0 0 0 3px var(--plate-ink, #0c0b0a), inset 0 0 0 4px color-mix(in srgb, var(--spin-color) 38%, transparent), 0 3px 0 #070605; }
.sj-pic { display: grid; place-items: center; width: calc(100% - 14px); aspect-ratio: 3 / 2; margin: 4px auto 0; overflow: hidden; }
.sj-pic > img, .sj-pic > canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.sj-pic.flag > img { object-fit: cover; border: 1px solid #0d0b09; box-shadow: 0 2px 0 #0007; }
.sj-plate .rp-text b { font-size: 16px; padding: 0 6px; }
.sj-plate .rp-text small { font-size: 10px; letter-spacing: .06em; padding: 0 6px; }
.sj-plate.big .rp-text b { font-size: 18px; }

/* ---- the draft bonus ---- */
.sj-comp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sj-comp li { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; text-align: center; background: linear-gradient(170deg, #241e19, #12100e); border: 1px solid #c9a64a88; box-shadow: inset 0 0 0 2px #0c0b0a; min-width: 0; }
.sj-comp i { display: grid; place-items: center; width: 30px; height: 30px; }
.sj-comp i svg { width: 28px; height: 28px; }
.sj-comp b { font: 400 17px/1.05 var(--display); color: #fbf4e4; overflow-wrap: anywhere; }
.sj-comp small { font-size: 10px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #c9b99c; }
.sj-orders { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #f4efe4; color: #0d0b09; border: 2px solid #0d0b09; box-shadow: 3px 3px 0 #0d0b09; transform: rotate(-.6deg); }
.sj-orders .war-flag { display: block; width: 54px; height: 36px; flex: none; margin: 0; transform: none; }
.sj-orders .war-flag svg { width: 100%; height: 100%; display: block; }
.sj-orders > div { min-width: 0; }
.sj-orders small { display: block; font: 400 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #8f1d18; }
.sj-orders b { display: block; font: 400 22px/1.1 var(--display); text-transform: uppercase; }

@media (max-width: 359px) {
  .sj-draft { flex-wrap: wrap; } .sj-draft .btn { flex: 1 0 100%; }
  .sj-plate .rp-text b { font-size: 14px; } .sj-comp b { font-size: 15px; } .sj-stamp { font-size: 18px; }
  .sj-sheet .setup-head h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .sj-orders, .sj-stamp.big { transform: none; } }

/* ---- the War Bond card: the crest (a gold-winged shield bearing the country's flag), the bond's name, its standout rewards as pictures,
   in a gold frame with a soft glow and a shine that sweeps across it ---- */
.sj-bondcard { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: start; gap: 4px; width: 100%; box-sizing: border-box; margin: 6px 0 2px; padding: 8px 6px 7px; text-align: center; color: #fff;
  border: 2px solid #e2b54e; border-radius: 3px; box-shadow: inset 0 0 0 1px #2a1d05, inset 0 0 0 3px #f6dc8a40, 0 0 18px #f2c84b47, 0 3px 0 #070605; }
.sj-bondcard.us { background: radial-gradient(ellipse at 50% 16%, #4b78d0b0, transparent 60%), linear-gradient(165deg, #1f3a7a, #0e1b3c 58%, #3a1015); }
.sj-bondcard.ca { background: radial-gradient(ellipse at 50% 16%, #ff6f5c90, transparent 60%), linear-gradient(165deg, #b3261c, #4c0e0a 58%, #160b09); }
.sj-bondcard::before { content: ''; position: absolute; inset: 4px; z-index: -1; pointer-events: none; border: 1px solid #ffe08a33;
  background: linear-gradient(#ffe08a, #ffe08a) 0 0 / 8px 1.5px no-repeat, linear-gradient(#ffe08a, #ffe08a) 0 0 / 1.5px 8px no-repeat, linear-gradient(#ffe08a, #ffe08a) 100% 0 / 8px 1.5px no-repeat, linear-gradient(#ffe08a, #ffe08a) 100% 0 / 1.5px 8px no-repeat,
    linear-gradient(#ffe08a, #ffe08a) 0 100% / 8px 1.5px no-repeat, linear-gradient(#ffe08a, #ffe08a) 0 100% / 1.5px 8px no-repeat, linear-gradient(#ffe08a, #ffe08a) 100% 100% / 8px 1.5px no-repeat, linear-gradient(#ffe08a, #ffe08a) 100% 100% / 1.5px 8px no-repeat; }
.sj-shine { position: absolute; top: -30%; bottom: -30%; left: -70%; width: 46%; z-index: 3; pointer-events: none; background: linear-gradient(100deg, transparent, #fff3c840 42%, #ffffff8c 50%, #fff3c840 58%, transparent); transform: skewX(-18deg); mix-blend-mode: screen; animation: sj-shine 3.8s ease-in-out infinite; }
@keyframes sj-shine { 0%, 52% { translate: 0 0; } 100% { translate: 470% 0; } }
.sj-crest { display: block; width: 60px; height: 60px; margin-top: -2px; filter: drop-shadow(0 3px 0 #000b) drop-shadow(0 0 10px #f2c84b70); }
.sj-crest svg { display: block; width: 100%; height: 100%; }
.sj-bondname { font: 400 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #ffe08a; text-shadow: 0 2px 0 #000, 0 0 10px #f2c84b66; }
.sj-heroes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; }
.sj-hero { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; }
.sj-hero-pic { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #ffffff1c, #0000004d 70%); border: 1px solid #e2b54e99; box-shadow: inset 0 0 0 1px #000a; }
.sj-hero-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sj-hero.gold .sj-hero-pic { border-color: #ffd36e; box-shadow: inset 0 0 0 1px #000a, inset 0 0 14px #ffd36e66, 0 0 8px #ffd36e55; }
.sj-hero b { font: 400 14px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fbf4e4; overflow-wrap: anywhere; }
.sj-hero small { font: 400 9.5px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f1e2bd; }
.sj-hero.gold small { color: #ffd36e; }
.sj-bondline { font: 400 11px/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff6dc; }
.war .wp-side .sj-bondcard b.sj-bondname { font-size: 17px; }
.sj-bondcard.big { padding: 12px 10px 10px; gap: 6px; }
.sj-bondwrap { display: block; min-width: 0; } /* the sheet's grid item: a card with overflow hidden as a grid item itself shrank to nothing in the height-limited scroll body */
.sj-bondcard.big .sj-crest { width: 96px; height: 96px; }
.sj-bondcard.big .sj-bondname { font-size: 26px; }
.sj-bondcard.big .sj-heroes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sj-bondcard.big .sj-bondline { font-size: 12px; }
@media (max-width: 359px) { .sj-crest { width: 50px; height: 50px; } .sj-bondname { font-size: 15px; } .sj-hero small { font-size: 8.5px; } .sj-bondcard.big .sj-bondname { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .sj-shine { display: none; } }
.sj-bondcard.calm .sj-shine { display: none; }
