/* App by Weblink */
.wapp-app, .wapp-list, .wapp-lock, .wapp-account { --wapp-accent: #1d3557; --wapp-accent-text: #fff; --wapp-line: #e5e7eb; --wapp-soft: #f6f7f9; --wapp-ok: #059669; --wapp-ko: #dc2626; --wapp-gold: #b45309; }
.wapp-app { container-type: inline-size; margin: 1.5em 0 2em; border: 1px solid var(--wapp-line); border-radius: 18px; background: #fff; color: #1f2937; box-shadow: 0 2px 12px rgba(0, 0, 0, .05); overflow: hidden; }
.wapp-stage { padding: 20px; min-height: 220px; }
.wapp-loading { color: #6b7280; text-align: center; padding: 60px 0; }
.wapp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 20px; border-top: 1px solid var(--wapp-line); background: var(--wapp-soft); font-size: .92em; }
.wapp-foot .pbw-save-box { margin: 0 0 0 auto; }
.wapp-foot .pbw-save-box .pbw-save-text { display: none; }
.wapp-records { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
.wapp-records-l { font-weight: 700; }
.wapp-rec strong { color: var(--wapp-accent); }
.wapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--wapp-accent); color: var(--wapp-accent-text) !important; font-weight: 700; font-size: 1em; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: transform .1s, filter .15s; }
.wapp-btn:hover { filter: brightness(1.08); }
.wapp-btn:active { transform: scale(.98); }
.wapp-btn--ghost { background: transparent; color: var(--wapp-accent) !important; box-shadow: inset 0 0 0 2px var(--wapp-accent); }
.wapp-btn[hidden] { display: none; }
.wapp-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--wapp-soft); font-size: .95em; }
.wapp-note-rec { color: var(--wapp-gold); }
.wapp-note-best { color: #6b7280; }
.wapp-notice { padding: 12px 16px; border-radius: 10px; background: #fff7ed; color: #9a3412; }
/* Lists and carousel */
.wapp-list { container-type: inline-size; --wapp-cols: 3; margin: 2em 0; }
.wapp-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5em 1em; margin-bottom: .9em; }
.wapp-list-title { margin: 0; font-size: 1.35em; }
.wapp-list-tools { display: flex; align-items: center; gap: .5em; margin-left: auto; }
.wapp-list-all { font-weight: 600; margin-right: .5em; color: var(--wapp-accent); }
/* Carousel */
.wapp-car-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--wapp-line); color: #1f2937; font-size: 1.5em; line-height: 1; cursor: pointer; }
.wapp-car-btn:disabled { opacity: .35; cursor: default; }
.wapp-list.is-static .wapp-car-btn { display: none; }
.wapp-car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--wapp-cols) - 1) * 16px) / var(--wapp-cols)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.wapp-car-item { scroll-snap-align: start; min-width: 0; display: flex; }
/* My account */
.wapp-account-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 1.2em; }
.wapp-account-stats strong { display: block; font-size: 1.5em; line-height: 1.1; }
.wapp-account-list { display: grid; gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.wapp-account-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--wapp-line, #e5e7eb); border-radius: 14px; background: #fff; }
.wapp-account-t { font-weight: 700; }
.wapp-account-recs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9em; color: #4b5563; }
.wapp-account-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .88em; }
.wapp-account-del { background: none; border: 0; padding: 0; color: #b91c1c; cursor: pointer; text-decoration: underline; font-size: inherit; }
@media (max-width: 560px) { .wapp-account-item { grid-template-columns: 56px 1fr; } .wapp-account-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; } }
.wapp-profile-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: .6em 0; font-size: .95em; }
.wapp-profile-stats strong { margin-right: 4px; }

