/* THE WALL · v21.4.3 · circular bas-relief medallions and long-press aura */
.ttb43-badge{overflow:hidden;transition:border-color .18s ease, transform .18s ease}
.ttb43-badge:active{transform:scale(.975)}
.ttb43-badge img{border-radius:50%;background:transparent}
.ttb43-badge small{display:block;color:#8faab8;margin-top:4px;font-size:10px}
.ttb43-medal-layer[hidden]{display:none!important}
.ttb43-medal-layer{position:fixed;inset:0;z-index:50100;background:rgba(1,8,16,.96);display:flex;align-items:stretch;justify-content:center;overflow-y:auto;padding:12px;box-sizing:border-box}
.ttb43-medal-sheet{background:linear-gradient(160deg,#10283a,#08131e);border:1px solid #31617c;border-radius:24px;padding:18px;max-width:540px;width:100%;margin:auto;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.ttb43-sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ttb43-sheet-top h2{color:#f2fbff;font-size:20px;margin:0}
.ttb43-sheet-top button{color:#e3f7ff;background:#18354a;border:1px solid #32607a;border-radius:11px;padding:10px 14px;font-size:18px}
.ttb43-rarity{text-align:center;font-size:14px;font-weight:900;letter-spacing:.16em;margin:10px 0 0}
.ttb43-coin-stage{position:relative;width:min(74vw,270px);height:min(74vw,270px);max-width:270px;max-height:270px;margin:6px auto;display:grid;place-items:center;isolation:isolate}
.ttb43-coin{position:relative;z-index:2;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:transparent;display:block;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:none;-webkit-tap-highlight-color:transparent;outline-offset:6px;filter:drop-shadow(0 10px 12px rgba(0,0,0,.42))}
.ttb43-coin img{width:100%;height:100%;display:block;object-fit:contain;border-radius:50%;pointer-events:none;-webkit-user-drag:none}
.ttb43-coin.is-locked img{filter:grayscale(.9) brightness(.5)}
.ttb43-coin.is-earned:active{filter:drop-shadow(0 0 12px var(--medal-color))}
.ttb43-coin.ttb43-active{animation:ttb43-shiver .11s linear infinite;filter:drop-shadow(0 0 20px var(--medal-color))}
@keyframes ttb43-shiver{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(1px,-1px) rotate(.25deg)}50%{transform:translate(-1px,1px) rotate(-.25deg)}75%{transform:translate(1px,1px) rotate(.2deg)}100%{transform:translate(0,0) rotate(0)}}
.ttb43-particles{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:3}
.ttb43-spark{position:absolute;left:50%;top:50%;width:5px;height:9px;border-radius:40%;background:var(--medal-color);box-shadow:0 0 10px var(--medal-color),0 0 18px var(--medal-color);opacity:0;transform:translate(-50%,-50%) scale(.2);animation:ttb43-sparkfly .65s ease-out forwards;animation-delay:var(--spark-delay,0ms)}
@keyframes ttb43-sparkfly{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}16%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(90deg) scale(.05)}}
.ttb43-hold-note{text-align:center;margin:5px 8px 15px;color:#a5c8d7;font-size:11px;line-height:1.4}
.ttb43-tier-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ttb43-tier-choice{border:1px solid #385265!important;border-radius:13px;padding:10px 4px!important;min-width:0;background:#102738!important;color:#a8bfd0!important;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer}
.ttb43-tier-choice.selected{background:#18374b!important;border-color:var(--tier-color)!important;box-shadow:inset 0 0 0 1px var(--tier-color)}
.ttb43-tier-choice span{font-size:18px;color:var(--tier-color)}.ttb43-tier-choice small{font-size:9px;word-break:break-word;letter-spacing:-.01em;white-space:normal}
.ttb43-requirements{background:#0c2030;border:1px solid #29485b;border-radius:13px;margin:16px 0 10px;padding:14px;line-height:1.6}
.ttb43-requirements>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}
.ttb43-requirements b{font-size:12px;color:#ebfaff}
.ttb43-progress-track{background:#1a3948;border-radius:99px;overflow:hidden;height:8px;margin:9px 0}.ttb43-progress-track i{display:block;height:100%;border-radius:inherit}
.ttb43-requirement-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#b3cbd8;font-size:10px}
@media(max-width:400px){.ttb43-medal-layer{padding:5px}.ttb43-medal-sheet{padding:12px;max-height:calc(100dvh - 10px);border-radius:16px}.ttb43-tier-choice small{font-size:8px}.ttb43-coin-stage{width:min(66vw,240px);height:min(66vw,240px)}}
@media(prefers-reduced-motion:reduce){.ttb43-coin.ttb43-active,.ttb43-spark{animation:none!important}.ttb43-badge{transition:none}}


/* v21.4.5: each medal is ONE complete transparent image. No masks, shape overlays or pseudo-elements. */
.ttb43-badge{display:flex;flex-direction:column;align-items:center;gap:6px;overflow:hidden}
.ttb43-badge > img.ttb43-badge-image{display:block;width:100%;max-width:174px;height:auto;aspect-ratio:1;object-fit:contain;margin:auto;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 7px 10px rgba(0,0,0,.27))}
.ttb43-badge.is-locked > img.ttb43-badge-image{filter:grayscale(.88) brightness(.54)}
.ttb42-wall-preview{display:flex;gap:7px;align-items:center;justify-content:flex-end;min-width:0;flex:1}
.ttb42-wall-preview > img.ttb43-preview-img{display:block;width:56px;max-width:26%;height:auto;aspect-ratio:1;min-width:0;object-fit:contain;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;filter:drop-shadow(0 4px 5px #0009)}
.ttb42-wall-preview > img.ttb43-preview-img.dim{filter:grayscale(1);opacity:.45}
.ttb43-coin{border-radius:0!important;background:transparent}
.ttb43-coin > img{width:100%;height:100%;object-fit:contain;border:0!important;border-radius:0!important;display:block;pointer-events:none;-webkit-user-drag:none}
.ttb43-coin-stage{overflow:visible}
@media(max-width:420px){.ttb43-badge > img.ttb43-badge-image{max-width:150px}.ttb42-wall-preview > img.ttb43-preview-img{width:49px}}

/* v21.4.7 — THE WALL featured-medal display, no overlays on any medal artwork */
.ttb47-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 2px 5px;color:#effbff;font-weight:900;letter-spacing:.05em}
.ttb47-showcase-head strong{background:#0d3342;border:1px solid #2b6877;color:#48d9d9;border-radius:99px;padding:6px 10px;font-size:12px}
.ttb47-showcase-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0 22px;min-height:70px}
.ttb47-showcase-list:has(>p){display:block;min-height:0}
.ttb47-showcase-list .ttb47-showcase-item{position:relative;display:flex;align-items:center;justify-content:center;padding:3px;border:1px solid #34576c;border-radius:12px;background:linear-gradient(145deg,#142e3f,#091c2e);min-width:0;aspect-ratio:1;cursor:pointer}
.ttb47-showcase-item img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;pointer-events:none}
.ttb47-showcase-item span{position:absolute;right:0;top:0;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;background:#741f39;color:#fff;font-size:14px;font-weight:900}
.ttb47-expose{display:block;margin:5px auto 13px;width:100%;background:#163747;color:#e7faff;border:1px solid #498ea4;border-radius:12px;padding:13px 8px;font-weight:900;font-size:12px;letter-spacing:.04em;cursor:pointer}
.ttb47-expose.active{color:#f9d47e;background:#332919;border-color:#ad9254}
.ttb47-expose:disabled{opacity:.4;cursor:not-allowed}
.ttb43-coin.ttb47-bounce{animation:ttb47-hop .76s cubic-bezier(.18,.83,.38,1) both!important;filter:drop-shadow(0 0 24px var(--medal-color))}
@keyframes ttb47-hop{0%{transform:translateY(0) scale(1)}20%{transform:translateY(-21px) scale(1.13)}42%{transform:translateY(-27px) scale(1.07)}60%{transform:translateY(2px) scale(.93)}78%{transform:translateY(-8px) scale(1.025)}100%{transform:translateY(0) scale(1)}}
@media(max-width:390px){.ttb47-showcase-list{gap:4px}.ttb47-showcase-item span{width:14px;height:14px}}
@media(prefers-reduced-motion:reduce){.ttb43-coin.ttb47-bounce{animation:none!important}}

/* v21.5.1 · Long-press achievement coins should animate, never open the OS save-image menu. */
#ttb43-coin, #ttb43-coin *, .ttb43-badge, .ttb43-badge * {
 -webkit-touch-callout:none!important; -webkit-user-select:none!important; user-select:none!important;
}


/* v21.5.7 · Collection rainbow completion bar */
.ttb43-collection-summary{display:grid;gap:14px;margin-bottom:14px}
.ttb43-collection-copy{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ttb43-collection-copy b{font-size:34px;line-height:1;color:#fff;margin-right:auto}
.ttb43-collection-copy span{font-size:12px;font-weight:900;letter-spacing:.16em;color:#dff6ff}
.ttb43-collection-copy small{font-size:12px;color:#a9c0d0}
.ttb43-collection-bar{position:relative;height:26px;border-radius:999px;background:#102131;border:1px solid rgba(255,255,255,.12);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.16)}
.ttb43-collection-bar i{position:absolute;left:0;top:0;bottom:0;display:block;border-radius:inherit;background:linear-gradient(90deg,#ff4d6d 0%,#ff8a3d 14%,#ffd43b 28%,#6be675 45%,#3dd6ff 63%,#5c7cff 82%,#c05cff 100%);box-shadow:0 0 20px rgba(61,214,255,.24)}
.ttb43-collection-bar strong{position:absolute;inset:0;display:grid;place-items:center;font-size:11px;font-weight:900;letter-spacing:.08em;color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.75)}
@media(max-width:420px){.ttb43-collection-copy b{font-size:29px}.ttb43-collection-bar{height:24px}.ttb43-collection-bar strong{font-size:10px}}


/* v21.5.11: The five selected medals, immediately below the player identity */
.ttb21511-featured-panel{display:block;width:100%;text-align:left;padding:15px 16px 13px;margin:0 0 15px;background:linear-gradient(125deg,#182a38 0%,#0b2032 52%,#131b2c 100%);color:#f3fbff;border:1px solid rgba(247,195,102,.36);border-radius:22px;cursor:pointer;box-shadow:inset 0 0 24px rgba(236,182,94,.04)}
.ttb21511-featured-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.ttb21511-featured-heading b{font-size:13px;letter-spacing:.07em;color:#ffe1a4}.ttb21511-featured-heading small{font-size:11px;font-weight:900;color:#b9d5e5;border:1px solid #325267;border-radius:99px;padding:4px 8px}
.ttb21511-featured-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:center}
.ttb21511-featured-medal{display:grid;place-items:center;min-width:0;aspect-ratio:1;border:1px solid rgba(186,218,228,.16);border-radius:15px;background:radial-gradient(circle at 50% 43%,rgba(49,101,132,.2),#071421 80%);overflow:hidden}
.ttb21511-featured-medal img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 5px 6px #0008)}
.ttb21511-featured-medal.empty{font-size:27px;color:#4c6378;border:1px dashed #29485a}
.ttb21511-featured-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#a2bccb;margin-top:9px;line-height:1.35}
.ttb21511-featured-foot strong{color:#ffe1a4;white-space:nowrap;font-size:10px}
@media(max-width:390px){.ttb21511-featured-panel{padding:12px 11px}.ttb21511-featured-row{gap:5px}.ttb21511-featured-medal{border-radius:10px}.ttb21511-featured-foot{font-size:9px}}

.ttb21511-wall-open{font-size:26px;color:#f4c875;flex:0 0 auto;line-height:1}

/* v21.5.20 — consistent visual size for badge artwork in all Wall presentations */
.ttb43-badge > img.ttb43-badge-image,.ttb47-showcase-item img,.ttb21511-featured-medal img,
.ttb42-wall-preview img,.ttb43-coin > img{object-fit:contain!important;object-position:center!important}
.ttb43-badge > img.ttb43-badge-image{width:min(100%,174px)!important;height:auto!important;aspect-ratio:1!important}
.ttb47-showcase-item img,.ttb21511-featured-medal img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}

/* v21.6.0 medal rewards preview; real credit claims only via server RPC. */
.ttb216-medal-reward{font-size:11px;font-weight:800;letter-spacing:.055em;text-align:center;color:#e9f6ff;margin:12px 0 8px}
