/* TapHub Premium v5 — implementation over actual portal markup, no placeholder artworks.
   Designed for 360 px portrait content. Keep app routes, API and auth untouched. */
:root{--v5-bg:#0c0b18;--v5-plate:#1a1228;--v5-line:#523565;--v5-purple:#af66e9;--v5-text:#f7effc;--v5-muted:#af9dbd}
html,body{overflow-x:hidden;background:#080914}
#app.phone-shell{width:100%!important;max-width:360px!important;min-width:0!important;background:radial-gradient(ellipse 230px 330px at 12% -3%,#352044 0,transparent 85%),linear-gradient(180deg,#0e0c1d,#0b0a15)!important;border-inline:1px solid #3d2c53!important;box-shadow:0 0 65px #6f36ad20!important;color:var(--v5-text)}
#app .page{overflow-wrap:break-word;min-width:0}
#app .app-header{background:#100d1fee!important;backdrop-filter:blur(12px);border-bottom:1px solid #62407655!important}
#app .header-inner{min-height:55px!important;padding-inline:12px!important}
#app .brand-big{font-weight:900!important;letter-spacing:-1.1px!important;filter:drop-shadow(0 1px 7px #ac64f740)}
#app .header-icon{background:#261831!important;border:1px solid #64417a!important;border-radius:11px!important;min-width:34px!important;height:34px!important;box-shadow:inset 0 1px #ffffff15}
#app .bottom-nav{background:#0d0a19f7!important;border-top:1px solid #4d315e!important;box-shadow:0 -6px 23px #08070d88!important;backdrop-filter:blur(18px)}
#app .bottom-nav .nav-link{border-radius:10px;min-width:0!important;padding:8px 0 5px!important;transition:color .2s ease,background .2s ease}
#app .bottom-nav .nav-link.active{color:#f8e9ff!important;background:#3d1c5352!important}
#app .bottom-nav .nav-link.active .nav-symbol{filter:drop-shadow(0 0 6px #b772fb)}
#app .bottom-nav .nav-label{font-size:9px!important}
#app .page-home{background:none!important}
#app .page-home .show-section{margin:14px 9px 0!important;padding:0!important}
#app .page-home .section-head{margin:0 1px 9px!important;align-items:center}
#app .page-home .section-head h2{font-family:inherit!important;font-size:17px!important;font-weight:850!important;letter-spacing:-.4px!important;color:#f3e8fc!important}
#app .page-home .inline-link{font-size:10px!important;color:#c789f4!important}
#app .page-home .showcase,#app .th26-hero{margin:8px 8px 0!important;overflow:hidden!important;border:1px solid #8950bb!important;border-radius:18px!important;box-shadow:inset 0 1px #ffffff20,0 15px 30px #090312b8,0 0 22px #a353df25!important}
#app .page-home .showcase{min-height:190px!important;background:radial-gradient(circle at 85% 40%,#75459b66,#21102d 75%)!important}
#app .page-home .showcase-content h1{font-size:25px!important;line-height:1.02!important;letter-spacing:-.7px!important}
#app .th26-hero .th26-hero-copy h1{font-family:inherit!important;font-size:24px!important;line-height:1.05!important;letter-spacing:-.65px!important;text-shadow:0 2px 13px #07050dc2}
#app .th26-hero .th26-hero-copy p{font-size:11px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important}
#app .th26-hero .neon-button,#app .page-home .showcase .neon-button{font-size:11px!important;border-radius:10px!important;background:linear-gradient(118deg,#7322b9,#bd67f6)!important;border:1px solid #e2a8fb!important;box-shadow:0 4px 19px #b640dd50!important}
#app .th26-hero-dots{margin:3px auto 2px!important}
/* Circular stories: native horizontal strip, fixed 1:1 ring + cover image. */
#app .page-home #th-story-home.th-story-strip{margin:13px 8px 4px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:1px 3px 5px!important;overflow:hidden!important}
#app .th-story-strip h2{font-size:16px!important;font-weight:850!important;color:#f4e6ff!important;letter-spacing:-.35px!important;margin:0 0 10px!important}
#app .th-story-row{display:flex!important;gap:12px!important;overflow-x:auto!important;scroll-snap-type:x proximity;flex-wrap:nowrap!important;align-items:flex-start!important;scrollbar-width:none!important;padding:3px 0 9px!important}
#app .th-story-row::-webkit-scrollbar{display:none}
#app .th-story-row .th-story-circle{box-sizing:border-box!important;flex:0 0 63px!important;width:63px!important;min-width:63px!important;max-width:63px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;scroll-snap-align:start}
#app .th-story-circle .th-story-ring{display:block!important;box-sizing:border-box!important;position:relative!important;aspect-ratio:1/1!important;flex:0 0 60px!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-width:60px!important;max-height:60px!important;border-radius:50%!important;border:0!important;overflow:hidden!important;padding:3px!important;background:linear-gradient(145deg,#f0b3ff,#a342f0 65%,#7d44e5)!important;box-shadow:0 0 0 1px #f1caff24,0 0 14px #b23bea75!important}
#app .th-story-circle .th-story-ring img{display:block!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-height:0!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;border:0!important;padding:0!important;background:#21142f!important}
#app .th-story-circle.th-seen .th-story-ring{background:linear-gradient(130deg,#9f9cae,#58596c)!important;box-shadow:none!important}
#app .th-story-circle.th-seen .th-story-ring img{filter:saturate(.65)!important}
#app .th-story-circle .th-story-label{display:block!important;width:63px!important;max-width:63px!important;color:#e6d6f0!important;font-size:9px!important;line-height:1.28!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;text-align:center!important;max-height:26px!important;overflow:hidden!important}
#app .th-story-circle.th-seen .th-story-label{color:#9b96a7!important}
#app .th-story-viewer{position:relative!important;overflow:hidden!important;border-radius:13px!important}
#app .th-story-viewer img,#app .th-story-viewer video{max-width:100%!important;object-fit:contain!important}
#app .th-viewer-button{background:#20132bbf!important;backdrop-filter:blur(5px);border:1px solid #dcc0fa66!important}
/* Categories as compact horizontally-scrolling violet pills. */
#app .page-home .genre-strip{margin:10px 8px 0!important;padding:3px 0 5px!important;gap:7px!important;overflow-x:auto!important;scrollbar-width:none}
#app .page-home .genre-chip{min-height:35px!important;flex:none!important;background:#23182f!important;border:1px solid #473052!important;border-radius:10px!important;padding:7px 10px!important;font-size:10px!important;box-shadow:inset 0 1px #ffffff12!important}
#app .page-home .genre-chip.active{background:linear-gradient(135deg,#7333a6,#9c45ce)!important;border-color:#d487fb!important}
/* Real project from existing portal API, no invented artwork. */
#app .th-v5-curated{margin:14px 9px 2px!important;padding:0!important}
#app .th-v5-head{margin-bottom:9px}.th-v5-head span{color:#b383d1;font-size:8px;letter-spacing:1.6px;font-weight:900}
#app .th-v5-head h2{margin:4px 0 0;font-size:18px;letter-spacing:-.4px;font-weight:850;color:#f2e8fa}
#app .th-v5-feature-card{width:100%;height:171px;display:block;position:relative;overflow:hidden;text-align:left;border:1px solid #8756a0;border-radius:15px;padding:0;background:#24122d;color:white;box-shadow:0 7px 22px #0008,0 0 16px #9a3cd32b}
#app .th-v5-feature-card>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#20152d}
#app .th-v5-feature-card .th-v5-feature-shade{position:absolute;inset:0;background:linear-gradient(0deg,#0e0719ed 0,transparent 76%)}
#app .th-v5-feature-copy{position:absolute;bottom:12px;left:13px;right:12px;display:flex;align-items:center;gap:8px;color:#fff;z-index:2}
#app .th-v5-feature-copy small{font-size:9px;letter-spacing:.5px;color:#e5bbfc;position:absolute;bottom:25px}
#app .th-v5-feature-copy strong{font-size:17px;font-weight:900;max-width:85%;text-shadow:0 2px 8px #000}
#app .th-v5-feature-copy em{margin-left:auto;background:#8335b5;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;border:1px solid #cf88ed;flex:none}
#app .th-v5-feature-card>.corner-pill{position:absolute;top:9px;left:9px;z-index:3}
#app .page-home .game-card{border:1px solid #59406d!important;border-radius:12px!important;background:#1d1428!important;box-shadow:0 5px 17px #0803107c!important;overflow:hidden}
#app .page-home .game-card .game-card-title{font-size:11px!important;line-height:1.2!important}
#app .page-home .feature-ribbon{border:1px solid #704492!important;border-radius:14px!important;overflow:hidden}
#app .page-home .news-row{background:#191222!important;border:1px solid #4e3462!important;border-radius:12px!important;overflow:hidden}
/* Distinct inner-page treatments, compact cards and controls. */
#app .page:not(.page-home):not(.page-games) .screen-heading{padding:13px 12px!important;margin:7px 8px 12px!important;background:radial-gradient(ellipse at top right,#57276e71,transparent 74%),linear-gradient(145deg,#261732,#151122)!important;border:1px solid #684183!important;border-radius:14px!important}
#app .page:not(.page-home):not(.page-games) .screen-heading h1{font-family:inherit!important;font-size:20px!important;font-weight:850!important;letter-spacing:-.5px!important}
#app .page:not(.page-home):not(.page-games) .screen-kicker{font-size:9px!important;letter-spacing:1.1px!important;color:#c192eb!important}
#app .page:not(.page-home):not(.page-games) .form-card,#app .page:not(.page-home):not(.page-games) .th22-card,#app .page:not(.page-home):not(.page-games) .admin-card{border:1px solid #49325c!important;border-radius:13px!important;background:linear-gradient(140deg,#20182e,#151222)!important;padding:12px!important;box-shadow:inset 0 1px #ffffff10!important;margin-bottom:9px!important}
#app .page:not(.page-home):not(.page-games) input:not([type=checkbox]),#app .page:not(.page-home):not(.page-games) select,#app .page:not(.page-home):not(.page-games) textarea{max-width:100%;box-sizing:border-box;border-radius:9px!important}
#app .page:not(.page-home):not(.page-games) .primary-button{min-height:39px!important;border-radius:10px!important;background:linear-gradient(120deg,#8134bf,#ae55e2)!important;border:1px solid #bf85ed!important;font-weight:800!important}
#app .page:not(.page-home):not(.page-games) .ghost-button{border-radius:9px!important}
/* Profile: prestigious identity panel + genuinely compact navigation rows. */
#app .page-profile .profile-card{margin:7px 8px 0!important;padding:13px 11px!important;border:1px solid #794692!important;border-radius:16px!important;background:radial-gradient(circle at 95% -25%,#9b4cc15b,transparent 55%),linear-gradient(130deg,#361642,#1a1329)!important;box-shadow:0 7px 22px #0007,inset 0 1px #ffffff25!important}
#app .page-profile .profile-top{gap:9px!important}
#app .page-profile .avatar{width:47px!important;height:47px!important;object-fit:cover;border:2px solid #c68aff!important;border-radius:13px!important}
#app .page-profile .profile-name{font-size:16px!important;font-weight:850!important}
#app .page-profile .stats-strip{margin-top:11px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
#app .page-profile .stats-strip>div{background:#130d2377!important;border:1px solid #76548a66!important;border-radius:9px!important;min-width:0!important;padding:7px 2px!important;box-sizing:border-box}
#app .page-profile .stats-strip strong{font-size:16px!important}
#app .page-profile .stats-strip span{font-size:9px!important}
#app .page-profile .profile-content{padding:0 8px!important}
#app .page-profile .th36-menu{margin:12px 0 0!important}
#app .page-profile .th36-menu-title{font-size:17px!important;margin-bottom:10px!important}
#app .page-profile .th36-group{padding:0!important;margin:0 0 13px!important;border:0!important;background:transparent!important;box-shadow:none!important}
#app .page-profile .th36-group-title{font-size:10px!important;letter-spacing:1px!important;text-transform:uppercase!important;color:#c094df!important;margin:0 2px 7px!important}
#app .page-profile .th36-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;background:#191223!important;border:1px solid #473254!important;border-radius:12px!important;overflow:hidden}
#app .page-profile .th36-tile{width:100%!important;max-width:100%!important;min-height:43px!important;display:flex!important;align-items:center!important;padding:8px 10px!important;border-radius:0!important;border:0!important;border-bottom:1px solid #362541!important;background:transparent!important;box-shadow:none!important;gap:10px!important;font-size:12px!important;line-height:1.25!important;text-align:left!important}
#app .page-profile .th36-tile:last-child{border-bottom:0!important}
#app .page-profile .th36-tile .lucide{color:#c485ea!important;width:19px!important;height:19px!important;flex:0 0 19px!important}
#app .page-profile .th36-label{font-size:12px!important;overflow-wrap:normal!important;white-space:normal!important;hyphens:none!important}
#app .page-profile .th36-tile:active{background:#4d2c6655!important}
/* Editorial news: first real publication as large featured card, rest compact. */
#app .page-news .th-v5-news-intro{font-size:11px!important;color:#a995ba!important;margin:0 11px 9px!important}
#app .page-news .news-tabs{margin:0 9px 10px!important;gap:5px!important;overflow-x:auto!important}
#app .page-news .news-tabs .tab{flex:none!important;padding:8px 9px!important;font-size:10px!important}
#app .page-news .th-v5-news-grid{display:flex!important;flex-direction:column!important;gap:9px!important;margin:0 8px!important}
#app .page-news .news-row{display:flex!important;gap:9px!important;min-width:0!important;overflow:hidden!important;padding:8px!important;border-radius:13px!important;border:1px solid #473252!important;background:#191324!important;box-shadow:none!important}
#app .page-news .news-row .news-art{height:78px!important;width:90px!important;min-width:90px!important;flex:0 0 90px!important;border-radius:9px!important;overflow:hidden}
#app .page-news .news-row .news-image{height:100%!important;width:100%!important;object-fit:cover!important}
#app .page-news .news-row .news-title{font-family:inherit!important;font-size:12px!important;font-weight:820!important;line-height:1.3!important;margin:0 0 5px!important}
#app .page-news .news-row .news-text{flex:1!important;min-width:0!important}
#app .page-news .news-row .news-text p{font-size:10px!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
#app .page-news .news-row .news-date{font-size:9px!important}
#app .page-news .news-row:first-child{display:block!important;padding:0!important;position:relative;min-height:225px!important;border:1px solid #8750a9!important;background:#1c1325!important}
#app .page-news .news-row:first-child .news-art{height:225px!important;width:100%!important;min-width:0!important;border-radius:0!important}
#app .page-news .news-row:first-child .news-text{position:absolute;inset:auto 0 0!important;padding:30px 13px 11px!important;background:linear-gradient(0deg,#0b0815 15%,#11091ce6 65%,transparent)!important;color:white!important}
#app .page-news .news-row:first-child .news-title{font-size:17px!important;line-height:1.15!important}
#app .page-news .news-row:first-child .news-text p{font-size:10px!important;color:#e0cae7!important}
#app .page-news .news-row:first-child .news-date{color:#cfa6e7!important}
/* Existing ideas, messages, forum and control panels receive distinct compact treatment. */
#app .page-ideas .th-idea-card,#app .page-ideas .th-ideas-card,#app .page-forum .th-forum-card,#app .page-messages .th-message-row,#app .page-notifications .th26-notice{background:#1b1427!important;border:1px solid #473359!important;border-radius:12px!important;margin-bottom:8px!important;box-shadow:inset 0 1px #ffffff0b!important}
#app .page-ideas .tabs,#app .page-forum .tabs{gap:5px!important;overflow-x:auto!important;scrollbar-width:none}
#app .page-admin .th27-admin-menu,#app .page-developer .th22-card{border-radius:13px!important;background:linear-gradient(135deg,#21172f,#141322)!important;border-color:#55346c!important}
#app .page-admin .th27-admin-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
#app .page-admin .th27-admin-tile{min-width:0!important;padding:8px!important;border-radius:10px!important;min-height:54px!important}
#app .page-admin .th27-admin-tile-copy small{line-height:1.25!important}
#app .page-admin .th27-admin-tile-copy strong{font-size:11px!important}
#app :focus-visible{outline:2px solid #d5a1ff!important;outline-offset:2px!important}
@media(max-width:359px){#app.phone-shell{border-inline:0!important}#app .th-story-row{gap:9px!important}}
@media(prefers-reduced-motion:reduce){#app *,#app *::before,#app *::after{transition-duration:0s!important;animation-duration:0s!important}}
