/* The look of every gift. Shared by the friend page (what the friend gets) and the editor
   (where the maker types straight into the same object). Ticket T9, 21 Nov 2026.
   Everything is scoped to .gl so it never clashes with the page around it. */
.gl {
  --ink: #3a2a22; --berry: #b3202a; --cream: #f6ecd9; --cream-shade: #e9dcc3; --gold: #dba843;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); text-align: left;
}
.gl * { box-sizing: border-box; }
/* Typing spots (edit mode). This rule comes first on purpose: each gift's own rules below
   (fonts, sizes, padding) win over it, so a typing spot looks exactly like the finished text. */
.gl .gl-in {
  display: block; width: 100%; margin-left: 0; margin-right: 0; padding: 0; border: 0; border-radius: 3px;
  font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; text-transform: none;
  background: transparent; resize: none; overflow: hidden; outline: none; -webkit-appearance: none; appearance: none;
}

.gl .paper { background: #fffaf0; border-radius: 6px; padding: 26px 24px 28px; }
.gl .paper .date { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); }
.gl .paper .gl-h { font-family: var(--display); font-weight: 650; font-size: 27px; line-height: 1.1; margin-top: 8px; text-wrap: balance; overflow-wrap: anywhere; }
.gl .paper .hand { font-family: var(--hand); font-size: 24px; line-height: 1.25; margin-top: 10px; overflow-wrap: anywhere; }

