/* TapHub v27 — comprehensible admin controls, community moderation and tidy game footer.
   Intentionally scoped. Existing 500px shell and the always-visible bottom bar remain untouched. */
#app .th27-admin-menu{margin:16px 12px 20px;padding:14px;border:1px solid #333047;border-radius:18px;background:linear-gradient(160deg,#181729,#111524);min-width:0}
#app .th27-admin-menu-head{margin:0 0 12px}
#app .th27-admin-menu-head h3{margin:0 0 5px;font-size:17px;line-height:1.25;color:#f7f2fc;font-weight:800}
#app .th27-admin-menu-head p{margin:0;font-size:12px;color:#a8a4ba}
#app .th27-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
#app .th27-admin-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;width:100%;min-width:0;min-height:94px;padding:12px;border:1px solid #363348;border-radius:13px;background:#222034;color:#eceaf3;cursor:pointer;transition:background .13s,border-color .13s;white-space:normal}
#app .th27-admin-tile:hover,#app .th27-admin-tile:focus-visible{border-color:#a576d3;background:#2a2344}
#app .th27-admin-tile.is-selected{background:#352044;border-color:#bd70e8;box-shadow:inset 3px 0 #c46cf0}
#app .th27-admin-tile-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;color:#d5b3ff;background:#3b2d53}
#app .th27-admin-tile-icon .lucide{width:17px;height:17px}
#app .th27-admin-tile-copy{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
#app .th27-admin-tile-copy strong{font-size:13px;line-height:1.25;font-weight:750;color:#fff}
#app .th27-admin-tile-copy small{font-size:11px;line-height:1.4;color:#aaa6b9}
#app .th27-community-shortcut{width:100%;margin-top:12px;display:flex;align-items:center;text-align:left;gap:11px;padding:13px;border-radius:13px;border:1px solid #7660a1;background:#302446;color:#efe7ff;cursor:pointer}
#app .th27-community-shortcut>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;overflow-wrap:anywhere}
#app .th27-community-shortcut strong{font-size:13px}
#app .th27-community-shortcut small{font-size:11px;line-height:1.4;color:#c4b7d5}
#app .th27-community-shortcut .lucide{flex:none;width:19px;height:19px}
#app .th27-game-tools{display:flex;flex-direction:column;gap:13px;margin:20px 0 5px;min-width:0}
#app .th27-report{align-self:flex-start;width:auto;max-width:100%;display:inline-flex;align-items:center;gap:6px;margin:0;padding:8px 6px;background:transparent;border:0;color:#a6a6c0;text-align:left;min-height:36px;font-size:12px;white-space:normal}
#app .th27-report .lucide{width:15px;height:15px;flex:none}
#app .th27-admin-game-tools{padding:13px;border:1px solid #3d3550;background:#1b192c;border-radius:15px;min-width:0}
#app .th27-admin-game-tools h3{margin:0 0 10px;font-size:13px;font-weight:750;color:#d8cced;line-height:1.2}
#app .th27-admin-game-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
#app .th27-admin-game-actions .ghost-button{width:100%;max-width:100%;min-width:0;min-height:46px;padding:10px 8px;display:flex;justify-content:center;align-items:center;gap:7px;text-align:center;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.25}
#app .th27-admin-game-actions .lucide{flex-shrink:0;width:17px;height:17px}
/* Community review: a 500px page with clear headings and genuinely actionable cards. */
#app .th27-community{width:100%;max-width:100%;min-width:0;padding:14px 14px 105px!important;box-sizing:border-box}
#app .th27-back{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:#bfb1d7;padding:8px 0;margin-bottom:16px;font:inherit;font-size:12px;cursor:pointer}
#app .th27-back .lucide{width:16px;height:16px}
#app .th27-community-head{padding-bottom:8px}
#app .th27-eyebrow{display:block;letter-spacing:.13em;color:#d6a1ff;font-size:10px;font-weight:800;margin-bottom:10px}
#app .th27-community-head h1{font-family:inherit;font-size:25px;line-height:1.16;letter-spacing:-.02em;color:#f7f2ff;margin:0 0 11px}
#app .th27-community-head p{color:#b8b2c9;font-size:13px;line-height:1.55;margin:0 0 13px;max-width:60ch}
#app .th27-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0;margin:5px 0 24px}
#app .th27-overview-link{display:flex;align-items:flex-start;gap:7px;text-decoration:none;border:1px solid #423755;border-radius:12px;background:#201a30;color:#eee7f7;padding:11px 10px;min-width:0;min-height:78px}
#app .th27-overview-link:focus-visible,#app .th27-overview-link:hover{border-color:#a278d7;background:#2b2041}
#app .th27-overview-link>.lucide{width:17px;height:17px;color:#c79bea;flex:none;margin-top:2px}
#app .th27-overview-link>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
#app .th27-overview-link strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
#app .th27-overview-link small{font-size:10px;line-height:1.35;color:#aaa5bd}
#app .th27-overview-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:8px;padding:0 4px;background:#29243a;color:#a9a2b6;font-size:12px;font-weight:800;flex:none}
#app .th27-overview-count.has-items{background:#703c8f;color:#fff}
#app .th27-queue-section{scroll-margin-top:75px;margin:0 0 26px;min-width:0}
#app .th27-section-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:11px;min-width:0}
#app .th27-section-icon{display:inline-flex;width:35px;height:35px;border-radius:11px;flex:none;align-items:center;justify-content:center;background:#2a2342;color:#c9a0eb}
#app .th27-section-icon .lucide{width:18px;height:18px}
#app .th27-section-title>div{min-width:0}
#app .th27-section-title h2{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 3px;font-size:17px;line-height:1.3;color:#f2edf7;letter-spacing:0}
#app .th27-section-title p{margin:0;color:#a9a4bc;font-size:12px;line-height:1.45}
#app .th27-counter{font:inherit;font-size:11px;font-weight:800;border-radius:9px;background:#302746;color:#ddc4f1;padding:3px 8px}
#app .th27-queue-list{display:flex;flex-direction:column;gap:10px;min-width:0}
#app .th27-empty{display:flex;align-items:center;gap:12px;background:#161b2b;border:1px dashed #3d3c58;border-radius:13px;padding:15px 12px;min-width:0}
#app .th27-empty>.lucide{width:25px;height:25px;color:#85c3aa;flex:none}
#app .th27-empty strong{display:block;font-size:13px;color:#d8e6e3}
#app .th27-empty p{margin:4px 0 0;font-size:12px;line-height:1.4;color:#9da9b6}
#app .th27-queue-card{border:1px solid #49405e;border-radius:15px;background:linear-gradient(140deg,#211a30,#171929);padding:14px;min-width:0;overflow-wrap:anywhere}
#app .th27-card-text h3{margin:0 0 6px;font-size:15px;line-height:1.3;color:#f4effa}
#app .th27-card-subtitle{font-size:11px;color:#b5a9c7;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
#app .th27-description{font-size:13px;line-height:1.6;color:#d5cede;margin:0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}
#app .th27-card-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
#app .th27-card-actions button{flex:1 1 135px;min-height:42px;border-radius:10px;padding:10px 12px;display:inline-flex;gap:7px;justify-content:center;align-items:center;text-align:center;font:inherit;font-size:12px;font-weight:800;cursor:pointer;min-width:0;white-space:normal}
#app .th27-card-actions button:disabled{opacity:.55;cursor:wait}
#app .th27-card-actions .lucide{width:16px;height:16px;flex:none}
#app .th27-approve{border:1px solid #b385d6;background:#8c38bf;color:white}
#app .th27-decline{border:1px solid #6b4558;background:#30232e;color:#ffd7df}
#app .th27-edit-ad{border:1px solid #9b81c1;background:#39254c;color:#f3eaff}
#app .th27-details{border:1px solid #46405a;border-radius:10px;padding:8px 10px;margin-bottom:12px}
#app .th27-details>summary{font-size:12px;font-weight:750;color:#e1c5ff;cursor:pointer}
#app .th27-details-content{display:flex;flex-direction:column;gap:12px;padding:12px 0 4px}
#app .th27-details-content strong{font-size:11px;color:#ae9fc6}
#app .th27-details-content p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#ddd5e7;white-space:pre-wrap;overflow-wrap:anywhere}
#app .th27-ad-status{margin:0 0 12px}
#app .th27-status{display:inline-flex;padding:5px 9px;border-radius:10px;font-size:11px;font-weight:800;background:#3d304c;color:#ddc4f4}
#app .th27-status-pending,#app .th27-status-negotiating{background:#48382a;color:#f5d28b}
#app .th27-status-active,#app .th27-status-approved{background:#21463e;color:#9ce4c8}
#app .th27-status-rejected{background:#482a37;color:#ffb4c2}
#app .th27-terms{border-top:1px solid #393249;padding-top:9px;margin:5px 0}
#app .th27-terms span{font-size:11px;color:#bcaece}
#app .th27-terms p{margin:5px 0 0;color:#efebf7;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#app .th27-help-note{display:flex;align-items:flex-start;gap:9px;padding:13px 12px;border-radius:12px;border:1px solid #4b3c5b;background:#261d31}
#app .th27-help-note .lucide{color:#d6aeed;width:18px;height:18px;flex:none}
#app .th27-help-note p{font-size:11px;line-height:1.55;margin:0;color:#c5b7d2}
#modal-layer .th27-modal-message{padding:10px 12px;border-radius:10px;background:#1b172a;border:1px solid #423850;color:#d5cadd;line-height:1.5;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
#modal-layer #th27-ad-form{display:flex;flex-direction:column;gap:12px;min-width:0}
#modal-layer #th27-ad-form .dropdown,#modal-layer #th27-ad-form .textarea{width:100%;max-width:100%;box-sizing:border-box}
#modal-layer #th27-ad-form .th27-modal-submit{width:100%;min-height:44px}
@media(max-width:355px){#app .th27-overview-link{padding:9px 8px;gap:5px}#app .th27-overview-count{min-width:21px}#app .th27-admin-menu{margin-inline:8px;padding:10px}#app .th27-admin-grid{gap:7px}#app .th27-admin-tile{padding:9px}#app .th27-admin-game-actions{grid-template-columns:1fr}}

/* Automatic hero slider: the original 500px shell and footer are not changed. */
#app .th27-carousel{isolation:isolate}
#app .th27-slide{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease,visibility .45s ease;z-index:0}
#app .th27-slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
#app .th27-slide .th26-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#app .th27-slide .th26-hero-shade{position:absolute;inset:0}
#app .th27-slide .th26-hero-copy{position:absolute;bottom:14px;left:15px;right:15px}
#app .th27-carousel .th27-hero-arrow{z-index:3;position:absolute;top:38%;display:flex;align-items:center;justify-content:center;width:32px;height:44px;border:1px solid rgba(255,255,255,.25);background:rgba(15,11,27,.5);border-radius:10px;color:#f5e6ff;cursor:pointer;backdrop-filter:blur(4px)}
#app .th27-hero-arrow .lucide{width:18px;height:18px}
#app .th27-arrow-prev{left:7px}
#app .th27-arrow-next{right:7px}
#app .th27-carousel .th27-hero-arrow:hover,#app .th27-carousel .th27-hero-arrow:focus-visible{background:rgba(87,42,129,.84);outline:2px solid #b889ef;outline-offset:1px}
#app .th27-hero-dots{position:relative;min-height:22px;gap:11px;margin-bottom:8px}
#app .th27-hero-dots>button{min-width:20px;min-height:20px;background-clip:content-box;padding:5px}
#app .th27-hero-dots>button.active{width:31px}
#app .th27-hero-count{font-size:11px;font-weight:750;color:#ad9bbd;position:absolute;right:14px;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){#app .th27-slide{transition:none}}
