/* World-scoped material skin. Layout, block shapes, fonts and game logic are shared. */
html body #lesson[data-world="gobeklitepe"]{
 --gt-ink:#3e453b;--gt-muted:#6d6c59;--gt-teal:#386e68;--gt-edge:#ab9a7d;
 --gt-paper:#e9e1ce;--gt-stone:url('assets/limestone-surface.svg');
 --paper:var(--gt-paper);--forest:#4a6052;--muted:#706c59;--ochre:#987749;
 background:linear-gradient(140deg,#5d614e,#8c795c);color:var(--gt-ink)
}
html body #lesson[data-world="gobeklitepe"]:before{background:#3e443a26}
html body #lesson[data-world="gobeklitepe"] .code-pane{
 background:linear-gradient(120deg,#eee7d9e8,#e0d4badb),var(--gt-stone);
 box-shadow:5px 0 24px #4d433231,inset 0 0 70px #8f7b5120
}
html body #lesson[data-world="gobeklitepe"] .code-pane:before{
 border-image-source:url('assets/limestone-frame.svg');border-image-slice:19;border-image-repeat:stretch
}
html body #lesson[data-world="gobeklitepe"] .code-pane:after,
html body #lesson[data-world="gobeklitepe"] .task-card:before{content:none!important;display:none!important;background:none!important}
html body #lesson[data-world="gobeklitepe"] .code-tabs{
 padding-left:28px;padding-right:25px;gap:9px;
 background:linear-gradient(#e2d8c1cf,#c3b397b8),var(--gt-stone);
 box-shadow:0 3px 0 #897b605e,0 6px 12px #62513b24;border-bottom:1px solid #a49377
}
html body #lesson[data-world="gobeklitepe"] .code-tabs:after{height:3px;background:#a6987b;box-shadow:0 -1px #f6eddb99}
html body #lesson[data-world="gobeklitepe"] .code-tabs button{
 transform:none;clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px);
 border:1px solid #9c9077;border-bottom:4px solid #8c816b;border-radius:0;
 background:linear-gradient(#eee5d2c4,#d2c5aab3),var(--gt-stone);color:#6b6958;
 text-shadow:0 1px #fff9eaaa;box-shadow:inset 0 2px #fff6e2a8,0 2px 4px #5e53352c
}
html body #lesson[data-world="gobeklitepe"] .code-tabs button[aria-selected=true]{
 background:linear-gradient(140deg,#628e7e,#365e55);border-color:#34584b;border-bottom-color:#28473f;
 color:#fff7df;text-shadow:0 1px #243e32;box-shadow:inset 0 2px #b9d3b87d,0 3px 5px #45503c4d
}
html body #lesson[data-world="gobeklitepe"] .code-tabs button:hover:not([aria-selected=true]){background:#e9dfc7;color:#3c6253}
html body #lesson[data-world="gobeklitepe"] .block-palette{border-right-color:#a89a7b66}
html body #lesson[data-world="gobeklitepe"] .palette-tip{color:#665d48}
html body #lesson[data-world="gobeklitepe"] .palette-tip>span{color:#799181}
html body #lesson[data-world="gobeklitepe"] .palette-tip p{color:#635c49!important}
html body #lesson[data-world="gobeklitepe"] .workspace-tools{color:#5d614f;border-bottom-color:#a89b7c66}
html body #lesson[data-world="gobeklitepe"] #undo-code,
html body #lesson[data-world="gobeklitepe"] #redo-code,
html body #lesson[data-world="gobeklitepe"] .workspace-trash{
 background:linear-gradient(#f5edd9d9,#d1c4a8d9),var(--gt-stone);color:#4e6658!important;
 border-color:#9b9278;box-shadow:inset 0 1px #fff9e8,0 2px #897d6152;text-shadow:none
}
html body #lesson[data-world="gobeklitepe"] #undo-code:disabled,
html body #lesson[data-world="gobeklitepe"] #redo-code:disabled{color:#797963!important}
html body #lesson[data-world="gobeklitepe"] .workspace-trash.delete-over{color:#9e5941!important;background:#f2d7ba;border-color:#a97859}
html body #lesson[data-world="gobeklitepe"] .workspace-foot{background:#abb09918;border-top-color:#a4977766;color:#585a48}
html body #lesson[data-world="gobeklitepe"] .workspace-foot>span{color:#5c614e!important}
html body #lesson[data-world="gobeklitepe"] .workspace-foot .lesson-brand{color:#3b6458!important}
html body #lesson[data-world="gobeklitepe"] .workspace-foot .lesson-brand>span{color:#6b806a}
html body #lesson[data-world="gobeklitepe"] .workspace-foot .lesson-brand small{color:#6a6855!important}
html body #lesson[data-world="gobeklitepe"] .lesson-statusbar{color:#5d604d!important}
html body #lesson[data-world="gobeklitepe"] .back-atlas{
 background:linear-gradient(#d9d0b9,#ac9c7c);border-color:#8a7b5e;color:#354f43;
 text-shadow:0 1px #eee7d2;box-shadow:inset 0 1px #fff0cd,0 2px 3px #4b463640
}
html body #lesson[data-world="gobeklitepe"] .level-pill{background:#666e5ce8;border-color:#ded4b499;color:#fff1d0;text-shadow:0 1px #354335;box-shadow:0 3px #5a58425c}
html body #lesson[data-world="gobeklitepe"] .lesson-header-actions button{
 background:linear-gradient(145deg,#909b83,#596a5a);border-color:#d5ccb1;
 box-shadow:0 3px #5e614a,0 6px 8px #413d3030,inset 0 0 0 1px #495c48,inset 0 2px #cbd9bd75
}
html body #lesson[data-world="gobeklitepe"] .lesson-header-actions button:before{filter:drop-shadow(0 1px 1px #394d3b80)}
html body #lesson[data-world="gobeklitepe"] .run-code{
 background:linear-gradient(145deg,#7eae92,#3b7769);border-color:#e1d4ac;
 box-shadow:0 4px #606649,0 7px 8px #3b443b40,inset 0 0 0 2px #41674e,inset 0 3px #d7ead085
}
html body #lesson[data-world="gobeklitepe"] .run-code:after{color:#3b5142;text-shadow:0 1px #f5ecc7}
html body #lesson[data-world="gobeklitepe"] .small-control{background:linear-gradient(145deg,#91afac,#4b7779);border-color:#e1d4b2;box-shadow:0 4px #606649,0 6px 8px #3b443b35,inset 0 0 0 1px #466463,inset 0 3px #d2e4d375}
html body #lesson[data-world="gobeklitepe"] .speed-control,
html body #lesson[data-world="gobeklitepe"] .task-toggle{color:#4e5a45}
html body #lesson[data-world="gobeklitepe"] .speed-control select,
html body #lesson[data-world="gobeklitepe"] .task-toggle{background:#e4dbc2;border:1px solid #b5aa8a;box-shadow:inset 0 1px #fff4d8}
html body #lesson[data-world="gobeklitepe"] .task-card{
 border-image-source:url('assets/limestone-frame.svg');border-image-slice:19;
 background:linear-gradient(120deg,#515c4af5,#3e4c44f2),var(--gt-stone);background-clip:padding-box;
 box-shadow:0 7px 20px #323b2f40,inset 0 0 30px #222f2559
}
html body #lesson[data-world="gobeklitepe"] .task-copy h3{color:#fff0cb;text-shadow:0 1px #263a2d}
html body #lesson[data-world="gobeklitepe"] .task-copy p{color:#eee4c9!important;text-shadow:none}
html body #lesson[data-world="gobeklitepe"] .task-kicker{color:#cfdaa9}
html body #lesson[data-world="gobeklitepe"] .task-kicker>b{background:#d8c7a3;color:#3a5544;padding:3px 6px;border-radius:3px}
html body #lesson[data-world="gobeklitepe"] .task-kicker>span{color:#d0d4b6!important}
html body #lesson[data-world="gobeklitepe"] .rating-rule{color:#e2dfa8!important}
html body #lesson[data-world="gobeklitepe"] .task-actions button{
 background:linear-gradient(#d7cbaccf,#aa9b7ee6),var(--gt-stone);border-color:#e5d7b3;color:#334e40;
 text-shadow:0 1px #e5dfcb;box-shadow:inset 0 1px #fff3d3,0 2px #293c2b7a
}
html body #lesson[data-world="gobeklitepe"] .task-actions>span,
html body #lesson[data-world="gobeklitepe"] .mission-checks span{color:#dddcc0}
html body #lesson[data-world="gobeklitepe"] .mission-checks i{background:#647e65;color:#f8ebc4;border-color:#a6b293}
html body #lesson[data-world="gobeklitepe"] #collapse-task{color:#ecdfba;border-color:#b4b18e;background:#38504280}
html body #lesson[data-world="gobeklitepe"] .task-tip{background:#e2dac2;color:#3c5343;border-color:#b7b494}
html body #lesson[data-world="gobeklitepe"] .text-editor-toolbar{background:#c8c7ac78;color:#3e5848!important;border-color:#a6a78c}
html body #lesson[data-world="gobeklitepe"] #editor-validation{color:#4d6956!important}
html body #lesson[data-world="gobeklitepe"] .text-editor-body{background:#eee8d7}
html body #lesson[data-world="gobeklitepe"] #code-editor{color:#354e43;caret-color:#2b7668}
html body #lesson[data-world="gobeklitepe"] #code-lines{background:#d8d5bf;color:#79806a;border-right-color:#bbbca1}
html body #lesson[data-world="gobeklitepe"] .code-api,
html body #lesson[data-world="gobeklitepe"] .preview-note{color:#52614b;background:#d6d4ba60}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog.is-success,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog.is-error{
 border-image-source:url('assets/limestone-frame.svg');border-image-slice:19;
 background:linear-gradient(130deg,#f1e9d5e8,#d9cdb3d9),var(--gt-stone);background-clip:padding-box;
 color:#3f5140;box-shadow:0 25px 80px #202b247a,inset 0 0 40px #8e80591c
}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog::backdrop{background:#273c337d;backdrop-filter:blur(7px)}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog h2,
html body #lesson[data-world="gobeklitepe"] .settings-panel h2{color:#3e5544!important;text-shadow:0 1px #fff8e8}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog p,
html body #lesson[data-world="gobeklitepe"] .settings-panel .settings-intro,
html body #lesson[data-world="gobeklitepe"] .settings-panel .settings-note{color:#5a604c!important;text-shadow:none}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog .mini-label,
html body #lesson[data-world="gobeklitepe"] .settings-kicker{color:#6b7959}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog .close,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog.is-success>.close{background:#a7b39936;border:1px solid #a4a386;color:#58634b;text-shadow:none}
html body #lesson[data-world="gobeklitepe"] .setting-item{border-bottom-color:#a8a48666}
html body #lesson[data-world="gobeklitepe"] .setting-item b{color:#3f5644}
html body #lesson[data-world="gobeklitepe"] .setting-item small{color:#6b6d56!important}
html body #lesson[data-world="gobeklitepe"] .setting-item select{background:#f1ead8;border-color:#a5a285;color:#425947;box-shadow:inset 0 1px #fffaf1}
html body #lesson[data-world="gobeklitepe"] .setting-switch{accent-color:#487e69}
html body #lesson[data-world="gobeklitepe"] .reward-button,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog .primary{border-color:#d8c7a1;box-shadow:inset 0 1px #e5eec080,0 3px #626044;text-shadow:0 1px #304c3c}
html body #lesson[data-world="gobeklitepe"] .reward-button.green,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog .primary{background:linear-gradient(#639280,#365f51);color:#fff6dc}
html body #lesson[data-world="gobeklitepe"] .reward-button.blue{background:linear-gradient(#879c94,#526f6b);color:#fff6dc}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog .secondary{background:#e2d8bd;border-color:#aaa082;color:#546247}
html body #lesson[data-world="gobeklitepe"] .reward-kicker,
html body #lesson[data-world="gobeklitepe"] .reward-caption,
html body #lesson[data-world="gobeklitepe"] .reward-caption b{color:#52684d;text-shadow:none}
html body #lesson[data-world="gobeklitepe"] .is-success .success-stats{border-color:#a49b7e66}
html body #lesson[data-world="gobeklitepe"] .is-success .success-stats div{color:#67705a}
html body #lesson[data-world="gobeklitepe"] .is-success .success-stats b{color:#405d47}
html body #lesson[data-world="gobeklitepe"] .reward-atlas{color:#476b56}
html body #lesson[data-world="gobeklitepe"] .failure-symbol{color:#aa7855;background:#d5b28b55;border-color:#b7956d}
html body #lesson[data-world="gobeklitepe"] .failure-kicker{color:#976849}
html body #lesson[data-world="gobeklitepe"] .failure-hint{background:#cbd1b573;border-color:#a5b192}
html body #lesson[data-world="gobeklitepe"] .failure-hint b{color:#46634b}
html body #lesson[data-world="gobeklitepe"] .help-code{background:#d3d3b5;color:#3f5c49;border-color:#a5ad8a}
html body #lesson[data-world="gobeklitepe"] .level-grid.curriculum button{background:linear-gradient(#f0e9d7,#d0c5a9);color:#55624d;border-color:#b2a88b;box-shadow:inset 0 1px #fff6e1,0 2px #a1997c}
html body #lesson[data-world="gobeklitepe"] .level-grid.curriculum button.selected{background:linear-gradient(#799581,#4d6c59);border-color:#a8b99b;color:#fff4d6}
html body #lesson[data-world="gobeklitepe"] .level-grid .planned-level{background:#d7d0b9;color:#777765;border-color:#afa78c;box-shadow:none}
body:has(#lesson[data-world="gobeklitepe"]:not([hidden]))>.atlas-language{background:linear-gradient(#e0d7bf,#c4b89c);border-color:#a49a7e;color:#49604b;box-shadow:inset 0 1px #fff4d8,0 3px #766f55}
body:has(#lesson[data-world="gobeklitepe"]:not([hidden]))>.atlas-language select{color:#3f5744}
@media(max-width:1100px){html body #lesson[data-world="gobeklitepe"] .code-tabs{padding-left:23px;padding-right:20px;gap:6px}}
@media(max-width:760px){html body #lesson[data-world="gobeklitepe"] .code-tabs{padding-left:21px;padding-right:19px;gap:5px}html body #lesson[data-world="gobeklitepe"] .code-tabs button{font-size:16px}}

/* Sculpted material pass: visible pores, chipped edges and site-specific reliefs. */
html body #lesson[data-world="gobeklitepe"]{--gt-stone:url('assets/gobek-stone-grain.webp')}
html body #lesson[data-world="gobeklitepe"] .code-pane{
 background-color:#e9e1ce;
 background-image:linear-gradient(115deg,#fff6df9a,#e3d3aa75),var(--gt-stone);
 background-size:auto,410px 410px;background-repeat:no-repeat,repeat;
 box-shadow:5px 0 24px #4d433231,inset 0 0 0 27px #b1a17c12,inset 0 0 76px #82724d26
}
html body #lesson[data-world="gobeklitepe"] .code-tabs{
 padding-left:86px;padding-bottom:17px;
 background-image:linear-gradient(#c8baa0a4,#ad9e759a),var(--gt-stone);
 background-size:auto,360px 360px;background-repeat:no-repeat,repeat
}
html body #lesson[data-world="gobeklitepe"] .code-tabs:after{
 height:13px;background: url('assets/gobek-carved-frieze.svg') center/310px auto repeat-x;
 border-top:1px solid #998b6752;box-shadow:0 -1px #eee4c77d
}
html body #lesson[data-world="gobeklitepe"] .code-tabs button:not([aria-selected=true]){
 background-image:linear-gradient(#f5ecd8a3,#c9ba949e),var(--gt-stone);
 background-size:auto,270px 270px
}
html body #lesson[data-world="gobeklitepe"] .code-tabs button[aria-selected=true]{
 background-image:linear-gradient(140deg,#628e7ef0,#365e55e9),var(--gt-stone);
 background-size:auto,260px 260px
}
html body #lesson[data-world="gobeklitepe"] .code-pane:after{
 content:''!important;display:block!important;position:absolute;z-index:11;
 left:12px;top:4px;right:auto;bottom:auto;width:65px;height:69px;
 background:url('assets/gobek-pillars-seal.svg') center/contain no-repeat!important;
 pointer-events:none;filter:drop-shadow(0 2px 2px #5c4e2b38);transform:rotate(-6deg)
}
html body #lesson[data-world="gobeklitepe"] .palette-tip>span{
 display:block;width:98px;height:72px;margin:0 0 10px -3px;font-size:0!important;
 background:url('assets/gobek-fox-tablet.svg') center/contain no-repeat;
 filter:drop-shadow(0 2px 1px #796b442e);pointer-events:none;transform:rotate(-4deg)
}
html body #lesson[data-world="gobeklitepe"] .workspace-area{position:relative}
html body #lesson[data-world="gobeklitepe"] .workspace-area:after{
 content:'';position:absolute;right:38px;bottom:122px;width:170px;height:198px;z-index:0;
 background:url('assets/gobek-petroglyph-panel.svg') center/contain no-repeat;
 opacity:.34;pointer-events:none;transform:rotate(-3deg)
}
html body #lesson[data-world="gobeklitepe"] #workspace{position:relative;z-index:1}
html body #lesson[data-world="gobeklitepe"] .workspace-tools{
 background:#ece4cf36;box-shadow:0 1px #fff5dd61
}
html body #lesson[data-world="gobeklitepe"] .workspace-foot{
 position:relative;padding-top:28px!important;
 background:linear-gradient(#c5c8ac36,#b7b5961f);box-shadow:inset 0 1px #fff1d680
}
html body #lesson[data-world="gobeklitepe"] .workspace-foot:before{
 content:'';position:absolute;top:3px;left:10px;right:10px;height:17px;
 background:url('assets/gobek-carved-frieze.svg') center/330px auto repeat-x;
 opacity:.85;pointer-events:none
}
html body #lesson[data-world="gobeklitepe"] .task-card{
 background-color:#4a5547;
 background-image:linear-gradient(125deg,#29382d7e,#192d279a),var(--gt-stone);
 background-size:auto,380px 380px;background-blend-mode:normal,soft-light;
 background-clip:padding-box
}
html body #lesson[data-world="gobeklitepe"] .task-card:before{
 content:''!important;display:block!important;top:auto;left:auto;right:10px;bottom:12px;
 width:80px;height:90px;border:0;border-radius:0;
 background:url('assets/gobek-petroglyph-panel.svg') center/contain no-repeat!important;
 opacity:.22;filter:brightness(2.1);transform:rotate(3deg);pointer-events:none
}
html body #lesson[data-world="gobeklitepe"] .task-card:after{
 content:'';position:absolute;bottom:1px;left:5px;right:5px;height:12px;
 background:url('assets/gobek-carved-frieze.svg') center/320px auto repeat-x;
 filter:brightness(1.7);opacity:.35;pointer-events:none
}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog.is-success,
html body #lesson[data-world="gobeklitepe"] .lesson-dialog.is-error{
 background-color:#e9e1ce;
 background-image:linear-gradient(130deg,#fff6e1a9,#ded1ad80),var(--gt-stone);
 background-size:auto,410px 410px;background-repeat:no-repeat,repeat;
 background-clip:padding-box
}
html body #lesson[data-world="gobeklitepe"] .lesson-dialog:after{
 content:'';position:absolute;top:15px;right:23px;width:88px;height:88px;z-index:0;
 background:url('assets/gobek-pillars-seal.svg') center/contain no-repeat;
 opacity:.19;pointer-events:none;transform:rotate(9deg)
}
html body #lesson[data-world="gobeklitepe"] #lesson-dialog-content{position:relative;z-index:1}
html body #lesson[data-world="gobeklitepe"] .mission-state{
 background-image:linear-gradient(135deg,#fff5d3ed,#e9d6abdf),var(--gt-stone);
 background-size:auto,320px 320px;box-shadow:0 4px 12px #695d3e29,inset 0 1px #fff5db
}
html body #lesson[data-world="gobeklitepe"] .survey-card{
 background-image:linear-gradient(#fff6d9dd,#efdfb9c5),var(--gt-stone);
 background-size:auto,230px 230px
}
html body #lesson[data-world="gobeklitepe"] #undo-code,
html body #lesson[data-world="gobeklitepe"] #redo-code,
html body #lesson[data-world="gobeklitepe"] .workspace-trash{
 background-image:linear-gradient(#fff4d4b3,#d1c4a8a4),var(--gt-stone);
 background-size:auto,210px 210px
}
@media(max-width:1100px){
 html body #lesson[data-world="gobeklitepe"] .code-tabs{padding-left:75px}
 html body #lesson[data-world="gobeklitepe"] .code-pane:after{width:56px;height:63px;top:2px;left:11px}
 html body #lesson[data-world="gobeklitepe"] .workspace-area:after{width:143px;height:166px;right:22px;bottom:130px}
}
@media(max-width:760px){
 html body #lesson[data-world="gobeklitepe"] .code-tabs{padding-left:72px;padding-bottom:16px}
 html body #lesson[data-world="gobeklitepe"] .code-pane:after{width:51px;height:57px;top:0;left:12px}
 html body #lesson[data-world="gobeklitepe"] .code-tabs:after{height:11px;background-size:275px auto}
 html body #lesson[data-world="gobeklitepe"] .workspace-area:after{width:124px;height:144px;right:15px;bottom:123px;opacity:.28}
 html body #lesson[data-world="gobeklitepe"] .palette-tip>span{width:82px;height:61px}
}

/* v12: material contrast reduced approximately 10%; carved ornaments stay unchanged. */

/* v13: another 35% reduction in visible grain; ornaments remain at full strength. */