.gl .note {
  background:
    repeating-linear-gradient(transparent 0 31px, #eadccb 31px 32px) 0 54px,
    #fffaf0 url('/art/paper.svg') center / cover;
}
.gl .note .hand { line-height: 32px; margin-top: 14px; white-space: pre-line; }

.gl .link-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.gl .link-row .hand { margin-top: 0; flex: 1; min-width: 0; }
.gl .vinyl { flex: none; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, var(--cream) 0 5%, var(--berry) 5.5% 30%, transparent 30.5%), repeating-radial-gradient(circle, #1c1513 0 3px, #2c2320 3px 4px); animation: gl-spin 6s linear infinite; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
.gl .link-art { flex: none; width: 92px; height: 92px; }
.gl .link-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }

.gl .ticket {
  --ticket: #c3cfb4;
  background: var(--ticket); padding: 9px 13px; color: var(--ink);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) 0 0 / 51% 18px repeat-y, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 18px repeat-y;
  mask: radial-gradient(circle 6px at 0 50%, #0000 97%, #000) 0 0 / 51% 18px repeat-y, radial-gradient(circle 6px at 100% 50%, #0000 97%, #000) 100% 0 / 51% 18px repeat-y;
}
.gl .ticket-in { display: grid; grid-template-columns: 56px 1fr; border: 1.5px solid rgba(58,42,34,.55); border-radius: 4px; }
.gl .stub { display: grid; place-items: center; border-right: 1.5px solid rgba(58,42,34,.55); }
.gl .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 650; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.gl .ticket-main { padding: 16px 16px 14px; text-align: left; min-width: 0; }
.gl .ticket .cap { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.gl .ticket .gl-h { font-family: var(--display); font-weight: 650; font-size: 25px; line-height: 1.08; margin-top: 6px; text-wrap: balance; overflow-wrap: anywhere; }
.gl .ticket .by { font-family: var(--hand); font-size: 21px; line-height: 1.1; margin-top: 4px; }
.gl .ticket .fields { display: flex; gap: 22px; margin-top: 10px; }
.gl .ticket .fields b { display: block; font-family: var(--display); font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.gl .ticket .tnote { border-top: 1.5px solid rgba(58,42,34,.3); margin-top: 12px; padding-top: 10px; }
.gl .ticket .tnote .hand { font-family: var(--hand); font-size: 22px; line-height: 1.15; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }

/* photo gifts (placeholder looks; final artwork can replace the frames later) */
.gl .pg { padding: 12px 8px 16px; }
.gl .ph { display: block; width: 100%; object-fit: cover; background: #d9d2c3; }
.gl .ph-empty { background: radial-gradient(circle at 70% 30%, #fbe3a8 0 12%, transparent 13%), linear-gradient(160deg, #cfd9ea, #e9dcc3 60%, #c9b9a0); }
.gl .instant { max-width: 290px; margin: 0 auto; background: #fdfcf7; padding: 14px 14px 0; border-radius: 3px; transform: rotate(-1.5deg); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.gl .instant .ph { aspect-ratio: 1 / 1; }
.gl .cap-line { font-family: var(--hand); font-weight: 700; line-height: 1.1; text-align: center; overflow-wrap: anywhere; color: var(--ink); }
.gl .instant .cap-line { font-size: 27px; min-height: 76px; display: grid; place-items: center; padding: 8px 4px 12px; }
.gl .postcard { background: #fffaf0; border-radius: 4px; padding: 10px; }
.gl .postcard .ph { aspect-ratio: 3 / 2; border-radius: 2px; }
.gl .pc-back { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; padding: 14px 4px 6px; text-align: left; }
.gl .pc-msg { font-family: var(--hand); font-size: 23px; line-height: 1.2; white-space: pre-line; overflow-wrap: anywhere; border-right: 1.5px solid #e2d4bd; padding-right: 12px; min-height: 96px; }
.gl .pc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; }
.gl .pc-stamp { width: 54px; height: 64px; padding: 4px; background: #fff; border: 3px dotted var(--cream-shade); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gl .stamp-in { width: 100%; height: 100%; background: var(--berry); color: var(--gold); display: grid; place-items: center; align-content: center; line-height: 1; }
.gl .stamp-in b { font-family: var(--display); font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gl .stamp-in small { font-size: 8px; letter-spacing: .2em; font-weight: 600; margin-top: 2px; color: var(--cream); }
.gl .pc-to { width: 100%; font-family: var(--hand); font-size: 20px; line-height: 1.1; border-bottom: 1.5px solid #e2d4bd; padding-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl .strip { width: 178px; margin: 0 auto; background: #f7f3ea; padding: 10px 10px 0; border-radius: 2px; transform: rotate(1.5deg); }
.gl .strip .ph { aspect-ratio: 4 / 3; margin-bottom: 8px; filter: saturate(.88) contrast(1.04); }
.gl .strip .cap-line { font-size: 22px; padding: 2px 4px 12px; }
.gl .pg .when { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); text-align: center; margin-bottom: 10px; }

/* ---------- edit mode: the maker types straight into the object ---------- */
.gl .gl-in::placeholder { color: rgba(58,42,34,.45); opacity: 1; }
.gl .gl-in:placeholder-shown { box-shadow: 0 0 0 1.5px rgba(58,42,34,.18); }
.gl .gl-in:focus { box-shadow: 0 0 0 2px rgba(184,71,58,.55); background: rgba(255,255,255,.35); }
.gl.editing .note .hand { min-height: 224px; }
.gl.editing .ticket .tnote .hand { min-height: 26px; }
.gl.editing .pc-msg { border-radius: 0; }
.gl .gl-url { margin-top: 16px; font-family: var(--body); font-size: 16px; line-height: 1.3; padding: 11px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--berry) !important; background: #fff; }
.gl .gl-url:focus { box-shadow: inset 0 0 0 2px var(--berry), 0 0 0 3px rgba(184,71,58,.25) !important; }
.gl .stub-btn { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; width: 100%; height: 100%; display: grid; place-items: center; border-radius: 2px; }
.gl .stub-btn:hover, .gl .stub-btn:focus-visible { background: rgba(255,255,255,.3); }
.gl .ph-pick { position: relative; border: 2px dashed rgba(58,42,34,.35); background: #fff; color: var(--ink); font: 600 15px var(--body); cursor: pointer; display: grid; place-items: center; overflow: hidden; padding: 0; }
.gl .ph-pick.has { border: 0; }
.gl .ph-pick.over { border-color: var(--berry); background: #fbe3db; }
.gl .ph-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl .ph-pick .chg { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(36,50,79,.8); color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s; }
.gl .ph-pick:hover .chg, .gl .ph-pick:focus-visible .chg { opacity: 1; }
.gl .ph-slot { position: relative; }
.gl .ph-rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(36,50,79,.85); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.gl.editing .strip { width: 220px; }
.gl.sample, .gl.sample * { pointer-events: none; animation: none !important; }

/* ---------- reveal gifts: scratch card, riddle, fortune cookie (T11, T12) ----------
   Simple placeholder looks. Yule designs the real artwork later. */
.gl .link-btn { border: 0; cursor: pointer; font-family: var(--body); }
.gl .scratch { text-align: center; }
.gl .sc-top { font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1.1; margin-top: 8px; overflow-wrap: anywhere; }
.gl .sc-card { position: relative; margin-top: 16px; min-height: 150px; padding: 20px 18px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px #eadccb; display: grid; place-items: center; overflow: hidden; }
.gl .sc-msg { width: 100%; font-family: var(--hand); font-size: 28px; line-height: 1.15; text-align: center; white-space: pre-line; overflow-wrap: anywhere; }
.gl .sc-cover { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .5s; }
.gl .sc-cover.done { opacity: 0; pointer-events: none; }
.gl .sc-silver { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #c4c8ce, #eef0f3 50%, #b7bcc4); color: #7d838d; font: 700 15px var(--display); letter-spacing: .1em; }
.gl.editing .sc-card { min-height: 170px; }
.gl.editing .sc-top { min-height: 34px; }

.gl .riddle .rd-answer { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed #e2d4bd; }
.gl .riddle .rd-answer[hidden] { display: none; }
.gl .riddle .rd-answer .cap { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); }
.gl .riddle .rd-answer.show { animation: gl-pop .45s ease; }
.gl .riddle .link-btn { margin-top: 18px; }
.gl .riddle .link-btn[hidden] { display: none; }
@keyframes gl-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gl .cookie { text-align: center; }
.gl .ck-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin: 14px 0 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.gl button.ck-btn { cursor: pointer; }
.gl button.ck-btn:disabled { cursor: default; }
.gl .ck-art { width: 190px; height: auto; overflow: visible; }
.gl .ck-art g { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.gl .cracked .ck-l { transform: translate(-16px, 6px) rotate(-16deg); }
.gl .cracked .ck-r { transform: translate(16px, 6px) rotate(16deg); }
.gl .ck-hint { font-size: 13px; font-weight: 600; color: var(--berry); }
.gl .ck-hint[hidden] { display: none; }
.gl .ck-slip { margin: -8px auto 0; max-width: 300px; padding: 12px 16px; background: #fffdf7; border: 1.5px solid #e2d4bd; box-shadow: 0 2px 4px rgba(0,0,0,.12); transform: rotate(-1.5deg); }
.gl .ck-slip .hand { font-family: var(--hand); font-size: 25px; line-height: 1.2; white-space: pre-line; overflow-wrap: anywhere; }
.gl .cookie:not(.cracked) .ck-slip { display: none; }
.gl .cookie.cracked .ck-slip { animation: gl-pop .5s .15s ease both; }
.gl.editing .cookie .ck-slip { animation: none; }
.gl.editing .ck-slip .hand { min-height: 52px; }
.gl.sample .ck-art { width: 150px; }
@media (prefers-reduced-motion: reduce) {
  .gl .ck-art g, .gl .sc-cover { transition: none; }
  .gl .riddle .rd-answer.show, .gl .cookie.cracked .ck-slip { animation: none; }
}

/* ---------- the cassette gift (T22, look reworked in T37) ----------
   Yule's reference (../Ideas/cassette-reference.webp): a tilted sheet of lined notepaper with
   punched holes LIES ON TOP of a cream cassette whose one big patterned label fills the upper face.
   So the note and the tape are one stack here, not two cards with a gap.
   Every shape and pattern below is drawn in code and is my own work: nothing is traced or
   recoloured from the pictures in ../Ideas/ (RISKS.md). Four designs, one short word each
   (STYLE.md 9d); the server keeps the list. Final painted artwork can replace the drawing later.
   --cs-tile scales every label pattern, so the same CSS draws the big tape and the little
   tape pictures in the editor. */
.gl .cs {
  --cs-shell: #f2ece2; --cs-shell-dark: #ddd3c3; --cs-shell-edge: rgba(90,70,54,.26);
  --cs-label: #fffaf0; --cs-ink: #24324f; --cs-rule: #e8745f; --cs-tint: #cfe0e6;
  --cs-strip: #fffdf8; --cs-tile: 26px;
}
.gl .cs-cream { --cs-label: #fdf4e3; --cs-ink: #6f4f27; --cs-rule: #dba843; --cs-tint: #e4dfcd; }
.gl .cs-coral { --cs-label: #e8745f; --cs-ink: #7a2f26; --cs-rule: #b8473a; --cs-tint: #e7dcd5; }
.gl .cs-sage  { --cs-label: #bfcdb2; --cs-ink: #36422f; --cs-rule: #6f8363; --cs-tint: #dbe4d3; }
.gl .cs-navy  { --cs-label: #2b3a58; --cs-ink: #24324f; --cs-rule: #c99a4a; --cs-tint: #ccd6e0; }

/* 1. the note: lined paper, punched holes down the left edge, a few degrees off straight.
   It is narrower than the card so the tilt never pushes it past the edge. */
.gl .cs-note {
  position: relative; z-index: 2; width: 93%; margin: 0 auto;
  transform: rotate(-1.8deg);
  padding: 17px 19px 19px 38px; border-radius: 8px;
  background:
    repeating-linear-gradient(transparent 0 27px, #d8e2e8 27px 28px) 0 43px,
    #fffcf6;
  box-shadow: 0 7px 16px rgba(26,20,14,.30), inset 0 0 0 1px rgba(90,70,54,.16);
}
.gl .cs-note::before {
  content: ""; position: absolute; left: 11px; top: 17px; bottom: 17px; width: 12px;
  background: radial-gradient(circle at 50% 6px, rgba(40,54,70,.22) 0 5px, transparent 5.7px) 0 0 / 12px 23px repeat-y;
}
.gl .cs-note .date { position: relative; }
.gl .cs-note .hand { font-size: 21px; line-height: 28px; margin-top: 9px; white-space: pre-line; min-height: 28px; }
.gl .cs-by { margin-top: 11px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--berry); }

/* 2. the tape, tucked under the bottom edge of the note */
.gl .cs-tape { position: relative; z-index: 1; margin-top: -5%; text-align: center; }
.gl .cs-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gl .cs-art {
  position: relative; width: 100%; aspect-ratio: 8 / 5; border-radius: 11px;
  background-color: var(--cs-shell);
  background-image: linear-gradient(168deg, rgba(255,255,255,.6), rgba(255,255,255,0) 36%, rgba(90,70,54,.17));
  box-shadow: inset 0 0 0 1.5px var(--cs-shell-edge), inset 0 -3px 7px rgba(90,70,54,.13), 0 8px 16px rgba(26,20,14,.32);
  transition: transform .2s;
}
/* the raised lip across the lower shell. ::before, so the screw holes below paint on top of it. */
.gl .cs-art::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: 74%; bottom: 2.5%; border-radius: 8px;
  background: linear-gradient(var(--cs-shell-dark), var(--cs-shell) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 -1px 2px rgba(90,70,54,.10);
}
.gl .cs-btn:hover .cs-art { transform: translateY(-2px); }
.gl .cs-btn:focus-visible .cs-art { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the big label, corners cut off at the top like a real tape */
.gl .cs-label {
  position: absolute; left: 4%; right: 4%; top: 7.5%; height: 62%; overflow: hidden; text-align: left;
  background-color: var(--cs-label);
  clip-path: polygon(0 8%, 3.2% 0, 96.8% 0, 100% 8%, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}
/* the write-on strip, where the song title goes */
.gl .cs-strip {
  position: absolute; left: 5.5%; right: 5.5%; top: 6%; height: 40%;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding: 1px 8px 2px; border-top: 3px solid var(--cs-rule); border-radius: 2px;
  background: var(--cs-strip);
  box-shadow: 0 1px 2px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.07);
}
.gl .cs-label::before {
  content: ""; position: absolute; left: 18%; right: 16.5%; top: 52%; bottom: 3%; border-radius: 999px;
  background: var(--cs-shell);
  box-shadow: inset 0 1px 3px rgba(90,70,54,.28), 0 1px 0 rgba(255,255,255,.4);
}
.gl .cs-side { display: block; font-size: 8px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(36,50,79,.55); }
.gl .cs-title {
  display: block; font-family: var(--display); font-weight: 650; font-size: 16px; line-height: 1.12;
  color: var(--cs-ink); overflow-wrap: anywhere; max-height: 2.3em; min-height: 0; overflow: hidden;
}
/* the two reel openings and the tape window, set into the label */
.gl .cs-reel {
  position: absolute; top: 74.5%; width: 15%; aspect-ratio: 1; margin-top: -7.5%; border-radius: 50%;
  background: var(--cs-tint);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), inset 0 2px 5px rgba(0,0,0,.20), 0 0 0 1px rgba(0,0,0,.12);
}
.gl .cs-reel.l { left: 21.5%; }
.gl .cs-reel.r { right: 20%; }
.gl .cs-hub {
  position: absolute; inset: 20%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--cs-tint) 0 36%, transparent 37%),
    repeating-conic-gradient(#fffdf9 0 17deg, var(--cs-tint) 17deg 30deg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.gl .cs-win {
  position: absolute; left: 38%; right: 36%; top: 58%; bottom: 9%; border-radius: 3px; overflow: hidden;
  background: var(--cs-tint);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18), inset 0 2px 4px rgba(0,0,0,.22);
}
.gl .cs-band {
  position: absolute; inset: 8% 0;
  background: linear-gradient(90deg, #3b2c21 0 31%, rgba(0,0,0,0) 31% 69%, #3b2c21 69%);
}
.gl .cs.playing .cs-reel { animation: gl-spin 2.8s linear infinite; }
/* two screw holes and two tab slots along the bottom edge */
.gl .cs-pins { position: absolute; left: 0; right: 0; bottom: 5%; height: 3%; }
.gl .cs-pins i {
  position: absolute; bottom: 0; width: 2.3%; aspect-ratio: 1;
  background: rgba(60,46,34,.32); box-shadow: inset 0 1px 1px rgba(0,0,0,.35);
}
.gl .cs-pins i:nth-child(1) { left: 25.5%; border-radius: 50%; }
.gl .cs-pins i:nth-child(2) { left: 35.5%; border-radius: 1.5px; }
.gl .cs-pins i:nth-child(3) { right: 35.5%; border-radius: 1.5px; }
.gl .cs-pins i:nth-child(4) { right: 25.5%; border-radius: 50%; }

/* the four label patterns. Drawn here, my own shapes: gold dots, daisies, pinstripes, gold sparkles. */
.gl .cs-cream .cs-label {
  background-image:
    radial-gradient(circle, rgba(196,148,66,.60) 0 calc(var(--cs-tile) * .105), transparent calc(var(--cs-tile) * .12)),
    radial-gradient(circle, rgba(196,148,66,.33) 0 calc(var(--cs-tile) * .065), transparent calc(var(--cs-tile) * .08));
  background-size: var(--cs-tile) var(--cs-tile), calc(var(--cs-tile) * .62) calc(var(--cs-tile) * .62);
  background-position: 0 0, calc(var(--cs-tile) * .4) calc(var(--cs-tile) * .3);
}
.gl .cs-coral .cs-label {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cg fill='%23fffaf2'%3E%3Ccircle cx='27' cy='19.8' r='5.4'/%3E%3Ccircle cx='33.9' cy='24.8' r='5.4'/%3E%3Ccircle cx='31.2' cy='32.8' r='5.4'/%3E%3Ccircle cx='22.8' cy='32.8' r='5.4'/%3E%3Ccircle cx='20.1' cy='24.8' r='5.4'/%3E%3C/g%3E%3Ccircle cx='27' cy='27' r='3' fill='%23f2dcae'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cg fill='%23fffaf2'%3E%3Ccircle cx='27' cy='19.8' r='5.4'/%3E%3Ccircle cx='33.9' cy='24.8' r='5.4'/%3E%3Ccircle cx='31.2' cy='32.8' r='5.4'/%3E%3Ccircle cx='22.8' cy='32.8' r='5.4'/%3E%3Ccircle cx='20.1' cy='24.8' r='5.4'/%3E%3C/g%3E%3Ccircle cx='27' cy='27' r='3' fill='%23f2dcae'/%3E%3C/svg%3E");
  background-size: calc(var(--cs-tile) * 1.3) calc(var(--cs-tile) * 1.3), calc(var(--cs-tile) * 1.85) calc(var(--cs-tile) * 1.85);
  background-position: 0 0, calc(var(--cs-tile) * .62) calc(var(--cs-tile) * .78);
}
.gl .cs-sage .cs-label {
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,.75) 0 calc(var(--cs-tile) * .13),
    rgba(255,255,255,0) calc(var(--cs-tile) * .13) calc(var(--cs-tile) * .42));
}
.gl .cs-navy .cs-label {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M27 14 Q28.6 25.4 39 27 Q28.6 28.6 27 40 Q25.4 28.6 15 27 Q25.4 25.4 27 14 Z' fill='%23d8b374'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath d='M27 14 Q28.6 25.4 39 27 Q28.6 28.6 27 40 Q25.4 28.6 15 27 Q25.4 25.4 27 14 Z' fill='%23d8b374'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Ccircle cx='27' cy='27' r='3' fill='%23e3c58d'/%3E%3C/svg%3E");
  background-size: calc(var(--cs-tile) * 1.2) calc(var(--cs-tile) * 1.2), calc(var(--cs-tile) * 1.9) calc(var(--cs-tile) * 1.9), calc(var(--cs-tile) * .8) calc(var(--cs-tile) * .8);
  background-position: 0 0, calc(var(--cs-tile) * .7) calc(var(--cs-tile) * .55), calc(var(--cs-tile) * .3) calc(var(--cs-tile) * .25);
}

/* the little tape pictures the maker picks from in the editor (T37) */
.gl .cs-mini { --cs-tile: 8px; box-shadow: inset 0 0 0 1px var(--cs-shell-edge), 0 1px 3px rgba(26,20,14,.22); border-radius: 5px; }
.gl .cs-mini .cs-strip { border-top-width: 2px; }
.gl .cs-mini .cs-reel { box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 0 0 1px rgba(0,0,0,.12); }
.gl .cs-mini .cs-win { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

.gl .cs-hint { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--cream); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.gl .cs-hint[hidden] { display: none; }
.gl.editing .cs-hint, .gl.sample .cs-hint { color: var(--berry); text-shadow: none; }

/* 3. the player card, under the tape */
.gl .cs-player { margin-top: 14px; }
.gl .cs-player.on {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: #fffaf0; border-radius: 9px; padding: 8px; animation: gl-pop .45s ease both;
}
/* T44: kept small so the note, the tape and the player all fit on a phone. JS sets each player's own height. */
.gl .cs-frame { width: 100%; height: 80px; border: 0; border-radius: 10px; display: block; background: #efe7d8; }
.gl .cs-frame.wide { height: auto; aspect-ratio: 16 / 9; width: 72%; }
.gl .cs-player .link-btn { margin-top: 0; min-height: 40px; }
.gl .cs-small { font-size: 11.5px; line-height: 1.3; text-align: center; color: rgba(58,42,34,.72); }

/* Yule's order (T22): the note is already out of the envelope, then the tape pops out under it.
   The pop waits for GiftLook.enter(), so it never plays while the card is still inside the envelope. */
.gl:not(.editing):not(.sample) .cs-tape { opacity: 0; }
.gl.entered .cs-tape { animation: cs-pop .6s .35s cubic-bezier(.2,1.5,.45,1) both; }
@keyframes cs-pop { from { opacity: 0; transform: translateY(-30px) scale(.92); } to { opacity: 1; transform: none; } }
.gl.sample .cs-art { box-shadow: inset 0 0 0 1.5px var(--cs-shell-edge), 0 3px 7px rgba(26,20,14,.22); }
@media (prefers-reduced-motion: reduce) {
  .gl:not(.editing):not(.sample) .cs-tape { opacity: 1; }
  .gl.entered .cs-tape, .gl .cs-player.on { animation: none; }
  .gl .cs.playing .cs-reel { animation: none; }
  .gl .cs-art, .gl .cs-btn:hover .cs-art { transition: none; transform: none; }
}
