.duke-menu{color:#eee6d2}
.duke-menu>.eyebrow{color:#d1b57e}
.duke-menu>h2{margin:7px 0 18px;color:#f1dba9}
.duke-layout{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:18px;align-items:start}
.duke-story,.duke-catalog{min-width:0;border:1px solid #806f4d;border-radius:12px;overflow:hidden;background:linear-gradient(150deg,#293b2d,#13241e);box-shadow:0 12px 28px #0005}
.duke-story{position:sticky;top:0}
.duke-portrait{height:300px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 85%,#b6a16a75,transparent 58%),linear-gradient(145deg,#394a34,#192d25 72%);border-bottom:1px solid #9a8154}
.duke-portrait:before{content:"";position:absolute;inset:12px;border:1px solid #b7a16a55;pointer-events:none}
.duke-portrait img{position:absolute;top:-10px;left:calc(50% - 240px);width:480px;height:480px;max-width:none;object-fit:contain;object-position:top center;image-rendering:pixelated;filter:drop-shadow(0 12px 9px #08120dcc);animation:duke-breathe 3.5s ease-in-out infinite}
.duke-portrait-tag{position:absolute;left:14px;top:15px;max-width:96px;padding:5px 6px;border:1px solid #a08d6070;background:#17271fcc;color:#e5ce99;font-size:9px;line-height:1.5;letter-spacing:1px;z-index:1}
.duke-dialogue{position:relative;margin:16px;padding:17px 19px 14px;min-height:132px;border:2px solid #d8c088;border-radius:14px;background:#17291fec;box-shadow:0 6px 0 #0b1912,0 12px 20px #0005}
.duke-dialogue:before{content:"";position:absolute;top:-11px;left:42px;width:17px;height:17px;border-top:2px solid #d8c088;border-left:2px solid #d8c088;background:#17291f;transform:rotate(45deg)}
.duke-speaker{display:block;color:#f5d392;font-size:19px;font-weight:700}
.duke-speaker small{display:block;margin-top:3px;color:#aebfa9;font-size:11px;font-weight:400}
.duke-dialogue p{min-height:54px;margin:12px 0 0;color:#f1eddb!important;font-size:16px!important;line-height:1.8!important}
.duke-dialogue .duke-sr{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);margin:0}
.duke-catalog{padding:20px 22px}
.duke-catalog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:15px;border-bottom:1px solid #687456}
.duke-catalog-header span{font-size:11px;color:#cab78b;letter-spacing:1px}
.duke-catalog-header h3{margin:5px 0 0!important;font-size:22px!important;color:#f3dfb1!important}
.duke-catalog-mark{font-size:28px!important;color:#e2c37c!important}
.duke-catalog .wallet{margin:12px 0;padding:11px 13px;background:#17291f;border-color:#5c704e}
.duke-catalog #service-offers>.wallet{margin-top:0}
.duke-catalog #service-offers>p:not(.service-note){margin:6px 0 14px;font-size:13px;color:#c3d1b8}
.duke-catalog .shop-row{align-items:flex-start;gap:12px;padding:18px 0}
.duke-catalog .shop-row>div{min-width:0}
.duke-catalog .shop-row>div:last-child:not(:first-child){display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.duke-catalog .shop-row h3{margin:0 0 5px!important;color:#ead29e;font-size:16px!important}
.duke-catalog .shop-row p{font-size:12px!important;line-height:1.7!important}
.duke-catalog .shop-row button{min-height:43px;border-radius:5px;background:#38563c;border-color:#819563;font-size:12px;white-space:normal}
.duke-catalog .shop-row button:hover:not(:disabled){background:#4c704c;border-color:#d1bd84}
.duke-catalog .shop-row button:disabled{opacity:.5}
.duke-catalog .service-note{margin:7px 0 11px;color:#aebba7;font-size:11px}
.duke-catalog .service-exit{width:100%;margin-top:24px}
.duke-catalog .duke-aura-back{width:100%;min-height:44px;margin:0 0 14px;padding:9px 14px;text-align:left;border:1px solid #8e986d;border-radius:6px;background:#304738;color:#f1dcad;cursor:pointer}
.duke-catalog .aura-layout{grid-template-columns:1fr}.duke-catalog .aura-stage{width:min(100%,320px);margin:auto}
.duke-catalog .aura-choices button{white-space:normal}
@keyframes duke-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(min-width:761px){#game-shell #drawer:has(.duke-menu){width:min(1020px,calc(100vw - 48px));max-width:calc(100vw - 48px)}}
@media(max-width:760px){.duke-layout{grid-template-columns:1fr;gap:14px}.duke-menu>h2{margin-bottom:12px}.duke-story{position:static}.duke-portrait{height:230px}.duke-portrait img{top:0;left:calc(50% - 200px);width:400px;height:400px}.duke-dialogue{margin:14px;padding:15px;min-height:0}.duke-dialogue p{min-height:0;margin:10px 0;font-size:14px!important}.duke-catalog{padding:16px}.duke-catalog .shop-row{display:block}.duke-catalog .shop-row>div:last-child:not(:first-child){justify-content:flex-start;margin-top:12px}.duke-catalog .shop-row button{flex:1 1 125px}}
@media(max-width:360px){.duke-catalog{padding:12px}}
@media(prefers-reduced-motion:reduce){.duke-portrait img{animation:none}}

/* Duke's catalog keeps the art, description and purchase choices together. */
.duke-menu{--duke-gold:#eacb8e}
.duke-catalog{background:radial-gradient(circle at 100% 0,#6c5a302b,transparent 42%),linear-gradient(155deg,#26382d,#12221d 72%)}
.duke-catalog-header{padding-bottom:18px}
.duke-catalog #service-offers>.wallet{border-radius:8px;background:#0e201a;box-shadow:inset 0 1px #a58a4b2b}
.duke-catalog .shop-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:10px 0;padding:16px;border:1px solid #52654b;border-radius:10px;background:linear-gradient(135deg,#20372b,#172b22);box-shadow:inset 0 1px #ffffff0a}
.duke-catalog .shop-row>div:first-child{min-width:0}
.duke-catalog .shop-row>div:last-child:not(:first-child){align-self:center;display:grid;grid-template-columns:1fr;min-width:128px}
.duke-catalog .shop-row h3{font-size:15px!important;line-height:1.35}
.duke-catalog .shop-row p{clear:both;margin:6px 0 0;color:#b9c8b4!important;font-size:12px!important;line-height:1.55!important}
.duke-catalog .shop-row .item-image-row{width:54px;height:54px;margin:0 12px 5px 0;object-fit:contain;image-rendering:pixelated}
.duke-catalog .shop-row button{min-height:44px;padding:9px 13px;font-size:12px;font-weight:700;background:#405c41;color:#f9e6b8}
.duke-catalog .shop-row button:disabled{opacity:.48;cursor:not-allowed}
.duke-catalog .duke-aura-entry{position:relative;isolation:isolate;display:flex;align-items:center;min-height:112px;padding:22px 25px;overflow:hidden;border:0;background:#11231d}
.duke-aura-entry::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(90deg,#10211bf2 0%,#10211bbd 45%,#10211b18 100%),url('/assets/duke-shop-v1/aura-backdrop-4.png');background-size:100% 100%,100% 400%;background-position:0 0,0 0;image-rendering:pixelated;animation:duke-aura-frames 1.2s steps(1,end) infinite;pointer-events:none}
.duke-catalog .duke-aura-entry .duke-aura-copy{padding:4px 9px;background:#10211b9c;border-radius:4px}
.duke-aura-copy small{letter-spacing:1.5px;color:#e9c583!important}
.duke-catalog .duke-aura-entry h3{margin:2px 0!important;color:#fff0bf!important;font-size:19px!important}
.duke-catalog .duke-aura-entry p{max-width:310px;margin:3px 0 0!important}
.duke-catalog .duke-aura-entry button{position:relative;flex-shrink:0;margin-left:auto;border-color:#bc9b60;background:#675332;color:#fff2ca}
.duke-rename-entry{border-style:dashed!important}
@keyframes duke-aura-frames{0%,100%{background-position:0 0,0 0}25%{background-position:0 0,0 33.333%}50%{background-position:0 0,0 66.667%}75%{background-position:0 0,0 100%}}
.identity-card{max-width:630px;padding:22px;border:1px solid #8c784f;border-radius:12px;background:linear-gradient(145deg,#263a2c,#12241e);box-shadow:0 10px 26px #0004}
.identity-card-head{display:flex;align-items:center;gap:15px;padding-bottom:16px;border-bottom:1px solid #677557}
.identity-card-head .item-image{flex:none;width:64px;height:64px;float:none;margin:0;image-rendering:pixelated}
.identity-card-head small{color:#d5be86;letter-spacing:1px}
.identity-card-head h3{margin:3px 0;color:#f4dda8;font-size:20px}
.identity-card-head p{margin:0;color:#b9c9b2;font-size:13px}
.identity-card form{margin-top:18px}
.identity-card form>label{color:#e8d9b3;font-size:13px}
.identity-card input[name=name]{margin-bottom:4px;font-size:16px}
.identity-payment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}
.identity-payment label{display:flex;align-items:center;gap:7px;padding:12px;border:1px solid #687453;border-radius:8px;background:#20362a;color:#f3e1b7;font-size:13px;cursor:pointer}
.identity-payment label:has(input:checked){border-color:#d3b478;background:#344b36}
.identity-payment label:has(input:disabled){opacity:.48;cursor:not-allowed}
.identity-payment input{display:inline-block!important;width:auto!important;margin:0!important;min-height:0!important;accent-color:#e2c27e}
.identity-payment small{display:block;margin-left:auto;color:#b9c8b2;font-size:11px}
.identity-card button[type=submit]{width:100%;min-height:46px;margin:0}
.identity-error{min-height:18px;color:#ffc3b1!important;font-size:12px}
@media(max-width:760px){.duke-catalog .shop-row{display:grid;padding:14px}.duke-catalog .shop-row>div:last-child:not(:first-child){margin:0}.duke-catalog .duke-aura-entry{display:flex;padding:20px 22px}}
@media(max-width:520px){.duke-catalog .shop-row{grid-template-columns:1fr;gap:10px}.duke-catalog .shop-row>div:last-child:not(:first-child){grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.duke-catalog .shop-row>div:last-child:not(:first-child) button{min-width:0}.duke-catalog .duke-aura-entry{display:flex;flex-wrap:wrap;min-height:145px;padding:20px 24px}.duke-catalog .duke-aura-entry button{margin:3px 0 0 auto}.identity-card{padding:16px}.identity-payment{grid-template-columns:1fr}}
@media(max-width:360px){.identity-payment label{padding:10px;gap:5px;font-size:12px}.identity-payment small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.duke-aura-entry::before{animation:none}}