/* Icons, as in an app store (1.1) */
.wapp-icon { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22.5%; overflow: hidden; background: #e5e7eb; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wapp-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wapp-icon-e { font-size: 2.2em; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }
.wapp-icon--s { width: 56px; height: 56px; }
.wapp-icon--s .wapp-icon-e { font-size: 1.7em; }
.wapp-icon--l { width: 88px; height: 88px; }
.wapp-icon--l .wapp-icon-e { font-size: 2.7em; }
.wapp-icon--xl { width: 120px; height: 120px; }
.wapp-icon--xl .wapp-icon-e { font-size: 3.6em; }
/* Header of the app */
.wapp-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 0; }
.wapp-head-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wapp-head-title { margin: 0; font-size: 1.25em; font-weight: 800; line-height: 1.2; }
.wapp-head-title a { color: inherit; text-decoration: none; }
.wapp-head-sub { color: #6b7280; font-size: .9em; }
.wapp-head-meta { color: #9ca3af; font-size: .82em; }
/* Lock */
.wapp-lock { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 1.5em 0 2em; border: 1px solid var(--wapp-line); border-radius: 18px; background: #fff; overflow: hidden; }
.wapp-lock-preview { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 34px 18px 24px; background: var(--wapp-soft); text-align: center; }
.wapp-lock-preview .wapp-icon { margin-bottom: 8px; }
.wapp-lock-name { font-weight: 800; font-size: 1.1em; }
.wapp-lock-sub { color: #6b7280; font-size: .88em; }
.wapp-lock-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(17, 24, 39, .82); color: #fff; font-size: .78em; font-weight: 700; }
.wapp-lock-body { padding: 20px 22px; }
.wapp-lock-title { margin: 0 0 6px; font-weight: 800; font-size: 1.15em; }
.wapp-lock-body .cm-pw-box, .wapp-lock-body #cm-pw-box { margin: 0; }
@media (max-width: 640px) { .wapp-lock { grid-template-columns: 1fr; } }
/* Cards: rows with icon, name, subtitle and a button */
.wapp-grid { display: grid; gap: 10px 22px; grid-template-columns: 1fr; }
@container (min-width: 620px) { .wapp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 980px) { .wapp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wapp-card-wrap { position: relative; display: flex; min-width: 0; }
.wapp-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 6px 10px 0; border-bottom: 1px solid var(--wapp-line); color: #1f2937 !important; text-decoration: none !important; }
.wapp-card:hover .wapp-card-title, .wapp-card:focus-visible .wapp-card-title { color: var(--wapp-accent); }
.wapp-card:hover .wapp-icon { transform: scale(1.03); }
.wapp-card .wapp-icon { transition: transform .15s; }
.wapp-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wapp-card-title { font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wapp-card-sub { color: #6b7280; font-size: .84em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wapp-card-ex { color: #9ca3af; font-size: .82em; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.wapp-card-best { color: var(--wapp-gold); font-size: .82em; font-weight: 700; }
.wapp-card-cta { flex: none; padding: 6px 16px; border-radius: 999px; background: #eef2f7; color: var(--wapp-accent); font-weight: 800; font-size: .85em; text-transform: uppercase; letter-spacing: .02em; }
.wapp-card:hover .wapp-card-cta { background: var(--wapp-accent); color: var(--wapp-accent-text); }
.wapp-card-cta.is-locked { text-transform: none; letter-spacing: 0; }
.wapp-card-savebox { position: absolute; top: 4px; left: 52px; z-index: 2; }
.wapp-card-savebox .pbw-mini-save { width: 28px; height: 28px; }
.wapp-card-savebox .pbw-mini-save .pbw-icon { width: 14px; height: 14px; }
/* Carousel: columns of app rows (as the shelves of the stores) */
.wapp-car-track { grid-template-rows: repeat(var(--wapp-rows, 1), auto); grid-auto-columns: clamp(260px, calc((100% - 44px) / 3), 420px); gap: 0 22px; }
@container (max-width: 560px) { .wapp-list--carousel .wapp-car-track { grid-auto-columns: 86%; } }
.wapp-list--carousel .wapp-icon--m { width: 64px; height: 64px; }
.wapp-icon-g { color: #fff; font-weight: 800; font-size: 2.9em; line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .18); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.wapp-icon--s .wapp-icon-g { font-size: 2.2em; }
.wapp-icon--l .wapp-icon-g { font-size: 3.5em; }
.wapp-icon--xl .wapp-icon-g { font-size: 4.8em; }
.wapp-list--carousel .wapp-icon--m .wapp-icon-g { font-size: 2.6em; }

/* Common parts of the games (modes, top bar, end) */
.wt-label { margin: 0 0 10px; font-weight: 700; }
.wt-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.wt-mode { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--wapp-line); border-radius: 16px; background: #fff; color: #1f2937; text-align: left; cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s; }
.wt-mode:hover, .wt-mode:focus-visible { border-color: var(--wapp-accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.wt-mode:active { transform: scale(.99); }
.wt-mode-icon { font-size: 2em; }
.wt-mode-t { display: flex; flex-direction: column; gap: 2px; font-size: .92em; color: #4b5563; }
.wt-mode-t strong { font-size: 1.12em; color: #111827; }
.wt-mode-rec { color: var(--wapp-gold); font-weight: 700; }
.wt-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 700; }
.wt-info.is-hurry { color: var(--wapp-ko); }
.wt-score { margin-left: auto; color: var(--wapp-ok); }
.wt-stop { padding: 4px 10px; border: 1px solid var(--wapp-line); border-radius: 99px; background: #fff; color: #6b7280; font-size: .85em; cursor: pointer; }
.wt-bar { height: 8px; border-radius: 99px; background: var(--wapp-soft); overflow: hidden; margin-bottom: 18px; }
.wt-bar span { display: block; height: 100%; background: var(--wapp-accent); border-radius: 99px; transition: width .25s linear; }
.wt-end { max-width: 520px; margin: 0 auto; text-align: center; }
.wt-end-t { margin: 0; font-size: 1.3em; font-weight: 800; }
.wt-end-score { margin: 6px 0 0; font-size: 1.1em; color: #4b5563; }
.wt-end-score strong { font-size: 2.6em; color: var(--wapp-accent); line-height: 1.1; }
.wt-end-acc { margin: 4px 0 0; color: #6b7280; }
.wt-end .wt-label { margin-top: 18px; }
.wt-perfect { margin: 16px 0 0; font-weight: 700; color: var(--wapp-gold); }
.wt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.wt-end-note .wapp-note { text-align: left; }
