/* Skill management uses the existing cream paper, with independent list space. */
#game-container .recruit-modal-shell[data-recruit-shell="ninja-skills"]{width:min(60cqw,calc(85cqh * 16 / 9));height:auto;aspect-ratio:16/9;border-width:calc(10 * var(--phone-pixel,1px));}
#game-container .nog-panel.nog-popup{--nog-unit:1.15px;container-type:normal;padding:calc(6 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));line-height:1.25;gap:calc(4 * var(--nog-unit));overflow:hidden!important;}
#game-container .nog-popup :is(h3,h4,p){margin:0;}
#game-container .nog-popup .nog-heading{display:flex;align-items:center;justify-content:space-between;gap:calc(8 * var(--nog-unit));min-height:calc(36 * var(--nog-unit));padding:0 0 calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-heading h2{margin:0;color:#775127;font-size:calc(17 * var(--nog-unit));line-height:1.15;}
#game-container .nog-popup .nog-heading p{display:block;margin:calc(3 * var(--nog-unit)) 0 0;font-size:calc(10 * var(--nog-unit));white-space:normal;}
#game-container .nog-popup .nog-popup-identity{display:flex;align-items:center;gap:calc(7 * var(--nog-unit));min-width:0;}
#game-container .nog-popup .nog-popup-identity>div{min-width:0;}
#game-container .nog-popup .nog-popup-portrait{display:grid;place-items:center;flex:none;width:calc(42 * var(--nog-unit));height:calc(38 * var(--nog-unit));overflow:hidden;}
#game-container .nog-popup .nog-popup-portrait>.ninja-bust-art{width:100%;height:100%;max-height:none;}
#game-container .nog-popup .nog-catalogue-total{flex:none;padding:calc(5 * var(--nog-unit)) calc(10 * var(--nog-unit));border:1px solid #cbbb9c;border-radius:calc(4 * var(--nog-unit));background:#f2e8d1;color:#816136;font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-popup-footer{display:flex;align-items:center;justify-content:space-between;gap:calc(8 * var(--nog-unit));flex:none;min-height:calc(30 * var(--nog-unit));border-top:1px solid #d7c8ac;padding-top:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-popup-footer>span{font-size:calc(9 * var(--nog-unit));color:#8c7654;}
#game-container .nog-popup .nog-popup-wallet{display:flex;align-items:center;gap:calc(10 * var(--nog-unit));padding-right:calc(9 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));white-space:nowrap;}
#game-container .nog-popup .nog-button{min-height:calc(28 * var(--nog-unit));height:auto;min-width:calc(44 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) calc(7 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));line-height:1.15;}
#game-container .nog-popup .nog-tabs{gap:calc(5 * var(--nog-unit));padding:0;}
#game-container .nog-popup .nog-tabs .nog-button{min-height:calc(28 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-content{position:relative;gap:calc(5 * var(--nog-unit));overflow:hidden;}
#game-container .nog-popup :is(.nog-basic-layout,.nog-unique-layout){display:grid;grid-template-columns:36% minmax(0,1fr);flex:1;gap:calc(10 * var(--nog-unit));min-height:0;}
#game-container .nog-popup .nog-unique-layout{grid-template-columns:48% minmax(0,1fr);}
#game-container .nog-popup :is(.nog-overview,.nog-library){display:flex;flex-direction:column;gap:calc(5 * var(--nog-unit));min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;}
#game-container .nog-popup .nog-overview>h3{margin:0;color:#775127;font-size:calc(11 * var(--nog-unit));}
#game-container .nog-popup :is(.nog-note,.nog-grade-rule,.nog-requirement){font-size:calc(9 * var(--nog-unit));line-height:1.2;white-space:normal;flex:none;}
#game-container .nog-popup .nog-requirement{color:#a06b36;}
#game-container .nog-popup .nog-basic-slots{grid-template-columns:1fr;gap:calc(5 * var(--nog-unit));flex:none;}
#game-container .nog-popup .nog-basic-slot{display:grid;grid-template-columns:calc(32 * var(--nog-unit)) minmax(0,1fr) auto;gap:calc(5 * var(--nog-unit));min-height:calc(49 * var(--nog-unit));padding:calc(5 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot.is-selected{border-color:#379bc2;background:#f1fbff;box-shadow:inset 0 0 0 1px #379bc244;}
#game-container .nog-popup .nog-basic-slot .nog-slot-art{width:calc(32 * var(--nog-unit));height:calc(32 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot>div{gap:calc(2 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot :is(small,div>span){font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot strong{font-size:calc(11 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot.locked{min-height:calc(62 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-slot .nog-requirement{grid-column:1/-1;}
#game-container .nog-popup .nog-basic-slot .nog-button{margin:0;padding:calc(3 * var(--nog-unit)) calc(5 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-reset{display:grid;grid-template-columns:1fr 1fr;gap:calc(3 * var(--nog-unit));flex:none;padding:calc(4 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-reset>div{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-reset strong{font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-reset small{font-size:calc(9 * var(--nog-unit));line-height:1.15;}
#game-container .nog-popup .nog-reset .nog-button{min-height:calc(25 * var(--nog-unit));padding:calc(2 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-footer{margin-top:auto;gap:calc(5 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) 0 0;min-height:calc(30 * var(--nog-unit));}
#game-container .nog-popup .nog-footer>span{font-size:calc(9 * var(--nog-unit));white-space:normal;}
#game-container .nog-popup .nog-subhead{padding:0;min-height:calc(15 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));gap:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-subhead>span{font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-list{display:flex;flex:1;flex-direction:column;gap:calc(5 * var(--nog-unit));min-height:0;overflow:auto;scrollbar-width:thin;touch-action:pan-y;overscroll-behavior:contain;}
#game-container .nog-popup .nog-basic-card{grid-template-columns:calc(36 * var(--nog-unit)) minmax(0,1fr);gap:calc(7 * var(--nog-unit));flex:none;min-height:0;padding:calc(6 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-art{align-self:start;width:calc(36 * var(--nog-unit));height:calc(36 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-card h4{margin:0;gap:calc(5 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));line-height:1.2;}
#game-container .nog-popup .nog-basic-card h4>b{font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-card p{margin:calc(3 * var(--nog-unit)) 0 0;font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-card .nog-basic-help{font-size:calc(9 * var(--nog-unit));line-height:1.2;}
#game-container .nog-popup .nog-basic-actions{align-items:center;flex-wrap:wrap;gap:calc(4 * var(--nog-unit));margin-top:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-actions .nog-button{min-height:calc(26 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) calc(7 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-layout .nog-overview{gap:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-layout .nog-overview>.nog-note{color:#796a50;}
#game-container .nog-popup .nog-book-balance{padding:calc(3 * var(--nog-unit)) calc(7 * var(--nog-unit));border:1px solid #d4c6aa;border-radius:calc(3 * var(--nog-unit));background:#f5edda;color:#6b5133;}
#game-container .nog-popup .nog-basic-guide{display:flex;align-items:center;justify-content:space-between;gap:calc(5 * var(--nog-unit));flex:none;min-height:calc(23 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) calc(6 * var(--nog-unit));border:1px solid #ddcfb3;border-radius:calc(4 * var(--nog-unit));background:#f8f0de;color:#735532;font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-guide>span{display:inline-flex;align-items:center;gap:calc(4 * var(--nog-unit));white-space:nowrap;}
#game-container .nog-popup .nog-basic-guide b{display:grid;place-items:center;width:calc(15 * var(--nog-unit));height:calc(15 * var(--nog-unit));border-radius:50%;background:#d8bf8f;color:#604221;font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-guide i{font-style:normal;color:#9b845b;}
#game-container .nog-popup .nog-basic-card{align-items:start;gap:calc(3 * var(--nog-unit)) calc(7 * var(--nog-unit));padding:calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-card.is-equipped{border-color:#aab788;background:#f7f9ed;}
#game-container .nog-popup .nog-basic-copy{min-width:0;}
#game-container .nog-popup .nog-basic-card h4{align-items:baseline;color:#684829;}
#game-container .nog-popup .nog-basic-card h4>b{flex:none;}
#game-container .nog-popup .nog-basic-card .nog-basic-bonus{color:#736147;}
#game-container .nog-popup .nog-basic-card .nog-basic-bonus strong{color:#72511f;font-size:inherit;}
#game-container .nog-popup .nog-basic-card :is(.nog-basic-bonus,.nog-basic-help){margin-top:calc(2 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-kind{display:inline-block;padding:calc(1 * var(--nog-unit)) calc(4 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));background:#e5edf0;color:#39616f;font-weight:bold;font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-kind.is-passive{background:#e7eddb;color:#5d713c;}
#game-container .nog-popup .nog-basic-action-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:calc(7 * var(--nog-unit));min-width:0;margin-top:calc(2 * var(--nog-unit));padding-top:calc(3 * var(--nog-unit));border-top:1px solid #dfd3bc;}
#game-container .nog-popup .nog-basic-price{display:flex;flex-direction:column;gap:calc(2 * var(--nog-unit));flex:1;min-width:0;}
#game-container .nog-popup .nog-basic-price small{font-size:calc(9 * var(--nog-unit));color:#8d7756;}
#game-container .nog-popup .nog-basic-price strong{font-size:calc(10 * var(--nog-unit));color:#785623;white-space:nowrap;}
#game-container .nog-popup .nog-basic-action-row .nog-basic-actions{flex-wrap:nowrap;gap:calc(4 * var(--nog-unit));margin:0;}
#game-container .nog-popup .nog-basic-action-row .nog-button{min-width:0;padding-inline:calc(6 * var(--nog-unit));}
#game-container .nog-popup .nog-basic-price>.nog-requirement{margin:0;color:#906035;font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-reset>.nog-note{grid-column:1/-1;color:#796a50;}
#game-container .nog-popup .nog-scroll-hint{text-align:right;}
#game-container .nog-popup .nog-unique-views{grid-template-columns:repeat(2,minmax(0,1fr));width:48%;gap:calc(5 * var(--nog-unit));margin:0;}
#game-container .nog-popup .nog-unique-views .nog-button{min-height:calc(26 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-grid{gap:calc(5 * var(--nog-unit));}
#game-container .nog-popup[data-owned-growth="unique"] .nog-unique-grid .nog-unique-slot{height:calc(40 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-slot>small{left:calc(3 * var(--nog-unit));bottom:calc(3 * var(--nog-unit));font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-slot>b{right:calc(2 * var(--nog-unit));bottom:calc(2 * var(--nog-unit));min-width:0;padding:0 calc(2 * var(--nog-unit));font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock{grid-template-columns:calc(28 * var(--nog-unit)) minmax(0,1fr) auto;gap:calc(5 * var(--nog-unit));padding:calc(5 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock>span{width:calc(28 * var(--nog-unit));height:calc(34 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock>div{gap:calc(2 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock strong{font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock small{font-size:calc(9 * var(--nog-unit));}
#game-container .nog-popup .nog-unique-unlock .nog-button{font-size:calc(10 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) calc(6 * var(--nog-unit));}
#game-container .nog-popup .nog-unlock-complete{padding:calc(5 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup[data-owned-growth="unique"] :is(.nog-books,.nog-empty-books){min-height:0;}
#game-container .nog-popup .nog-books{display:flex;flex:1;flex-direction:column;gap:calc(5 * var(--nog-unit));overflow:auto;scrollbar-width:thin;}
#game-container .nog-popup .nog-book-card{grid-template-columns:calc(34 * var(--nog-unit)) minmax(0,1fr) auto;flex:none;min-height:calc(61 * var(--nog-unit));gap:calc(5 * var(--nog-unit));padding:calc(5 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup[data-owned-growth="unique"] .nog-book-card{min-height:calc(61 * var(--nog-unit));}
#game-container .nog-popup[data-owned-growth="unique"] .nog-book-card>img{width:calc(34 * var(--nog-unit));height:calc(34 * var(--nog-unit));}
#game-container .nog-popup .nog-book-card>div{gap:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-book-card h4{font-size:calc(11 * var(--nog-unit));}
#game-container .nog-popup .nog-book-card small{font-size:calc(9 * var(--nog-unit));white-space:normal;}
#game-container .nog-popup .nog-book-card .nog-button{min-width:calc(53 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));padding:calc(3 * var(--nog-unit)) calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-empty-books{flex:1;padding:calc(12 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-pager{min-height:calc(28 * var(--nog-unit));gap:calc(12 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-pager .nog-button{width:calc(32 * var(--nog-unit));height:calc(28 * var(--nog-unit));padding:0;font-size:calc(18 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-roles{gap:calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-roles .nog-button{min-height:calc(26 * var(--nog-unit));gap:calc(4 * var(--nog-unit));padding:calc(2 * var(--nog-unit)) calc(5 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-roles .ninja-class-icon{width:calc(16 * var(--nog-unit));height:calc(16 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-tiers{gap:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-tiers .nog-button{min-height:calc(26 * var(--nog-unit));font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue>:is(.nog-subhead,.nog-catalogue-grid,.nog-pager,.nog-note){grid-column:1/-1;}
#game-container .nog-popup .nog-catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:calc(5 * var(--nog-unit));min-height:0;}
#game-container .nog-popup .nog-catalogue-card{flex-direction:row;align-items:center;gap:calc(7 * var(--nog-unit));height:100%;min-height:calc(50 * var(--nog-unit));padding:calc(5 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-card>img{width:calc(36 * var(--nog-unit));height:calc(36 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));}
#game-container .nog-popup .nog-catalogue-card>.nog-catalogue-name{font-size:calc(10 * var(--nog-unit));text-align:left;-webkit-line-clamp:3;}
#game-container .nog-popup .nog-skill-info[open]{padding:calc(10 * var(--nog-unit));border-radius:calc(5 * var(--nog-unit));}
#game-container .nog-popup .nog-skill-info[open]>.nog-unique-slot{height:auto;gap:calc(8 * var(--nog-unit));min-height:calc(45 * var(--nog-unit));padding:0 0 calc(6 * var(--nog-unit));}
#game-container .nog-popup .nog-skill-info[open]>.nog-unique-slot>.nog-catalogue-name{display:none;}
#game-container .nog-popup .nog-skill-info[open]>.nog-unique-slot>img{width:calc(40 * var(--nog-unit));height:calc(40 * var(--nog-unit));}
#game-container .nog-popup .nog-skill-info[open]>.nog-unique-slot>.nog-skill-open-name{font-size:calc(15 * var(--nog-unit));}
#game-container .nog-popup .nog-skill-info[open]>.nog-unique-slot>.nog-info-dismiss{width:calc(36 * var(--nog-unit));height:calc(36 * var(--nog-unit));border:0;background:transparent url('/assets/equipment/reference-v2/ui/close-orange.svg') center/contain no-repeat;font-size:0;}
#game-container .nog-popup .nog-skill-description{padding:calc(7 * var(--nog-unit)) 0;font-size:calc(11 * var(--nog-unit));line-height:1.35;}
#game-container .nog-popup .nog-skill-description h4{margin:calc(9 * var(--nog-unit)) 0 calc(4 * var(--nog-unit));font-size:calc(12 * var(--nog-unit));}
#game-container .nog-popup .nog-skill-description small{margin-top:calc(10 * var(--nog-unit));font-size:calc(9 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue{grid-template-rows:auto auto minmax(0,1fr) auto;gap:calc(5 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-roles .nog-button{min-height:calc(30 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-tiers .nog-button{min-height:calc(30 * var(--nog-unit));min-width:calc(80 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-grid{gap:calc(7 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-skill:not([open]){height:100%;min-height:0;}
#game-container .nog-catalogue-popup .nog-catalogue-card{align-items:flex-start;justify-content:flex-start;gap:calc(7 * var(--nog-unit));min-height:0;padding:calc(6 * var(--nog-unit));background:linear-gradient(120deg,#fffaf0,#f2e5ca);border-color:#d0b991;box-shadow:0 calc(2 * var(--nog-unit)) calc(3 * var(--nog-unit)) #81613715;}
#game-container .nog-catalogue-popup .nog-catalogue-card:hover{border-color:#ab8857;background:#fff7e6;}
#game-container .nog-catalogue-popup .nog-catalogue-card>img{margin-top:calc(2 * var(--nog-unit));width:calc(36 * var(--nog-unit));height:calc(36 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-preview{display:flex;flex:1;flex-direction:column;gap:calc(3 * var(--nog-unit));min-width:0;align-self:stretch;text-align:left;font-size:calc(9 * var(--nog-unit));line-height:1.2;}
#game-container .nog-catalogue-popup .nog-catalogue-preview>*{flex:none;}
#game-container .nog-catalogue-popup .nog-catalogue-preview>strong{color:#70502c;font-size:calc(11 * var(--nog-unit));line-height:1.2;overflow-wrap:anywhere;}
#game-container .nog-catalogue-popup .nog-catalogue-kind{align-self:flex-start;padding:calc(2 * var(--nog-unit)) calc(4 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));background:#e0eaed;color:#38606d;font-size:calc(9 * var(--nog-unit));line-height:1.1;}
#game-container .nog-catalogue-popup .nog-catalogue-kind.is-passive{background:#e4ebd8;color:#597239;}
#game-container .nog-catalogue-popup .nog-catalogue-effect{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#867051;font-size:calc(9 * var(--nog-unit));line-height:1.25;}
#game-container .nog-catalogue-popup .nog-pager{min-height:calc(18 * var(--nog-unit));height:calc(18 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-pager .nog-button{min-height:calc(18 * var(--nog-unit));height:calc(18 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-catalogue-skill[open] .nog-catalogue-preview{display:none;}
#game-container .nog-catalogue-popup .nog-skill-info[open]{background:#fff9ed;}
#game-container .nog-catalogue-popup .nog-effect-meta{font-size:calc(10 * var(--nog-unit));color:#96754c;}
#game-container .nog-catalogue-popup .nog-effect-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:calc(10 * var(--nog-unit));margin-top:calc(10 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-effect-comparison>article{padding:calc(10 * var(--nog-unit));border:1px solid #d3c3a3;border-radius:calc(5 * var(--nog-unit));background:#f7edda;}
#game-container .nog-catalogue-popup .nog-effect-comparison>article+article{border-color:#b5c298;background:#eef2e2;}
#game-container .nog-catalogue-popup .nog-effect-comparison h4{display:flex;align-items:center;gap:calc(6 * var(--nog-unit));margin:0 0 calc(8 * var(--nog-unit));font-size:calc(12 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-effect-comparison h4>b{padding:calc(4 * var(--nog-unit)) calc(6 * var(--nog-unit));border-radius:calc(3 * var(--nog-unit));background:#dcc391;color:#634720;font-size:calc(11 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-effect-comparison>article+article h4>b{background:#bccc92;color:#486022;}
#game-container .nog-catalogue-popup .nog-effect-comparison p{font-size:calc(11 * var(--nog-unit));line-height:1.4;}
#game-container .nog-catalogue-popup .nog-upgrade-name{display:block;margin-bottom:calc(6 * var(--nog-unit));color:#577138;font-size:calc(11 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-effect-comparison small{margin-top:calc(6 * var(--nog-unit));font-size:calc(9 * var(--nog-unit));}
#game-container .nog-catalogue-popup .nog-effect-learn{margin-top:calc(10 * var(--nog-unit));padding-top:calc(8 * var(--nog-unit));border-top:1px solid #d3c3a3;font-size:calc(10 * var(--nog-unit));color:#8c7654;}
#game-container .nog-popup .nog-growth-list{grid-template-columns:repeat(2,minmax(0,1fr));flex:1;min-height:0;gap:calc(7 * var(--nog-unit));}
#game-container .nog-popup .nog-card{grid-template-columns:calc(35 * var(--nog-unit)) minmax(0,1fr) auto;min-height:0;padding:calc(7 * var(--nog-unit));gap:calc(6 * var(--nog-unit));border-radius:calc(4 * var(--nog-unit));}
#game-container .nog-popup .nog-card-art{width:calc(35 * var(--nog-unit));height:calc(40 * var(--nog-unit));}
#game-container .nog-popup .nog-card h4{gap:calc(5 * var(--nog-unit));margin-bottom:calc(5 * var(--nog-unit));font-size:calc(11 * var(--nog-unit));white-space:normal;}
#game-container .nog-popup .nog-card h4>b{font-size:calc(10 * var(--nog-unit));}
#game-container .nog-popup .nog-card p{font-size:calc(10 * var(--nog-unit));line-height:1.3;}
#game-container .nog-popup .nog-card-actions .nog-button{min-width:calc(49 * var(--nog-unit));padding:calc(4 * var(--nog-unit));}
#game-container[data-phone-layout="true"] .nog-panel.nog-popup{--nog-unit:var(--phone-pixel);}
#game-container[data-phone-layout="true"] .nog-popup .nog-button{min-height:calc(28 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .nog-popup .nog-reset .nog-button{min-height:calc(25 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .nog-popup .nog-basic-actions .nog-button{min-height:calc(26 * var(--phone-pixel));}
#game-container[data-approved-ui][data-phone-layout="true"]:not([data-popup-text-measure]) .nog-popup :is(small,.nog-note,.nog-grade-rule,.nog-requirement,.nog-basic-help,.nog-basic-card h4>b,.nog-footer>span,.nog-basic-slot div>span,.nog-subhead>span)[data-popup-font-original]{font-size:calc(9 * var(--phone-pixel))!important;}
#game-container[data-approved-ui][data-phone-layout="true"]:not([data-popup-text-measure]) .nog-popup :is(.nog-basic-guide span,.nog-basic-guide b,.nog-basic-kind)[data-popup-font-original]{font-size:calc(9 * var(--phone-pixel))!important;}
#game-container[data-approved-ui][data-phone-layout="true"]:not([data-popup-text-measure]) .nog-popup .nog-skill-info[open] .nog-skill-open-name[data-popup-font-original]{font-size:calc(15 * var(--phone-pixel))!important;}
#game-container[data-approved-ui][data-phone-layout="true"]:not([data-popup-text-measure]) .nog-catalogue-popup :is(.nog-catalogue-kind,.nog-catalogue-effect,.nog-catalogue-preview>small,.nog-popup-footer>span)[data-popup-font-original]{font-size:calc(9 * var(--phone-pixel))!important;}
/* Ready candidates retain the desktop full-body portrait in mobile cards. */
#game-container[data-phone-layout="true"] .rs-school-candidates .rs-school-header{height:calc(20 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-candidates .rs-school-body{height:calc(100% - 48 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-portrait{display:grid;place-items:center;overflow:hidden;border-width:calc(2 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-details{border-width:calc(2 * var(--phone-pixel));padding:0;}
#game-container[data-phone-layout="true"] .rs-school-stats{gap:calc(3 * var(--phone-pixel));padding:0 0 calc(2 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-stat>img{width:calc(13 * var(--phone-pixel));height:calc(14 * var(--phone-pixel));flex-basis:calc(13 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-stat>.rs-school-value{width:calc(29 * var(--phone-pixel));height:calc(17 * var(--phone-pixel));flex-basis:calc(29 * var(--phone-pixel));border-width:calc(2 * var(--phone-pixel));font-size:calc(10 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-skill{gap:calc(4 * var(--phone-pixel));margin-top:calc(3 * var(--phone-pixel));font-size:calc(10 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-skill>.rs-school-skill-picture{width:calc(14 * var(--phone-pixel));height:calc(14 * var(--phone-pixel));flex-basis:calc(14 * var(--phone-pixel));}
#game-container[data-phone-layout="true"] .rs-school-candidates :is(.rs-school-footer,.rs-school-condition-footer){bottom:0;height:calc(26 * var(--phone-pixel));}
