/* The Playable's own screens (#634), in the mock-up's colours: white pages, deep green ink, gold for the main button.
   The table itself keeps the game's dark look (table3d.css). */
html, body { margin: 0; height: 100%; background: #fff; }
#app { min-height: 100%; }

.pl-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 100vh; font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; color: #12302a;
}
.pl-loading strong { font-size: 24px; }
.pl-loading span { font-size: 15px; color: #4a5f58; }

.t3d.pl.light { background: #fff; color: #12302a; }
.pl-page { position: absolute; inset: 0; overflow-y: auto; box-sizing: border-box; max-width: 480px; margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 20px);
    display: flex; flex-direction: column; gap: 12px; }
.pl-page h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; }
.pl-page h2 { margin: 8px 0 0; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #4a5f58; font-weight: 700; }
.pl-grow { flex-grow: 1; min-height: 8px; }
.pl-under { margin: 0; text-align: center; font-size: 13px; color: #4a5f58; }
.pl-fine { margin: 0; font-size: 12px; line-height: 1.4; color: #4a5f58; text-align: center; }
.pl-kicker { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700; color: #1f6b4f; }

/* Buttons */
.pl button { font-family: inherit; cursor: pointer; }
.pl-stack { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pl .pl-gold { min-height: 56px; border-radius: 14px; border: 0; border-bottom: 4px solid #8a6a1c; background: #e5b93e; color: #12302a !important; font-size: 19px !important; font-weight: 700; }
.pl .pl-gold:active { transform: translateY(2px); border-bottom-width: 2px; }
.pl .pl-line { min-height: 52px; border-radius: 14px; border: 1.5px solid #1f6b4f; background: #fff; color: #1f6b4f !important; font-size: 17px !important; font-weight: 600; }
.pl .pl-text { min-height: 44px; border: 0; background: transparent; color: #1f6b4f !important; font-size: 16px !important; font-weight: 600; text-decoration: underline; }
.pl .pl-back { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: 1px solid #c9d6d0; background: #fff; color: #1f6b4f !important; font-size: 26px !important; line-height: 1; }
.pl .pl-back.on-photo { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 14px; background: rgba(255,255,255,.92); border: 0; }
.pl-notice { padding: 10px 12px; border-radius: 12px; background: #fff6dc; border: 1px solid #e5b93e; font-size: 13px; line-height: 1.4; }

/* Title */
.pl-title { align-items: center; text-align: center; }
.pl-sign { width: 200px; height: auto; display: block; margin-top: 4px; }
.pl-hero { display: flex; flex-direction: column; gap: 6px; }
.pl-hero p { margin: 0; font-size: 15px; color: #4a5f58; line-height: 1.4; }
.pl-video { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; background: #f1f6f3; color: #12302a !important; text-align: left; }
.pl-video > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.pl-video strong { font-size: 15px; }
.pl-video span span { font-size: 13px; color: #4a5f58; }
.pl-play { width: 40px; height: 40px; border-radius: 20px; background: #1f6b4f; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Page heads */
.pl-head { display: flex; align-items: center; gap: 12px; }
.pl-head > div { display: flex; flex-direction: column; gap: 2px; }
.pl-head span { font-size: 13px; color: #4a5f58; }

/* Tour */
.pl-cities { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; flex-shrink: 0; }
.pl-cities button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #c9d6d0; background: #fff; color: #12302a !important; font-size: 14px; font-weight: 600; }
.pl-cities button.on { background: #1f6b4f; border-color: #1f6b4f; color: #fff !important; }
.pl-cities button.shut { color: #8a9a94 !important; }
.pl-venues { display: flex; flex-direction: column; gap: 8px; }
.pl-venue { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; min-height: 64px; border-radius: 14px; border: 1px solid #dfe8e4; background: #fff; color: #12302a !important; text-align: left; flex-shrink: 0; }
.pl-venue img { width: 64px; height: 48px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #e6efeb; }
.pl-venue-text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-venue-text strong { font-size: 15px; }
.pl-venue-text span { font-size: 12px; color: #4a5f58; }
.pl-venue.next { border: 2px solid #e5b93e; background: #fffbef; }
.pl-venue.next .pl-venue-text span { color: #8a6a1c; font-weight: 700; }
.pl-venue.shut { background: #f6f8f7; color: #8a9a94 !important; cursor: default; }
.pl-venue.shut img { filter: grayscale(1); opacity: .5; }
.pl-lock { font-size: 16px; opacity: .6; }
.pl-stars { display: inline-flex; gap: 1px; font-size: 17px; color: #d3dcd8; white-space: nowrap; }
.pl-stars .on { color: #e5b93e; }
.pl-stars.big { font-size: 40px; gap: 4px; justify-content: center; }

/* Before a table */
.pl-intro { padding: 0 0 calc(env(safe-area-inset-bottom) + 20px); gap: 0; }
.pl-scene { position: relative; height: 210px; flex-shrink: 0; background: #12302a center / cover no-repeat; }
.pl-intro-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 0; }
.pl-desc { margin: 0; font-size: 14px; line-height: 1.45; color: #4a5f58; }
.pl-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-cast div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pl-cast img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #e5b93e; margin-bottom: 4px; }
.pl-cast strong { font-size: 14px; }
.pl-cast span { font-size: 12px; color: #4a5f58; }
.pl blockquote { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f1f6f3; font-size: 14px; line-height: 1.45; font-style: italic; text-align: left; }
.pl blockquote b { font-style: normal; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips span { padding: 6px 10px; border-radius: 999px; background: #f1f6f3; font-size: 12px; font-weight: 600; color: #1f6b4f; }

/* Quick game */
.pl-levels { display: flex; flex-direction: column; gap: 8px; }
.pl-levels button { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid #dfe8e4; background: #fff; color: #12302a !important; text-align: left; }
.pl-levels button.on { border: 2px solid #1f6b4f; background: #f1f6f3; }
.pl-levels img { width: 72px; height: 54px; border-radius: 9px; object-fit: cover; }
.pl-levels button > span { display: flex; flex-direction: column; gap: 2px; }
.pl-levels button > span span { font-size: 12px; color: #4a5f58; }

/* Result */
.pl-result { text-align: center; }
.pl-result .pl-kicker { margin-top: 12px; }
.pl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-tiles div { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; border-radius: 12px; background: #f1f6f3; }
.pl-tiles b { font-size: 20px; }
.pl-tiles span { font-size: 12px; color: #4a5f58; }
.pl-opened { padding: 10px 12px; border-radius: 12px; background: #fffbef; border: 1.5px solid #e5b93e; font-size: 14px; font-weight: 700; color: #8a6a1c; }

/* Passport */
.pl-stamps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-stamp { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; border: 1px solid #dfe8e4; }
.pl-stamp img { width: 100%; height: 72px; object-fit: cover; border-radius: 9px; margin-bottom: 4px; background: #e6efeb; }
.pl-stamp strong { font-size: 15px; }
.pl-stamp span { font-size: 12px; color: #4a5f58; }
.pl-stamp.done { border: 2px solid #1f6b4f; }
.pl-stamp.shut img { filter: grayscale(1); opacity: .45; }
.pl-trophies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pl-trophies div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 12px; background: #f6f8f7; color: #8a9a94; font-size: 11px; text-align: center; }
.pl-trophies div span { font-size: 26px; filter: grayscale(1); opacity: .4; }
.pl-trophies div.got { background: #fffbef; color: #12302a; }
.pl-trophies div.got span { filter: none; opacity: 1; }

/* How to play */
.pl-rules { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
