#gb-stage {
  --ink: #25263e;
  --yellow: #ffd43b;
  --paper: #fff5d9;
  --binding: #933e49;
  --binding-edge: #6a273b;
  --accent: #d28b45;
  --signature: "Segoe Script", "Bradley Hand", "Lucida Handwriting", "Brush Script MT", cursive;
  position: absolute; left: 50%; top: 50%; width: 1080px; height: 1920px;
  transform: translate(-50%, -50%) scale(var(--gb-scale, 1));
  display: flex; flex-direction: column; gap: 25px; padding: 44px 38px 28px;
  overflow: hidden; color: white;
  font: 900 29px/1.18 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill;
}
#gb-stage, #gb-stage * { box-sizing: border-box; }
#gb-stage :is(h1,h2,h3,p,ol,figure) { margin: 0; }
#gb-stage [hidden] { display: none !important; }
#gb-stage[data-colour=navy] { --binding: #3e5681; --binding-edge: #263354; }
#gb-stage[data-colour=forest] { --binding: #42725c; --binding-edge: #284a47; }
#gb-header, #gb-caption, .gb-ranks, .gb-key { margin-inline: 12px; }
.gb-imprint, .gb-counter, .gb-headline { display: flex; align-items: center; gap: 18px; }
.gb-imprint, .gb-headline h2, .gb-headline span, #gb-stage footer {
  text-transform: uppercase; font-size: 23px; letter-spacing: 3px;
}
.gb-imprint i { width: 31px; height: 31px; background: var(--yellow); clip-path: polygon(50% 0,61% 35%,90% 10%,70% 40%,100% 50%,68% 60%,88% 90%,60% 70%,50% 100%,40% 67%,12% 88%,32% 60%,0 50%,34% 40%,12% 12%,40% 35%); }
.gb-imprint span, .gb-counter i, .gb-headline i { flex: 1; height: 3px; background: #dfba63; border-bottom: 1px solid var(--ink); }
#gb-header h1 { font-size: 110px; line-height: 1.05; letter-spacing: -7px; -webkit-text-stroke: 7px var(--ink); }
#gb-header h1 em { color: var(--yellow); }
.gb-counter { font-size: 28px; margin-top: 8px; }
.gb-counter i { height: 1px; }

#gb-connection { flex: none; margin: -4px 12px; }
#gb-connection:empty, #gb-connection:has(.tt-core-notice[hidden]), #gb-connection:has(.preview-status) { display: none; }
#gb-connection .tt-core-overlay-status { position: static; transform: none; width: 100%; margin: 0; text-align: left; z-index: auto; }
#gb-connection .tt-core-pill { display: none !important; }
#gb-connection .tt-core-notice {
  background: transparent; box-shadow: none; margin: 0; padding: 12px 22px;
  border: 2px solid #c6a150; border-radius: 14px; color: white;
  font: 900 21px/1.22 Inter, "Segoe UI", Arial, sans-serif; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}
#gb-connection .tt-core-notice strong { font-size: 24px; }
#gb-connection .tt-game-page-link { display: block; margin-top: 5px; }

#gb-book {
  position: relative; isolation: isolate; flex: 1 1 auto; min-height: 0;
  margin: 3px 0 23px; border-radius: 39px 35px 38px 33px; border: 5px solid var(--ink);
  background: repeating-linear-gradient(120deg, transparent 0 4px, #fff1 4px 5px, transparent 5px 9px), var(--binding);
  box-shadow: inset 0 -13px 0 var(--binding-edge), 0 6px 0 var(--ink), 0 11px 0 #25263e24;
  color: var(--ink); -webkit-text-stroke: 0;
}
#gb-book::before { content: ""; position: absolute; inset: 7px 9px 9px; border: 2px dashed #f6ca80; border-radius: 27px; }
.gb-ribbon {
  position: absolute; left: 72%; bottom: -33px; width: 55px; height: 95px; z-index: 2;
  background: linear-gradient(90deg,#722839 5%,#d86a64 6% 11%,#a33e4d 12% 86%,#d86a64 87% 92%,#722839 93%);
  border-inline: 2px solid var(--ink); transform: rotate(-5deg); transform-origin: top;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 76%,0 100%);
}
.gb-leaves {
  position: absolute; inset: 25px 16px 21px; border: 3px solid #7d5d48; border-radius: 28px 24px 22px 24px / 20px;
  background: repeating-linear-gradient(#e8cf9d 0 3px,#bc9a6d 3px 4px,#f5e5b9 4px 6px);
}
.gb-spread {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); position: absolute;
  z-index: 3; inset: 17px 17px 39px; isolation: isolate;
  border-radius: 20px 18px 17px 20px; border: 2px solid #ab8d65; overflow: hidden; background: var(--paper);
}
.gb-spread::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 24px); width: 48px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg,transparent,#64442f09 25%,#76573d39 47%,#95764e 49%,#d4b88d 52%,#8e734c23 57%,transparent 100%);
}
.gb-leaf { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 49px 32px 22px; }
.gb-left { padding-right: 38px; background: linear-gradient(90deg,#ddc29255,transparent 6% 80%,#c2a67730), #fff5d9; }
.gb-right { padding-left: 38px; background: radial-gradient(ellipse at 49% 43%,#fff9e5,#fff1cd 72%,#efdcad); }
.gb-paper-head, .gb-folio, .gb-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; }
.gb-paper-head i, .gb-folio i { flex: 1; border-top: 2px solid #c5a66d; }
.gb-paper-head h2, #gb-plate-label { font: 850 22px/1.2 Inter,"Segoe UI",Arial,sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.gb-folio { position: relative; margin-top: auto; padding-top: 14px; gap: 11px; font-size: 17px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.gb-folio button { position: absolute; bottom: -8px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #ac8c52; color: #25263e; background: #f5e5bd; cursor: pointer; font: 800 30px/1 Inter,"Segoe UI",Arial,sans-serif; }
#gb-prev { left: 1px; } #gb-next { right: 1px; }
.gb-folio i { flex: none; width: 22px; }
#gb-empty, #gb-entries { flex: 1; min-height: 0; }
#gb-empty { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 22px; }
.gb-blank-invite canvas { width: 95px; height: 95px; margin: 0 0 7px -6px; }
.gb-blank-invite p { font-size: 64px; font-weight: 840; line-height: .99; letter-spacing: -3.7px; }
.gb-sign-lines { height: 27%; max-height: 165px; min-height: 64px; background: repeating-linear-gradient(0deg,#b79962 0 2px,transparent 2px 42px); }
#gb-entries { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); padding-top: 12px; }
.gb-entry { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; position: relative; border-bottom: 2px solid #c7a976; padding: 6px 2px; }
.gb-entry-head { display: flex; align-items: center; gap: 9px; }
.gb-stamp {
  width: 57px; height: 67px; padding: 5px; flex: none; display: grid; place-content: center;
  color: var(--ink); background: #ead4ac; outline: 1px dashed #9b784b; outline-offset: -3px;
  border: 2px solid #bca177; transform: rotate(-4deg);
}
.gb-stamp .tt-core-avatar { border-radius: 2px; background: #e9bfb3; color: var(--ink); font-size: 23px; }
.gb-signature { min-width: 0; font: 700 34px/1.3 var(--signature); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gb-message { margin-top: 5px !important; font-size: 25px; font-weight: 600; line-height: 1.22; overflow-wrap: anywhere; }
.gb-entry-meta { margin-top: 6px; display: flex; gap: 7px; align-items: center; font-size: 17px; line-height: 1.15; }
.gb-entry-meta time { font-variant-numeric: tabular-nums; }
.gb-marks { display: flex; align-items: center; margin-left: auto; }
.gb-marks canvas { width: 33px; height: 33px; }
.gb-entry[data-foil=true] { background: linear-gradient(115deg,#f7d25a55,transparent 34% 83%,#f7d25a55); box-shadow: inset 0 0 0 3px #b98d39, inset 0 0 0 6px var(--paper), inset 0 0 0 8px #d6ad54; border-color: transparent; padding: 8px 12px; }
.gb-entry[data-landing=true]::before { content: ""; position: absolute; inset: 3px; pointer-events: none; animation: gb-wash 1000ms ease-out both; }
.gb-writing { position: absolute; z-index: 2; top: 20%; left: 20%; width: 85px; height: 85px; pointer-events: none; animation: gb-write 1.25s ease-out both; }
.gb-entry.gb-fresh .gb-signature { animation: gb-ink-in .75s ease-out both; }
.gb-frame { position: absolute; inset: 25px 23px 60px 29px; border: 2px solid #bd984f; outline: 1px solid #c9ac73; outline-offset: -8px; pointer-events: none; }
.gb-frame i { position: absolute; width: 25px; height: 25px; border: 2px solid #b4924c; background: #fff2d2; transform: rotate(45deg); }
.gb-frame i:nth-child(1) { left: 0; top: 0; }.gb-frame i:nth-child(2) { right: 0; top: 0; }
.gb-frame i:nth-child(3) { right: 0; bottom: 0; }.gb-frame i:nth-child(4) { left: 0; bottom: 0; }
.gb-facing-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 13px 16px; gap: 14px; text-align: center; }
#gb-plate-label { font-size: 20px; }
#gb-plate { display: block; width: 100%; min-height: 0; max-height: 60%; object-fit: contain; }
#gb-plate-name { font: 750 40px/1.22 var(--signature); max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gb-flourish i { width: 39px; height: 5px; border-block: 1px solid #b6934c; }
.gb-flourish b { font-size: 27px; }
#gb-illumination { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 46%,#fffbea 8%,#fff1b5 57%,#e8c97e); }
#gb-stars { width: 100%; height: 100%; position: absolute; inset: 0; }
.gb-dedication { position: relative; width: 85%; text-align: center; }
.gb-dedication p { font-size: 26px; font-weight: 850; letter-spacing: 4px; text-transform: uppercase; }
.gb-dedication h2 { margin: 18px 0 !important; color: #f7c650; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 2px 3px 0 var(--ink); font: 800 92px/1.22 var(--signature); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.gb-dedication h2[data-long=true] { font-size: 60px; }
.gb-dedication i { display: inline-block; width: 120px; height: 9px; border-block: 2px solid #b28831; }
#gb-book.gb-turn .gb-left { animation: gb-page-turn .55s ease-out; transform-origin: right; }
#gb-book.gb-land #gb-plate { animation: gb-print .72s cubic-bezier(.2,.8,.2,1); }
#gb-book.gb-land #gb-stars { animation: gb-illuminate .95s ease-out; }
#gb-caption { flex: none; min-height: 135px; display: flex; align-items: center; }
#gb-prompt { width: 100%; }
#gb-command { font-size: 36px; line-height: 1.18; letter-spacing: -1px; }
#gb-command strong { color: var(--yellow); }
#gb-example { margin-top: 8px !important; font-size: 26px; }
#gb-floater { width: 100%; display: flex; align-items: center; gap: 18px; padding: 10px 23px 11px 10px; border: 3px solid var(--ink); border-radius: 20px 4px 20px 4px; background: #ffebaf; box-shadow: 4px 5px 0 var(--ink); color: var(--ink); -webkit-text-stroke: 0; }
#gb-receipt-art { width: 93px; height: 93px; flex: none; }
#gb-floater > div { min-width: 0; flex: 1; }
#gb-floater :is(small,strong) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gb-floater small { font-size: 23px; letter-spacing: .3px; }
#gb-floater strong { font-size: 43px; line-height: 1.12; letter-spacing: -1.2px; }
#gb-receipt-ink { flex: none; font-size: 31px; }
.gb-headline h2 { color: var(--yellow); }
.gb-headline span { font-size: 18px; }
.gb-ranks { flex: none; }
#gb-top { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; }
#gb-top li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: baseline; gap: 9px; margin-top: 12px; padding-block: 9px; border-block: 2px solid #ddbd79; }
#gb-top li b { font-size: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#gb-top li :is(i,em) { font-size: 22px; font-style: normal; color: #ffd43b; }
#gb-top-empty { padding: 12px 0; font-size: 24px; }
#gb-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 22px; margin-top: 13px; }
.gb-gift { min-width: 0; position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 2px 8px; align-items: center; border-top: 2px solid #c6a150; padding: 4px 0 0; }
.gb-gift-art { width: 40px; height: 40px; }
.gb-gift-name, .gb-gift-label, .gb-gift-ink { display: block; width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.gb-gift-name { font-size: 25px; letter-spacing: -.7px; }
.gb-gift-ink { color: #ffd43b; font-size: 21px; }
.gb-gift-label { grid-column: 1/-1; font-size: 19.5px; letter-spacing: -.35px; }
html[data-tt-gift-icons=off] .gb-gift { grid-template-columns: minmax(0,1fr) auto; }
html[data-tt-gift-icons=off] .gb-gift-art { display: none; }
.gb-flight { position: absolute; z-index: 7; top: 77%; left: var(--lane); max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 2px solid var(--ink); background: #ffdd78; color: var(--ink); border-radius: 11px; padding: 4px 10px; font: 850 21px/1.18 Inter,"Segoe UI",Arial,sans-serif; animation: gb-flight 1.2s ease-out both; pointer-events: none; }
.gb-spark { position: absolute; pointer-events: none; z-index: 1; top: 49%; left: 50%; width: var(--size); height: var(--size); background: #ffd43b; clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); animation: gb-spark .96s ease-out both; }
@keyframes gb-spark { 0% { transform: scale(.15); } 62% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(48deg) scale(.65); } }
@keyframes gb-flight { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 18%,72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-55px); } }
#gb-stage footer { text-align: center; font-size: 17px; letter-spacing: 1.4px; }
@keyframes gb-page-turn { from { transform: perspective(1150px) rotateY(67deg); filter: brightness(.82); } to { transform: none; } }
@keyframes gb-print { 0% { transform: scale(1.18) rotate(-5deg); opacity: .25; } 48% { transform: scale(.96) rotate(2deg); } }
@keyframes gb-illuminate { from { filter: brightness(1.45); transform: scale(1.13); } }
@keyframes gb-write { 0% { opacity: 0; transform: translate(0,7px); } 12% { opacity: 1; } 32% { transform: translate(65px,-4px) rotate(-8deg); } 55% { transform: translate(124px,6px) rotate(4deg); } 80% { opacity: 1; transform: translate(183px,0); } 100% { opacity: 0; transform: translate(199px,-10px); } }
@keyframes gb-ink-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes gb-wash { from { background: #efc34769; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { #gb-stage *, #gb-stage *::before { animation-duration: .01ms !important; } }
